/* =========================================
   3D Tisk — Unified Design System
   ========================================= */

/* ---- Variables ---- */
:root {
    --bg:          #f7f7f7;
    --card-bg:     #ffffff;
    --sidebar-bg:  #ffffff;
    --text-main:   #111111;
    --text-muted:  #666666;
    --accent:      #111111;
    --border:      #e8e8e8;
    --hover:       #f2f2f2;
    --danger:      #dc2626;
    --success:     #16a34a;
    --warning:     #d97706;
    --info:        #1565c0;
    --sidebar-w:   260px;
    --viewer-bg:   radial-gradient(circle at center, #f9fafb, #e5e7eb);

    /* Spacing scale */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  40px;
    --space-2xl: 64px;

    /* Typography scale */
    --text-xs:   .75rem;
    --text-sm:   .85rem;
    --text-base: .95rem;
    --text-lg:   1.15rem;
    --text-xl:   1.45rem;

    --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body.dark-mode {
    --bg:         #111111;
    --card-bg:    #1c1c1c;
    --sidebar-bg: #171717;
    --text-main:  #e2e2e2;
    --text-muted: #888888;
    --accent:     #efefef;
    --border:     #2a2a2a;
    --hover:      #232323;
    --info:       #4da3ff;
    --danger:     #f87171;
    --success:    #4ade80;
    --viewer-bg:  radial-gradient(circle at center, #2a2a2a, #141414);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    transition: background .25s, color .25s;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: var(--info); }
small { font-size: .8rem; color: var(--text-muted); }
hr { border: none; border-top: 1px solid var(--border); margin: 22px 0; }
code, pre, kbd, samp { font-family: var(--font-mono); }

/* ---- Skip link (accessibility) ---- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 100000;
    padding: 8px 16px;
    background: var(--accent);
    color: var(--card-bg);
    font-size: .85rem;
    font-weight: 600;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top .15s;
}
.skip-link:focus {
    top: 0;
}

/* ---- Dark-mode toggle (fixed top-right on all pages) ---- */
#theme-toggle {
    position: fixed;
    top: 16px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    font-family: inherit;
    font-size: .8rem;
    color: var(--text-muted);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 7px;
    cursor: pointer;
    transition: background .15s, border-color .15s, color .15s;
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
#theme-toggle:hover { color: var(--text-main); border-color: var(--text-muted); }

/* ---- Admin layout ---- */
.admin-body { display: flex; min-height: 100vh; }

/* Admin UI: monochrome palette with lighter dark mode */
.admin-body {
    --info: var(--text-main);
    --danger: var(--text-main);
    --success: var(--text-main);
    --warning: var(--text-main);
}
body.admin-body .badge-pending,
body.admin-body .badge-new,
body.admin-body .badge-progress,
body.admin-body .badge-done,
body.admin-body .badge-sent,
body.admin-body .badge-cancel {
    background: var(--hover);
    color: var(--text-main);
    border: 1px solid var(--border);
}
body.admin-body.dark-mode .badge-pending,
body.admin-body.dark-mode .badge-new,
body.admin-body.dark-mode .badge-progress,
body.admin-body.dark-mode .badge-done,
body.admin-body.dark-mode .badge-sent,
body.admin-body.dark-mode .badge-cancel {
    background: #313845;
    color: #eef2f7;
    border-color: #434b58;
}
body.admin-body .btn-success,
body.admin-body .btn-warning,
body.admin-body .btn-danger {
    background: var(--text-main);
    color: var(--card-bg);
    border-color: var(--text-main);
}
body.admin-body .btn-success:hover,
body.admin-body .btn-warning:hover,
body.admin-body .btn-danger:hover {
    opacity: .9;
    background: var(--text-main);
}
body.admin-body .alert-success,
body.admin-body .alert-danger,
body.admin-body .alert-info,
body.admin-body .alert-warning {
    background: var(--hover);
    color: var(--text-main);
    border-color: var(--border);
}

.sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 200;
    transition: background .25s, border-color .25s;
}

.sidebar-brand {
    padding: 22px 24px 18px;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: -.02em;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.sidebar nav {
    flex: 1;
    padding: 8px 0;
    overflow-y: auto;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--hover); color: var(--text-main); }
.nav-link.active {
    background: var(--hover);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-badge { margin-left: auto; font-size: .65rem; padding: 2px 7px; }

.sidebar-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}
.sidebar-footer a {
    font-size: .8rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 5px 0;
    transition: color .15s;
}
.sidebar-footer a:hover { color: var(--text-main); }
.sidebar-footer a.lnk-danger { color: var(--danger); }
.sidebar-footer a.lnk-danger:hover { color: var(--danger); opacity: .75; }

.main-content {
    margin-left: var(--sidebar-w);
    padding: 64px 48px 48px;
    flex: 1;
    min-width: 0;
}

/* ---- Page header ---- */
.page-header { margin-bottom: 28px; display: flex; align-items: center; padding-right: 100px; }
.page-header h1 {
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -.03em;
    margin: 0 0 4px;
}
.page-header p { color: var(--text-muted); font-size: .875rem; margin: 0; }

/* ---- Cards ---- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 22px;
    overflow: hidden;
    transition: background .25s, border-color .25s;
}
.card-body { padding: 24px; }
.card-header {
    padding: 13px 20px;
    border-bottom: 1px solid var(--border);
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* ---- Tables ---- */
table { width: 100%; border-collapse: collapse; }
th {
    padding: 11px 20px;
    font-size: .7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--hover);
    text-align: left;
    white-space: nowrap;
}
td {
    padding: 14px 20px;
    font-size: .875rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--hover); }

/* ---- Forms ---- */
.form-grid { display: grid; gap: 14px; }
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-label {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    padding: 8px 11px;
    background: var(--bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: .875rem;
    width: 100%;
    transition: border-color .15s;
    resize: vertical;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 1px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
}
.btn:hover { background: var(--hover); }

.btn-primary {
    background: var(--accent);
    color: var(--bg);
    border-color: transparent;
}
.btn-primary:hover { opacity: .82; background: var(--accent); }

.btn-danger {
    color: var(--danger);
    border-color: var(--danger);
    background: transparent;
}
.btn-danger:hover { background: var(--danger); color: #fff; }

.btn-success {
    background: var(--success);
    color: #fff;
    border-color: transparent;
}
.btn-success:hover { opacity: .85; background: var(--success); }

.btn-warning {
    background: var(--warning);
    color: #fff;
    border-color: transparent;
}
.btn-warning:hover { opacity: .85; background: var(--warning); }

.btn-sm  { padding: 5px 11px; font-size: .78rem; }
.btn-lg  { padding: 10px 20px; font-size: .88rem; }
.btn-full { width: 100%; }
.btn:focus-visible, a:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 2px;
}

/* ---- Status select ---- */
.status-select {
    padding: 5px 9px;
    font-size: .8rem;
    background: var(--bg);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
}

/* ---- Alerts ---- */
.alert {
    padding: 11px 15px;
    border-radius: 7px;
    font-size: .875rem;
    margin-bottom: 18px;
    border: 1px solid transparent;
}
.alert-success { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.alert-danger  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-info    { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.alert-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
body.dark-mode .alert-success { background: #0d2818; color: #86efac; border-color: #166534; }
body.dark-mode .alert-danger  { background: #2d0b0b; color: #fca5a5; border-color: #991b1b; }
body.dark-mode .alert-info    { background: #0c1d3d; color: #93c5fd; border-color: #1e40af; }
body.dark-mode .alert-warning { background: #2d2000; color: #fcd34d; border-color: #92400e; }

/* ---- Badges ---- */
.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .02em;
}
.badge-pending  { background: #f3f4f6; color: #4b5563; }
.badge-new      { background: #dbeafe; color: #1e40af; }
.badge-progress { background: #fef3c7; color: #92400e; }
.badge-done     { background: #d1fae5; color: #065f46; }
.badge-sent     { background: #ede9fe; color: #5b21b6; }
.badge-cancel   { background: #fef2f2; color: #991b1b; }
body.dark-mode .badge-pending  { background: #2a2a2a; color: #9ca3af; }
body.dark-mode .badge-new      { background: #1e3a5f; color: #93c5fd; }
body.dark-mode .badge-progress { background: #3d2a00; color: #fcd34d; }
body.dark-mode .badge-done     { background: #043d26; color: #6ee7b7; }
body.dark-mode .badge-sent     { background: #2d1a5e; color: #c4b5fd; }
body.dark-mode .badge-cancel   { background: #2d0b0b; color: #fca5a5; }
.badge-consultation { background: #fff7ed; color: #9a3412; }
body.dark-mode .badge-consultation { background: #3d2200; color: #fdba74; }

/* ---- Google OAuth button ---- */
.btn-google {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s, box-shadow .2s;
    text-decoration: none;
    width: 100%;
    justify-content: center;
}
.btn-google:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.btn-google svg { flex-shrink: 0; }
body.dark-mode .btn-google {
    background: #2a2a2a;
    color: #e2e2e2;
    border-color: #444;
}
body.dark-mode .btn-google:hover {
    background: #333;
}

/* ---- Search bar ---- */
.search-bar { display: flex; gap: 8px; margin-bottom: 22px; align-items: center; flex-wrap: wrap; }
.search-bar input { max-width: 260px; }

/* ---- Auth / centered pages ---- */
.page-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 20px;
}
.auth-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.auth-brand {
    text-align: center;
    margin-bottom: 28px;
}
.auth-brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
}
.auth-brand-sub {
    font-size: .82rem;
    color: var(--text-muted);
}
.auth-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -.02em;
}
.auth-card .auth-subtitle {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0 0 24px;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.auth-form .form-group { position: relative; }
.auth-form .form-label {
    margin-bottom: 2px;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    padding: 10px 13px;
    font-size: .9rem;
    border-radius: 8px;
}
.auth-form input:focus {
    border-color: var(--accent);
}
.password-wrapper {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: .78rem;
    font-family: inherit;
    font-weight: 500;
    transition: color .15s;
}
.password-toggle:hover { color: var(--text-main); }
.password-hint {
    font-size: .72rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.password-strength-bar {
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    transition: background .2s;
}
.password-strength-bar.active-weak { background: var(--danger); }
.password-strength-bar.active-medium { background: var(--warning); }
.password-strength-bar.active-strong { background: var(--success); }
.password-strength-label {
    font-size: .7rem;
    font-weight: 500;
    margin-top: 2px;
    min-height: 16px;
}
.auth-submit {
    margin-top: 4px;
    padding: 11px 20px;
    font-size: .9rem;
    font-weight: 600;
    border-radius: 8px;
}
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 16px;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.auth-divider span {
    font-size: .75rem;
    color: var(--text-muted);
    white-space: nowrap;
}
.auth-links {
    font-size: .85rem;
    text-align: center;
    color: var(--text-muted);
    margin-top: 16px;
}
.auth-links a { color: var(--info); text-decoration: none; font-weight: 500; }
.auth-links a:hover { text-decoration: underline; }
.auth-link-secondary {
    display: block;
    margin-top: 10px;
}
.auth-link-secondary a { color: var(--text-muted) !important; font-weight: 400 !important; }
.auth-link-secondary a:hover { color: var(--text-main) !important; }
@media (max-width: 480px) {
    .auth-card { padding: 28px 22px 24px; border-radius: 12px; }
}

/* ---- Utility classes ---- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-muted  { color: var(--text-muted); }
.text-info   { color: var(--info); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-xs     { font-size: var(--text-xs); }
.text-sm     { font-size: var(--text-sm); }
.text-base   { font-size: var(--text-base); }
.text-lg     { font-size: var(--text-lg); }
.text-xl     { font-size: var(--text-xl); }
.text-bold   { font-weight: 700; }
.text-price  { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; }
.font-medium { font-weight: 500; }

.d-none      { display: none; }
.d-inline    { display: inline; }
.d-block     { display: block; }
.d-flex      { display: flex; }
.d-grid      { display: grid; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-end    { align-items: flex-end; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-xs  { gap: var(--space-xs); }
.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

.m-0  { margin: 0; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.ml-sm { margin-left: var(--space-sm); }
.ml-md { margin-left: var(--space-md); }

.pt-md { padding-top: var(--space-md); }
.pb-md { padding-bottom: var(--space-md); }
.px-md { padding-left: var(--space-md); padding-right: var(--space-md); }

.w-full { width: 100%; }
.border-top { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.cursor-pointer { cursor: pointer; }

/* ---- Auth-card size variants ---- */
.auth-card--sm { max-width: 380px; }
.auth-card--md { max-width: 440px; }
.auth-card--lg { max-width: 460px; }
.auth-card--xl { max-width: 540px; }

/* ---- Summary rows (success, payment, checkout) ---- */
.summary-box { background: var(--hover); border-radius: 8px; padding: 16px 18px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--text-sm); }
.summary-row:last-child { border-bottom: none; }

/* ---- Price display (payment, success) ---- */
.price-display { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--info); }
.price-label  { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--text-muted); margin-top: 6px; }

/* ---- Payment box ---- */
.payment-box { border: 2px dashed var(--border); border-radius: 10px; padding: 28px; text-align: center; margin: 22px 0; color: var(--text-muted); font-size: var(--text-sm); }
.payment-warn { background: var(--warning); color: #000; padding: 12px 16px; border-radius: 8px; font-size: .8rem; margin: 16px 0 0; font-weight: 500; }

/* ---- Checkbox label ---- */
.checkbox-label { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; font-size: .9rem; }

/* ---- Inline link button ---- */
.btn-link { color: var(--accent); text-decoration: underline; background: none; border: none; cursor: pointer; font-size: inherit; font-family: inherit; }

/* ---- Admin form helpers ---- */
.admin-form-inline { display: flex; gap: var(--space-sm); align-items: center; }
.admin-form-inline select { flex: 1; }
.admin-card-narrow { max-width: 600px; }
.admin-card-xs { max-width: 500px; }

/* ---- Checkout page ---- */
.checkout-form { display: flex; flex-direction: column; gap: 14px; }
.checkout-section { border-top: 1px solid var(--border); padding-top: 14px; margin-top: var(--space-xs); }
.checkout-section-title { margin: 0 0 10px; font-size: 1rem; font-weight: 600; }
.checkout-section-title.m-0 { margin: 0; }
.shipping-options { display: flex; flex-direction: column; gap: var(--space-sm); }
.shipping-option {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: .9rem; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: 8px; transition: border-color .15s;
}
.shipping-option:hover { border-color: var(--text-muted); }
.shipping-option.active { border-color: var(--text-main); }
.shipping-option-name { flex: 1; }
.shipping-option-days { color: var(--text-muted); font-size: .8rem; margin-left: 6px; }
.shipping-option-price { font-weight: 600; white-space: nowrap; }
.optional-label { color: var(--text-muted); font-weight: 400; }
.collapsible-fields { display: flex; flex-direction: column; gap: 14px; }
.collapsible-fields.hidden { display: none; }

/* ---- CSS Icons (replaces emojis) ---- */
.nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    position: relative;
}
.nav-icon::before {
    content: '';
    display: block;
    position: absolute;
}

/* Dashboard - 4 small squares grid */
.icon-dashboard::before {
    width: 14px; height: 14px;
    background:
        linear-gradient(var(--text-muted), var(--text-muted)) 0 0 / 6px 6px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 8px 0 / 6px 6px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 0 8px / 6px 6px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 8px 8px / 6px 6px no-repeat;
    border-radius: 1px;
}
.nav-link.active .icon-dashboard::before,
.nav-link:hover .icon-dashboard::before {
    background:
        linear-gradient(var(--accent), var(--accent)) 0 0 / 6px 6px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 8px 0 / 6px 6px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 0 8px / 6px 6px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 8px 8px / 6px 6px no-repeat;
}

/* Orders - box */
.icon-orders::before {
    width: 14px; height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 4px;
}
.icon-orders::after {
    content: '';
    display: block;
    position: absolute;
    width: 8px; height: 0;
    border-top: 2px solid var(--text-muted);
    top: 3px; left: 5px;
}
.nav-link.active .icon-orders::before,
.nav-link:hover .icon-orders::before { border-color: var(--accent); }
.nav-link.active .icon-orders::after,
.nav-link:hover .icon-orders::after { border-color: var(--accent); }

/* Users - person silhouette */
.icon-users::before {
    width: 8px; height: 8px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    top: 1px; left: 5px;
}
.icon-users::after {
    content: '';
    display: block;
    position: absolute;
    width: 14px; height: 6px;
    border: 2px solid var(--text-muted);
    border-bottom: none;
    border-radius: 7px 7px 0 0;
    bottom: 0; left: 2px;
}
.nav-link.active .icon-users::before,
.nav-link:hover .icon-users::before { border-color: var(--accent); }
.nav-link.active .icon-users::after,
.nav-link:hover .icon-users::after { border-color: var(--accent); }

/* Promo - tag */
.icon-promo::before {
    width: 12px; height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 2px 6px 6px 2px;
    top: 3px; left: 2px;
}
.icon-promo::after {
    content: '';
    display: block;
    position: absolute;
    width: 3px; height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
    top: 7px; left: 6px;
}
.nav-link.active .icon-promo::before,
.nav-link:hover .icon-promo::before { border-color: var(--accent); }
.nav-link.active .icon-promo::after,
.nav-link:hover .icon-promo::after { background: var(--accent); }

/* Materials - cube */
.icon-materials::before {
    width: 12px; height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 3px; left: 3px;
    transform: rotate(0deg);
}
.icon-materials::after {
    content: '';
    display: block;
    position: absolute;
    width: 0; height: 12px;
    border-left: 2px solid var(--text-muted);
    top: 3px; left: 9px;
}
.nav-link.active .icon-materials::before,
.nav-link:hover .icon-materials::before { border-color: var(--accent); }
.nav-link.active .icon-materials::after,
.nav-link:hover .icon-materials::after { border-color: var(--accent); }

/* Affiliate - chain link */
.icon-affiliate::before {
    width: 8px; height: 8px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    top: 2px; left: 1px;
}
.icon-affiliate::after {
    content: '';
    display: block;
    position: absolute;
    width: 8px; height: 8px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    top: 8px; left: 9px;
}
.nav-link.active .icon-affiliate::before,
.nav-link:hover .icon-affiliate::before { border-color: var(--accent); }
.nav-link.active .icon-affiliate::after,
.nav-link:hover .icon-affiliate::after { border-color: var(--accent); }

/* Audit - list */
.icon-audit::before {
    width: 14px; height: 14px;
    background:
        linear-gradient(var(--text-muted), var(--text-muted)) 0 1px / 3px 2px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 5px 1px / 9px 2px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 0 6px / 3px 2px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 5px 6px / 9px 2px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 0 11px / 3px 2px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 5px 11px / 9px 2px no-repeat;
}
.nav-link.active .icon-audit::before,
.nav-link:hover .icon-audit::before {
    background:
        linear-gradient(var(--accent), var(--accent)) 0 1px / 3px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 5px 1px / 9px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 0 6px / 3px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 5px 6px / 9px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 0 11px / 3px 2px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 5px 11px / 9px 2px no-repeat;
}

/* Shipping - truck outline */
.icon-shipping::before {
    width: 14px; height: 10px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 5px; left: 0;
}
.icon-shipping::after {
    content: '';
    display: block;
    position: absolute;
    width: 6px; height: 8px;
    border: 2px solid var(--text-muted);
    border-left: none;
    border-radius: 0 2px 2px 0;
    top: 6px; right: 0;
}
.nav-link.active .icon-shipping::before,
.nav-link:hover .icon-shipping::before { border-color: var(--accent); }
.nav-link.active .icon-shipping::after,
.nav-link:hover .icon-shipping::after { border-color: var(--accent); }

/* Invoice - document with lines */
.icon-invoice::before {
    width: 12px; height: 14px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 2px; left: 3px;
}
.icon-invoice::after {
    content: '';
    display: block;
    position: absolute;
    width: 6px; height: 0;
    border-top: 2px solid var(--text-muted);
    top: 8px; left: 6px;
}
.nav-link.active .icon-invoice::before,
.nav-link:hover .icon-invoice::before { border-color: var(--accent); }
.nav-link.active .icon-invoice::after,
.nav-link:hover .icon-invoice::after { border-color: var(--accent); }

/* Email - envelope */
.icon-email::before {
    width: 14px; height: 10px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 4px; left: 2px;
}
.icon-email::after {
    content: '';
    display: block;
    position: absolute;
    width: 10px; height: 6px;
    border-left: 2px solid var(--text-muted);
    border-top: 2px solid var(--text-muted);
    transform: rotate(-45deg) translate(1px, -1px);
    top: 3px; left: 4px;
    border-radius: 0;
}
.nav-link.active .icon-email::before,
.nav-link:hover .icon-email::before { border-color: var(--accent); }
.nav-link.active .icon-email::after,
.nav-link:hover .icon-email::after { border-color: var(--accent); }

/* Expedition - box with arrow up */
.icon-expedition::before {
    width: 14px; height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 4px; left: 2px;
}
.icon-expedition::after {
    content: '';
    display: block;
    position: absolute;
    width: 0; height: 6px;
    border-left: 2px solid var(--text-muted);
    top: 1px; left: 9px;
}
.nav-link.active .icon-expedition::before,
.nav-link:hover .icon-expedition::before { border-color: var(--accent); }
.nav-link.active .icon-expedition::after,
.nav-link:hover .icon-expedition::after { border-color: var(--accent); }

/* Marketing - bar chart */
.icon-marketing::before {
    width: 14px; height: 14px;
    background:
        linear-gradient(var(--text-muted), var(--text-muted)) 0 8px / 4px 6px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 5px 4px / 4px 10px no-repeat,
        linear-gradient(var(--text-muted), var(--text-muted)) 10px 1px / 4px 13px no-repeat;
    border-radius: 1px;
}
.nav-link.active .icon-marketing::before,
.nav-link:hover .icon-marketing::before {
    background:
        linear-gradient(var(--accent), var(--accent)) 0 8px / 4px 6px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 5px 4px / 4px 10px no-repeat,
        linear-gradient(var(--accent), var(--accent)) 10px 1px / 4px 13px no-repeat;
}

/* Campaign - megaphone */
.icon-campaign::before {
    width: 10px; height: 10px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 4px; left: 2px;
}
.icon-campaign::after {
    content: '';
    display: block;
    position: absolute;
    width: 0; height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid var(--text-muted);
    top: 4px; right: 0;
}
.nav-link.active .icon-campaign::before,
.nav-link:hover .icon-campaign::before { border-color: var(--accent); }
.nav-link.active .icon-campaign::after,
.nav-link:hover .icon-campaign::after { border-left-color: var(--accent); }

/* Back arrow */
.icon-back::before {
    width: 10px; height: 10px;
    border-left: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    top: 4px; left: 5px;
}
.icon-back::after {
    content: '';
    display: block;
    position: absolute;
    width: 12px; height: 0;
    border-top: 2px solid var(--text-muted);
    top: 9px; left: 3px;
}
.nav-link.active .icon-back::before,
.nav-link:hover .icon-back::before { border-color: var(--accent); }
.nav-link.active .icon-back::after,
.nav-link:hover .icon-back::after { border-color: var(--accent); }

/* Printer icon for operator */
.icon-printer::before {
    width: 14px; height: 10px;
    border: 2px solid var(--text-muted);
    border-radius: 2px;
    top: 4px; left: 2px;
}
.icon-printer::after {
    content: '';
    display: block;
    position: absolute;
    width: 8px; height: 4px;
    border: 2px solid var(--text-muted);
    border-bottom: none;
    border-radius: 2px 2px 0 0;
    top: 0; left: 5px;
}

/* Theme toggle icon - half circle */
.theme-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}
.theme-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 50%; height: 100%;
    background: var(--text-muted);
}

/* Check circle for success page */
.check-circle {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--success) 20%, var(--card-bg));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}
.check-circle::after {
    content: '';
    width: 18px; height: 10px;
    border-left: 3px solid var(--success);
    border-bottom: 3px solid var(--success);
    transform: rotate(-45deg);
    margin-bottom: 4px;
}

/* ---- Toast Notifications ---- */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: 100%;
}
.toast {
    pointer-events: auto;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    overflow: hidden;
    transform: translateX(110%);
    opacity: 0;
    transition: transform .35s ease, opacity .35s ease;
}
.toast-visible {
    transform: translateX(0);
    opacity: 1;
}
.toast-hiding {
    transform: translateX(110%);
    opacity: 0;
}
.toast-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    font-size: .85rem;
}
.toast-msg { flex: 1; }
.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    font-family: inherit;
}
.toast-close:hover { color: var(--text-main); }
.toast-progress {
    height: 3px;
    background: var(--border);
}
.toast-progress-bar {
    height: 100%;
    width: 100%;
    transition: width 5s linear;
}
.toast-success { border-left: 4px solid var(--success); }
.toast-success .toast-progress-bar { background: var(--success); }
.toast-danger { border-left: 4px solid var(--danger); }
.toast-danger .toast-progress-bar { background: var(--danger); }
.toast-info { border-left: 4px solid var(--info); }
.toast-info .toast-progress-bar { background: var(--info); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning .toast-progress-bar { background: var(--warning); }

/* ---- Modal ---- */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    max-width: 440px;
    width: 90%;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
}
.modal-box h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 16px;
}

/* ---- Tabs ---- */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 22px;
    position: relative;
}
.tab-indicator {
    position: absolute;
    bottom: -1px;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--accent);
    transition: transform .28s cubic-bezier(.4,0,.2,1), width .28s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}
.tab-link {
    padding: 10px 20px;
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color .15s, border-color .15s;
}
.tab-link:hover { color: var(--text-main); }
.tab-link.active {
    color: var(--accent);
    font-weight: 600;
}
.tabs:has(.tab-indicator) .tab-link.active {
    border-bottom-color: transparent;
}
.tabs:not(:has(.tab-indicator)) .tab-link.active {
    border-bottom-color: var(--accent);
}

[data-mode-only] {
    transition: opacity .22s ease, transform .22s ease;
}
[data-mode-only].mode-enter {
    opacity: 0;
    transform: translateY(-4px);
}
[data-mode-only].mode-leave {
    opacity: 0;
    transform: translateY(4px);
}

/* ---- Sidebar toggle (hamburger) ---- */
.sidebar-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: var(--hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    flex-shrink: 0;
    margin-right: 14px;
}
.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
.sidebar-toggle-floating { position: fixed; top: 10px; left: 10px; z-index: 201; margin-right: 0; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
}
.sidebar-backdrop.active { display: block; }

/* ---- Table scroll wrapper ---- */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
    .main-content { margin-left: 0; padding: 52px 16px 24px; }

    .sidebar, .op-sidebar {
        transform: translateX(-100%);
        transition: transform .25s ease;
    }
    .sidebar.sidebar-open, .op-sidebar.sidebar-open {
        transform: translateX(0);
    }

    .sidebar-toggle { display: flex; }

    /* Theme toggle repositioned for mobile */
    #theme-toggle { top: 10px; right: 10px; padding: 5px 10px; font-size: .72rem; }

    /* Page header flex wrap */
    .page-header { flex-wrap: wrap; gap: 10px; padding-right: 0; padding-left: 44px; }
    .page-header h1 { font-size: 1.2rem; }

    /* Operator body mobile */
    .op-body .main-content { margin-left: 0; padding: 52px 16px 24px; }

    #toast-container { right: 12px; left: 12px; max-width: 100%; bottom: 12px; }

    /* Tables: smaller cells on mobile */
    th, td { padding: 10px 12px; font-size: .8rem; }

    /* Filter bar stack */
    .filter-bar select, .filter-bar input { max-width: 100%; }
}

@media (max-width: 600px) {
    /* Hide less important columns on small screens */
    table .col-hide-mobile { display: none; }

    th, td { padding: 8px 10px; font-size: .75rem; }

    .page-header h1 { font-size: 1.05rem; }
    .main-content { padding: 48px 12px 16px; }

    /* Reduce card body padding so narrow phones get more usable width */
    .card-body { padding: 16px; }

    /* Stack filter bar vertically */
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar select, .filter-bar input { max-width: 100%; }

    /* Stat cards single column */
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; margin-top: 18px; align-items: center; flex-wrap: wrap; }
.pagination a, .pagination span {
    padding: 5px 11px; border: 1px solid var(--border); border-radius: 5px;
    font-size: .8rem; text-decoration: none; color: var(--text-muted);
}
.pagination a:hover { background: var(--hover); color: var(--text-main); }
.pagination .current { background: var(--accent); color: var(--bg); border-color: transparent; }

/* ---- Public navbar (landing/order pages) ---- */
.lp-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 64px;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s, border-color .3s;
}
.lp-nav.scrolled,
.lp-nav.solid {
    background: var(--card-bg);
    border-bottom-color: var(--border);
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}
.lp-brand {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.04em;
    color: var(--text-main);
    text-decoration: none;
}
.lp-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lp-user-name {
    font-size: .82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.lp-logout-link {
    font-size: .82rem;
    color: var(--text-muted);
    text-decoration: none;
}
.lp-nav #theme-toggle {
    position: static;
    box-shadow: none;
}

/* ---- Public section labels ---- */
.lp-section-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.lp-section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.15;
    margin: 0 0 12px;
}
.lp-section-sub {
    font-size: .95rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin: 0;
}

/* ---- Public footer ---- */
.lp-footer {
    margin-top: auto;
    padding: 48px 40px 32px;
    border-top: 1px solid var(--border);
}
.lp-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.lp-footer-brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text-main);
    margin-bottom: 8px;
}
.lp-footer-desc {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
    max-width: 280px;
}
.lp-footer-heading {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-main);
    margin-bottom: 12px;
}
.lp-footer-col {
    display: flex;
    flex-direction: column;
}
.lp-footer-col a {
    font-size: .84rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 3px 0;
    transition: color .15s;
}
.lp-footer-col a:hover {
    color: var(--text-main);
}
.lp-footer-divider {
    height: 1px;
    background: var(--border);
    margin: 32px auto 0;
    max-width: 1100px;
}
.lp-footer-bottom {
    max-width: 1100px;
    margin: 16px auto 0;
}
.lp-footer-copy {
    font-size: .78rem;
    color: var(--text-muted);
}

/* ---- Help banner (landing) ---- */
.lp-help-banner {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}
.lp-help-main {
    padding: 0;
}
.lp-help-title {
    font-size: clamp(1.25rem, 2.2vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin: 6px 0 12px;
}
.lp-help-text {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 640px;
}
.lp-help-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.lp-help-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.lp-help-item {
    padding: 14px 16px;
    background: var(--hover);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.lp-help-item-wide {
    grid-column: auto;
}
.lp-help-item-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.lp-help-item-value {
    font-size: .86rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.5;
}

/* ---- Unified support panel (home + contact) ---- */
.support-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}
.support-panel-compact {
    margin-bottom: 30px;
}
.support-panel-main {
    min-width: 0;
}
.support-panel-title {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 6px 0 12px;
}
.support-panel-text {
    font-size: .92rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 620px;
}
.support-panel-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.support-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.support-card {
    background: var(--hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 15px;
}
.support-card-wide {
    grid-column: 1 / -1;
}
.support-card-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.support-card-value {
    font-size: .88rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.5;
}

/* ---- Help box (order page) ---- */
.viewer-col > .card.card-body { margin-bottom: 0; }
.controls-col > .card.card-body { margin-bottom: 0; }
.order-help-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    margin-top: 16px;
    padding: 24px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.order-help-top { margin-bottom: 20px; }
.order-help-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.order-help-text {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}
.order-help-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.order-help-items {
    display: flex;
    gap: 24px;
}
.order-help-item-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.order-help-item-value {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-main);
}
.order-help-box .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* ---- Public responsive ---- */
@media (max-width: 768px) {
    .lp-nav { padding: 0 20px; }
    .lp-help-banner { gap: 14px; padding: 20px; }
    .lp-help-meta { grid-template-columns: 1fr; }
    .support-panel { grid-template-columns: 1fr; padding: 20px; }
    .support-panel-grid { grid-template-columns: 1fr; }
    .lp-footer { padding: 36px 20px 24px; }
    .lp-footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
    .lp-footer-desc { max-width: 100%; }
}
@media (max-width: 480px) {
    .lp-user-name { display: none; }
    .lp-footer-top { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Filter bar ---- */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    align-items: center;
    flex-wrap: wrap;
}

/* ---- Landing page (index.php) ---- */
.lp-hero {
    --hero-parallax-x: 0px;
    --hero-parallax-y: 0px;
    min-height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 80px 24px 60px; position: relative;
    overflow: hidden;
    isolation: isolate;
}
.lp-hero-content {
    position: relative;
    z-index: 2;
    width: min(1100px, 100%);
}
.lp-hero-layout {
    display: block;
}
.lp-hero-copy {
    text-align: center;
}
.lp-hero-visual {
    display: none;
}
.lp-hero-bg {
    position: absolute;
    inset: -6%;
    z-index: 0;
    pointer-events: none;
}
.lp-hero-blob {
    position: absolute;
    display: block;
    border-radius: 999px;
    filter: blur(48px);
    opacity: .16;
    transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0);
    will-change: transform;
}
.lp-hero-blob-a {
    width: 44vmax;
    height: 44vmax;
    background: radial-gradient(circle, rgba(21, 101, 192, .42) 0%, rgba(21, 101, 192, 0) 72%);
    top: -18vmax;
    left: -12vmax;
    animation: heroBlobA 16s ease-in-out infinite alternate;
}
.lp-hero-blob-b {
    width: 36vmax;
    height: 36vmax;
    background: radial-gradient(circle, rgba(22, 163, 74, .32) 0%, rgba(22, 163, 74, 0) 74%);
    right: -10vmax;
    top: 8vmax;
    animation: heroBlobB 18s ease-in-out infinite alternate;
}
.lp-hero-blob-c {
    width: 32vmax;
    height: 32vmax;
    background: radial-gradient(circle, rgba(217, 119, 6, .30) 0%, rgba(217, 119, 6, 0) 72%);
    left: 40%;
    bottom: -18vmax;
    animation: heroBlobC 14s ease-in-out infinite alternate;
}
.lp-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(100, 116, 139, .12) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(100, 116, 139, .12) 1px, transparent 1px);
    background-size: 52px 52px;
    opacity: .16;
    transform: translate3d(calc(var(--hero-parallax-x) * -0.35), calc(var(--hero-parallax-y) * -0.35), 0);
}
.lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0) 44%, rgba(247, 247, 247, .68) 100%);
}
body.dark-mode .lp-hero::after {
    background: radial-gradient(ellipse at center, rgba(17, 17, 17, 0) 44%, rgba(17, 17, 17, .76) 100%);
}
.lp-hero .lp-hero-eyebrow,
.lp-hero h1,
.lp-hero .lp-hero-sub,
.lp-hero .lp-hero-cta {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .55s ease, transform .55s ease;
}
.lp-hero.is-visible .lp-hero-eyebrow,
.lp-hero.is-visible h1,
.lp-hero.is-visible .lp-hero-sub,
.lp-hero.is-visible .lp-hero-cta {
    opacity: 1;
    transform: translateY(0);
}
.lp-hero.is-visible h1 { transition-delay: .08s; }
.lp-hero.is-visible .lp-hero-sub { transition-delay: .16s; }
.lp-hero.is-visible .lp-hero-cta { transition-delay: .24s; }
.lp-hero .lp-hero-cta .btn {
    transition: transform .2s ease, box-shadow .2s ease, background .15s, color .15s, border-color .15s;
}
.lp-hero .lp-hero-cta .btn:hover,
.lp-hero .lp-hero-cta .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 26px rgba(0, 0, 0, .12);
}
.lp-hero .lp-hero-cta .btn-primary:hover,
.lp-hero .lp-hero-cta .btn-primary:focus-visible {
    box-shadow: 0 8px 20px rgba(17, 17, 17, .2);
}
.lp-hero-eyebrow {
    display: inline-block; font-size: .7rem; font-weight: 650;
    letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted);
    background: color-mix(in srgb, var(--hover) 72%, transparent); border: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
    border-radius: 20px; padding: 5px 14px; margin-bottom: 22px;
}
.lp-hero h1 {
    font-size: clamp(2.45rem, 6.1vw, 4.45rem); font-weight: 780;
    letter-spacing: -.04em; line-height: 1.08; margin: 0 auto 18px; max-width: 790px;
    text-align: center;
}
.lp-hero h1 .muted { color: color-mix(in srgb, var(--text-muted) 86%, var(--text-main) 14%); }
.lp-hero-sub {
    font-size: 1.03rem; color: color-mix(in srgb, var(--text-muted) 90%, var(--text-main) 10%); max-width: 650px;
    margin: 0 auto 32px; line-height: 1.63;
    text-align: center;
    text-wrap: balance;
}
.lp-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-scroll-hint {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 40px; border: 2px solid var(--border); border-radius: 12px;
    display: flex; align-items: flex-start; justify-content: center; padding-top: 6px;
}
.lp-scroll-hint::after {
    content: ""; width: 4px; height: 8px; background: var(--text-muted);
    border-radius: 2px; animation: scrollDot 2s infinite;
}
@keyframes scrollDot {
    0%   { opacity: 1; transform: translateY(0); }
    80%  { opacity: 0; transform: translateY(10px); }
    100% { opacity: 0; transform: translateY(0); }
}
@keyframes heroBlobA {
    0% { transform: translate3d(calc(var(--hero-parallax-x) * 0.9), calc(var(--hero-parallax-y) * 0.8), 0) scale(1); }
    100% { transform: translate3d(calc(var(--hero-parallax-x) * 1.2 + 14px), calc(var(--hero-parallax-y) * 1.1 - 8px), 0) scale(1.08); }
}
@keyframes heroBlobB {
    0% { transform: translate3d(calc(var(--hero-parallax-x) * 0.8), calc(var(--hero-parallax-y) * 0.9), 0) scale(1); }
    100% { transform: translate3d(calc(var(--hero-parallax-x) * 1.1 - 12px), calc(var(--hero-parallax-y) * 1.2 + 10px), 0) scale(1.06); }
}
@keyframes heroBlobC {
    0% { transform: translate3d(calc(var(--hero-parallax-x) * 0.7), calc(var(--hero-parallax-y) * 0.7), 0) scale(1); }
    100% { transform: translate3d(calc(var(--hero-parallax-x) * 1.05 + 10px), calc(var(--hero-parallax-y) * 1.05 + 8px), 0) scale(1.1); }
}
.lp-section { padding: 90px 24px; max-width: 1100px; width: 100%; margin: 0 auto; }
.lp-divider { width: 100%; height: 1px; background: var(--border); }
.lp-steps { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; }
.lp-step { padding: 32px 28px; position: relative; }
.lp-step:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 44px;
    width: 1px; height: 60px; background: var(--border);
}
.lp-step-num {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 2px solid var(--border); border-radius: 50%;
    font-size: .8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 18px;
}
.lp-step h3 { font-size: 1rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.lp-step p { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.lp-features {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
    background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.lp-feature { background: var(--card-bg); padding: 34px 32px; }
.lp-feature-icon {
    width: 48px; height: 48px; margin-bottom: 18px; flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: color-mix(in srgb, var(--hover) 70%, transparent);
    display: flex; align-items: center; justify-content: center;
}
.lp-feature-icon > span {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: color-mix(in srgb, var(--text-main) 72%, var(--text-muted) 28%);
}
.lp-feature h3 { font-size: .95rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.lp-feature p { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
/* Rychlost — dvojitý šíp (stejná linková hmotnost jako kroky) */
.fi-speed::before,
.fi-speed::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    border-color: transparent transparent transparent currentColor;
    transform: translateY(-50%);
    opacity: .88;
}
.fi-speed::before { left: 1px; opacity: .42; }
.fi-speed::after { right: 1px; }
/* Kvalita — terč (kruh + střed) */
.fi-quality::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .92;
}
.fi-quality::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: .55;
    box-sizing: border-box;
}
/* Cena — štítek (jeden tvar, zarovnaný střed) */
.fi-price::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 15px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 3px;
    transform: translate(-50%, -50%) rotate(-12deg);
    opacity: .72;
    box-sizing: border-box;
}
/* Služba / přehled — fajfka */
.fi-service::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 45%;
    width: 6px;
    height: 11px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: .82;
    box-sizing: border-box;
}
.lp-mat-fallback { color: var(--text-muted); font-size: .9rem; }
.lp-materials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.lp-mat-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 22px 20px; transition: border-color .15s; }
.lp-mat-card:hover { border-color: var(--text-muted); }
.lp-mat-name { font-size: .95rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.lp-mat-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 14px; min-height: 36px; }
.lp-mat-price { font-size: .78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.lp-mat-price strong { font-size: .95rem; color: var(--text-main); font-weight: 700; }
/* ---- Subscription cards (domovská sekce + /predplatne) ---- */
.lp-sub-section { margin-top: 32px; }
.lp-sub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: stretch;
}
@media (min-width: 760px) {
    .lp-sub-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
.lp-sub-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px 28px 28px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    transition: border-color .2s, box-shadow .25s;
}
.lp-sub-card:hover {
    border-color: var(--text-muted);
    box-shadow: 0 10px 32px rgba(0,0,0,.06);
}
.lp-sub-card--featured {
    border-color: var(--accent);
    box-shadow: 0 6px 28px rgba(0,0,0,.06);
}
.lp-sub-card--featured:hover {
    border-color: var(--accent);
    box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
body.dark-mode .lp-sub-card--featured { box-shadow: 0 6px 28px rgba(0,0,0,.30); }
body.dark-mode .lp-sub-card--featured:hover { box-shadow: 0 14px 44px rgba(0,0,0,.42); }

.lp-sub-recommended {
    font-size: .68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--border) 60%);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
    line-height: 1.2;
}

