/* ── Layout ── */
.dashboard-layout { display:flex; min-height:100vh; padding-top:65px; }

/* ── Sidebar ── */
.sidebar {
    width:280px; position:fixed; left:0; top:0; bottom:0;
    background:rgba(8,8,15,.98); border-right:1px solid var(--border);
    padding:0 .875rem 1.25rem; overflow-y:auto; z-index:150;
    display:flex; flex-direction:column; gap:.15rem;
    transform:translateX(-290px);
    transition:transform .25s cubic-bezier(.4,0,.2,1);
}
/* Desktop: always open */
@media (min-width:992px) {
    .sidebar { transform:translateX(0); }
    body.sidebar-collapsed .sidebar { transform:translateX(-290px); }
}
/* Mobile: open via class */
.sidebar.sidebar-open { transform:translateX(0); }

/* Logo inside sidebar — aligns with navbar height */
.sidebar-logo-wrap {
    display:flex; align-items:center; height:65px;
    padding:0 .5rem; margin-bottom:.25rem;
    border-bottom:1px solid var(--border); flex-shrink:0;
}
.sidebar-logo {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family:'Syne',sans-serif; font-weight:800; font-size:.9rem;
    background:linear-gradient(90deg,var(--accent),var(--accent2));
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text; text-decoration:none; letter-spacing:.04em;
}

.sidebar-logo-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(20px, 2.3vw, 24px);
    line-height: 1;
    letter-spacing: 0;
    color: #f5f7ff;
    background: none;
    -webkit-text-fill-color: #f5f7ff;
    white-space: nowrap;
}

.sidebar-label {
    font-size:.7rem; font-weight:700; text-transform:uppercase;
    letter-spacing:.1em; color:var(--text-muted);
    padding:.5rem .75rem; margin-top:.75rem;
}
.sidebar-label:first-of-type { margin-top:0; }

.sidebar-link {
    display:flex; align-items:center; gap:.75rem; padding:.65rem .75rem;
    border-radius:var(--radius-sm); color:var(--text-muted); text-decoration:none;
    font-size:.875rem; font-weight:500; transition:all .15s;
    cursor:pointer; border:none; background:none; width:100%; text-align:left;
    font-family:'Outfit',sans-serif;
}
.sidebar-link svg { width:16px; height:16px; flex-shrink:0; }
.sidebar-link:hover { color:var(--text); background:var(--surface); }
.sidebar-link.active { color:var(--accent); background:rgba(0,212,255,.08); }

/* Overlay — mobile only */
.sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,.55);
    z-index:149; backdrop-filter:blur(2px); }
.sidebar-overlay.active { display:block; }

/* Desktop: content always shifted (sidebar always open) */
.dashboard-main {
    flex:1; padding:2rem; margin-left:0; max-width:100%;
    transition:margin-left .25s cubic-bezier(.4,0,.2,1), max-width .25s cubic-bezier(.4,0,.2,1);
}
@media (min-width:992px) {
    .dashboard-main { margin-left:280px; max-width:calc(100% - 280px); }
    body.sidebar-collapsed .dashboard-main { margin-left:0; max-width:100%; }
}
/* Mobile: content never shifts */
@media (max-width:991px) {
    .dashboard-main { margin-left:0 !important; max-width:100% !important; }
}

.dashboard-section { display:none; }
.dashboard-section.active { display:block; animation:fadeInUp .3s ease; }

/* ── Header ── */
.section-header { margin-bottom:2rem; }
.section-header h2 { font-family:'Syne',sans-serif; font-size:1.5rem; font-weight:700; margin-bottom:.25rem; }
.section-header p { color:var(--text-muted); font-size:.875rem; }

/* ── Cards ── */
.dash-card { background:var(--glass); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem; margin-bottom:1.5rem; }
.dash-card-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.25rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.dash-card-title { font-size:.95rem; font-weight:700; display:flex; align-items:center; gap:.5rem; }
.dash-card-title svg { width:16px; height:16px; color:var(--accent); }

/* ── Stats ── */
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:1.25rem; text-align:center; transition:border-color .2s,transform .2s; }
.stat-card:hover { border-color:var(--accent); transform:translateY(-2px); }
.stat-icon { color:var(--accent); opacity:.55; margin-bottom:.45rem; display:flex; justify-content:center; transition:opacity .2s; }
.stat-card:hover .stat-icon { opacity:.9; }
.stat-number { font-family:'Space Mono',monospace; font-size:2rem; font-weight:700; color:var(--accent); line-height:1; margin-bottom:.25rem; }
.stat-label { font-size:.75rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; }

