/* ============================================================
   ATYRO CLOUD — Modern Dark Theme
   ============================================================ */
:root {
    --primary: #6c5ce7;
    --secondary: #00cec9;
    --bg: #07080f;
    --bg-2: #0c0e1a;
    --card: #11142399;
    --card-solid: #121527;
    --border: rgba(255, 255, 255, .08);
    --border-2: rgba(255, 255, 255, .14);
    --text: #eef0ff;
    --muted: #9aa0b5;
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #ff6b6b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, .65);
    --grad: linear-gradient(135deg, var(--primary), var(--secondary));
    --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px 400px at 15% -5%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 70%),
        radial-gradient(700px 500px at 90% 10%, color-mix(in srgb, var(--secondary) 10%, transparent), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
main { flex: 1; padding-top: var(--nav-h); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; }
.page-head p { color: var(--muted); margin-top: 8px; max-width: 640px; }
.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 28px; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 1000;
    background: rgba(9, 10, 18, .72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { max-width: 1280px; margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links > a, .nav-drop > button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 13px; border-radius: 10px;
    color: var(--muted); font-size: .93rem; font-weight: 500;
    background: none; border: 0; cursor: pointer; font-family: inherit;
    transition: .18s;
}
.nav-links > a:hover, .nav-links > a.active, .nav-drop > button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav-drop { position: relative; }
.nav-drop-menu {
    position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px;
    background: #141728; border: 1px solid var(--border-2); border-radius: 14px;
    padding: 8px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.nav-drop:hover .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop-menu a { display: block; padding: 9px 12px; border-radius: 9px; font-size: .92rem; color: var(--muted); }
.nav-drop-menu a:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); transition: .18s; }
.cart-btn:hover { border-color: var(--border-2); background: rgba(255, 255, 255, .08); }
.cart-count {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
    background: var(--grad); border-radius: 999px;
    font-size: .68rem; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 6px; border: 1px solid var(--border); border-radius: 999px; background: rgba(255, 255, 255, .04); cursor: pointer; transition: .18s; }
.user-chip:hover { border-color: var(--border-2); }
.user-chip img, .avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--grad); }
.user-chip span { font-size: .88rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: relative; }
.user-menu .nav-drop-menu { left: auto; right: 0; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
    display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: rgba(7, 8, 15, .97); backdrop-filter: blur(20px);
    z-index: 999; padding: 22px 20px 40px; overflow-y: auto;
}
.mobile-menu.open { display: block; animation: fadeUp .22s ease; }
.mobile-menu a { display: block; padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 1.02rem; font-weight: 500; color: var(--text); }
.mobile-menu .mm-sub { padding-left: 26px; font-size: .93rem; color: var(--muted); }
.mobile-menu .mm-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px; border: 0; cursor: pointer;
    font-family: inherit; font-size: .93rem; font-weight: 600;
    transition: .2s; white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -8px color-mix(in srgb, var(--primary) 70%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px color-mix(in srgb, var(--primary) 80%, transparent); }