.lp-sub-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.lp-sub-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: .02em;
    margin: 0;
    color: var(--text-main);
}
.lp-sub-tag {
    font-size: .62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 4px 11px;
}

.lp-sub-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}
.lp-sub-price-value {
    font-size: clamp(1.8rem, 3.6vw, 2.3rem);
    font-weight: 800;
    letter-spacing: -.035em;
    color: var(--text-main);
    line-height: 1;
}
.lp-sub-period {
    font-size: .82rem;
    font-weight: 500;
    color: var(--text-muted);
}

.lp-sub-includes {
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--text-muted);
    margin: 0 0 12px;
}
.lp-sub-features {
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    font-size: .88rem;
    line-height: 1.55;
    color: var(--text-main);
    flex: 1;
}
.lp-sub-features li {
    padding: 7px 0 7px 26px;
    position: relative;
}
.lp-sub-features li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1.5px solid var(--text-muted);
    box-sizing: border-box;
}
.lp-sub-card--featured .lp-sub-features li::before { border-color: var(--accent); }
.lp-sub-features strong { font-weight: 700; }

.lp-sub-yearly {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.45;
}

.lp-sub-foot { margin-top: auto; }
.lp-sub-cta {
    padding: 13px 20px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    border-radius: 10px;
}
.lp-sub-disabled { opacity: .75; cursor: not-allowed; text-align: center; }