/* ── Links list ── */
.social-link-row { display:flex; align-items:center; gap:.75rem; padding:.75rem; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:.75rem; }
.social-link-icon { width:36px; height:36px; border-radius:8px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.social-link-icon svg { width:18px; height:18px; color:#fff; }
.social-link-info { flex:1; min-width:0; }
.social-link-platform { font-size:.8rem; font-weight:600; text-transform:capitalize; margin-bottom:.15rem; }
.social-link-url { font-size:.75rem; color:var(--text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-family:'Space Mono',monospace; }

/* ── Avatar upload zone ── */
.avatar-upload-zone { border:2px dashed var(--border); border-radius:var(--radius); padding:2rem; text-align:center; cursor:pointer; transition:border-color .2s, background .2s; }
.avatar-upload-zone:hover { border-color:var(--accent); background:rgba(0,212,255,.03); }
.avatar-upload-zone img { width:80px; height:80px; border-radius:50%; object-fit:cover; margin:0 auto 1rem; display:block; }

/* ── Color swatches ── */
.color-grid { display:flex; gap:.75rem; flex-wrap:wrap; align-items:center; }
.color-swatch { width:32px; height:32px; border-radius:8px; cursor:pointer; border:2px solid transparent; transition:transform .2s, border-color .2s; }
.color-swatch:hover, .color-swatch.active { transform:scale(1.15); border-color:rgba(255,255,255,.5); }
input[type="color"] { width:40px; height:32px; border-radius:8px; border:2px solid var(--border); cursor:pointer; padding:2px; background:var(--surface); }

/* ── BG tabs ── */
.bg-type-tabs { display:flex; gap:.5rem; margin-bottom:1rem; flex-wrap:wrap; }
.bg-type-tab { padding:.4rem .85rem; border-radius:6px; background:var(--surface); border:1px solid var(--border); color:var(--text-muted); font-size:.8rem; font-weight:500; cursor:pointer; transition:all .2s; }
.bg-type-tab.active { background:rgba(0,212,255,.1); border-color:var(--accent); color:var(--accent); }

/* ── Toggles ── */
.toggle-row { display:flex; align-items:center; justify-content:space-between; padding:.75rem 0; border-bottom:1px solid var(--border); }
.toggle-row:last-child { border-bottom:none; }
.toggle-label { font-size:.875rem; }
.toggle-desc { font-size:.75rem; color:var(--text-muted); margin-top:.1rem; }
.toggle { position:relative; width:44px; height:24px; flex-shrink:0; }
.toggle input { opacity:0; width:0; height:0; position:absolute; }
.toggle-slider { position:absolute; inset:0; background:rgba(255,255,255,.1); border-radius:12px; cursor:pointer; transition:background .2s; border:1px solid var(--border); }
.toggle-slider::after { content:''; position:absolute; width:18px; height:18px; background:#fff; border-radius:50%; left:3px; top:50%; transform:translateY(-50%); transition:left .2s; }
.toggle input:checked + .toggle-slider { background:var(--accent); border-color:var(--accent); }
.toggle input:checked + .toggle-slider::after { left:23px; }

/* ── Platform grid ── */
.platform-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(75px,1fr)); gap:.5rem; margin-bottom:1rem; }
.platform-option { display:flex; flex-direction:column; align-items:center; gap:.35rem; padding:.75rem .5rem; border-radius:var(--radius-sm); border:1px solid var(--border); cursor:pointer; transition:all .2s; background:var(--surface); font-size:.72rem; color:var(--text-muted); }
.platform-option svg { width:22px; height:22px; }
.platform-option:hover, .platform-option.selected { border-color:var(--accent); background:rgba(0,212,255,.08); color:var(--text); }

/* ── Form grid ── */
.form-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }

/* ── Toast ── */
.toast-container { position:fixed; bottom:1.5rem; right:1.5rem; z-index:1000; display:flex; flex-direction:column; gap:.5rem; }
.toast { background:var(--glass); border:1px solid var(--border); border-radius:var(--radius-sm); padding:.75rem 1.25rem; color:var(--text); font-size:.875rem; display:flex; align-items:center; gap:.5rem; box-shadow:var(--shadow); backdrop-filter:blur(20px); animation:toastIn .3s ease; max-width:300px; }
.toast.success { border-color:rgba(0,200,100,.4); }
.toast.error   { border-color:rgba(0,212,255,.4); }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

@media (max-width:900px) {
    .form-grid-2 { grid-template-columns:1fr; }
}

/* ── Custom font select dropdown ── */
.font-select-wrapper { position:relative; user-select:none; }
.font-select-display {
    width:100%; background:rgba(255,255,255,0.05); border:1px solid var(--border);
    border-radius:var(--radius-sm); color:rgba(200,200,210,0.75); padding:.75rem 1rem;
    font-size:.95rem; font-family:'Outfit',sans-serif; cursor:pointer;
    display:flex; align-items:center; justify-content:space-between;
    transition:border-color .2s, box-shadow .2s;
}
.font-select-display:hover,
.font-select-wrapper.open .font-select-display {
    border-color:var(--accent); box-shadow:0 0 0 3px rgba(0,212,255,0.1);
}
#font-dropdown-portal {
    display:none; position:fixed; z-index:99999;
    background:#111118; border:1px solid rgba(255,255,255,.15); border-radius:var(--radius-sm);
    box-shadow:0 8px 32px rgba(0,0,0,.8);
    max-height:220px; overflow-y:auto;
    min-width:200px;
}
#font-dropdown-portal.open { display:block; }
.font-select-option {
    padding:.6rem 1rem; font-size:.9rem; color:rgba(200,200,210,0.75);
    cursor:pointer; transition:background .15s, color .15s; white-space:nowrap;
}
.font-select-option:hover { background:rgba(0,212,255,.08); color:#f0f0f0; }
.font-select-option.active { background:rgba(0,212,255,.12); color:var(--accent); font-weight:600; }

/* ── Upload cards (Avatar + Background side-by-side) ── */
.upload-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:1.25rem; }
.upload-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1rem; margin-bottom:1.25rem; }
.upload-card {
    background:rgba(255,255,255,.03); border:1px solid var(--border);
    border-radius:var(--radius); padding:1rem; display:flex; flex-direction:column; gap:.75rem;
}
.upload-card-header { display:flex; align-items:center; gap:.6rem; }
.upload-card-header svg { color:var(--accent); flex-shrink:0; }
.upload-card-title { font-size:.85rem; font-weight:700; color:var(--text); line-height:1.2; }
.upload-card-sub { font-size:.7rem; color:var(--text-muted); }
.upload-clear-btn {
    margin-left:auto; width:24px; height:24px; border-radius:50%;
    background:rgba(0,212,255,.12); border:1px solid rgba(0,212,255,.25);
    color:#00d4ff; font-size:.7rem; cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    transition:all .2s; flex-shrink:0; padding:0;
}
.upload-clear-btn:hover { background:rgba(0,212,255,.3); color:#fff; }

.upload-zone {
    position:relative; border:1px dashed var(--border); border-radius:var(--radius-sm);
    min-height:120px; display:flex; align-items:center; justify-content:center;
    cursor:pointer; overflow:hidden; transition:border-color .2s;
}
.upload-zone:hover { border-color:var(--accent); }
.upload-preview-img {
    width:100%; height:120px; object-fit:cover; border-radius:calc(var(--radius-sm) - 1px);
}
.upload-placeholder {
    display:flex; flex-direction:column; align-items:center; gap:.4rem;
    color:var(--text-muted); padding:1rem;
}
.upload-placeholder svg { opacity:.5; }
.upload-placeholder span { font-size:.75rem; }
.upload-badge {
    position:absolute; bottom:6px; left:6px;
    background:rgba(0,0,0,.7); color:var(--text-muted); font-size:.6rem; font-weight:700;
    padding:.15rem .4rem; border-radius:4px; text-transform:uppercase; letter-spacing:.05em;
}

@media (max-width:520px) {
    .upload-grid-2 { grid-template-columns:1fr; }
    .upload-grid-3 { grid-template-columns:1fr; }
}
/* ── Unsaved changes bar ─────────────────────────────── */
.unsaved-bar {
    position: fixed;
    bottom: 0;
    left: 280px; /* sidebar width */
    right: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .875rem 2rem;
    background: rgba(10, 12, 20, 0.92);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(100%);
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    gap: 1rem;
}
.unsaved-bar.visible {
    transform: translateY(0);
}
.unsaved-bar-text {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
}
.unsaved-bar-actions {
    display: flex;
    gap: .625rem;
    flex-shrink: 0;
}
/* Push toast container up when bar is visible */
.unsaved-bar.visible ~ * .toast-container,
body:has(.unsaved-bar.visible) .toast-container {
    bottom: calc(1.5rem + 58px);
}
/* ── Dashboard Overview ── */
.overview-cards { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; margin-bottom:1.5rem; }
.overview-card {
    display:flex; align-items:center; gap:1rem;
    background:var(--glass); border:1px solid var(--border);
    border-radius:var(--radius); padding:1.1rem 1.25rem;
    transition:border-color .2s;
}
.overview-card:hover { border-color:var(--accent); }
.ov-icon {
    width:40px; height:40px; border-radius:10px;
    background:rgba(0,212,255,.1); border:1px solid rgba(0,212,255,.2);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ov-icon svg { width:18px; height:18px; color:var(--accent); }
.ov-icon-hash { background:rgba(150,100,255,.1); border-color:rgba(150,100,255,.2); }
.ov-icon-hash svg { color:#a78bfa; }
.ov-icon-eye { background:rgba(255,180,0,.1); border-color:rgba(255,180,0,.2); }
.ov-icon-eye svg { color:#fbbf24; }
.ov-icon-premium { background:rgba(255,215,0,.12); border-color:rgba(255,215,0,.3); }
.ov-icon-premium svg { color:#ffd700; }
.ov-card-premium {
    border-color:rgba(255,215,0,.3) !important;
    background:linear-gradient(135deg,rgba(255,215,0,.06) 0%,var(--glass) 60%) !important;
    box-shadow:0 0 20px rgba(255,215,0,.08);
}
.ov-card-premium:hover { border-color:rgba(255,215,0,.55) !important; }
.ov-label { font-size:.72rem; color:var(--text-muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:.2rem; }
.ov-value { font-size:1rem; font-weight:700; font-family:'Space Mono',monospace; color:var(--text); }

/* ── Views tracked summary ── */
.views-summary { display:flex; gap:2.5rem; margin-bottom:1.5rem; }
.views-tracked-block { display:flex; align-items:baseline; gap:.5rem; flex-wrap:wrap; }
.views-big { font-family:'Space Mono',monospace; font-size:2rem; font-weight:700; color:var(--text); line-height:1; }
.views-badge { font-size:.7rem; font-weight:700; color:var(--accent); text-transform:uppercase; letter-spacing:.08em; }
.views-tracked-label { width:100%; font-size:.78rem; color:var(--text-muted); margin-top:.1rem; }

/* ── Chart ── */
.chart-wrapper { position:relative; width:100%; }

/* ── Quick actions ── */
.quick-actions-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(140px,1fr)); gap:.75rem; }
.quick-action-btn {
    display:flex; align-items:center; gap:.6rem;
    padding:.75rem 1rem; border-radius:var(--radius-sm);
    background:var(--surface); border:1px solid var(--border);
    color:var(--text-muted); text-decoration:none; font-size:.85rem; font-weight:500;
    transition:all .18s; font-family:'Outfit',sans-serif;
}
.quick-action-btn svg { width:16px; height:16px; flex-shrink:0; }
.quick-action-btn:hover { border-color:var(--accent); color:var(--accent); background:rgba(0,212,255,.06); }

/* ── Badges Page ─────────────────────────────────────── */
.badges-meta {
    font-size:.8rem; font-weight:700; color:var(--text-muted);
    text-transform:uppercase; letter-spacing:.08em;
    margin-bottom:1.25rem; text-align:right;
}
.badges-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(160px, 1fr));
    gap:1rem;
    margin-bottom:2rem;
}
.badge-card {
    position:relative;
    background:var(--glass);
    border:1px solid var(--border);
    border-radius:16px;
    padding:1.5rem 1rem 1.1rem;
    text-align:center;
    cursor:pointer;
    transition:border-color .2s, transform .2s, box-shadow .2s;
    display:flex; flex-direction:column; align-items:center; gap:.5rem;
}
.badge-card.unlocked {
    border-color:rgba(var(--bc-r,0),var(--bc-g,212),var(--bc-b,255), .35);
    background:rgba(var(--bc-r,0),var(--bc-g,212),var(--bc-b,255), .05);
}
.badge-card.unlocked:hover {
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.4);
    border-color:var(--bc);
}
.badge-card.locked { opacity:.45; filter:grayscale(.7); }
.badge-card.locked:hover { opacity:.6; transform:translateY(-2px); }

.badge-card-lock {
    position:absolute; top:8px; right:8px;
    width:18px; height:18px; opacity:.5;
}
.badge-card-lock svg { width:100%; height:100%; stroke:var(--text-muted); }

.badge-card-icon {
    width:52px; height:52px;
    border-radius:14px;
    display:flex; align-items:center; justify-content:center;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    color:var(--bc);
    margin-bottom:.25rem;
}
.badge-card.locked .badge-card-icon { color:var(--text-muted); }
.badge-card-icon svg { width:26px; height:26px; }

.badge-card-name {
    font-size:.9rem; font-weight:700;
    color:var(--text); font-family:'Syne',sans-serif;
}
.badge-card.unlocked .badge-card-name { color:var(--bc); }

.badge-card-desc {
    font-size:.72rem; color:var(--text-muted); line-height:1.4;
    display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; line-clamp:3;
}

.badge-card-status {
    margin-top:.25rem;
    font-size:.65rem; font-weight:700; letter-spacing:.1em;
    padding:.25rem .6rem; border-radius:20px;
}
.badge-card.unlocked .badge-card-status {
    background:rgba(var(--bc-r,0),var(--bc-g,212),var(--bc-b,255),.15);
    color:var(--bc);
    border:1px solid rgba(var(--bc-r,0),var(--bc-g,212),var(--bc-b,255),.3);
}
.badge-card.locked .badge-card-status {
    background:var(--surface); color:var(--text-muted); border:1px solid var(--border);
}

/* Modal */
.badge-modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.7); z-index:1000;
    display:flex; align-items:center; justify-content:center;
    opacity:0; pointer-events:none; transition:opacity .2s;
    backdrop-filter:blur(6px);
}
.badge-modal-overlay.open { opacity:1; pointer-events:all; }
.badge-modal {
    background:rgba(12,12,24,.97); border:1px solid rgba(255,255,255,.12);
    border-radius:20px; padding:2.5rem 2rem 2rem;
    text-align:center; max-width:320px; width:90%;
    transform:scale(.92); transition:transform .2s;
    display:flex; flex-direction:column; align-items:center; gap:1rem;
    box-shadow:0 24px 60px rgba(0,0,0,.7);
}
.badge-modal-overlay.open .badge-modal { transform:scale(1); }
.badge-modal-icon { width:70px; height:70px; border-radius:18px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1); display:flex; align-items:center; justify-content:center; }
.badge-modal-icon svg { width:36px; height:36px; }
.badge-modal-name { font-size:1.2rem; font-weight:800; font-family:'Syne',sans-serif; color:var(--text); }
.badge-modal-desc { font-size:.875rem; color:var(--text-muted); line-height:1.5; max-width:240px; }
.badge-modal-status { font-size:.68rem; font-weight:700; letter-spacing:.1em; padding:.3rem .75rem; border-radius:20px; }
.badge-modal-status.owned  { background:rgba(0,200,100,.15); color:#34d399; border:1px solid rgba(52,211,153,.3); }
.badge-modal-status.locked-st { background:var(--surface); color:var(--text-muted); border:1px solid var(--border); }
/* ── Navbar tokens ── */
.navbar-tokens {
    display: flex; align-items: center; gap: .4rem;
    padding: .4rem .75rem;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px;
    font-size: .82rem; font-weight: 700;
    color: var(--text);
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    height: 100%;
    box-sizing: border-box;
    transition: background .18s, border-color .18s, transform .18s;
}
.navbar-tokens:hover {
    background: rgba(0,212,255,.1);
    border-color: rgba(0,212,255,.35);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ── Shop page ── */
.shop-token-bal {
    display: flex; align-items: center; gap: .5rem;
    padding: .55rem 1.1rem;
    background: linear-gradient(135deg, rgba(0,212,255,.12), rgba(0,212,255,.04));
    border: 1px solid rgba(0,212,255,.25);
    border-radius: 12px;
    font-size: .9rem; font-weight: 700;
    color: var(--accent);
    box-shadow: 0 0 24px rgba(0,212,255,.08);
}

/* Section wrapper - groups label + title + grid into a card */
.shop-section {
    background: linear-gradient(180deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.shop-section-head { margin-bottom: 1.25rem; }
.shop-section-label {
    display: inline-block;
    font-size: .7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .14em; color: var(--text-muted);
    margin-bottom: .35rem;
}
.shop-section-title {
    font-size: 1.2rem; font-weight: 800;
    color: var(--text);
    font-family: 'Syne', sans-serif;
    letter-spacing: -.01em;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/* Card */
.shop-card {
    position: relative;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--sc, var(--accent)) 6%, transparent) 0%, transparent 55%),
        linear-gradient(180deg, rgba(255,255,255,.03) 0%, rgba(8,8,15,.4) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.1rem;
    display: flex; flex-direction: column; gap: 1rem;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
    overflow: hidden;
    isolation: isolate;
}
.shop-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--sc, var(--accent)), transparent);
    opacity: 0;
    transition: opacity .3s;
    z-index: 1;
}
.shop-card:hover {
    border-color: color-mix(in srgb, var(--sc, var(--accent)) 45%, transparent);
    transform: translateY(-3px);
    box-shadow:
        0 10px 28px rgba(0,0,0,.35),
        0 0 24px color-mix(in srgb, var(--sc, var(--accent)) 12%, transparent);
}
.shop-card:hover::before { opacity: .8; }