.btn-outline { background: rgba(255, 255, 255, .04); border: 1px solid var(--border-2); color: var(--text); }
.btn-outline:hover { background: rgba(255, 255, 255, .09); transform: translateY(-2px); }
.btn-danger { background: rgba(255, 107, 107, .12); border: 1px solid rgba(255, 107, 107, .4); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 107, .22); }
.btn-sm { padding: 7px 14px; font-size: .85rem; border-radius: 9px; }
.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Cards / Grid ---------- */
.card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 24px; backdrop-filter: blur(8px);
    transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card-hover:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 45%, transparent); box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Badges / Alerts ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.badge-primary { background: color-mix(in srgb, var(--primary) 18%, transparent); color: color-mix(in srgb, var(--primary) 60%, #fff); border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent); }
.badge-success { background: rgba(46, 204, 113, .12); color: #6ee7a0; border: 1px solid rgba(46, 204, 113, .35); }
.badge-warning { background: rgba(241, 196, 15, .12); color: #ffe28a; border: 1px solid rgba(241, 196, 15, .35); }
.badge-danger { background: rgba(255, 107, 107, .12); color: #ff9c9c; border: 1px solid rgba(255, 107, 107, .35); }
.badge-muted { background: rgba(255, 255, 255, .06); color: var(--muted); border: 1px solid var(--border); }

.alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 12px; font-size: .92rem; margin-bottom: 20px; }
.alert-success { background: rgba(46, 204, 113, .1); border: 1px solid rgba(46, 204, 113, .35); color: #8af0b4; }
.alert-error { background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .35); color: #ffb3b3; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: #cfd3e8; }
.form-label .req { color: var(--danger); }
.form-control, select.form-control, textarea.form-control {
    width: 100%; padding: 12px 14px; border-radius: 11px;
    background: rgba(255, 255, 255, .045); border: 1px solid var(--border-2);
    color: var(--text); font-family: inherit; font-size: .94rem; transition: .18s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); background: rgba(255, 255, 255, .06); }
.form-control::placeholder { color: #5d6278; }
select.form-control option { background: #141728; }
textarea.form-control { resize: vertical; min-height: 110px; }
.form-hint { font-size: .78rem; color: var(--muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; color: var(--muted); }
.check-line input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; margin-top: calc(-1 * var(--nav-h)); padding-top: var(--nav-h); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media .hero-fallback { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback { background: radial-gradient(800px 500px at 30% 20%, color-mix(in srgb, var(--primary) 30%, transparent), transparent), var(--bg-2); }
.hero-overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7, 8, 15, .82), rgba(7, 8, 15, .62) 55%, var(--bg)); }
.hero-content { max-width: 720px; padding: 80px 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--border-2); background: rgba(255, 255, 255, .05); font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 22px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 10px var(--success); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.1rem, 5.5vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero p { font-size: clamp(1rem, 2vw, 1.15rem); color: #b9bed4; margin-bottom: 30px; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -46px; position: relative; z-index: 2; }
.stat-box { text-align: center; padding: 22px 12px; background: rgba(17, 20, 35, .85); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(12px); }
.stat-box .num { font-size: 1.7rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box .lbl { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }

/* ---------- Product / Category cards ---------- */
.p-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.p-card .p-img { height: 160px; background: var(--bg-2); position: relative; overflow: hidden; }
.p-card .p-img img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.p-card:hover .p-img img { transform: scale(1.06); }
.p-card .p-img .ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.4rem; opacity: .5; }
.p-card .p-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.p-card h3 { font-size: 1.05rem; font-weight: 700; }
.p-card .p-desc { font-size: .87rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-feats { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: #c3c8dd; }
.p-feats li::before { content: '✓'; color: var(--secondary); font-weight: 800; margin-right: 8px; }
.p-price { display: flex; align-items: baseline; gap: 5px; margin-top: auto; padding-top: 8px; }
.p-price .amount { font-size: 1.45rem; font-weight: 800; }
.p-price .cycle { color: var(--muted); font-size: .82rem; }
.ribbon { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* ---------- Reviews ---------- */
.stars { color: #ffd166; letter-spacing: 2px; font-size: .95rem; }
.review-card .rc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card .rc-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.review-card .rc-name { font-weight: 700; font-size: .95rem; }
.review-card .rc-date { font-size: .77rem; color: var(--muted); }
.review-card .rc-title { font-weight: 700; margin-bottom: 6px; }
.review-card .rc-text { font-size: .9rem; color: #c3c8dd; }
.admin-reply { margin-top: 14px; padding: 12px 14px; border-left: 3px solid var(--secondary); background: rgba(0, 206, 201, .06); border-radius: 0 10px 10px 0; font-size: .86rem; }
.rating-bar { display: flex; align-items: center; gap: 10px; font-size: .85rem; margin-bottom: 8px; }
.rating-bar .track { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.rating-bar .fill { height: 100%; border-radius: 99px; background: var(--grad); }

/* ---------- Dashboard layout ---------- */
.dash-layout { display: grid; grid-template-columns: 260px 1fr; gap: 26px; align-items: start; padding: 34px 20px 60px; max-width: 1280px; margin: 0 auto; width: 100%; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sb-user { padding: 22px 18px; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 14%, transparent), transparent); border-bottom: 1px solid var(--border); }
.sb-user img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid color-mix(in srgb, var(--primary) 55%, transparent); margin-bottom: 10px; }
.sb-user .sb-name { font-weight: 700; }
.sb-user .sb-mail { font-size: .78rem; color: var(--muted); word-break: break-all; }
.sb-nav { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.sb-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--muted); transition: .16s; }
.sb-nav a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.sb-nav a.active { background: color-mix(in srgb, var(--primary) 18%, transparent); color: #fff; }
.sb-nav a .ico { width: 20px; text-align: center; }
.sb-nav .sb-sep { height: 1px; background: var(--border); margin: 8px 6px; }
.dash-content { min-width: 0; }
.dash-title { font-size: 1.55rem; font-weight: 800; margin-bottom: 4px; }
.dash-sub { color: var(--muted); font-size: .92rem; margin-bottom: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { display: flex; align-items: center; gap: 15px; padding: 20px; }
.stat-card .ico { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: color-mix(in srgb, var(--primary) 16%, transparent); }
.stat-card .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.stat-card .lbl { font-size: .8rem; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 620px; }
.tbl th { text-align: left; padding: 14px 16px; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.tbl td { padding: 14px 16px; font-size: .9rem; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: rgba(255, 255, 255, .025); }

/* ---------- Chat ---------- */
.chat-shell { display: flex; flex-direction: column; height: calc(100vh - var(--nav-h) - 120px); min-height: 460px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; gap: 11px; max-width: 82%; }
.chat-msg img.cm-av { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chat-msg .cm-bubble { background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 10px 14px; }
.chat-msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg.mine .cm-bubble { background: color-mix(in srgb, var(--primary) 22%, transparent); border-color: color-mix(in srgb, var(--primary) 40%, transparent); border-radius: 14px 4px 14px 14px; }
.cm-meta { display: flex; gap: 8px; align-items: baseline; margin-bottom: 3px; }
.cm-user { font-size: .82rem; font-weight: 700; }
.cm-time { font-size: .68rem; color: var(--muted); }
.cm-text { font-size: .91rem; word-break: break-word; }
.cm-reply { font-size: .78rem; color: var(--muted); border-left: 2px solid var(--secondary); padding-left: 8px; margin-bottom: 5px; }
.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); background: rgba(255, 255, 255, .02); }
.chat-input input { flex: 1; }
.typing-note { font-size: .78rem; color: var(--muted); padding: 0 20px 8px; min-height: 20px; font-style: italic; }

/* ---------- Footer ---------- */
.footer { margin-top: 70px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(12, 14, 26, .9)); }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 54px 20px 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; margin-bottom: 12px; }
.footer .f-brand img { width: 34px; height: 34px; border-radius: 9px; }
.footer .f-desc { font-size: .88rem; color: var(--muted); max-width: 300px; margin-bottom: 16px; }
.footer h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: #cfd3e8; margin-bottom: 14px; }
.footer .f-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer .f-links a { font-size: .89rem; color: var(--muted); transition: .16s; }
.footer .f-links a:hover { color: var(--text); padding-left: 4px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--border-2); display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .04); transition: .2s; }
.socials a:hover { background: var(--grad); border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; font-size: .82rem; color: var(--muted); }

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 70px 20px; color: var(--muted); }
.empty-state .es-ico { font-size: 3rem; margin-bottom: 14px; opacity: .6; }
.empty-state h3 { color: var(--text); margin-bottom: 8px; }
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); padding: 22px 0 0; }
.breadcrumbs a:hover { color: var(--text); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--border-2); font-size: .9rem; font-weight: 600; color: var(--muted); transition: .18s; }
.pagination a:hover { border-color: var(--primary); color: var(--text); }
.pagination .cur { background: var(--grad); color: #fff; border-color: transparent; }
.prose { color: #c3c8dd; font-size: .95rem; }
.prose h2 { margin: 30px 0 12px; font-size: 1.25rem; color: var(--text); }
.prose h3 { margin: 22px 0 10px; font-size: 1.05rem; color: var(--text); }
.prose p, .prose li { margin-bottom: 10px; }
.prose ul { padding-left: 22px; }
.auth-wrap { max-width: 440px; margin: 40px auto 80px; padding: 0 20px; }
.auth-card { padding: 34px 30px; }
.auth-card .a-logo { display: flex; justify-content: center; margin-bottom: 16px; }
.auth-card .a-logo img { width: 54px; height: 54px; border-radius: 14px; }
.auth-card h1 { text-align: center; font-size: 1.5rem; margin-bottom: 6px; }
.auth-card .a-sub { text-align: center; color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.a-alt { text-align: center; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.a-alt a { color: var(--secondary); font-weight: 600; }
.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--muted); font-size: .8rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border-2); }
.qr-box { background: #fff; border-radius: 14px; padding: 14px; display: inline-block; }
.copy-chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px dashed var(--border-2); border-radius: 10px; padding: 8px 14px; font-family: monospace; font-size: .9rem; cursor: pointer; }
.staff-card { text-align: center; }
.staff-card img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 3px solid var(--border-2); margin-bottom: 12px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.step-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.step-dots .sd { width: 34px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .1); }
.step-dots .sd.on { background: var(--grad); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .92rem; }
.spec-table td:first-child { color: var(--muted); width: 42%; }

@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .45 } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }
.fade-up { animation: fadeUp .5s ease both; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2e45; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3a3f5e; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .nav-cta .btn { display: none; }
    .dash-layout { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .sb-user { display: flex; align-items: center; gap: 14px; text-align: left; padding: 16px; }
    .sb-user img { width: 48px; height: 48px; margin: 0; }
    .sb-nav { flex-direction: row; overflow-x: auto; padding: 8px; }
    .sb-nav a { white-space: nowrap; font-size: .85rem; padding: 9px 12px; }
    .sb-nav .sb-sep { display: none; }
}
@media (max-width: 640px) {
    :root { --nav-h: 60px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .hero-actions .btn { flex: 1; }
    .chat-msg { max-width: 94%; }
    .footer-bottom { justify-content: center; text-align: center; }
}
