[x-cloak] { display: none !important; }

body {
    font-family: 'Inter', sans-serif;
    background-color: #041329;
    -webkit-tap-highlight-color: transparent;
}

/* ===== Login canvas ===== */
#bg-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.scan-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(38,254,220,0) 10%, rgba(38,254,220,0.4) 50%, rgba(38,254,220,0) 90%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    animation: scanDown 6s linear infinite;
    opacity: 0.6;
}

@keyframes scanDown {
    0% { top: -2px; }
    100% { top: 100vh; }
}

.hex-icon {
    width: 64px;
    height: 64px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hex-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(38,254,220,0.2), rgba(174,199,246,0.2));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: hexPulse 3s ease-in-out infinite;
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.login-card {
    background: rgba(4, 19, 41, 0.75);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(38, 254, 220, 0.15);
    border-radius: 1rem;
    box-shadow: 0 0 40px rgba(38, 254, 220, 0.05), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: border-color 0.3s;
}
.login-card:hover {
    border-color: rgba(38, 254, 220, 0.25);
}

.login-input {
    width: 100%;
    padding: 0.6rem 0.75rem 0.6rem 2.5rem;
    border: 1px solid rgba(100, 116, 139, 0.3);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background: rgba(4, 19, 41, 0.6);
    color: #e2e8f0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}
.login-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    border-color: rgba(38, 254, 220, 0.6);
    box-shadow: 0 0 0 3px rgba(38, 254, 220, 0.1), 0 0 20px rgba(38, 254, 220, 0.05);
}
.login-input::placeholder { color: #475569; }
.login-input:focus::placeholder { color: #94a3b8; }

.login-password-toggle {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-brand-icon { width: 2rem; height: 2rem; }
.login-input-icon, .login-action-icon { width: 1rem; height: 1rem; }
.login-loader, .login-button-spinner {
    display: inline-block;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
}
.login-loader {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 4px;
    color: #26fedc;
}
.login-button-spinner { width: 1rem; height: 1rem; }

.input-group:focus-within .input-icon {
    color: #0f172a;
    transition: color 0.2s;
}

.login-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid rgba(38, 254, 220, 0.4);
    background: linear-gradient(135deg, rgba(38, 254, 220, 0.15) 0%, rgba(174, 199, 246, 0.15) 100%);
    color: #26fedc;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.login-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(38, 254, 220, 0.2) 0%, rgba(174, 199, 246, 0.2) 100%);
    opacity: 0;
    transition: opacity 0.2s;
}
.login-btn:hover::before { opacity: 1; }
.login-btn:hover {
    border-color: rgba(38, 254, 220, 0.7);
    box-shadow: 0 0 25px rgba(38, 254, 220, 0.15);
}
.login-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Wizard (visit.html) ===== */

.option-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #1c2a41;
    color: #d6e3ff;
    font-size: 0.875rem;
    line-height: 1.35;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.option-btn:active { transform: scale(0.99); }
.option-btn .radio-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #8e9099;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}
.option-btn.selected {
    border-color: rgba(38, 254, 220, 0.6);
    background: rgba(38, 254, 220, 0.08);
}
.option-btn.selected .radio-dot {
    border-color: #26fedc;
}
.option-btn.selected .radio-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #26fedc;
}

.q-card {
    background: #112036;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1rem;
    padding: 1rem;
}
.q-card.q-error {
    border-color: rgba(248, 113, 113, 0.6);
}

.progress-track {
    height: 4px;
    border-radius: 2px;
    background: #1c2a41;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #26fedc, #aec7f6);
    transition: width 0.3s ease;
}

.wizard-textarea {
    width: 100%;
    background: #1c2a41;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: #d6e3ff;
    min-height: 110px;
    resize: vertical;
}
.wizard-textarea:focus {
    outline: none;
    border-color: rgba(38, 254, 220, 0.5);
    box-shadow: 0 0 0 3px rgba(38, 254, 220, 0.08);
}
.wizard-textarea::placeholder { color: #475569; }

/* ===== Κύρια εφαρμογή merch (dashboard.html / visit.html) ===== */

.app-card {
    background: #112036;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 0.9rem;
    display: block;
}

.shelf-product-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.shelf-product-row:last-child { border-bottom: 0; }
.shelf-compact-controls { display: grid; grid-template-columns: 2.25rem 2.5rem 2.25rem; flex-shrink: 0; border: 1px solid rgba(38,254,220,0.25); border-radius: 0.6rem; overflow: hidden; }
.shelf-compact-controls button, .shelf-compact-controls input { width: 100%; height: 2.75rem; background: #1c2a41; text-align: center; color: #26fedc; }
.shelf-compact-controls button { font-size: 1.2rem; }
.shelf-compact-controls button:disabled { opacity: 0.3; }
.shelf-compact-controls input { min-width: 0; font-weight: 600; font-size: 1rem; appearance: textfield; }
.shelf-compact-controls input::-webkit-inner-spin-button, .shelf-compact-controls input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.shelf-compact-controls input:focus { outline: 2px solid #26fedc; outline-offset: -2px; }
.shelf-remove { display: inline-flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; color: #c4c6cf; flex-shrink: 0; }
.shelf-remove span { font-size: 1rem; }

.shelf-stepper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.shelf-stepper-label {
    color: #c4c6cf;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.shelf-stepper-controls {
    display: grid;
    grid-template-columns: 2.75rem 3.25rem 2.75rem;
    align-items: center;
    column-gap: 0.75rem;
}
.shelf-stepper-button,
.shelf-stepper-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.75rem;
    border-radius: 999px;
}
.shelf-stepper-button {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #1c2a41;
    color: #d6e3ff;
    font-size: 1.55rem;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.15s, border-color 0.15s, background 0.15s, opacity 0.15s;
}
.shelf-stepper-button:hover { border-color: rgba(38, 254, 220, 0.5); }
.shelf-stepper-button:active { transform: scale(0.94); }
.shelf-stepper-button:disabled { opacity: 0.35; cursor: not-allowed; }
.shelf-stepper-button-plus {
    border-color: rgba(38, 254, 220, 0.5);
    background: rgba(38, 254, 220, 0.1);
    color: #26fedc;
}
.shelf-stepper-value {
    width: 3.25rem;
    border-radius: 0.65rem;
    background: #1c2a41;
    color: #26fedc;
    font-size: 1.25rem;
    font-variant-numeric: tabular-nums;
}

.app-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1c2a41;
    color: #d6e3ff;
    font-size: 0.875rem;
}
.app-input:focus {
    outline: none;
    border-color: rgba(38, 254, 220, 0.5);
    box-shadow: 0 0 0 3px rgba(38, 254, 220, 0.08);
}
.app-input::placeholder { color: #475569; }
select.app-input { appearance: none; }

.form-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c4c6cf;
    margin-bottom: 0.3rem;
}

.btn-accent, .btn-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, opacity 0.15s;
}
.btn-accent {
    border: 1px solid rgba(38, 254, 220, 0.4);
    background: linear-gradient(135deg, rgba(38, 254, 220, 0.15), rgba(174, 199, 246, 0.15));
    color: #26fedc;
}
.btn-accent:hover { border-color: rgba(38, 254, 220, 0.7); }
.btn-accent:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c2a41;
    color: #c4c6cf;
    font-weight: 500;
}
.btn-ghost:hover { border-color: rgba(38, 254, 220, 0.4); color: #d6e3ff; }

/* Non-default answers are findings: keep their selected state visibly red.
   This is app-scoped because the fixed Tailwind bundle does not contain the
   red utility variant used by the dynamic Alpine class binding. */
.quality-nondefault-selected {
    background: #b94a4a !important;
    border-color: #f87171 !important;
    color: #fff !important;
}
.quality-default-selected {
    background: #22c55e !important;
    border-color: #4ade80 !important;
    color: #07111f !important;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25), 0 0 18px rgba(34, 197, 94, 0.18);
}

/* Promotions use the same high-contrast selected fills as quality answers. */
.promotion-selected {
    background: #22c55e !important;
    border-color: #4ade80 !important;
    color: #07111f !important;
    box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.25), 0 0 18px rgba(34, 197, 94, 0.18);
}
.promotion-contest-selected {
    background: #b94a4a !important;
    border-color: #f87171 !important;
    color: #fff !important;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hide-scrollbar::-webkit-scrollbar { display: none; }

.chip {
    flex-shrink: 0;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c2a41;
    color: #c4c6cf;
    font-size: 0.7rem;
    white-space: nowrap;
    cursor: pointer;
}
.chip-on {
    border-color: rgba(38, 254, 220, 0.6);
    background: rgba(38, 254, 220, 0.1);
    color: #26fedc;
}

/* Μονή επιλογή OOS (Q10) — 4 συμπαγή κουμπιά ανά SKU */
.oos-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.4rem 0.15rem;
    border-radius: 0.55rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #1c2a41;
    color: #8e9099;
    font-size: 0.65rem;
    line-height: 1.1;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.oos-btn.on-ok    { border-color: rgba(52, 211, 153, 0.7); background: rgba(52, 211, 153, 0.12); color: #34d399; }
.oos-btn.on-warn  { border-color: rgba(251, 191, 36, 0.7); background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.oos-btn.on-bad   { border-color: rgba(248, 113, 113, 0.7); background: rgba(248, 113, 113, 0.12); color: #f87171; }
.oos-btn.on-muted { border-color: rgba(174, 199, 246, 0.6); background: rgba(174, 199, 246, 0.12); color: #aec7f6; }

.qty-btn {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c2a41;
    color: #d6e3ff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}
.qty-btn:hover { border-color: rgba(38, 254, 220, 0.5); }

.qty-input {
    width: 4rem;
    text-align: center;
    padding: 0.35rem 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c2a41;
    color: #d6e3ff;
    font-size: 0.875rem;
}
.qty-input:focus { outline: none; border-color: rgba(38, 254, 220, 0.5); }

/* Κλειδωμένη παραγγελία (11/09/2026, modules/oos.js orderLocked): τα στοιχεία που δεν
   αλλάζουν μετά την ημέρα της επίσκεψης φαίνονται ως ανενεργά. */
.oos-btn:disabled, .qty-btn:disabled, .qty-input:disabled, .option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Keep the complete promotion search list within a scrollable mobile panel. */
.promo-search-results {
    max-height: 13rem;
    overflow-y: auto;
    overscroll-behavior: contain;
}