/* Soft radial glow that follows the badge color */
.shop-card-glow {
    position: absolute;
    top: -40%; right: -40%;
    width: 180px; height: 180px;
    background: radial-gradient(circle, color-mix(in srgb, var(--sc, var(--accent)) 22%, transparent) 0%, transparent 70%);
    pointer-events: none;
    opacity: .55;
    transition: opacity .25s ease;
    z-index: 0;
}
.shop-card:hover .shop-card-glow { opacity: 1; }

.shop-card-owned { opacity: .75; }
.shop-card-owned:hover { transform: translateY(-1px); }

/* Top section: icon + content */
.shop-card-top {
    display: flex; gap: .85rem; align-items: flex-start;
    position: relative; z-index: 1;
}
.shop-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--sc, var(--accent));
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--sc, var(--accent)) 18%, transparent), color-mix(in srgb, var(--sc, var(--accent)) 6%, transparent));
    border: 1px solid color-mix(in srgb, var(--sc, var(--accent)) 30%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.shop-card-info { flex: 1; min-width: 0; }
.shop-card-title-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: .5rem;
    margin-bottom: .3rem;
}
.shop-card-name {
    font-family: 'Syne', sans-serif;
    font-size: 1rem; font-weight: 800;
    color: var(--text);
    letter-spacing: -.01em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.shop-card-price {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .82rem; font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}
.shop-card-desc {
    font-size: .78rem; color: var(--text-muted);
    line-height: 1.45;
}

/* Buy button */
.shop-buy-btn {
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-size: .85rem; font-weight: 700;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(0,212,255,.18) 0%, rgba(0,212,255,.06) 100%);
    border: 1px solid rgba(0,212,255,.3);
    cursor: pointer;
    transition: all .2s ease;
    font-family: 'Outfit', sans-serif;
    width: 100%;
    margin-top: auto;
    position: relative; z-index: 1;
}
.shop-buy-btn:hover {
    background: linear-gradient(135deg, rgba(0,212,255,.3) 0%, rgba(0,212,255,.12) 100%);
    border-color: rgba(0,212,255,.55);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0,212,255,.18);
}
.shop-buy-btn:active { transform: translateY(0); }

.shop-card-owned-badge {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .7rem 1rem;
    border-radius: 10px;
    font-size: .75rem; font-weight: 700; letter-spacing: .1em;
    background: linear-gradient(135deg, rgba(95,239,165,.14) 0%, rgba(95,239,165,.04) 100%);
    color: #5fefa5;
    border: 1px solid rgba(95,239,165,.3);
    width: 100%;
    margin-top: auto;
    position: relative; z-index: 1;
}

/* Mobile: stack icon above content for tighter layout */
@media (max-width: 480px) {
    .shop-grid { grid-template-columns: 1fr; }
}
/* ── Settings Page ───────────────────────────────────── */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}
.settings-card {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color .2s;
}
.settings-card:hover { border-color: rgba(255,255,255,.15); }
.settings-card-danger { border-color: rgba(239,68,68,.2); }
.settings-card-danger:hover { border-color: rgba(239,68,68,.4); }
.settings-card-head {
    display: flex;
    align-items: center;
    gap: .9rem;
    flex-wrap: wrap;
}
.settings-card-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.settings-card-title {
    font-size: .95rem; font-weight: 700;
    color: var(--text); font-family: 'Syne', sans-serif;
}
.settings-card-sub {
    font-size: .75rem; color: var(--text-muted); margin-top: .1rem;
}
.settings-card-sub strong { color: var(--text); }
.settings-cooldown-badge {
    margin-left: auto;
    display: flex; align-items: center; gap: .35rem;
    font-size: .7rem; font-weight: 700; letter-spacing: .06em;
    padding: .3rem .7rem; border-radius: 20px;
    background: rgba(251,191,36,.1); color: #fbbf24;
    border: 1px solid rgba(251,191,36,.25);
    white-space: nowrap;
}
.settings-form {
    display: flex; flex-direction: column; gap: .6rem;
}
.settings-input {
    width: 100%; padding: .6rem .9rem;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--text); font-size: .85rem;
    font-family: 'Outfit', sans-serif;
    transition: border-color .18s;
    box-sizing: border-box;
}
.settings-input:focus {
    outline: none;
    border-color: var(--accent);
}
.settings-input-danger:focus { border-color: #ef4444; }
.settings-hint {
    font-size: .72rem; color: var(--text-muted); line-height: 1.5;
}
.settings-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .6rem 1.25rem; border-radius: 10px;
    font-size: .82rem; font-weight: 700; cursor: pointer;
    background: var(--sb, rgba(0,212,255,.1));
    color: var(--sbt, var(--accent));
    border: 1px solid var(--sbc, rgba(0,212,255,.25));
    transition: all .18s; font-family: 'Outfit', sans-serif;
    width: 100%;
}
.settings-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}
.settings-btn-danger {
    background: rgba(239,68,68,.12) !important;
    color: #00d4ff !important;
    border-color: rgba(239,68,68,.3) !important;
}
.settings-btn-danger:hover {
    background: rgba(239,68,68,.22) !important;
    border-color: rgba(239,68,68,.5) !important;
}
/* ── Profile-info page responsive fixes ── */
.profile-sliders-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}
@media (max-width: 700px) {
    .profile-sliders-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE — dashboard & layout
   ══════════════════════════════════════════ */
@media (max-width:991px) {

    /* Navbar */
    .navbar { padding:.6rem 1rem; }

    /* Main content padding */
    .dashboard-main { padding:1.25rem 1rem; }

    /* Section header */
    .section-header { margin-bottom:1.25rem; }
    .section-header h2 { font-size:1.2rem; }

    /* Overview cards: 2×2 grid on mobile */
    .overview-cards {
        grid-template-columns: 1fr 1fr !important;
        gap:.75rem;
    }
    .overview-card { padding:.85rem 1rem; gap:.65rem; }
    .ov-icon { width:36px; height:36px; border-radius:8px; }
    .ov-icon svg { width:16px; height:16px; }
    .ov-label { font-size:.65rem; }
    .ov-value { font-size:.9rem; }

    /* Dash card */
    .dash-card { padding:1rem; }
    .dash-card-header { margin-bottom:1rem; padding-bottom:.75rem; }

    /* Views chart area */
    .views-summary { margin-bottom:.75rem; }

    /* Generic grids — stack to single column */
    .stats-grid,
    .badges-grid,
    .links-grid { grid-template-columns:1fr !important; }

    /* Tables on mobile */
    .table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
}

/* Extra small phones */
@media (max-width:480px) {
    .overview-cards { gap:.5rem; }
    .overview-card { padding:.7rem .75rem; }
    .dashboard-main { padding:1rem .75rem; }
}


/* ══════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION BAR
   ══════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 991px) {

    /* ── Show bottom nav ── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        background: rgba(6,6,12,0.98);
        border-top: 1px solid rgba(255,255,255,.08);
        z-index: 400;
        height: 62px;
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    .mobile-nav-scroll {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        width: 100%;
        align-items: center;
        padding: 0 .25rem;
    }
    .mobile-nav-scroll::-webkit-scrollbar { display: none; }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 0 1rem;
        min-width: 58px;
        height: 62px;
        text-decoration: none;
        color: rgba(255,255,255,.38);
        font-size: .58rem;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
        white-space: nowrap;
        transition: color .2s;
        flex-shrink: 0;
    }
    .mobile-nav-item svg {
        width: 20px; height: 20px;
        flex-shrink: 0;
    }
    .mobile-nav-item.active {
        color: var(--accent);
    }
    .mobile-nav-item.active svg {
        filter: drop-shadow(0 0 4px var(--accent));
    }

    /* ── Add bottom padding so content isn't hidden behind nav ── */
    .dashboard-main {
        padding-bottom: calc(62px + 1.5rem) !important;
    }

    /* ── Hide sidebar & hamburger — bottom nav handles navigation ── */
    .sidebar { display: none !important; }
    .sidebar-toggle { display: none !important; }
    .sidebar-overlay { display: none !important; }

    /* ── Brand in navbar on mobile ── */
    .navbar-brand-mobile { display: block !important; }

    /* ── Navbar full width on mobile ── */
    .navbar { left: 0 !important; }

    /* ── 2×2 grid for overview cards — FORCE OVERRIDE ── */
    div.overview-cards {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: .65rem !important;
    }
    div.overview-cards .overview-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .5rem !important;
        padding: .85rem .9rem !important;
    }
    div.overview-cards .ov-icon {
        width: 34px !important; height: 34px !important;
        border-radius: 8px !important;
    }
    div.overview-cards .ov-value {
        font-size: .88rem !important;
    }
    div.overview-cards .ov-label {
        font-size: .6rem !important;
    }

    /* ── General mobile layout cleanup ── */
    .dashboard-main { padding: 1.25rem 1rem; }
    .section-header { margin-bottom: 1.25rem; }
    .section-header h2 { font-size: 1.2rem; }
    .dash-card { padding: 1rem; }
}

/* Very small phones */
@media (max-width: 380px) {
    div.overview-cards { gap: .5rem !important; }
    div.overview-cards .overview-card { padding: .7rem .75rem !important; }
    .mobile-nav-item { padding: 0 .75rem; min-width: 52px; }
}

/* ── Style page: upload cards grid responsive ── */
@media (max-width:991px) {
    /* Override the inline 4-column grid */
    div[style*="grid-template-columns:1fr 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr 1fr !important;
        gap: .75rem !important;
    }
    .upload-card {
        padding: .85rem !important;
    }
    .upload-card-title { font-size: .8rem !important; }
    .upload-card-sub { font-size: .65rem !important; }
}
@media (max-width:480px) {
    div[style*="grid-template-columns:1fr 1fr 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ── Upload cards grid (Style page) ── */
.upload-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 991px) {
    .upload-cards-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: .75rem !important;
    }
    .upload-card { padding: .85rem !important; }
    .upload-card-title { font-size: .8rem !important; }
    .upload-card-sub { font-size: .65rem !important; }
}
@media (max-width: 480px) {
    .upload-cards-grid {
        grid-template-columns: 1fr !important;
    }
}
/* ── Delete Link Modal ───────────────────────────────── */
.dlm-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem;
    opacity: 0; transition: opacity .2s ease;
}
.dlm-overlay.dlm-visible { opacity: 1; }