.lp-sub-wait {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--hover) 100%);
    border: 1px solid var(--border);
    border-left: 3px solid var(--warning);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 0 0 24px;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.55;
}
.lp-sub-wait strong { color: var(--text-main); font-weight: 700; }

@media (max-width: 560px) {
    .lp-sub-card { padding: 26px 22px 22px; border-radius: 14px; }
    .lp-sub-name { font-size: 1.1rem; }
    .lp-sub-price-value { font-size: 1.7rem; }
}
.lp-cta-section { background: var(--card-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-cta-inner { max-width: 780px; margin: 0 auto; text-align: center; padding: 90px 24px; }
.lp-cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.04em; margin: 0 0 14px; }
.lp-cta-inner p { color: var(--text-muted); margin: 0 0 34px; font-size: .95rem; line-height: 1.6; }
.lp-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
#cookie-banner { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--card-bg); border-top: 1px solid var(--border); padding: 16px 24px; z-index: 10000; box-shadow: 0 -4px 20px rgba(0,0,0,.12); }
#cookie-banner.visible { display: block; }
.cookie-link { color: var(--accent); }
#cookie-banner .cookie-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#cookie-banner .cookie-inner p { margin: 0; font-size: .85rem; color: var(--text-muted); flex: 1; min-width: 200px; }
@media (max-width: 480px) { #cookie-banner .cookie-inner { flex-direction: column; text-align: center; } }
@media (max-width: 768px) {
    .lp-hero-layout { display: block; }
    .lp-hero-copy { text-align: center; }
    .lp-hero-eyebrow { margin-bottom: 14px; }
    .lp-hero h1 { font-size: clamp(2.05rem, 8.4vw, 3rem); margin-bottom: 13px; }
    .lp-hero-sub { font-size: .95rem; margin: 0 auto 24px; max-width: 95%; }
    .lp-hero-cta { gap: 8px; justify-content: center; }
    .lp-hero-grid { background-size: 42px 42px; opacity: .18; }
    .lp-steps { grid-template-columns: 1fr; }
    .lp-step:not(:last-child)::after { display: none; }
    .lp-features { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-hero-blob,
    .lp-hero-grid,
    .lp-hero .lp-hero-eyebrow,
    .lp-hero h1,
    .lp-hero .lp-hero-sub,
    .lp-hero .lp-hero-cta,
    .lp-scroll-hint::after,
    .lp-hero .lp-hero-cta .btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
    .lp-hero .lp-hero-eyebrow,
    .lp-hero h1,
    .lp-hero .lp-hero-sub,
    .lp-hero .lp-hero-cta {
        opacity: 1;
    }
}

/* ---- Order form page ---- */
.order-header { max-width: 1220px; width: 100%; margin: 0 auto; padding: 96px 24px 0; }
.order-layout { display: flex; gap: 22px; max-width: 1220px; width: 100%; margin: 0 auto; padding: 32px 24px 48px; align-items: stretch; }
.viewer-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.controls-col { width: 390px; flex-shrink: 0; display: flex; flex-direction: column; }
.controls-col > .card { flex: 1; }
#viewer { position: relative; width: 100%; height: 500px; background: var(--viewer-bg); border-radius: 10px; margin-top: 12px; overflow: hidden; }
.viewer-overlay { position: absolute; inset: 0; pointer-events: none; display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 12px; font-size: var(--text-xs); color: #e5e7eb; }
.viewer-overlay .viewer-reset { pointer-events: auto; }
.viewer-dimensions { pointer-events: auto; background: rgba(0,0,0,.45); border-radius: 999px; padding: 4px 10px; border: 1px solid rgba(148,163,184,.4); }
#drop-zone { border: 2px dashed var(--border); border-radius: 10px; padding: 36px 20px; text-align: center; cursor: pointer; background: var(--hover); font-weight: 600; font-size: var(--text-sm); color: var(--text-main); transition: background .15s, border-color .15s; min-height: 120px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
#drop-zone:hover { background: var(--border); }
#drop-zone.dragover { background: var(--border); border-color: var(--accent); }
#drop-zone.has-file { border-style: solid; background: var(--card-bg); color: var(--text-main); border-color: var(--accent); }
#drop-zone.touch-device { padding: 50px 20px; font-size: 1rem; }
.upload-progress { display: none; margin-top: 12px; background: var(--border); border-radius: 6px; height: 6px; overflow: hidden; }
.upload-progress.active { display: block; }
.upload-progress-bar { height: 100%; width: 0%; background: var(--accent); border-radius: 6px; transition: width .15s ease, background .3s; }
.upload-progress-bar.done { background: var(--text-main); }
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.swatch { width: 32px; height: 32px; border-radius: 6px; border: 2px solid var(--border); cursor: pointer; transition: transform .1s, box-shadow .1s; padding: 0; background: none; }
.swatch:hover { transform: scale(1.1); }
.swatch.active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); border-color: var(--accent); }
.reorder-notice { background: var(--hover); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; font-size: var(--text-sm); color: var(--text-main); margin-bottom: 16px; }
.size-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo-row { display: flex; gap: 8px; align-items: flex-end; }
.promo-row input { flex: 1; }
.res-box { margin-top: 22px; padding: 22px; background: var(--hover); border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.res-price { font-size: 2rem; font-weight: 700; letter-spacing: -.03em; color: var(--text-main); }
.res-details { font-size: var(--text-xs); color: var(--text-muted); margin-top: 6px; }
.range-wrap { position: relative; }
.range-wrap input[type="range"] { -webkit-appearance: none; width: 100%; height: 4px; border-radius: 3px; background: var(--border); outline: none; border: none; padding: 0; margin: 8px 0 0; }
.range-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; }
.range-wrap input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--accent); cursor: pointer; border: none; }
.order-page-body .form-group input,
.order-page-body .form-group select,
.order-page-body .form-group textarea { min-height: 44px; font-size: 16px; }
.order-page-body .form-group input[type="range"] { min-height: auto; }
.order-page-body .form-group select { padding-right: 32px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.controls-col .btn { min-height: 44px; padding: 12px 20px; font-size: 16px; }
.controls-col .btn-lg { padding: 16px 24px; font-size: 18px; }
.price-loading { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .6s linear infinite; vertical-align: middle; margin-left: 8px; }
.price-loading.hidden { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.back-link { font-size: var(--text-sm); color: var(--text-muted); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.config-title { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.02em; margin: 0 0 20px; }
.file-input-hidden { display: none; }
.no-colors-msg { display: none; font-size: .8rem; color: var(--text-muted); margin-top: 6px; }
.no-colors-msg.visible { display: block; }
.btn-promo { background: var(--card-bg); color: var(--text-main); border-color: var(--border); }
.btn-promo:hover { background: var(--hover); border-color: var(--text-muted); }
.aff-notice { margin-top: 14px; padding: 10px 14px; background: var(--hover); border: 1px solid var(--border); border-radius: 8px; font-size: var(--text-sm); color: var(--text-main); }
.detail-varsuccess { color: var(--text-main); }
.detail-vardanger { color: var(--text-muted); }
@media (max-width: 860px) { .order-layout { flex-direction: column; } .controls-col { width: 100%; } #viewer { height: 350px; } }
@media (max-width: 768px) { .size-row { gap: 8px; } .promo-row { flex-direction: column; } .promo-row .btn { width: 100%; } .res-box { padding: 16px; } .res-price { font-size: 1.6rem; } }
@media (max-width: 600px) { .order-header { padding: 80px 16px 0; } .order-layout { padding: 20px 12px 32px; } #viewer { height: 280px; } .controls-col .card-body { padding: 16px; } .order-help-bottom { flex-direction: column; align-items: flex-start; } .order-help-items { flex-direction: column; gap: 12px; } .order-help-box .btn { width: 100%; text-align: center; } }
@media (max-width: 480px) { #viewer { height: 240px; } }
@media (pointer: coarse) { #drop-zone:active { background: var(--border); } }

/* ---- Auth modal (order page guest prompt) ---- */
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.auth-modal[hidden] { display: none; }
.auth-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.auth-modal-card { position: relative; background: var(--card-bg); border: 1px solid var(--border); border-radius: 12px; max-width: 440px; width: 100%; padding: 32px 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.auth-modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: var(--text-muted); font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px; }
.auth-modal-close:hover { color: var(--text-main); }
.auth-modal-title { margin: 0 0 12px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; color: var(--text-main); }
.auth-modal-text { margin: 0 0 22px; font-size: .9rem; color: var(--text-muted); line-height: 1.5; }
.auth-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.auth-modal-actions .btn { min-height: 44px; }
.auth-modal-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 10px; color: var(--text-muted); font-size: var(--text-xs); }
.auth-modal-divider::before, .auth-modal-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
#auth-continue-guest { background: none; border: none; color: var(--text-muted); text-decoration: underline; padding: 8px; cursor: pointer; font-size: .88rem; }
#auth-continue-guest:hover { color: var(--text-main); }

/* ---- Profile page ---- */
.clickable-row { cursor: pointer; transition: background .15s; }
.clickable-row:hover { background: var(--hover); }
.profile-layout { max-width: 1220px; width: 100%; margin: 0 auto; padding: 40px 24px 60px; }
.skeleton { background: linear-gradient(90deg, var(--hover) 25%, var(--border) 50%, var(--hover) 75%); background-size: 200% 100%; animation: skeleton-pulse 1.5s ease-in-out infinite; border-radius: 6px; }
@keyframes skeleton-pulse { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line-short { width: 60%; }
.skeleton-line-xs { width: 30%; }

/* Profile header */
.prof-header {
    display: flex; align-items: center; gap: 20px;
    padding: 28px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 20px;
}
.prof-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--accent); color: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 700; flex-shrink: 0;
    letter-spacing: -.02em;
}
.prof-header-info { flex: 1; min-width: 0; }
.prof-name { font-size: 1.3rem; font-weight: 700; margin: 0 0 2px; letter-spacing: -.03em; }
.prof-email { font-size: .85rem; color: var(--text-muted); margin: 0 0 4px; }
.prof-meta { font-size: .78rem; color: var(--text-muted); margin: 0; display: flex; align-items: center; gap: 8px; }
.prof-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.prof-header-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-ghost {
    font-size: .82rem; color: var(--text-muted); text-decoration: none;
    padding: 8px 14px; border-radius: 6px; transition: background .15s, color .15s;
    border: 1px solid var(--border); background: transparent;
}
.btn-ghost:hover { background: var(--hover); color: var(--text-main); }

/* Quick stats */
.prof-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 24px;
}
.prof-stat {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 18px; text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.prof-stat-num { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.prof-stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.prof-stat-info { color: var(--info); }
.prof-stat-success { color: var(--success); }

/* Tabs */
.prof-tabs {
    display: flex; gap: 0; border-bottom: 2px solid var(--border);
    margin-bottom: 24px; overflow-x: auto; overflow-y: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.prof-tabs::-webkit-scrollbar { display: none; }
.prof-tab {
    padding: 12px 20px; font-size: .875rem; font-weight: 500;
    color: var(--text-muted); background: none; border: none;
    cursor: pointer; position: relative; white-space: nowrap;
    transition: color .15s; display: flex; align-items: center; gap: 8px;
    font-family: inherit;
}
.prof-tab:hover { color: var(--text-main); }
.prof-tab.active { color: var(--text-main); font-weight: 600; }
.prof-tab.active::after {
    content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
    height: 2px; background: var(--accent); border-radius: 2px 2px 0 0;
}
.prof-tab-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    font-size: .7rem; font-weight: 600; border-radius: 10px;
    background: var(--info); color: #fff;
}

/* Tab panels */
.prof-panel { display: none; }
.prof-panel.active { display: block; animation: prof-fade .2s ease; }
@keyframes prof-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

/* Empty state */
.prof-empty { text-align: center; padding: 48px 20px; color: var(--text-muted); }
.prof-empty-icon {
    width: 56px; height: 56px; margin: 0 auto 16px;
    border-radius: 50%; background: var(--hover); border: 2px solid var(--border);
    position: relative;
}
.prof-empty-icon::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px; border: 2px solid var(--text-muted);
    border-radius: 4px;
}
.prof-empty p { font-size: .9rem; margin: 0 0 16px; }

/* Order cards */
.prof-orders { display: grid; gap: 10px; }
.prof-order-card {
    display: block; padding: 16px 20px;
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s; cursor: pointer;
}
.prof-order-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
body.dark-mode .prof-order-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.prof-order-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.prof-order-id { font-weight: 700; font-size: .9rem; }
.prof-order-detail { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.prof-order-material { font-size: .85rem; color: var(--text-muted); }
.prof-order-price { font-size: .9rem; font-weight: 600; }
.prof-order-date { font-size: .75rem; color: var(--text-muted); }

/* Notifications */
.prof-notif-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.prof-notif-header h3 { font-size: 1rem; font-weight: 600; margin: 0; }
.prof-notif-list { max-height: 400px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; background: var(--card-bg); }
.prof-notif-skeleton { padding: 14px 18px; }
.prof-notif-item {
    padding: 14px 18px; border-bottom: 1px solid var(--border);
    transition: background .15s; cursor: pointer;
}
.prof-notif-item:last-child { border-bottom: none; }
.prof-notif-item:hover { background: var(--hover); }
.prof-notif-item.unread { background: color-mix(in srgb, var(--info) 6%, var(--card-bg)); }
.prof-notif-item.unread:hover { background: color-mix(in srgb, var(--info) 10%, var(--card-bg)); }
.prof-notif-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 4px; }
.prof-notif-title { font-size: .85rem; font-weight: 600; }
.prof-notif-time { font-size: .72rem; color: var(--text-muted); white-space: nowrap; margin-left: 12px; }
.prof-notif-msg { font-size: .82rem; color: var(--text-muted); line-height: 1.5; }
.prof-notif-link { font-size: .78rem; color: var(--info); margin-top: 6px; display: inline-block; text-decoration: none; }
.prof-notif-link:hover { text-decoration: underline; }
.prof-notif-empty { text-align: center; padding: 32px 20px; color: var(--text-muted); font-size: .875rem; }

/* Notification settings */
.prof-notif-settings { margin-top: 16px; }
.prof-notif-settings-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 16px; font-size: .85rem; font-weight: 500;
    color: var(--text-muted); background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 8px; cursor: pointer; font-family: inherit;
    transition: color .15s, background .15s;
}
.prof-notif-settings-toggle:hover { color: var(--text-main); background: var(--hover); }
.prof-notif-settings-toggle[aria-expanded="true"] { border-radius: 8px 8px 0 0; border-bottom-color: transparent; }
.prof-chevron {
    display: inline-block; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); transition: transform .2s;
}
.prof-notif-settings-toggle[aria-expanded="true"] .prof-chevron { transform: rotate(-135deg); }
.prof-notif-settings-body {
    padding: 16px; display: grid; gap: 10px;
    border: 1px solid var(--border); border-top: none;
    border-radius: 0 0 8px 8px; background: var(--card-bg);
}
.prof-checkbox {
    display: flex; align-items: center; gap: 10px; font-size: .85rem;
    cursor: pointer; padding: 4px 0;
}
.prof-checkbox input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--info); cursor: pointer; }
.prof-checkbox span { color: var(--text-main); }

/* Affiliate */
.prof-aff-intro { margin-bottom: 20px; }
.prof-aff-intro h3 { font-size: 1rem; font-weight: 600; margin: 0 0 6px; }
.prof-aff-intro p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.prof-aff-link-box {
    display: flex; gap: 8px; align-items: center;
    padding: 14px 16px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 20px;
}
.prof-aff-input { flex: 1; font-size: .82rem; border: none; background: transparent; color: var(--text-main); outline: none; }
.prof-aff-copy { background: var(--info); color: #fff; border-color: transparent; }
.prof-aff-copy:hover { opacity: .9; }
.prof-aff-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin-bottom: 24px;
}
.prof-aff-stat {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 20px; text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.prof-aff-stat-num { font-size: 1.5rem; font-weight: 700; }
.prof-aff-stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.prof-aff-benefits { margin-bottom: 20px; }
.prof-aff-benefits h4 { font-size: .85rem; font-weight: 600; margin: 0 0 10px; }
.prof-aff-benefit {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-radius: 8px; margin-bottom: 6px;
    background: color-mix(in srgb, var(--success) 8%, var(--card-bg));
    border: 1px solid color-mix(in srgb, var(--success) 20%, var(--border));
    font-size: .85rem;
}
.prof-aff-benefit-val { color: var(--success); font-weight: 600; }
.prof-aff-hint { font-size: .75rem; color: var(--text-muted); margin: 8px 0 0; }
.prof-aff-next {
    padding: 16px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px;
}
.prof-aff-next-info { font-size: .85rem; color: var(--text-muted); margin-bottom: 10px; }
.prof-aff-next-info strong { color: var(--text-main); }
.prof-aff-progress { height: 6px; background: var(--hover); border-radius: 3px; overflow: hidden; }
.prof-aff-progress-bar { height: 100%; background: var(--info); border-radius: 3px; transition: width .3s; }

/* Settings */
.prof-settings-section {
    padding: 24px; background: var(--card-bg);
    border: 1px solid var(--border); border-radius: 10px;
    margin-bottom: 16px;
}
.prof-settings-section h3 { font-size: 1rem; font-weight: 600; margin: 0 0 18px; }
.prof-settings-section p { font-size: .85rem; color: var(--text-muted); margin: 0 0 16px; line-height: 1.6; }
.prof-settings-form { display: flex; flex-direction: column; gap: 16px; }
.prof-settings-danger { border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.prof-settings-danger h3 { color: var(--danger); }
.prof-input-disabled {
    background: var(--hover); color: var(--text-muted);
    cursor: not-allowed; opacity: .7;
}

/* Profile responsive */
@media (max-width: 640px) {
    .prof-header { flex-direction: column; text-align: center; gap: 14px; padding: 24px 18px; }
    .prof-header-actions { justify-content: center; }
    .prof-meta { justify-content: center; }
    .prof-stats { grid-template-columns: repeat(2, 1fr); }
    .prof-tab { padding: 10px 14px; font-size: .82rem; }
    .prof-aff-stats { grid-template-columns: 1fr; }
    .prof-order-card { padding: 14px 16px; }
}

/* ---- Order detail (customer) ---- */
.od-layout { max-width: 1220px; width: 100%; margin: 0 auto; padding: 32px 24px 60px; }
.od-back {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .85rem; color: var(--text-muted); text-decoration: none;
    margin-bottom: 18px; transition: color .15s;
}
.od-back:hover { color: var(--text-main); }
.od-back-arrow {
    display: inline-block; width: 7px; height: 7px;
    border-left: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.od-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 22px; gap: 12px; flex-wrap: wrap;
}
.od-header-left { min-width: 0; }
.od-title { font-size: 1.45rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 4px; }
.od-date { color: var(--text-muted); font-size: .875rem; margin: 0; }
.od-status-badge { font-size: .85rem; padding: 6px 14px; }
.od-actions { display: flex; gap: 10px; justify-content: center; margin-bottom: 24px; flex-wrap: wrap; }
.od-actions form { margin: 0; }
.od-btn-reorder { background: var(--info); color: #fff; border-color: transparent; }
.od-btn-reorder:hover { opacity: .9; }

/* Order detail grid */
.od-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.od-col { display: flex; flex-direction: column; gap: 16px; }
.od-card {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 10px; padding: 22px;
}
.od-card-title { font-size: .95rem; font-weight: 600; margin: 0 0 16px; }
.od-section { margin-top: 20px; }

/* Info rows */
.od-info-list { display: flex; flex-direction: column; }
.od-info-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
    gap: 12px;
}
.od-info-row:last-child { border-bottom: none; }
.od-info-label { color: var(--text-muted); flex-shrink: 0; }
.od-info-row-highlight { background: color-mix(in srgb, var(--info) 6%, transparent); margin: 0 -22px; padding: 12px 22px; border-radius: 0; }
.od-info-row-highlight:last-child { border-radius: 0 0 8px 8px; border-bottom: none; }
.od-note { font-size: .875rem; color: var(--text-muted); margin: 0; line-height: 1.6; }
.od-tracking-code { font-size: .9rem; display: block; padding: 10px 14px; background: var(--hover); border-radius: 6px; word-break: break-all; }

/* Compat: old classes still used */
.color-dot {
    display: inline-block; width: 16px; height: 16px; border-radius: 4px;
    border: 1px solid var(--border); vertical-align: middle;
}
.img-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.img-grid img {
    width: 120px; height: 90px; object-fit: cover; border-radius: 6px;
    border: 1px solid var(--border); cursor: pointer; transition: opacity .15s;
}
.img-grid img:hover { opacity: .8; }

/* Review */
.od-review-comment { font-size: .875rem; color: var(--text-muted); margin: 10px 0 0; line-height: 1.6; }
.od-review-date { font-size: .75rem; color: var(--text-muted); margin: 8px 0 0; }
.od-review-edit { margin-top: 14px; }
.od-review-edit summary { font-size: .8rem; color: var(--text-muted); cursor: pointer; }
.od-review-edit form { margin-top: 10px; }

/* Messages */
.od-messages { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.od-messages-empty { color: var(--text-muted); font-size: .875rem; margin: 0; }
.od-msg { border-radius: 10px; padding: 14px 16px; }
.od-msg-user { background: color-mix(in srgb, var(--info) 6%, var(--card-bg)); border: 1px solid color-mix(in srgb, var(--info) 15%, var(--border)); }
.od-msg-staff { background: var(--hover); }
.od-msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 8px; flex-wrap: wrap; }
.od-msg-author { font-size: .82rem; font-weight: 600; }
.od-msg-role { font-size: .72rem; font-weight: 400; color: var(--text-muted); margin-left: 6px; }
.od-msg-time { font-size: .75rem; color: var(--text-muted); white-space: nowrap; }
.od-msg-text { margin: 0; font-size: .875rem; line-height: 1.6; }
.od-msg-form { display: flex; flex-direction: column; gap: 8px; }

/* Order detail responsive */
@media (max-width: 768px) {
    .od-layout { padding: 24px 16px 48px; }
    .od-grid { grid-template-columns: 1fr; }
    .od-header { flex-direction: column; align-items: flex-start; }
    .od-card { padding: 18px; }
    .od-info-row-highlight { margin: 0 -18px; padding: 12px 18px; }
    .img-grid img { width: 100px; height: 75px; }
}
@media (max-width: 500px) {
    .od-layout { padding: 18px 14px 40px; }
    .od-title { font-size: 1.2rem; }
    .od-card { padding: 16px; }
    .od-info-row-highlight { margin: 0 -16px; padding: 10px 16px; }
    .od-info-row { font-size: .82rem; }
    .img-grid img { width: 80px; height: 60px; }
}

/* Timeline */
.order-timeline {
    display: flex; align-items: center; justify-content: center;
    gap: 0; margin-bottom: 28px; padding: 20px 0;
}
.timeline-step {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    position: relative; z-index: 1; min-width: 80px;
}
.timeline-dot {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2px solid var(--border); background: var(--card-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; color: var(--text-muted);
    transition: all .2s;
}
.timeline-step.step-done .timeline-dot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline-step.step-active .timeline-dot { background: var(--info); border-color: var(--info); color: #fff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--info) 20%, transparent); }
.timeline-step.step-cancelled .timeline-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.timeline-label { font-size: .72rem; font-weight: 500; color: var(--text-muted); text-align: center; }
.timeline-step.step-done .timeline-label { color: var(--success); }
.timeline-step.step-active .timeline-label { color: var(--info); font-weight: 600; }
.timeline-step.step-cancelled .timeline-label { color: var(--danger); }
.timeline-line { flex: 1; height: 2px; background: var(--border); min-width: 20px; max-width: 60px; margin-top: -20px; }
.timeline-line.line-done { background: var(--success); }
@media (max-width: 500px) {
    .timeline-step { min-width: 56px; }
    .timeline-label { font-size: .62rem; }
    .timeline-dot { width: 22px; height: 22px; font-size: .6rem; }
}

/* Star rating */
.star-rating { display: flex; gap: 4px; flex-direction: row-reverse; justify-content: flex-end; }
.star-rating input { display: none; }
.star-rating label { font-size: 1.5rem; color: var(--border); cursor: pointer; transition: color .1s; line-height: 1; }
.star-rating label::before { content: '\2605'; }
.star-rating input:checked ~ label { color: var(--warning); }
.star-rating label:hover, .star-rating label:hover ~ label { color: var(--warning); }
.stars-display { color: var(--warning); font-size: 1.2rem; letter-spacing: 2px; }
.stars-empty { color: var(--border); }

/* Lightbox */
.lightbox-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,.85); z-index: 10000;
    align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; border-radius: 8px; box-shadow: 0 8px 40px rgba(0,0,0,.4); }

/* ---- Info page ---- */
.info-layout { max-width: 780px; margin: 0 auto; padding: 50px 24px; }
.info-section { margin-bottom: 36px; }
.info-section h2 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.info-section p, .info-section li { font-size: .9rem; color: var(--text-muted); line-height: 1.7; }
.info-section ul { padding-left: 20px; }
.info-section li { margin-bottom: 6px; }
.mat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 14px; }
.mat-card { background: var(--hover); border: 1px solid var(--border); border-radius: 8px; padding: 16px; text-align: center; }
.mat-card strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.mat-card small { color: var(--text-muted); font-size: .78rem; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.step-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 8px; padding: 18px; text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--info); color: #fff; font-weight: 700; font-size: .8rem; margin-bottom: 8px; }
.step-card h4 { margin: 0 0 4px; font-size: .875rem; }
.step-card p { margin: 0; font-size: .78rem; }
.info-title { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; margin: 0 0 8px; }
.info-subtitle { color: var(--text-muted); font-size: .9rem; margin: 0 0 26px; line-height: 1.6; }
.info-back-link { font-size: .85rem; color: var(--text-muted); text-decoration: none; display: inline-block; margin-bottom: 18px; }
.info-back-link:hover { color: var(--text-main); text-decoration: underline; }
.info-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.info-link-card { display: block; background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 18px; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.info-link-card:hover { border-color: var(--text-muted); transform: translateY(-1px); }
.info-link-card h2 { margin: 0 0 8px; font-size: 1rem; letter-spacing: -.01em; }
.info-link-card p { margin: 0; color: var(--text-muted); font-size: .84rem; line-height: 1.6; }

/* ---- Contact page (info-contact.php) ---- */
.info-layout.contact-page {
    max-width: 1100px;
    padding: 56px 24px 72px;
}
.contact-hero {
    margin: 0 0 22px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--info) 20%, transparent) 0%, transparent 55%),
        radial-gradient(circle at 85% 35%, color-mix(in srgb, var(--success) 18%, transparent) 0%, transparent 60%),
        linear-gradient(180deg, color-mix(in srgb, var(--card-bg) 90%, var(--hover) 10%), var(--card-bg));
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 28px rgba(0,0,0,.06);
}
body.dark-mode .contact-hero {
    box-shadow: 0 10px 34px rgba(0,0,0,.28);
}
.contact-hero-inner {
    padding: 32px 30px 30px;
}
.contact-title {
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 820;
    letter-spacing: -.04em;
    line-height: 1.08;
    margin: 0 0 12px;
}
.contact-subtitle {
    margin: 0;
    font-size: .95rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 70ch;
}
.contact-hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 26px;
}
.contact-card {
    grid-column: span 6;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    transition: border-color .2s, box-shadow .25s, transform .2s;
}
.contact-card:hover {
    border-color: var(--text-muted);
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    transform: translateY(-1px);
}
body.dark-mode .contact-card:hover {
    box-shadow: 0 10px 26px rgba(0,0,0,.22);
}
.contact-card--wide { grid-column: 1 / -1; }
.contact-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}
.contact-card-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-card-value {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.2;
    color: var(--text-main);
}
.contact-link {
    color: var(--text-main);
    text-decoration: none;
    border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 35%, transparent);
}
.contact-link:hover {
    border-bottom-color: var(--text-main);
}
.contact-card-hint {
    font-size: .86rem;
    color: var(--text-muted);
    line-height: 1.6;
}
.contact-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.contact-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--hover) 70%, transparent);
    position: relative;
    flex-shrink: 0;
}
.contact-card-icon::before,
.contact-card-icon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.contact-card-icon--mail::before {
    width: 18px; height: 12px;
    border: 2px solid var(--text-muted);
    border-radius: 3px;
}
.contact-card-icon--mail::after {
    width: 14px; height: 0;
    border-top: 2px solid var(--text-muted);
    transform: translate(-50%, -50%) rotate(0deg);
    top: calc(50% - 1px);
    left: 50%;
}
.contact-card-icon--time::before {
    width: 16px; height: 16px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
}
.contact-card-icon--time::after {
    width: 7px; height: 0;
    border-top: 2px solid var(--text-muted);
    transform: translate(-50%, -50%) rotate(0deg);
}
.contact-card-icon--time {
    --hand: 2px;
}
.contact-card-icon--time::after {
    top: 50%;
    left: 50%;
    transform: translate(-10%, -50%) rotate(0deg);
}
.contact-card-icon--order::before {
    width: 18px; height: 14px;
    border: 2px solid var(--text-muted);
    border-radius: 3px;
}
.contact-card-icon--order::after {
    width: 10px; height: 0;
    border-top: 2px solid var(--text-muted);
    top: calc(50% - 2px);
}
.contact-split {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 14px;
    margin-top: 8px;
}
.contact-panel {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 20px 18px;
}
.contact-panel--muted {
    background: linear-gradient(180deg, var(--card-bg), color-mix(in srgb, var(--hover) 60%, var(--card-bg) 40%));
}
.contact-panel-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -.02em;
}
.contact-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
    counter-reset: contactStep;
}
.contact-steps > li {
    position: relative;
    padding: 14px 14px 14px 48px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--hover);
}
.contact-steps > li::before {
    counter-increment: contactStep;
    content: counter(contactStep);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 800;
    font-size: .78rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.contact-step-title {
    font-size: .92rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 4px;
    color: var(--text-main);
}
.contact-step-text {
    font-size: .86rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
.contact-tips {
    margin: 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.65;
}
.contact-tips li { margin-bottom: 8px; }
.contact-panel-actions { margin-top: 14px; }

@media (max-width: 900px) {
    .info-layout.contact-page { padding: 48px 16px 60px; }
    .contact-hero-inner { padding: 24px 20px 20px; }
    .contact-card { grid-column: 1 / -1; }
    .contact-split { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .contact-hero-actions .btn { width: 100%; }
    .contact-card-actions .btn { flex: 1; }
    .contact-card-actions .btn.btn-primary { flex: 1.2; }
    .contact-steps > li { padding-left: 44px; }
    .contact-steps > li::before { left: 12px; top: 12px; }
}

/* ---- Operator detail page ---- */
.op-body { display: flex; min-height: 100vh; }
.op-sidebar {
    width: var(--sidebar-w);
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    position: fixed; top: 0; left: 0; height: 100vh;
    display: flex; flex-direction: column; z-index: 200;
}
.op-sidebar .sidebar-brand { color: var(--warning); }

/* ---- Accessibility ---- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Předplatné (/predplatne) — layout jako objednávka, karty jako na domovské stránce ---- */
.pricing-body {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 24px 72px;
    box-sizing: border-box;
}
.pricing-tail {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    max-width: 1100px;
}
.pricing-manufacture {
    margin-bottom: 40px;
}
.pricing-manufacture__lead {
    margin: 0 0 16px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 65ch;
}
.pricing-manufacture__cta {
    width: fit-content;
    max-width: 100%;
}
.pricing-faq-section {
    margin-top: 8px;
    max-width: 720px;
}
.pricing-faq-section__intro {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--text-muted);
}
.pricing-faq-section__intro a {
    font-weight: 600;
    color: var(--info);
    text-decoration: none;
}
.pricing-faq-section__intro a:hover {
    text-decoration: underline;
}
.pricing-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pricing-faq-accordion__item {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card-bg);
    overflow: hidden;
}
.pricing-faq-accordion__item summary {
    cursor: pointer;
    list-style: none;
    padding: 14px 40px 14px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    line-height: 1.35;
}
.pricing-faq-accordion__item summary::-webkit-details-marker {
    display: none;
}
.pricing-faq-accordion__item summary::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -6px;
    border: solid var(--text-muted);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0.75;
    transition: transform 0.3s ease;
}
.pricing-faq-accordion__item[open] summary::after {
    margin-top: -2px;
    transform: rotate(-135deg);
}
.pricing-faq-accordion__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.32s ease;
}
.pricing-faq-accordion__item[open] .pricing-faq-accordion__panel {
    grid-template-rows: 1fr;
}
.pricing-faq-accordion__panel > .pricing-faq-accordion__body {
    min-height: 0;
    overflow: hidden;
}
/* JS (pricing-faq.js): animace výšky i při zavření — přepíše grid výše */
.pricing-faq-accordion--motion .pricing-faq-accordion__panel {
    display: block;
    grid-template-rows: none;
    transition: height 0.42s cubic-bezier(0.33, 1, 0.68, 1);
    overflow: hidden;
}
.pricing-faq-accordion--motion .pricing-faq-accordion__item[open] .pricing-faq-accordion__panel {
    grid-template-rows: unset;
}
.pricing-faq-accordion--motion .pricing-faq-accordion__panel > .pricing-faq-accordion__body {
    overflow: visible;
}
.pricing-faq-accordion__item summary:hover {
    background: var(--hover);
}
.pricing-faq-accordion__item summary:focus {
    outline: none;
}
.pricing-faq-accordion__item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}
.pricing-faq-accordion__body {
    padding: 12px 16px 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.pricing-faq-accordion__item[open] .pricing-faq-accordion__body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.04s;
}
@media (prefers-reduced-motion: reduce) {
    .pricing-faq-accordion__panel {
        transition: none;
    }
    .pricing-faq-accordion--motion .pricing-faq-accordion__panel {
        transition: none;
    }
    .pricing-faq-accordion__body {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .pricing-faq-accordion__item summary::after {
        transition: none;
    }
}
.pricing-faq-section__more {
    margin: 20px 0 0;
    font-size: 0.88rem;
}
.pricing-faq-section__more a {
    font-weight: 600;
    color: var(--info);
    text-decoration: none;
}
.pricing-faq-section__more a:hover {
    text-decoration: underline;
}
.pricing-footnote {
    margin: 2.25rem auto 0;
    font-size: 0.8rem;
    line-height: 1.55;
    text-align: center;
    max-width: 640px;
}
.pricing-footnote a {
    color: var(--info);
    font-weight: 500;
    text-decoration: none;
}
.pricing-footnote a:hover {
    text-decoration: underline;
}
.pricing-dev-hint {
    font-size: 0.72rem;
    text-align: center;
    margin-top: 1.25rem;
}
.lp-sub-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lp-sub-guest-hint {
    font-size: 0.78rem;
    text-align: center;
    margin: 10px 0 0;
    color: var(--text-muted);
}
.lp-sub-features li.lp-sub-features-no {
    color: var(--text-muted);
    opacity: 0.55;
}
.lp-sub-features li.lp-sub-features-no::before {
    border: none;
    left: 3px;
    top: 11px;
    width: 12px;
    height: 12px;
    background:
        linear-gradient(45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, currentColor 45%, currentColor 55%, transparent 55%);
    border-radius: 0;
}
.lp-sub-features li.lp-sub-features-note {
    font-size: 0.86em;
    font-style: italic;
    color: var(--text-muted);
    padding-top: 2px;
    padding-bottom: 8px;
}
.lp-sub-features li.lp-sub-features-note::before {
    border-style: dashed;
    opacity: 0.7;
}
.lp-sub-card--featured .lp-sub-features li.lp-sub-features-note::before {
    border-color: var(--accent);
}
@media (max-width: 600px) {
    .pricing-body { padding: 8px 16px 56px; }
    .pricing-manufacture__cta {
        width: 100%;
        text-align: center;
    }
}