.dlm-box {
    background: var(--glass, rgba(18,18,28,.95));
    border: 1px solid var(--border);
    border-radius: var(--radius, 14px);
    padding: 2rem 1.75rem 1.5rem;
    width: 100%; max-width: 340px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.5);
    transform: scale(.93) translateY(8px);
    transition: transform .2s cubic-bezier(.4,0,.2,1);
}
.dlm-overlay.dlm-visible .dlm-box {
    transform: scale(1) translateY(0);
}

.dlm-icon {
    width: 54px; height: 54px;
    background: rgba(0, 212, 255, .1);
    border: 1px solid rgba(0, 212, 255, .25);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.1rem;
    color: #00d4ff;
}

.dlm-title {
    font-size: 1.05rem; font-weight: 700;
    color: var(--text, #e8e8f0);
    margin: 0 0 .35rem;
}

.dlm-sub {
    font-size: .82rem;
    color: var(--text-muted, rgba(232,232,240,.45));
    margin: 0 0 1.5rem;
}

.dlm-actions {
    display: flex; gap: .75rem;
}

.dlm-btn {
    flex: 1; padding: .6rem 1rem;
    border-radius: var(--radius-sm, 8px);
    font-size: .875rem; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border);
    transition: all .18s ease;
}

.dlm-cancel {
    background: var(--surface, rgba(255,255,255,.05));
    color: var(--text-muted, rgba(232,232,240,.6));
}
.dlm-cancel:hover {
    border-color: var(--accent, #00d4ff);
    color: var(--accent, #00d4ff);
    background: rgba(0,212,255,.06);
}

.dlm-confirm {
    background: rgba(0, 212, 255, .12);
    border-color: rgba(0, 212, 255, .35);
    color: #00d4ff;
}
.dlm-confirm:hover {
    background: rgba(0, 212, 255, .22);
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}

/* Professional refresh: shell + shared UI elements */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 65px;
    background:
        radial-gradient(1200px 680px at 6% -10%, rgba(0, 212, 255, 0.09), transparent 62%),
        radial-gradient(1000px 720px at 108% 14%, rgba(255, 32, 137, 0.08), transparent 66%),
        linear-gradient(180deg, #07080f 0%, #090b14 46%, #06070e 100%);
}

.dashboard-main {
    padding: 2rem;
}

.section-header h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
    letter-spacing: -0.02em;
}

.section-header p {
    max-width: 64ch;
    color: rgba(240, 240, 240, 0.56);
}

.dash-card {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.dash-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dash-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.dashboard-navbar-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.navbar-bell-wrap {
    position: relative;
}

.navbar-bell-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .75);
    cursor: pointer;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
    flex-shrink: 0;
}

.navbar-bell-btn:hover {
    border-color: rgba(0, 212, 255, .35);
    background: rgba(0, 212, 255, .12);
    color: #c7f6ff;
    transform: translateY(-1px);
}

.notif-badge {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    padding: 0 6px;
    background: linear-gradient(135deg, #00d4ff, #00a8cc);
    border: 1px solid rgba(255, 255, 255, .24);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px rgba(8, 10, 16, .8);
}

.notif-badge.is-hidden {
    display: none;
}

.notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 332px;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #12131c;
    box-shadow: 0 22px 52px rgba(0, 0, 0, .65);
    z-index: 9998;
}

.notif-panel-head,
.notif-panel-foot {
    padding: .85rem 1rem;
}

.notif-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.notif-panel-title {
    font-size: .88rem;
    font-weight: 700;
    color: #fff;
}

.notif-read-all-btn {
    border: none;
    background: none;
    color: var(--accent, #00d4ff);
    font-size: .72rem;
    font-weight: 700;
    cursor: pointer;
    opacity: .88;
    padding: 0;
}

.notif-read-all-btn:hover { opacity: 1; }

.notif-list {
    max-height: 280px;
    overflow-y: auto;
}

.notif-list-empty {
    text-align: center;
    color: rgba(255, 255, 255, .34);
    font-size: .8rem;
    padding: 1.5rem 1rem;
}

.notif-item {
    display: flex;
    gap: .65rem;
    padding: .75rem .9rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.notif-item.unread {
    background: rgba(0, 212, 255, .06);
}

.notif-item-title {
    font-size: .8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .95);
    margin-bottom: .18rem;
}

.notif-item-body {
    font-size: .75rem;
    color: rgba(255, 255, 255, .62);
    line-height: 1.4;
}

.notif-panel-foot {
    border-top: 1px solid rgba(255, 255, 255, .07);
    text-align: center;
}

.notif-panel-foot span {
    font-size: .72rem;
    color: rgba(255, 255, 255, .34);
}

.navbar-token-icon {
    color: var(--accent);
}

.navbar-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, .08);
    margin: .2rem 0;
}

.overview-card .ov-number {
    font-family: 'Space Mono', monospace;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    color: #f6fbff;
}

.overview-card .ov-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.views-range-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .28rem .72rem;
    border: 1px solid rgba(0, 212, 255, .26);
    background: rgba(0, 212, 255, .1);
    color: var(--accent);
    font-size: .67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015));
}

.admin-overview-cards {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .9rem;
}

.admin-overview-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, .16);
    background: linear-gradient(135deg, rgba(0, 212, 255, .1), rgba(12, 16, 30, .74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.admin-overview-card::after {
    content: "";
    position: absolute;
    inset: auto -20% -45% auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(0, 212, 255, .26), transparent 72%);
    pointer-events: none;
}

.admin-overview-card-danger {
    border-color: rgba(255, 128, 120, .28);
    background: linear-gradient(135deg, rgba(255, 128, 120, .14), rgba(28, 11, 18, .8));
}

.admin-overview-card-danger::after {
    background: radial-gradient(circle at center, rgba(255, 128, 120, .34), transparent 72%);
}

.admin-panel-shell {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    background:
        radial-gradient(130% 90% at -20% -10%, rgba(0, 212, 255, .08), transparent 54%),
        radial-gradient(100% 80% at 120% 0%, rgba(255, 175, 85, .08), transparent 60%),
        rgba(7, 9, 16, .78);
    box-shadow: 0 22px 44px rgba(0, 0, 0, .33);
}

.admin-panel-head {
    align-items: flex-end;
    gap: .75rem;
}

.admin-panel-sub {
    font-size: .75rem;
    font-weight: 600;
    color: rgba(222, 229, 255, .64);
    letter-spacing: .01em;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    gap: .65rem;
    margin-bottom: 1rem;
}

.admin-search-wrap {
    position: relative;
    display: block;
}

.admin-search,
.admin-filter,
.admin-page-size,
.admin-modal-field input,
.admin-modal-field select,
.admin-modal-field textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .045);
    color: #f4f7ff;
    font-family: 'Outfit', sans-serif;
    font-size: .84rem;
    padding: .62rem .78rem;
    box-sizing: border-box;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.admin-search:focus,
.admin-filter:focus,
.admin-page-size:focus,
.admin-modal-field input:focus,
.admin-modal-field select:focus,
.admin-modal-field textarea:focus {
    outline: none;
    border-color: rgba(0, 212, 255, .65);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, .14);
}

.admin-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .03);
    color: rgba(234, 240, 255, .75);
    padding: 0 .9rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.admin-bulkbar {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(10, 12, 22, .74);
    border-radius: 12px;
    padding: .65rem .75rem;
    margin-bottom: .85rem;
}

.admin-bulk-count {
    font-size: .76rem;
    color: rgba(255, 255, 255, .66);
    font-weight: 700;
}

.admin-bulk-actions {
    display: flex;
    gap: .45rem;
    flex-wrap: wrap;
    margin-left: auto;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(232, 239, 255, .84);
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .02em;
}

.admin-check input {
    accent-color: #00d4ff;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
}

.admin-table th {
    text-align: left;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .11em;
    color: rgba(226, 233, 251, .62);
    padding: .82rem .58rem;
    border-bottom: 1px solid rgba(255, 255, 255, .11);
    background: rgba(255, 255, 255, .02);
    position: sticky;
    top: 0;
    z-index: 1;
}

.admin-table td {
    font-size: .84rem;
    padding: .8rem .58rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: rgba(246, 248, 255, .89);
}

.admin-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(0, 212, 255, .07), rgba(0, 212, 255, .02));
}

.admin-empty {
    text-align: center;
    color: rgba(255, 255, 255, .45);
    padding: 1.15rem !important;
}

.admin-id {
    color: rgba(255, 255, 255, .52);
}

.admin-user-link {
    color: inherit;
    text-decoration: none;
}

.admin-user-link:hover {
    color: var(--accent);
}

.admin-th-btn {
    border: 0;
    padding: 0;
    color: inherit;
    background: none;
    font-size: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-weight: inherit;
    cursor: pointer;
    transition: color .18s ease;
}

.admin-th-btn:hover {
    color: #8ce9ff;
}

.admin-user-cell {
    display: flex;
    align-items: center;
    gap: .62rem;
}

.admin-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
    font-weight: 800;
}

.admin-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-user-meta {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.admin-user-role {
    font-size: .66rem;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.admin-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 .42rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .04);
    font-size: .72rem;
    font-weight: 700;
    color: rgba(248, 251, 255, .9);
}

.admin-badge-count.has-badges {
    color: #95efff;
    border-color: rgba(0, 212, 255, .4);
    background: rgba(0, 212, 255, .16);
}

.admin-plan-pill,
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .22rem .56rem;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.admin-plan-pill.is-premium {
    color: #ffd26f;
    background: rgba(255, 210, 111, .14);
    border-color: rgba(255, 210, 111, .36);
}

.admin-plan-pill.is-free {
    color: rgba(226, 232, 247, .74);
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .14);
}

.admin-status-stack {
    display: flex;
    gap: .35rem;
    flex-wrap: wrap;
}

.admin-status-pill.role-owner {
    color: #ffc767;
    background: rgba(255, 199, 103, .16);
    border-color: rgba(255, 199, 103, .36);
}

.admin-status-pill.role-admin {
    color: #88e8ff;
    background: rgba(0, 212, 255, .16);
    border-color: rgba(0, 212, 255, .34);
}

.admin-status-pill.role-mod {
    color: #b7b4ff;
    background: rgba(132, 126, 255, .18);
    border-color: rgba(132, 126, 255, .38);
}

.admin-status-pill.role-user {
    color: rgba(232, 240, 255, .74);
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .18);
}

.admin-status-pill.is-staff {
    color: #92f5c2;
    background: rgba(95, 239, 165, .14);
    border-color: rgba(95, 239, 165, .35);
}

.admin-status-pill.is-banned {
    color: #ff9c98;
    background: rgba(255, 128, 120, .15);
    border-color: rgba(255, 128, 120, .38);
}

.admin-actions {
    display: flex;
    gap: .42rem;
    flex-wrap: wrap;
}

.admin-btn {
    border-radius: 9px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    padding: .4rem .65rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
    color: #dce4fa;
    transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.admin-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(0, 212, 255, .45);
    background: rgba(0, 212, 255, .14);
}

.admin-btn:disabled {
    opacity: .45;
    transform: none;
    cursor: not-allowed;
}

.admin-btn-accent {
    color: #95ecff;
    border-color: rgba(0, 212, 255, .34);
    background: rgba(0, 212, 255, .12);
}

.admin-btn-ok {
    color: #9ff4ca;
    border-color: rgba(95, 239, 165, .34);
    background: rgba(95, 239, 165, .12);
}

.admin-btn-warn {
    color: #ffc88e;
    border-color: rgba(255, 170, 90, .35);
    background: rgba(255, 170, 90, .13);
}

.admin-btn-danger {
    color: #ffaba7;
    border-color: rgba(255, 128, 120, .35);
    background: rgba(255, 128, 120, .12);
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
    flex-wrap: wrap;
    margin-top: .85rem;
}

.admin-page-label {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(233, 241, 255, .7);
    padding: 0 .25rem;
}

.admin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 860;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(2, 3, 8, .74);
    backdrop-filter: blur(8px);
}

.admin-modal {
    width: min(620px, 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .14);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(0, 212, 255, .1), transparent 54%),
        rgba(10, 12, 22, .96);
    box-shadow: 0 28px 56px rgba(0, 0, 0, .5);
    padding: 1.15rem;
}

.admin-modal-title {
    margin: 0 0 .9rem;
    font-size: 1.05rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #f4f8ff;
    letter-spacing: .01em;
}

.admin-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.admin-modal-field {
    display: flex;
    flex-direction: column;
    gap: .38rem;
    color: rgba(226, 234, 251, .76);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.admin-modal-field textarea {
    resize: vertical;
    min-height: 82px;
}

.admin-modal-actions {
    margin-top: .9rem;
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
}

.admin-modal-error {
    color: #ff9c98;
    font-size: .76rem;
    font-weight: 700;
}

@media (max-width: 980px) {
    .admin-toolbar {
        grid-template-columns: 1fr;
    }

    .admin-results-count {
        justify-content: flex-start;
        width: fit-content;
        padding: .46rem .85rem;
    }
}

@media (max-width: 760px) {
    .admin-overview-cards {
        grid-template-columns: 1fr 1fr;
    }

    .admin-modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .admin-overview-cards {
        grid-template-columns: 1fr;
    }

    .admin-bulk-actions {
        margin-left: 0;
    }
}

.analytics-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.range-chip-group {
    display: flex;
    gap: .42rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: .25rem;
}

.range-chip {
    border: 0;
    border-radius: 7px;
    padding: .38rem .78rem;
    font-size: .76rem;
    font-weight: 700;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.range-chip.active {
    color: var(--accent);
    background: rgba(0, 212, 255, .13);
}

.analytics-chart-wrap {
    position: relative;
    height: 260px;
}

.device-list {
    display: grid;
    gap: .5rem;
}

.device-list-total {
    color: var(--text-muted);
    font-size: .8rem;
}

.premium-upsell-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.premium-upsell-title {
    margin-bottom: .5rem;
    font-family: 'Syne', sans-serif;
}

.premium-upsell-text {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

/* Analytics redesign */
.analytics-modern-shell {
    width: 100%;
}

.analytics-modern-card {
    padding: 1.35rem 1.35rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(5, 7, 12, .95);
}

.analytics-modern-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.analytics-modern-title {
    margin: 0;
    font-size: 1.62rem;
    font-weight: 800;
    line-height: 1;
    color: #f7f9ff;
    letter-spacing: -.02em;
    font-family: 'Syne', sans-serif;
}

.analytics-modern-select-wrap {
    position: relative;
    flex-shrink: 0;
}

.analytics-modern-select {
    appearance: none;
    min-width: 124px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(8, 10, 15, .9);
    color: #f3f4f6;
    font-size: .77rem;
    font-weight: 700;
    padding: .44rem 1.9rem .44rem .72rem;
    cursor: pointer;
}

.analytics-modern-select-wrap::after {
    content: "";
    position: absolute;
    right: .66rem;
    top: 50%;
    width: 6px;
    height: 6px;
    border-right: 1.8px solid rgba(255, 255, 255, .65);
    border-bottom: 1.8px solid rgba(255, 255, 255, .65);
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.analytics-modern-chart-wrap {
    position: relative;
    height: 245px;
    margin-top: .25rem;
}

.analytics-modern-summary {
    margin-top: .22rem;
    line-height: 1.35;
}

.analytics-modern-summary-main {
    font-size: 1.55rem;
    font-weight: 800;
    color: #f7f8fb;
    font-family: 'Syne', sans-serif;
}

.analytics-modern-summary-main strong {
    color: #f4c169;
}

.analytics-modern-summary-sub {
    margin-top: .1rem;
    font-size: .95rem;
    color: rgba(255, 255, 255, .8);
}

.analytics-modern-divider {
    height: 1px;
    margin: 1rem 0;
    background: rgba(255, 255, 255, .08);
}

.analytics-access-heading {
    margin: 0 0 .62rem;
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    font-family: 'Syne', sans-serif;
}

.analytics-access-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
    border-radius: 14px;
    padding: .95rem 1.05rem;
    background: linear-gradient(90deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .035));
    border: 1px solid rgba(255, 255, 255, .07);
}

.analytics-access-name {
    font-size: 1.08rem;
    font-weight: 800;
    color: #f5f7ff;
    letter-spacing: -.01em;
}

.analytics-access-meta {
    display: inline-flex;
    align-items: center;
    gap: .72rem;
    white-space: nowrap;
}

.analytics-access-meta span {
    font-size: .95rem;
    color: rgba(174, 183, 225, .8);
}

.analytics-access-meta strong {
    font-size: 1.58rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

@media (max-width: 991px) {
    .analytics-modern-card {
        padding: 1rem .9rem .9rem;
        border-radius: 14px;
    }

    .analytics-modern-title {
        font-size: 1.22rem;
    }

    .analytics-modern-select {
        min-width: 110px;
        font-size: .72rem;
    }

    .analytics-modern-chart-wrap {
        height: 198px;
    }

    .analytics-modern-summary-main {
        font-size: 1.16rem;
    }

    .analytics-modern-summary-sub {
        font-size: .82rem;
    }

    .analytics-access-heading {
        font-size: 1rem;
    }

    .analytics-access-row {
        padding: .72rem .8rem;
    }

    .analytics-access-name {
        font-size: .9rem;
    }

    .analytics-access-meta {
        gap: .45rem;
    }

    .analytics-access-meta span {
        font-size: .78rem;
    }

    .analytics-access-meta strong {
        font-size: 1.02rem;
    }
}

@media (max-width: 991px) {
    .notif-panel {
        width: min(332px, calc(100vw - 1rem));
        right: -8px;
    }

    .dashboard-navbar-actions {
        gap: .55rem;
    }
}

.sidebar {
    background:
        linear-gradient(180deg, rgba(8, 10, 16, .98), rgba(6, 8, 14, .99));
}

.sidebar-link {
    justify-content: space-between;
}

.sidebar-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .12rem .45rem;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    display: grid;
    gap: .7rem;
}

.sidebar-view-profile {
    font-size: .77rem;
    text-decoration: none;
    color: rgba(255, 255, 255, .52);
}

.sidebar-view-profile:hover {
    color: var(--accent);
}

.sidebar-profile-card {
    display: flex;
    align-items: center;
    gap: .62rem;
    padding: .58rem;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .03);
}

.sidebar-profile-avatar {
    width: 35px;
    height: 35px;
    border-radius: 9px;
    object-fit: cover;
}

.sidebar-profile-meta {
    min-width: 0;
    display: grid;
    gap: .08rem;
}

.sidebar-profile-name {
    font-size: .79rem;
    font-weight: 700;
    color: rgba(250, 250, 255, .95);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-profile-plan {
    font-size: .67rem;
    color: rgba(95, 239, 165, .72);
}

.status-message {
    margin-top: .75rem;
    font-size: .84rem;
    font-weight: 600;
}

.status-message-success { color: #5fefa5; }
.status-message-error { color: #00d4ff; }

.muted-copy {
    color: rgba(255, 255, 255, .55);
    font-size: .84rem;
}

.muted-copy-spaced { margin-bottom: 1rem; }
.muted-copy-spaced-sm { margin-bottom: .6rem; }

.row-inline-form {
    display: flex;
    gap: .6rem;
    align-items: center;
}

.form-group-top-gap { margin-top: 1rem; }

.stack-md {
    display: grid;
    gap: .8rem;
}

.stack-inline-actions {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
}

.stack-inline-actions-spaced { margin-bottom: 1rem; }

.platform-option-left { align-items: flex-start; }
.platform-grid-top-gap { margin-top: 1rem; }
.platform-grid-bottom-gap { margin-bottom: 1rem; }

.integration-account-row {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.integration-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(88, 101, 242, .25);
}

.integration-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.integration-name {
    font-weight: 700;
}

.integration-sub {
    color: var(--text-muted);
    font-size: .8rem;
}

.stat-number-accent { color: var(--accent); }

.dash-card-danger {
    border-color: rgba(239, 68, 68, .35);
}

.section-block-top-gap { margin-top: .95rem; }

.qr-wrap {
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    display: inline-flex;
}

.badges-panel-head {
    align-items: flex-start;
}

.badges-subtitle {
    margin-top: .25rem;
    color: rgba(255, 255, 255, .55);
    font-size: .86rem;
}

.badges-progress-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: .4rem .75rem;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .03);
    font-size: .76rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .72);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .72rem;
}

.badge-card {
    position: relative;
    background: linear-gradient(180deg, rgba(11, 13, 21, .95), rgba(8, 10, 16, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    min-height: 210px;
    padding: .78rem .72rem .7rem;
    display: grid;
    justify-items: center;
    align-content: start;
    text-align: center;
    gap: .42rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.badge-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .2);
}

.badge-card.unlocked {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bc, #8aa5ff) 25%, transparent);
}

.badge-card.locked {
    opacity: .48;
    filter: saturate(.45);
}

.badge-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bc, #8aa5ff);
    background: color-mix(in srgb, var(--bc, #8aa5ff) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--bc, #8aa5ff) 38%, rgba(255, 255, 255, .05));
}

.badge-card-icon svg {
    width: 19px;
    height: 19px;
}

.badge-card-name {
    font-size: .92rem;
    font-weight: 800;
    color: rgba(255, 255, 255, .94);
}

.badge-card-desc {
    color: rgba(255, 255, 255, .42);
    font-size: .72rem;
    line-height: 1.33;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 3;
}

.badge-card-status {
    margin-top: .25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .55);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .08em;
    padding: .18rem .52rem;
}

.badge-card.unlocked .badge-card-status {
    border-color: color-mix(in srgb, var(--bc, #8aa5ff) 50%, transparent);
    color: var(--bc, #9cb8ff);
    background: color-mix(in srgb, var(--bc, #8aa5ff) 15%, transparent);
}

.badge-card-buy {
    margin-top: .26rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 9px;
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .84);
    font-size: .66rem;
    font-weight: 700;
    padding: .3rem .52rem;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.badge-card-buy:hover:not(:disabled) {
    border-color: var(--accent);
    color: #fff;
    background: rgba(0, 212, 255, .13);
}

.badge-card-buy:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.badges-balance-copy {
    margin-top: .7rem;
    color: rgba(255, 255, 255, .62);
    font-size: .76rem;
}

@media (max-width: 640px) {
    .badges-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .58rem;
    }

    .badge-card {
        min-height: 188px;
    }
}

@media (max-width: 700px) {
    .row-inline-form {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Overview v2 */
.overview-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .68rem;
    margin-bottom: .86rem;
}

.overview-stat-card {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 52px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(7, 9, 15, .86);
    padding: .62rem .82rem;
}

.overview-stat-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .55);
    border: 1px solid rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .02);
    flex-shrink: 0;
}

.overview-stat-icon svg {
    width: 13px;
    height: 13px;
}

.overview-stat-copy {
    min-width: 0;
}

.overview-stat-label {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .57rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.1;
    margin-bottom: .16rem;
}

.overview-stat-value {
    font-size: 1.02rem;
    line-height: 1;
    font-weight: 700;
    color: rgba(255, 255, 255, .96);
}

.overview-panels-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 470px;
    gap: .92rem;
    align-items: start;
}

.overview-chart-card {
    min-height: 430px;
    padding-top: 1rem;
}

.overview-chart-head {
    padding-bottom: .75rem;
    margin-bottom: .65rem;
}

.overview-chart-wrap {
    min-height: 258px;
}

.overview-views-footer {
    margin-top: .25rem;
}

.overview-side-stack {
    display: grid;
    gap: .82rem;
}

.overview-mini-card {
    padding: .92rem .88rem;
    margin-bottom: 0;
}

.overview-mini-head {
    margin-bottom: .62rem;
    padding-bottom: .5rem;
}

.overview-quick-links {
    display: grid;
    gap: .42rem;
}

.overview-quick-link {
    text-decoration: none;
    color: rgba(235, 235, 245, .55);
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .015);
    border-radius: 8px;
    padding: .44rem .58rem;
    font-size: .73rem;
    transition: border-color .18s, color .18s, background .18s;
}

.overview-quick-link:hover {
    color: rgba(255, 255, 255, .9);
    border-color: rgba(249, 171, 25, .42);
    background: rgba(249, 171, 25, .07);
}

.overview-updates-copy {
    color: rgba(255, 255, 255, .9);
    font-weight: 700;
    margin-bottom: .82rem;
}

.overview-updates-meta {
    padding-top: .52rem;
    border-top: 1px solid rgba(255, 255, 255, .08);
    text-align: right;
    font-size: .64rem;
    color: rgba(249, 171, 25, .9);
}

.overview-device-block {
    display: grid;
    gap: .34rem;
}

.overview-device-block + .overview-device-block {
    margin-top: .62rem;
}

.overview-device-title {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .55rem;
    color: rgba(255, 255, 255, .33);
}

.overview-device-item {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .015);
    padding: .42rem .56rem;
    display: grid;
    gap: .1rem;
}

.overview-device-name {
    font-size: .58rem;
    color: rgba(255, 255, 255, .35);
}

.overview-device-item strong {
    font-size: 1.62rem;
    line-height: 1;
    color: #fff;
}

.overview-device-count {
    font-size: .6rem;
    color: rgba(255, 255, 255, .35);
}

@media (max-width: 1520px) {
    .overview-panels-grid {
        grid-template-columns: minmax(0, 1fr) 420px;
    }
}

@media (max-width: 1260px) {
    .overview-panels-grid {
        grid-template-columns: 1fr;
    }

    .overview-chart-card {
        min-height: 380px;
    }
}

@media (max-width: 980px) {
    .overview-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .overview-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Appearance workspace */
.appearance-workspace {
    display: grid;
    gap: 1rem;
}

.appearance-top-tabs {
    display: flex;
    align-items: center;
    gap: .28rem;
    border: 1px solid rgba(116, 111, 255, .16);
    background: linear-gradient(180deg, rgba(11, 13, 23, .92), rgba(8, 10, 18, .92));
    border-radius: 12px;
    padding: .24rem;
    overflow-x: auto;
}

.appearance-top-tab {
    border: 0;
    background: transparent;
    color: rgba(125, 134, 196, .8);
    font-size: .9rem;
    font-weight: 700;
    border-radius: 9px;
    padding: .45rem .92rem;
    cursor: pointer;
    transition: background .2s, color .2s;
    white-space: nowrap;
}

.appearance-top-tab.active {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.appearance-panel {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(5, 7, 14, .78);
    border-radius: 18px;
    overflow: hidden;
}

.appearance-panel-side {
    padding: 1.2rem .55rem;
    border-right: 1px solid rgba(255, 255, 255, .06);
    display: grid;
    align-content: start;
    gap: .45rem;
}

.appearance-side-item {
    border: 0;
    border-left: 2px solid transparent;
    background: transparent;
    color: rgba(146, 150, 174, .6);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-align: left;
    padding: .58rem .48rem;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}

.appearance-side-item.active {
    color: #fff;
    border-left-color: rgba(255, 255, 255, .9);
}

.appearance-panel-main {
    padding: 1.6rem 1.7rem;
    display: grid;
    gap: 1rem;
}

.appearance-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.02em;
    font-family: 'Syne', sans-serif;
}

.appearance-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, .4);
}

.appearance-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.appearance-color-card {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    padding: .75rem;
    display: grid;
    gap: .55rem;
}

.appearance-color-card span {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .68rem;
    color: rgba(255, 255, 255, .45);
}

.appearance-color-card input[type="color"] {
    width: 100%;
    height: 82px;
    border-radius: 10px;
}

.appearance-pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .58rem;
}

.appearance-pill {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .64);
    font-size: .86rem;
    font-weight: 700;
    padding: .62rem 1rem;
    min-width: 92px;
    cursor: pointer;
    transition: border-color .18s, color .18s, background .18s;
}

.appearance-pill.active {
    border-color: rgba(255, 255, 255, .82);
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.appearance-list-select {
    display: grid;
    gap: .48rem;
}

.appearance-list-option {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .82);
    text-align: left;
    font-size: 1.03rem;
    font-weight: 700;
    padding: .8rem .9rem;
    cursor: pointer;
    transition: border-color .18s, background .18s;
}

.appearance-list-option.active {
    border-color: rgba(255, 255, 255, .78);
    background: rgba(255, 255, 255, .09);
}

@media (max-width: 1100px) {
    .appearance-panel {
        grid-template-columns: 1fr;
    }

    .appearance-panel-side {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .06);
        padding: .5rem;
    }

    .appearance-side-item {
        border-left: 0;
        border-bottom: 2px solid transparent;
        text-align: center;
    }

    .appearance-side-item.active {
        border-left: 0;
        border-bottom-color: rgba(255, 255, 255, .9);
    }
}

@media (max-width: 760px) {
    .appearance-panel-main {
        padding: 1.1rem;
    }

    .appearance-title {
        font-size: 1.55rem;
    }

    .appearance-color-grid {
        grid-template-columns: 1fr;
    }
}

.appearance-tab-shell {
    display: grid;
    gap: .75rem;
}

.appearance-social-panel {
    border: 1px solid rgba(116, 111, 255, .16);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(11, 13, 23, .9), rgba(8, 10, 18, .92));
    padding: 1rem 1.1rem;
}

.appearance-social-head {
    margin-bottom: .75rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: rgba(137, 143, 223, .76);
}

.appearance-social-list {
    display: grid;
    gap: .55rem;
}

.appearance-social-row {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: .7rem;
    align-items: center;
}

.appearance-social-name {
    font-size: .86rem;
    font-weight: 700;
    color: rgba(228, 232, 255, .88);
}

.appearance-social-actions {
    display: flex;
    justify-content: flex-end;
}

.integration-panel .appearance-panel-side {
    padding-top: 1rem;
}

.integration-provider-list {
    gap: .35rem;
}

.integration-provider-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-transform: none;
    letter-spacing: 0;
    font-size: .82rem;
    font-weight: 700;
}

.integration-provider-item span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integration-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    flex-shrink: 0;
}

.integration-dot.on {
    background: #24d26b;
    box-shadow: 0 0 10px rgba(36, 210, 107, .55);
}

.integration-dot.off {
    background: rgba(255, 255, 255, .25);
}

@media (max-width: 900px) {
    .appearance-social-row {
        grid-template-columns: 1fr;
    }
}

/* Appearance v2 overrides */
.appearance-workspace {
    gap: 1.15rem;
}

.appearance-top-tabs {
    border-radius: 14px;
    border-color: rgba(122, 112, 255, .14);
    padding: .27rem;
}

.appearance-top-tab {
    font-size: .95rem;
    color: rgba(110, 119, 185, .8);
    padding: .5rem 1rem;
}

.appearance-top-tab.active {
    border: 1px solid rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .08);
}

.appearance-panel {
    border-radius: 22px;
    border-color: rgba(255, 255, 255, .045);
    background: rgba(4, 6, 12, .88);
    min-height: 520px;
}

.appearance-panel-side {
    width: 100%;
    padding: 1rem .45rem;
}

.appearance-side-item {
    font-size: .66rem;
    font-weight: 800;
    color: rgba(133, 138, 164, .55);
    padding: .6rem .46rem;
}

.appearance-side-item.active {
    color: #f3f5ff;
}

.appearance-panel-main {
    padding: 2rem 1.95rem;
    align-content: start;
}

.appearance-title {
    font-size: clamp(2.05rem, 3.2vw, 2.45rem);
}

.appearance-subtitle {
    margin-top: -.25rem;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, .3);
}

.appearance-workspace .form-control {
    border-radius: 10px;
    min-height: 46px;
    border-color: rgba(255, 255, 255, .09);
    background: rgba(255, 255, 255, .03);
}

.appearance-workspace textarea.form-control {
    min-height: 78px;
}

.appearance-workspace .btn.btn-primary {
    background: #f4f4f5;
    border-color: #f4f4f5;
    color: #0b0c10;
    font-weight: 700;
    border-radius: 12px;
    padding: .62rem 1.2rem;
}

.appearance-workspace .btn.btn-primary:hover {
    background: #ffffff;
    border-color: #ffffff;
}

.appearance-workspace .btn.btn-danger {
    background: transparent;
    border-color: rgba(255, 88, 88, .4);
    color: #00d4ff;
}

.appearance-workspace .btn.btn-secondary {
    border-color: rgba(255, 255, 255, .12);
    color: rgba(232, 236, 255, .82);
    background: rgba(255, 255, 255, .03);
}

.appearance-tab-shell {
    gap: .85rem;
}

.appearance-social-panel,
.appearance-badge-panel {
    border: 1px solid rgba(122, 112, 255, .14);
    border-radius: 17px;
    background: linear-gradient(180deg, rgba(10, 12, 24, .9), rgba(8, 10, 18, .92));
    padding: 1rem 1.1rem;
}

.appearance-badge-list,
.appearance-social-list {
    display: grid;
    gap: .6rem;
}

.appearance-badge-row {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 12px;
    background: rgba(6, 8, 16, .86);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .7rem;
    padding: .62rem .78rem;
}

.appearance-badge-name {
    font-weight: 700;
    color: rgba(246, 248, 255, .92);
    text-transform: capitalize;
}

.appearance-badge-actions {
    display: flex;
    align-items: center;
    gap: .42rem;
}

.appearance-toggle-chip,
.appearance-delete-chip {
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    padding: .34rem .62rem;
    font-size: .74rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .04);
    color: rgba(231, 235, 255, .82);
    cursor: pointer;
}

.appearance-toggle-chip.on {
    color: #8e80ff;
    border-color: rgba(142, 128, 255, .48);
    background: rgba(142, 128, 255, .14);
}

.appearance-toggle-chip.off {
    color: rgba(255, 255, 255, .62);
}

.appearance-delete-chip {
    color: #ff7a7a;
    border-color: rgba(255, 122, 122, .35);
}

.appearance-social-row {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding-top: .55rem;
}

.appearance-social-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.integration-panel {
    min-height: 540px;
}

.integration-provider-item {
    border-radius: 10px;
    padding: .62rem .5rem;
}

.integration-provider-item.active {
    background: rgba(255, 255, 255, .07);
}

.integration-provider-item span {
    font-size: .88rem;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .appearance-panel {
        min-height: unset;
    }

    .appearance-title {
        font-size: 1.9rem;
    }
}

/* Appearance v3 micro-tuning */
.appearance-top-tabs {
    gap: .38rem;
    padding: .24rem;
    border-radius: 13px;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(7, 9, 17, .78);
}

.appearance-top-tab {
    min-height: 40px;
    border-radius: 10px;
    padding: .5rem .96rem;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: rgba(176, 184, 228, .8);
}

.appearance-top-tab:hover {
    color: rgba(236, 240, 255, .96);
    background: rgba(255, 255, 255, .04);
}

.appearance-top-tab.active {
    border: 1px solid rgba(255, 255, 255, .82);
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}

.appearance-panel-side {
    background: rgba(7, 9, 17, .86);
    border-right-color: rgba(255, 255, 255, .045);
}

.appearance-side-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: .58rem;
    text-align: left;
    border-left-width: 3px;
    border-radius: 8px;
    min-height: 48px;
    padding: .56rem .58rem .56rem .68rem;
}

.appearance-side-item::before {
    content: none;
}

.appearance-side-icon {
    width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .04);
    color: rgba(255, 255, 255, .7);
    flex-shrink: 0;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
}

.appearance-side-icon svg {
    width: 15px;
    height: 15px;
}

.appearance-side-label {
    font-weight: 600;
    letter-spacing: .01em;
    color: rgba(230, 232, 245, .86);
}

.appearance-side-item:hover .appearance-side-icon {
    border-color: rgba(255, 255, 255, .44);
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .9);
    transform: translateY(-.5px);
}

.appearance-side-item:hover .appearance-side-label {
    color: #fff;
}

.appearance-side-item.active {
    background: rgba(255, 255, 255, .03);
}

.appearance-side-item.active::before {
    content: none;
}

.appearance-side-item.active .appearance-side-icon {
    border-color: rgba(255, 255, 255, .86);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.appearance-side-item.active .appearance-side-label {
    color: #fff;
}

.appearance-panel-main {
    gap: 1.1rem;
}

.appearance-panel-main > .btn.btn-primary {
    justify-self: end;
}

.appearance-pill {
    min-width: 104px;
    padding: .68rem 1.02rem;
}

.upload-card {
    border-color: rgba(255, 255, 255, .075);
    border-radius: 14px;
}

.upload-card .upload-zone {
    min-height: 132px;
}

.appearance-social-name {
    font-size: .82rem;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.appearance-social-actions .btn.btn-primary {
    min-width: 112px;
}

.integration-provider-item {
    padding: .72rem .56rem;
}

.integration-provider-item::before {
    border-radius: 999px;
    width: 14px;
    height: 14px;
}

.integration-provider-item.active {
    border-left-color: rgba(255, 255, 255, .95);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.integration-provider-item span {
    font-size: .84rem;
}

.integration-provider-item .integration-dot {
    margin-top: .2rem;
}

/* Metadata redesign */
.metadata-shell {
    display: grid;
    gap: 1rem;
}

.metadata-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    background: rgba(4, 6, 12, .9);
    border: 1px solid rgba(255, 255, 255, .08);
}

.metadata-card-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .9rem;
}

.metadata-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(230, 236, 255, .75);
    flex-shrink: 0;
}

.metadata-icon svg {
    width: 15px;
    height: 15px;
}

.metadata-card-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #f7f8fd;
    font-family: 'Syne', sans-serif;
}

.metadata-card-sub {
    margin: .12rem 0 0;
    font-size: .74rem;
    color: rgba(165, 173, 205, .58);
}

.metadata-group-label {
    margin-bottom: .45rem;
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(165, 173, 205, .62);
    font-weight: 700;
}

.metadata-card .form-group {
    margin-bottom: .72rem;
}

.metadata-card .form-group label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(157, 167, 204, .72);
}

.metadata-card .form-control {
    min-height: 44px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    font-size: .86rem;
}

.metadata-card textarea.form-control {
    min-height: 56px;
}

.metadata-save-btn {
    min-width: 110px;
    padding: .48rem .95rem;
    border-radius: 10px;
    font-size: .74rem;
    font-weight: 700;
}

.metadata-image-row {
    margin-top: .8rem;
}

.metadata-inline-upload {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .9rem;
}

.metadata-inline-upload input[type="file"] {
    max-width: 78%;
    color: rgba(194, 202, 226, .68);
    font-size: .72rem;
}

.metadata-inline-upload input[type="file"]::file-selector-button {
    margin-right: .7rem;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .03);
    color: rgba(224, 230, 246, .85);
    border-radius: 8px;
    padding: .32rem .58rem;
    font-size: .7rem;
    font-weight: 700;
    cursor: pointer;
}

.metadata-upload-btn {
    min-width: 76px;
    padding: .42rem .8rem;
    border-radius: 10px;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.metadata-favicon-preview {
    display: block;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .03);
    margin-top: .5rem;
    object-fit: cover;
}

.metadata-og-dropzone {
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 10px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: .55rem;
}

.metadata-og-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.metadata-og-placeholder {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    color: rgba(151, 160, 194, .45);
    font-size: .65rem;
    letter-spacing: .04em;
}

.metadata-inline-upload-og input[type="file"] {
    max-width: 72%;
}

/* Settings redesign */
.settings-v2-shell {
    display: grid;
    gap: .95rem;
}

.settings-v2-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(4, 6, 12, .9);
}

.settings-v2-head {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: .95rem;
}

.settings-v2-icon {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(230, 236, 255, .74);
    flex-shrink: 0;
}

.settings-v2-icon svg {
    width: 15px;
    height: 15px;
}

.settings-v2-title {
    margin: 0;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #f8f9ff;
}

.settings-v2-sub {
    margin: .1rem 0 0;
    font-size: .74rem;
    color: rgba(162, 171, 206, .58);
}

.settings-v2-line {
    margin-top: .66rem;
}

.settings-v2-line label {
    display: block;
    margin-bottom: .35rem;
    font-size: .64rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
    color: rgba(164, 172, 205, .72);
}

.settings-v2-inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .55rem;
    align-items: center;
}

.settings-v2-inline .form-control,
.settings-v2-stack .form-control {
    min-height: 40px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    font-size: .84rem;
}

.settings-v2-inline-btn,
.settings-v2-main-btn {
    border-radius: 10px;
    min-width: 74px;
    padding: .42rem .78rem;
    font-size: .72rem;
    font-weight: 700;
}

.settings-v2-stack {
    display: grid;
    gap: .45rem;
}

.settings-v2-main-btn {
    justify-self: start;
    margin-top: .12rem;
}

.settings-v2-ref-grid {
    margin-top: .2rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, .02);
}

.settings-v2-ref-item {
    padding: .95rem .8rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.settings-v2-ref-item:last-child {
    border-right: 0;
}

.settings-v2-ref-number {
    font-size: 2rem;
    line-height: 1;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #f8f9ff;
}

.settings-v2-ref-code {
    color: #7f67ff;
    font-size: 1.55rem;
}

.settings-v2-ref-label {
    margin-top: .45rem;
    font-size: .6rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(157, 166, 201, .72);
    font-weight: 700;
}

.settings-v2-line-ref {
    margin-top: .85rem;
}

.settings-v2-empty {
    margin: 1.05rem 0 .05rem;
    text-align: center;
    color: rgba(148, 157, 189, .76);
    font-size: .8rem;
}

/* Premium redesign */
.premium-v2-shell {
    display: grid;
    gap: .95rem;
}

.premium-v2-card {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(4, 6, 12, .9);
}

.premium-v2-main {
    border-color: rgba(255, 192, 76, .3);
}

.premium-v2-buy {
    border-color: rgba(90, 103, 255, .34);
}

.premium-v2-transfer {
    border-color: rgba(0, 208, 151, .34);
}

.premium-v2-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-bottom: .8rem;
}

.premium-v2-title-wrap {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
}

.premium-v2-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 210, 111, .9);
    font-size: .86rem;
    font-weight: 800;
    flex-shrink: 0;
}

.premium-v2-title {
    margin: 0;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: #f8f9ff;
}

.premium-v2-sub {
    margin: .08rem 0 0;
    font-size: .72rem;
    color: rgba(167, 177, 214, .62);
}

.premium-v2-days-pill,
.premium-v2-balance-pill {
    border-radius: 999px;
    padding: .28rem .62rem;
    font-size: .68rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .04);
    color: rgba(245, 247, 255, .9);
}

.premium-v2-days-pill {
    border-color: rgba(255, 192, 76, .28);
    color: #ffd684;
    background: rgba(255, 192, 76, .08);
}

.premium-v2-balance-pill {
    border-color: rgba(117, 124, 255, .28);
    color: #aeb2ff;
    background: rgba(117, 124, 255, .09);
}

.premium-v2-progress-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: .35rem;
    color: rgba(170, 178, 212, .7);
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}

.premium-v2-progress-track {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    overflow: hidden;
    margin-bottom: .78rem;
}

.premium-v2-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #f4b047, #ff9f2e);
}

.premium-v2-date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem;
}

.premium-v2-date-cell {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    padding: .65rem .7rem;
}

.premium-v2-date-label {
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(164, 174, 209, .74);
    margin-bottom: .2rem;
    font-weight: 700;
}

.premium-v2-date-value {
    font-size: .88rem;
    color: #f7f8fd;
    font-weight: 700;
}

.premium-v2-buy-grid,
.premium-v2-transfer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    gap: .62rem;
    align-items: end;
}

.premium-v2-label {
    display: block;
    margin-bottom: .34rem;
    font-size: .63rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(164, 174, 209, .74);
    font-weight: 700;
}

.premium-v2-input {
    min-height: 40px;
    border-radius: 10px;
    border-color: rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .025);
    font-size: .84rem;
}

.premium-v2-cost-box {
    min-height: 40px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .03);
    padding: .45rem .7rem;
    color: #aeb2ff;
    font-weight: 700;
    font-size: .9rem;
}

.premium-v2-buy-action {
    align-self: stretch;
    display: flex;
    align-items: end;
}

.premium-v2-action-btn {
    min-width: 124px;
    min-height: 40px;
    border-radius: 10px;
    font-size: .76rem;
    font-weight: 700;
}

.premium-v2-transfer-btn {
    background: linear-gradient(135deg, #01c590, #00a57e);
    border-color: rgba(0, 197, 144, .5);
}

.premium-v2-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: .34rem;
    margin-top: .45rem;
}

.premium-v2-chip {
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: rgba(191, 200, 232, .82);
    font-size: .63rem;
    font-weight: 700;
    padding: .2rem .5rem;
    cursor: pointer;
}

.premium-v2-chip.active {
    border-color: rgba(0, 197, 144, .42);
    background: rgba(0, 197, 144, .14);
    color: #75f5d2;
}

.premium-v2-hint {
    margin: .4rem 0 0;
    color: rgba(150, 160, 194, .72);
    font-size: .7rem;
}

.premium-v2-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .45rem;
}

.premium-v2-feature-card {
    border-radius: 10px;
    border: 1px solid rgba(255, 212, 111, .16);
    background: rgba(255, 212, 111, .04);
    padding: .6rem .62rem;
    display: flex;
    gap: .45rem;
    align-items: flex-start;
}

.premium-v2-feature-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 212, 111, .3);
    color: #ffd684;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .62rem;
    flex-shrink: 0;
}

.premium-v2-feature-title {
    font-size: .73rem;
    color: #f7f8fd;
    font-weight: 700;
}

.premium-v2-feature-desc {
    margin-top: .14rem;
    font-size: .66rem;
    color: rgba(159, 169, 203, .8);
    line-height: 1.35;
}

@media (max-width: 991px) {
    .metadata-card {
        padding: .85rem .78rem;
    }

    .metadata-inline-upload {
        flex-direction: column;
        align-items: stretch;
    }

    .metadata-inline-upload input[type="file"],
    .metadata-inline-upload-og input[type="file"] {
        max-width: 100%;
    }

    .metadata-upload-btn,
    .metadata-save-btn {
        width: 100%;
    }

    .settings-v2-card {
        padding: .85rem .78rem;
    }

    .settings-v2-inline {
        grid-template-columns: 1fr;
    }

    .settings-v2-inline-btn,
    .settings-v2-main-btn {
        width: 100%;
    }

    .settings-v2-ref-grid {
        grid-template-columns: 1fr;
    }

    .settings-v2-ref-item {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .settings-v2-ref-item:last-child {
        border-bottom: 0;
    }

    .settings-v2-ref-number {
        font-size: 1.3rem;
    }

    .settings-v2-ref-code {
        font-size: 1.1rem;
    }

    .premium-v2-card {
        padding: .85rem .78rem;
    }

    .premium-v2-date-grid,
    .premium-v2-buy-grid,
    .premium-v2-transfer-grid {
        grid-template-columns: 1fr;
    }

    .premium-v2-action-btn {
        width: 100%;
    }

    .premium-v2-top-row {
        align-items: flex-start;
    }
}

@media (max-width: 1100px) {
    .appearance-top-tabs {
        gap: .28rem;
        padding: .2rem;
    }

    .appearance-top-tab {
        min-height: 36px;
        padding: .42rem .72rem;
        font-size: .78rem;
    }

    .appearance-side-item {
        min-height: 44px;
        gap: .45rem;
        padding: .5rem .48rem .5rem .58rem;
    }

    .appearance-side-icon {
        width: 16px;
        height: 16px;
    }

    .appearance-side-icon svg {
        width: 11px;
        height: 11px;
    }

    .appearance-panel-main > .btn.btn-primary {
        justify-self: stretch;
    }
}

/* Decorations v2 */
.decoration-v2-card {
    padding: 1.05rem;
}

.decoration-v2-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
    margin-bottom: .8rem;
}

.decoration-v2-title {
    margin: 0;
    font-size: 1.02rem;
    color: #fff;
}

.decoration-v2-sub {
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .45);
    font-size: .78rem;
}

.decoration-v2-balance {
    font-size: .72rem;
    font-weight: 700;
    color: #6f6bff;
    border: 1px solid rgba(111, 107, 255, .45);
    background: rgba(111, 107, 255, .11);
    border-radius: 999px;
    padding: .22rem .62rem;
    white-space: nowrap;
}

.decoration-v2-tabs {
    display: inline-flex;
    gap: .3rem;
    border: 1px solid rgba(255, 255, 255, .08);
    background: rgba(255, 255, 255, .02);
    border-radius: 10px;
    padding: .18rem;
    margin-bottom: .9rem;
}

.decoration-v2-tab {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .52);
    font-size: .76rem;
    font-weight: 700;
    padding: .4rem .72rem;
    cursor: pointer;
}

.decoration-v2-tab.active {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.decoration-v2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: .62rem;
}

.decoration-v2-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 142px;
    gap: .8rem;
}

.decoration-v2-grid-wrap {
    min-width: 0;
}

.decoration-v2-item {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(13, 14, 23, .92), rgba(7, 8, 14, .92));
    padding: .52rem;
    display: grid;
    gap: .34rem;
}

.decoration-v2-item.active {
    border-color: rgba(111, 107, 255, .7);
    box-shadow: 0 0 0 1px rgba(111, 107, 255, .35) inset;
}

.decoration-v2-preview-wrap {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, .35);
    aspect-ratio: 1;
}

.decoration-v2-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.decoration-v2-badge {
    position: absolute;
    top: .32rem;
    right: .32rem;
    font-size: .56rem;
    font-weight: 800;
    border-radius: 999px;
    padding: .16rem .35rem;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.decoration-v2-badge.free {
    background: rgba(100, 255, 177, .16);
    color: #84ffba;
    border: 1px solid rgba(100, 255, 177, .42);
}

.decoration-v2-name {
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.25;
}

.decoration-v2-price {
    color: rgba(255, 255, 255, .52);
    font-size: .6rem;
}

.decoration-v2-equip {
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    font-size: .66rem;
    font-weight: 700;
    padding: .38rem .5rem;
    cursor: pointer;
}

.decoration-v2-equip.active {
    border-color: rgba(111, 107, 255, .65);
    background: rgba(111, 107, 255, .18);
    color: #bfbdfd;
}

.decoration-v2-equip:disabled {
    opacity: .62;
    cursor: not-allowed;
}

.decoration-v2-active-box {
    margin-top: .85rem;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    padding: .62rem .72rem;
}

.decoration-v2-side {
    border: 1px solid rgba(255, 255, 255, .08);
    background: linear-gradient(180deg, rgba(15, 16, 28, .88), rgba(8, 10, 16, .88));
    border-radius: 12px;
    padding: .62rem;
    display: grid;
    align-content: start;
    gap: .5rem;
}

.decoration-v2-side-head {
    color: rgba(255, 255, 255, .55);
    font-size: .62rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 700;
}

.decoration-v2-side-preview-wrap {
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1;
}

.decoration-v2-side-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.decoration-v2-side-name {
    color: #fff;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.28;
}

@media (max-width: 1180px) {
    .decoration-v2-layout {
        grid-template-columns: 1fr;
    }

    .decoration-v2-side {
        grid-template-columns: 84px 1fr auto;
        align-items: center;
    }

    .decoration-v2-side-head {
        grid-column: 1 / -1;
    }
}

.decoration-v2-active-title {
    color: rgba(255, 255, 255, .58);
    font-size: .66rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .38rem;
}

.decoration-v2-active-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
}

.decoration-v2-active-empty {
    color: rgba(255, 255, 255, .42);
    font-size: .74rem;
}

.decoration-v2-remove {
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    color: #fff;
    border-radius: 8px;
    padding: .28rem .55rem;
    font-size: .66rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* Keep dashboard topbar readable on narrow phones */
@media (max-width: 700px) {
    .dashboard-topbar .navbar-left {
        gap: .48rem !important;
        min-width: 0;
        flex: 1 1 auto;
    }

    .dashboard-topbar .navbar-brand-mobile {
        display: none !important;
    }

    .dashboard-topbar .dashboard-navbar-actions {
        gap: .45rem !important;
        flex-shrink: 0;
    }

    .dashboard-topbar .navbar-tokens {
        display: none !important;
    }

    .dashboard-topbar .navbar-user-info {
        display: none !important;
    }

    .dashboard-topbar .navbar-user-card {
        padding: .35rem !important;
    }
}

@media (max-width: 420px) {
    .dashboard-topbar .navbar-left > span {
        display: none;
    }
}

/* Legacy dashboard mobile navbar fix */
@media (max-width: 700px) {
    body.dashboard-page .navbar {
        padding: .48rem .62rem !important;
        min-height: 60px;
    }

    body.dashboard-page .navbar-left {
        gap: .45rem !important;
        min-width: 0;
        flex: 1;
    }

    body.dashboard-page .sidebar-toggle {
        display: inline-flex !important;
        flex-shrink: 0;
    }

    body.dashboard-page .navbar-brand-mobile {
        display: block !important;
        font-size: clamp(9px, 2.6vw, 11px) !important;
        font-family: "Syne", sans-serif !important;
        font-weight: 800 !important;
        letter-spacing: 0.04em !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        flex-shrink: 0;
        text-decoration: none !important;
        color: #f5f7ff !important;
        line-height: 1 !important;
    }

    body.dashboard-page .navbar-tokens,
    body.dashboard-page .navbar-user-info {
        display: none !important;
    }

    body.dashboard-page .dashboard-navbar-actions {
        gap: .45rem !important;
    }

    body.dashboard-page .navbar-user-card {
        padding: .3rem !important;
    }

    body.dashboard-page .navbar-user-avatar {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 991px) {
    body.dashboard-page .sidebar {
        display: flex !important;
        position: fixed;
        top: 64px;
        bottom: 0;
        left: 0;
        width: 268px;
        z-index: 650;
        transform: translateX(-278px);
    }

    body.dashboard-page .sidebar.sidebar-open {
        transform: translateX(0) !important;
    }

    body.dashboard-page .sidebar-overlay {
        display: none !important;
        position: fixed;
        inset: 0;
        z-index: 640;
    }

    body.dashboard-page .sidebar-overlay.active {
        display: block !important;
    }

    body.dashboard-page .sidebar-toggle {
        display: inline-flex !important;
    }
}