      /* ══ RESET ══ */
      * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      :root {
        --bg: #0d1117;
        --bg2: #161b27;
        --bg3: #1e2535;
        --bg4: #252d40;
        --border: #2a3347;
        --border2: #334155;
        --text: #e2e8f0;
        --text2: #94a3b8;
        --text3: #4b5563;
        --brand: #3b82f6;
        --brand-d: #2563eb;
        --brand-glow: rgba(59, 130, 246, 0.2);
        --green: #22c55e;
        --red: #ef4444;
        --purple: #8b5cf6;
        --shopee: #ee4d2d;
        --tiktok: #69c9d0;
        --r: 10px;
        --sidebar: 230px;
      }
      html[data-theme="light"] {
        color-scheme: light;
        --bg: #f4f7fb;
        --bg2: #ffffff;
        --bg3: #eef2f8;
        --bg4: #e2e8f0;
        --border: #d6deea;
        --border2: #c8d3e4;
        --text: #0f172a;
        --text2: #475569;
        --text3: #94a3b8;
        --brand-glow: rgba(37, 99, 235, 0.12);
      }
      html,
      body {
        height: 100%;
        font-family:
          -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
        background: var(--bg);
        color: var(--text);
        font-size: 14px;
      }
      html {
        scroll-behavior: smooth;
      }
      a {
        text-decoration: none;
        color: inherit;
      }
      button {
        cursor: pointer;
        font-family: inherit;
      }
      input,
      select,
      textarea {
        font-family: inherit;
      }
      ::-webkit-scrollbar {
        width: 5px;
      }
      ::-webkit-scrollbar-track {
        background: var(--bg2);
      }
      ::-webkit-scrollbar-thumb {
        background: var(--border2);
        border-radius: 3px;
      }

      /* ══ AUTH SCREEN ══ */
      #authScreen {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        min-height: 100vh;
        overflow: visible;
        background: var(--bg);
        padding: 24px 20px 40px;
      }
      .auth-wrap {
        width: 100%;
        max-width: 420px;
      }
      .auth-logo {
        text-align: center;
        margin-bottom: 32px;
      }
      .auth-logo .al-icon {
        width: 52px;
        height: 52px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        border-radius: 14px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        margin-bottom: 10px;
      }
      .auth-logo h1 {
        font-size: 22px;
        font-weight: 800;
      }
      .auth-logo h1 span {
        color: var(--brand);
      }
      .auth-logo p {
        color: var(--text2);
        font-size: 13px;
        margin-top: 4px;
      }
      .auth-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 28px;
      }
      .auth-tabs {
        display: flex;
        background: var(--bg3);
        border-radius: 8px;
        padding: 3px;
        margin-bottom: 24px;
        gap: 3px;
      }
      .auth-tab {
        flex: 1;
        padding: 8px;
        border: none;
        border-radius: 6px;
        background: transparent;
        color: var(--text2);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.2s;
      }
      .auth-tab.active {
        background: var(--bg4);
        color: var(--text);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
      }
      .auth-field {
        margin-bottom: 14px;
      }
      .auth-label {
        font-size: 11px;
        font-weight: 700;
        color: var(--text2);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 5px;
      }
      .auth-input {
        width: 100%;
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 8px;
        padding: 10px 13px;
        color: var(--text);
        font-size: 14px;
        outline: none;
        transition: 0.2s;
      }
      .auth-input:focus {
        border-color: var(--brand);
        background: var(--bg4);
      }
      .auth-input::placeholder {
        color: var(--text3);
      }
      .btn-auth {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, var(--brand), var(--brand-d));
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        margin-top: 6px;
        transition: 0.15s;
      }
      .btn-auth:hover {
        opacity: 0.9;
        transform: translateY(-1px);
      }
      .btn-auth:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }
      .auth-err {
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.25);
        border-radius: 7px;
        padding: 9px 12px;
        color: #fca5a5;
        font-size: 13px;
        margin-bottom: 12px;
        display: none;
      }
      .auth-err.show {
        display: block;
      }
      .auth-divider {
        text-align: center;
        margin: 16px 0;
        position: relative;
      }
      .auth-divider::before,
      .auth-divider::after {
        content: "";
        position: absolute;
        top: 50%;
        width: 38%;
        height: 1px;
        background: var(--border);
      }
      .auth-divider::before {
        left: 0;
      }
      .auth-divider::after {
        right: 0;
      }
      .auth-divider span {
        font-size: 12px;
        color: var(--text3);
        background: var(--bg2);
        padding: 0 8px;
      }
      .btn-guest {
        width: 100%;
        padding: 10px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text2);
        font-size: 13px;
        font-weight: 600;
        transition: 0.15s;
      }
      .btn-guest:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .auth-shell {
        width: min(1180px, 100%);
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
        gap: 22px;
        align-items: start;
        margin: 0 auto;
      }
      .auth-hero-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 22px;
        flex-wrap: wrap;
      }
      .auth-brand {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .auth-brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 18px;
        font-weight: 900;
        flex-shrink: 0;
      }
      .auth-brand-text b {
        display: block;
        font-size: 15px;
        font-weight: 900;
      }
      .auth-brand-text span {
        display: block;
        color: var(--text2);
        font-size: 11px;
        margin-top: 2px;
      }
      .auth-nav {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .auth-nav a {
        padding: 8px 11px;
        border-radius: 999px;
        color: var(--text2);
        border: 1px solid transparent;
        font-size: 12px;
        font-weight: 700;
        transition: 0.15s;
      }
      .auth-nav a:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.03);
        border-color: var(--border);
      }
      .auth-nav .fill {
        background: var(--brand);
        color: #fff;
        border-color: var(--brand);
      }
      .auth-nav .fill:hover {
        background: var(--brand-d);
      }
      .auth-hero {
        position: relative;
        overflow: hidden;
        background:
          radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.18), transparent 28%),
          radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.18), transparent 22%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
        border: 1px solid var(--border);
        border-radius: 28px;
        padding: 28px;
        min-height: 100%;
        box-shadow: 0 18px 60px rgba(0, 0, 0, 0.2);
      }
      .auth-hero-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
        gap: 16px;
        align-items: start;
      }
      .auth-hero::after {
        content: "";
        position: absolute;
        inset: auto -12% -20% auto;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.18), transparent 65%);
        filter: blur(4px);
        pointer-events: none;
      }
      .auth-hero-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 18px;
      }
      .auth-kicker {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 7px 12px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        border: 1px solid rgba(59, 130, 246, 0.2);
        color: var(--brand);
        font-weight: 700;
        font-size: 12px;
      }
      .auth-hero h1,
      .auth-hero h2 {
        font-size: clamp(30px, 4vw, 54px);
        line-height: 1.02;
        letter-spacing: -0.04em;
        margin: 18px 0 14px;
        max-width: 12ch;
      }
      .auth-hero p {
        color: var(--text2);
        font-size: 15px;
        line-height: 1.7;
        max-width: 58ch;
      }
      .auth-hero-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 18px;
      }
      .auth-hero-action {
        padding: 10px 15px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
      }
      .auth-hero-action.primary {
        background: linear-gradient(135deg, var(--brand), var(--brand-d));
        border-color: transparent;
        color: #fff;
      }
      .auth-hero-action:hover {
        transform: translateY(-1px);
      }
      .auth-surface {
        position: relative;
        margin-top: 18px;
        border-radius: 24px;
        border: 1px solid var(--border);
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
          rgba(7, 11, 20, 0.8);
        padding: 16px;
      }
      .auth-surface-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }
      .auth-surface-title {
        font-size: 14px;
        font-weight: 800;
      }
      .auth-surface-sub {
        color: var(--text2);
        font-size: 12px;
        margin-top: 2px;
      }
      .auth-surface-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }
      .auth-surface-card {
        border-radius: 18px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.035);
        padding: 12px;
      }
      .auth-surface-card .n {
        display: block;
        font-size: 19px;
        font-weight: 900;
        color: #fff;
      }
      .auth-surface-card .l {
        display: block;
        margin-top: 4px;
        color: var(--text2);
        font-size: 12px;
        line-height: 1.4;
      }
      .auth-surface-preview {
        margin-top: 12px;
        border-radius: 18px;
        border: 1px solid var(--border);
        overflow: hidden;
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(255, 255, 255, 0.03));
      }
      .auth-surface-preview .row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 13px 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
      }
      .auth-surface-preview .row:first-child {
        border-top: none;
      }
      .auth-surface-preview .row b {
        display: block;
        font-size: 13px;
        margin-bottom: 2px;
      }
      .auth-surface-preview .row span {
        color: var(--text2);
        font-size: 12px;
      }
      .auth-feature-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-top: 22px;
      }
      .auth-feature {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
      }
      .auth-feature b {
        display: block;
        margin-bottom: 6px;
        font-size: 13px;
      }
      .auth-feature span {
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
      }
      .auth-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 22px;
      }
      .auth-stat {
        border-radius: 18px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
      }
      .auth-stat .n {
        display: block;
        font-size: 22px;
        font-weight: 900;
        margin-bottom: 4px;
      }
      .auth-stat .l {
        color: var(--text2);
        font-size: 12px;
      }
      .auth-wrap {
        width: 100%;
        max-width: 420px;
        margin-left: auto;
        position: sticky;
        top: 24px;
      }
      .auth-story {
        display: grid;
        gap: 14px;
        margin-top: 18px;
      }
      .auth-story-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .auth-story-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
      }
      .auth-story-card b {
        display: block;
        font-size: 14px;
        margin-bottom: 6px;
      }
      .auth-story-card span {
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
      }
      .auth-track {
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .auth-track span {
        padding: 7px 11px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text2);
        font-size: 12px;
      }
      .auth-card {
        backdrop-filter: blur(16px);
      }
      .theme-toggle {
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text);
        border-radius: 999px;
        width: 38px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: 0.15s;
        flex-shrink: 0;
      }
      .theme-toggle:hover {
        background: var(--bg4);
      }
      .theme-toggle svg {
        width: 17px;
        height: 17px;
      }
      .tb-theme {
        width: 38px;
        height: 38px;
      }
      .auth-theme {
        position: absolute;
        top: 18px;
        right: 18px;
      }
      .auth-feel {
        margin-top: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }
      .auth-feel span {
        padding: 7px 11px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text2);
        font-size: 12px;
      }

      /* ══ APP LAYOUT ══ */
      #appScreen {
        display: none;
        height: 100vh;
        overflow: hidden;
        flex-direction: column;
      }
      #appScreen.show {
        display: flex;
      }
      .topbar {
        height: 54px;
        background: var(--bg2);
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 16px;
        flex-shrink: 0;
      }
      .tb-logo {
        font-size: 16px;
        font-weight: 800;
        color: var(--text);
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 7px;
      }
      .tb-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .tb-logo .li {
        width: 28px;
        height: 28px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        flex-shrink: 0;
      }
      .tb-logo span {
        color: var(--brand);
      }
      .tb-search {
        flex: 1;
        max-width: 320px;
        position: relative;
        margin: 0 12px;
      }
      .tb-search input {
        width: 100%;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 7px;
        padding: 6px 35px 6px 12px;
        color: var(--text);
        font-size: 13px;
        outline: none;
        transition: 0.2s;
      }
      .tb-search input:focus {
        border-color: var(--brand);
      }
      .tb-search input::placeholder {
        color: var(--text3);
      }
      .tb-search .kbd2 {
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        background: var(--bg4);
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 1px 5px;
        font-size: 10px;
        color: var(--text3);
      }
      .tb-right {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .tb-lang-switch {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 3px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--bg3);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
      }
      .tb-lang-btn {
        min-width: 40px;
        height: 30px;
        padding: 0 12px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--text2);
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.04em;
        transition: 0.15s;
      }
      .tb-lang-btn:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.05);
      }
      .tb-lang-btn.active {
        background: linear-gradient(135deg, var(--brand), var(--brand-d));
        color: #fff;
        box-shadow: 0 10px 18px rgba(37, 99, 235, 0.26);
      }
      .tb-plan-badge {
        font-size: 11px;
        font-weight: 700;
        padding: 3px 9px;
        border-radius: 20px;
      }
      .tb-plan-badge.free {
        background: rgba(100, 116, 139, 0.15);
        color: var(--text2);
      }
      .tb-plan-badge.pro {
        background: rgba(59, 130, 246, 0.15);
        color: var(--brand);
      }
      .tb-plan-badge.business {
        background: rgba(139, 92, 246, 0.15);
        color: var(--purple);
      }
      .tb-user {
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 4px 10px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
        transition: 0.15s;
      }
      .tb-user:hover {
        background: var(--bg4);
      }
      .tb-avatar {
        width: 26px;
        height: 26px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 700;
        color: #fff;
        overflow: hidden;
      }
      .tb-avatar.has-image {
        background: rgba(148, 163, 184, 0.18);
        color: transparent;
      }
      .tb-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      .tb-uname {
        font-size: 13px;
        font-weight: 600;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .tb-bell {
        position: relative;
        width: 38px;
        height: 38px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: 0.15s;
        flex-shrink: 0;
      }
      .tb-bell:hover,
      .tb-bell.is-open {
        background: var(--bg4);
      }
      .tb-bell svg {
        width: 18px;
        height: 18px;
      }
      .tb-bell span {
        position: absolute;
        top: -4px;
        right: -2px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        background: linear-gradient(135deg, #fb7185, #ef4444);
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
      }
      .tb-bell span[hidden] {
        display: none !important;
      }
      .notification-popup {
        position: absolute;
        right: 70px;
        top: 58px;
        width: min(360px, calc(100vw - 24px));
        background: var(--bg3);
        border: 1px solid var(--border2);
        border-radius: 18px;
        z-index: 210;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
        display: none;
        overflow: hidden;
      }
      .notification-popup.show {
        display: block;
      }
      .notification-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 16px 12px;
        border-bottom: 1px solid var(--border);
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
      }
      .notification-title {
        font-size: 14px;
        font-weight: 800;
        color: var(--text);
      }
      .notification-sub {
        margin-top: 4px;
        font-size: 12px;
        color: var(--text3);
        line-height: 1.45;
      }
      .notification-clear {
        border: 1px solid var(--border);
        background: var(--bg4);
        color: var(--text2);
        border-radius: 999px;
        padding: 7px 10px;
        font-size: 11px;
        font-weight: 700;
        white-space: nowrap;
      }
      .notification-list {
        max-height: min(420px, calc(100vh - 160px));
        overflow-y: auto;
        padding: 10px;
      }
      .notification-empty {
        padding: 20px 12px;
        border: 1px dashed var(--border);
        border-radius: 14px;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.6;
        text-align: center;
      }
      .notification-item {
        width: 100%;
        border: 1px solid var(--border);
        background: var(--bg2);
        border-radius: 14px;
        padding: 12px 13px;
        text-align: left;
        color: inherit;
        display: grid;
        grid-template-columns: 36px 1fr;
        gap: 10px;
        margin-bottom: 10px;
        transition: 0.15s;
      }
      .notification-item:last-child {
        margin-bottom: 0;
      }
      .notification-item:hover {
        border-color: rgba(59, 130, 246, 0.35);
        transform: translateY(-1px);
      }
      .notification-item.unread {
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.03));
      }
      .notification-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
      }
      .notification-icon.warn {
        background: rgba(245, 158, 11, 0.14);
        color: #fbbf24;
      }
      .notification-icon.err {
        background: rgba(239, 68, 68, 0.14);
        color: #fca5a5;
      }
      .notification-icon.ok {
        background: rgba(34, 197, 94, 0.14);
        color: #86efac;
      }
      .notification-icon svg {
        width: 18px;
        height: 18px;
      }
      .notification-copy {
        min-width: 0;
      }
      .notification-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
      }
      .notification-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #38bdf8;
        flex-shrink: 0;
      }
      .notification-msg {
        margin-top: 5px;
        font-size: 12px;
        color: var(--text2);
        line-height: 1.55;
      }
      .notification-time {
        margin-top: 7px;
        font-size: 11px;
        color: var(--text3);
      }
      .user-popup {
        position: absolute;
        right: 16px;
        top: 58px;
        width: min(320px, calc(100vw - 24px));
        background: var(--bg3);
        border: 1px solid var(--border2);
        border-radius: 18px;
        z-index: 200;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
        display: none;
        overflow: hidden;
      }
      .user-popup.show {
        display: block;
      }
      .user-menu-head {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px;
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
      }
      .user-menu-head .tb-avatar {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        font-size: 16px;
      }
      .user-menu-head-copy {
        min-width: 0;
        flex: 1;
      }
      .user-menu-plan {
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.06em;
      }
      .user-popup-tools {
        display: grid;
        gap: 10px;
        padding: 0 12px 12px;
      }
      .user-popup-tool-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--bg2);
      }
      .user-popup-tool-row strong {
        display: block;
        font-size: 13px;
        color: var(--text);
      }
      .user-popup-tool-row span {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        color: var(--text3);
        line-height: 1.5;
      }
      .user-popup-theme,
      .user-popup-lang {
        flex-shrink: 0;
      }
      .user-menu-links {
        display: grid;
        padding: 8px;
        gap: 4px;
      }
      .user-menu-links--secondary {
        padding-top: 6px;
        padding-bottom: 6px;
      }
      .user-tab {
        width: 100%;
        padding: 11px 12px;
        background: transparent;
        border: none;
        color: var(--text2);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.15s;
        border-radius: 12px;
        display: flex;
        align-items: center;
        gap: 10px;
        text-align: left;
      }
      .user-tab:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .user-tab.active {
        background: rgba(59, 130, 246, 0.12);
        color: var(--text);
      }
      .user-menu-icon {
        width: 18px;
        height: 18px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: currentColor;
        flex-shrink: 0;
      }
      .user-menu-icon svg {
        width: 18px;
        height: 18px;
      }
      .user-panels {
        display: none;
        padding: 0 12px 12px;
      }
      .user-panels.has-active {
        display: block;
      }
      .user-popup-divider {
        height: 1px;
        background: var(--border);
        margin: 0 8px;
      }
      .user-popup-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px 12px;
      }
      .billing-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px;
      }
      .billing-plan {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid var(--border);
      }
      .billing-plan:last-child {
        border-bottom: none;
      }
      .billing-plan-label {
        font-size: 12px;
        color: var(--text3);
      }
      .billing-plan-value {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        text-align: right;
      }
      .billing-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
      }
      .billing-note {
        font-size: 12px;
        color: var(--text3);
        line-height: 1.5;
        margin-top: 8px;
      }
      .billing-promo {
        margin-top: 12px;
        padding: 10px 12px;
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 10px;
        background: rgba(59, 130, 246, 0.08);
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
      }
      .user-panel {
        display: none;
      }
      .user-panel.active {
        display: block;
      }
      .user-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 14px;
      }
      .user-card + .user-card {
        margin-top: 10px;
      }
      .user-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 12px;
      }
      .user-meta .tb-avatar {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 18px;
      }
      .user-title {
        font-size: 15px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 2px;
      }
      .user-sub {
        font-size: 12px;
        color: var(--text2);
      }
      .user-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0;
        border-top: 1px solid var(--border);
      }
      .user-row:first-of-type {
        border-top: none;
        padding-top: 0;
      }
      .user-label {
        font-size: 12px;
        color: var(--text3);
      }
      .user-value {
        font-size: 13px;
        color: var(--text);
        font-weight: 600;
        text-align: right;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .user-input {
        width: 100%;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 8px;
        padding: 10px 12px;
        color: var(--text);
        font-size: 13px;
        outline: none;
      }
      .user-input:focus {
        border-color: var(--brand);
      }
      .user-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
      }
      .user-btn {
        flex: 0 0 auto;
        min-width: 104px;
        padding: 8px 12px;
        border: none;
        border-radius: 10px;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.15s;
      }
      .user-btn.primary {
        background: linear-gradient(135deg, var(--brand), var(--brand-d));
        color: #fff;
      }
      .user-btn.secondary {
        background: var(--bg4);
        color: var(--text);
      }
      .user-btn.danger {
        background: rgba(239, 68, 68, 0.1);
        color: #fca5a5;
      }
      .user-btn:hover {
        transform: translateY(-1px);
      }
      .user-note {
        font-size: 12px;
        color: var(--text3);
        margin-top: 8px;
        line-height: 1.5;
      }
      .settings-quick-list {
        display: grid;
        gap: 10px;
        margin-top: 12px;
      }
      .settings-quick-item {
        width: 100%;
        border: 1px solid var(--border);
        background: var(--bg3);
        border-radius: 12px;
        padding: 12px 13px;
        display: grid;
        gap: 4px;
        text-align: left;
        color: inherit;
      }
      .settings-quick-item strong {
        font-size: 13px;
        color: var(--text);
      }
      .settings-quick-item span {
        font-size: 12px;
        color: var(--text3);
        line-height: 1.5;
      }
      .settings-quick-item:hover {
        border-color: rgba(59, 130, 246, 0.3);
        background: linear-gradient(
          180deg,
          rgba(59, 130, 246, 0.08),
          rgba(59, 130, 246, 0.02)
        );
      }
      .user-link {
        color: var(--brand);
        cursor: pointer;
      }
      .payment-plan-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 14px;
      }
      .payment-pill {
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text);
        border-radius: 999px;
        padding: 9px 14px;
        font-size: 12px;
        font-weight: 800;
        transition: 0.15s;
      }
      .payment-pill:hover {
        border-color: rgba(59, 130, 246, 0.32);
        transform: translateY(-1px);
      }
      .payment-pill.active {
        background: linear-gradient(135deg, var(--brand), var(--brand-d));
        border-color: transparent;
        color: #fff;
        box-shadow: 0 16px 26px rgba(37, 99, 235, 0.24);
      }
      .modal-payment {
        width: min(920px, calc(100vw - 26px));
      }
      .payment-modal-body {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
        gap: 18px;
      }
      .payment-modal-copy,
      .payment-qr-panel {
        display: grid;
        gap: 14px;
        align-content: start;
      }
      .payment-summary-card,
      .payment-qr-panel {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 16px;
      }
      .payment-summary-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 0;
        border-bottom: 1px solid var(--border);
        font-size: 13px;
      }
      .payment-summary-row:last-child {
        padding-bottom: 0;
        border-bottom: none;
      }
      .payment-summary-row span {
        color: var(--text3);
      }
      .payment-summary-row strong {
        color: var(--text);
        text-align: right;
        word-break: break-word;
      }
      .payment-bank-meta {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
      }
      .payment-bank-meta div {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 12px 13px;
        display: grid;
        gap: 6px;
      }
      .payment-bank-meta span {
        font-size: 11px;
        font-weight: 700;
        color: var(--text3);
        text-transform: uppercase;
        letter-spacing: 0.04em;
      }
      .payment-bank-meta b {
        font-size: 13px;
        color: var(--text);
        line-height: 1.5;
        word-break: normal;
        overflow-wrap: normal;
      }
      .payment-bank-meta div:nth-child(2) b {
        word-break: break-word;
        overflow-wrap: anywhere;
      }
      .payment-qr-panel {
        justify-items: center;
        background:
          radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 56%),
          var(--bg2);
      }
      .payment-qr-box {
        width: min(100%, 268px);
        aspect-ratio: 1;
        background: #fff;
        border-radius: 20px;
        border: 1px solid rgba(148, 163, 184, 0.16);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
      }
      .payment-qr-box canvas,
      .payment-qr-box img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
      }
      .payment-qr-empty {
        padding: 18px;
        font-size: 12px;
        line-height: 1.6;
        text-align: center;
        color: #475569;
      }
      .payment-note {
        font-size: 12px;
        line-height: 1.6;
        color: var(--text3);
      }
      .payment-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 118px;
        padding: 6px 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border: 1px solid transparent;
      }
      .payment-status.awaiting_payment {
        color: #f59e0b;
        background: rgba(245, 158, 11, 0.12);
        border-color: rgba(245, 158, 11, 0.2);
      }
      .payment-status.submitted {
        color: var(--brand);
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.2);
      }
      .payment-status.approved {
        color: #22c55e;
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(34, 197, 94, 0.22);
      }
      .payment-status.rejected {
        color: #ef4444;
        background: rgba(239, 68, 68, 0.12);
        border-color: rgba(239, 68, 68, 0.22);
      }

      /* ══ BODY BELOW TOPBAR ══ */
      .account-shell {
        display: grid;
        gap: 18px;
      }
      .account-hero,
      .account-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 20px;
        padding: 18px;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
      }
      .account-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        background:
          radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 34%),
          linear-gradient(180deg, rgba(59, 130, 246, 0.06), transparent 72%),
          var(--bg2);
      }
      .account-hero-main {
        display: flex;
        align-items: center;
        gap: 16px;
        min-width: 0;
      }
      .account-avatar-stack {
        position: relative;
        flex-shrink: 0;
      }
      .account-avatar {
        width: 52px;
        height: 52px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        font-weight: 800;
        overflow: hidden;
        flex-shrink: 0;
      }
      .account-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
      .account-avatar--xl {
        width: 72px;
        height: 72px;
        border-radius: 24px;
        font-size: 26px;
      }
      .account-avatar--preview {
        width: 88px;
        height: 88px;
        border-radius: 28px;
        font-size: 30px;
      }
      .account-avatar-badge {
        position: absolute;
        left: 50%;
        bottom: -10px;
        transform: translateX(-50%);
        min-width: 62px;
        padding: 6px 12px;
        border-radius: 999px;
        border: 1px solid rgba(59, 130, 246, 0.24);
        background:
          linear-gradient(135deg, rgba(37, 99, 235, 0.96), rgba(29, 78, 216, 0.88)),
          rgba(59, 130, 246, 0.18);
        color: #eff6ff;
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        text-align: center;
        box-shadow:
          0 12px 26px rgba(37, 99, 235, 0.22),
          0 3px 10px rgba(15, 23, 42, 0.14);
        backdrop-filter: blur(10px);
      }
      .account-avatar-badge.is-pro {
        background: linear-gradient(135deg, rgba(34, 197, 94, 0.96), rgba(22, 163, 74, 0.88));
        border-color: rgba(34, 197, 94, 0.3);
        box-shadow:
          0 12px 26px rgba(34, 197, 94, 0.18),
          0 3px 10px rgba(15, 23, 42, 0.14);
      }
      .account-avatar-badge.is-business {
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.96), rgba(109, 40, 217, 0.88));
        border-color: rgba(139, 92, 246, 0.32);
        box-shadow:
          0 12px 26px rgba(139, 92, 246, 0.2),
          0 3px 10px rgba(15, 23, 42, 0.14);
      }
      .account-avatar-badge.is-free,
      .account-avatar-badge.is-guest {
        background: linear-gradient(135deg, rgba(51, 65, 85, 0.96), rgba(30, 41, 59, 0.88));
        border-color: rgba(148, 163, 184, 0.22);
        color: #e2e8f0;
        box-shadow:
          0 12px 26px rgba(30, 41, 59, 0.18),
          0 3px 10px rgba(15, 23, 42, 0.14);
      }
      .account-kicker {
        font-size: 11px;
        font-weight: 800;
        color: var(--brand);
        text-transform: uppercase;
        letter-spacing: 0.08em;
      }
      .account-hero-copy h2 {
        margin: 6px 0 0;
        font-size: 28px;
        line-height: 1.06;
      }
      .account-hero-email {
        display: inline-flex;
        align-items: center;
        max-width: 100%;
        margin-top: 12px;
        padding: 8px 12px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.08);
        border: 1px solid rgba(59, 130, 246, 0.16);
        color: var(--text2);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.35;
        word-break: break-word;
      }
      .account-hero-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 10px;
      }
      .account-hero-meta span,
      .account-status-chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        border: 1px solid rgba(59, 130, 246, 0.18);
        color: var(--text2);
        font-size: 12px;
        font-weight: 700;
      }
      .account-status-chip.warn {
        background: rgba(245, 158, 11, 0.12);
        border-color: rgba(245, 158, 11, 0.22);
        color: #f59e0b;
      }
      .account-status-chip.ok {
        background: rgba(34, 197, 94, 0.12);
        border-color: rgba(34, 197, 94, 0.2);
        color: #22c55e;
      }
      .account-hero-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      .account-section-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 18px;
      }
      .account-section-chip {
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text2);
        border-radius: 999px;
        padding: 9px 14px;
        font-size: 12px;
        font-weight: 800;
        transition: 0.15s;
      }
      .account-section-chip:hover {
        color: var(--text);
        border-color: rgba(59, 130, 246, 0.3);
        background: rgba(59, 130, 246, 0.08);
      }
      .account-section-chip.danger {
        border-color: rgba(239, 68, 68, 0.24);
        color: #fca5a5;
        background: rgba(239, 68, 68, 0.08);
      }
      .account-stack {
        display: grid;
        gap: 18px;
      }
      .account-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
        gap: 18px;
      }
      .account-grid--equal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .account-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
      }
      .account-card-head h3 {
        margin: 0;
        font-size: 18px;
      }
      .account-card-head p {
        margin: 6px 0 0;
        color: var(--text3);
        font-size: 13px;
        line-height: 1.55;
      }
      .account-profile-grid {
        display: grid;
        grid-template-columns: 210px minmax(0, 1fr);
        gap: 16px;
      }
      .account-profile-preview {
        border: 1px dashed var(--border2);
        border-radius: 18px;
        padding: 18px;
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), transparent);
        display: grid;
        justify-items: center;
        align-content: start;
        text-align: center;
        gap: 10px;
      }
      .account-profile-preview-copy {
        display: grid;
        gap: 5px;
      }
      .account-profile-preview-copy strong {
        font-size: 16px;
        color: var(--text);
      }
      .account-profile-preview-copy span {
        font-size: 12px;
        color: var(--text3);
        word-break: break-word;
      }
      .account-profile-fields {
        display: grid;
        gap: 12px;
      }
      .account-billing-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 14px;
      }
      .account-billing-stat {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px;
        background: var(--bg3);
        display: grid;
        gap: 6px;
      }
      .account-billing-stat span {
        font-size: 12px;
        color: var(--text3);
      }
      .account-billing-stat strong {
        font-size: 18px;
        color: var(--text);
      }
      .account-inline-actions,
      .account-secret-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
      }
      .account-inline-actions--triple {
        grid-template-columns: minmax(0, 1fr) auto auto;
      }
      .account-inline-status {
        min-width: 96px;
        padding: 8px 10px;
        border-radius: 10px;
        background: var(--bg4);
        color: var(--text3);
        font-size: 11px;
        font-weight: 700;
        text-align: center;
      }
      .account-inline-status.ok {
        background: rgba(34, 197, 94, 0.12);
        color: #4ade80;
      }
      .account-inline-status.err {
        background: rgba(239, 68, 68, 0.12);
        color: #fca5a5;
      }
      .account-inline-status.warn {
        background: rgba(245, 158, 11, 0.12);
        color: #fbbf24;
      }
      .account-upload-btn,
      .account-copy-btn,
      .account-refresh-btn {
        min-width: auto;
        flex: 0 0 auto;
      }
      .account-actions,
      .account-security-actions {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        margin-top: 14px;
      }
      .account-note {
        margin-top: 10px;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.55;
      }
      .account-note.ok {
        color: #86efac;
      }
      .account-note.err {
        color: #fca5a5;
      }
      .account-note.warn {
        color: #fcd34d;
      }
      .account-security-block {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px;
        background: rgba(59, 130, 246, 0.05);
        color: var(--text2);
        font-size: 13px;
        line-height: 1.6;
      }
      .account-security-block--danger {
        border-color: rgba(239, 68, 68, 0.22);
        background: rgba(239, 68, 68, 0.08);
        color: #fecaca;
      }
      .account-security-setup {
        margin-top: 14px;
      }
      .account-qr-wrap {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 16px;
        align-items: start;
      }
      .account-qr-box {
        min-height: 180px;
        border-radius: 18px;
        border: 1px solid var(--border);
        background: var(--bg3);
        display: grid;
        place-items: center;
        overflow: hidden;
      }
      .account-qr-box canvas,
      .account-qr-box img {
        max-width: 100%;
        height: auto;
      }
      .account-qr-copy {
        display: grid;
        gap: 10px;
      }
      .account-verify-row {
        margin-top: 14px;
        display: grid;
        grid-template-columns: 190px minmax(0, 1fr) 170px;
        gap: 12px;
        align-items: center;
      }
      .account-verify-label {
        margin: 0;
        align-self: center;
      }
      .account-verify-row .fi {
        min-height: 44px;
      }
      .account-verify-row .user-btn {
        min-height: 44px;
        align-self: center;
      }
      .account-device-list {
        display: grid;
        gap: 12px;
        margin-top: 12px;
      }
      .account-table-wrap {
        margin-top: 16px;
        overflow-x: auto;
      }
      .account-table {
        width: 100%;
        border-collapse: collapse;
      }
      .account-table th,
      .account-table td {
        padding: 12px 14px;
        border-bottom: 1px solid var(--border);
        text-align: left;
        font-size: 13px;
      }
      .account-table th {
        color: var(--text2);
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
      }
      .account-table td {
        color: var(--text);
      }
      .support-admin-grid {
        display: grid;
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
      }
      .support-fab {
        position: fixed;
        right: 22px;
        bottom: 22px;
        width: 64px;
        height: 64px;
        border: none;
        border-radius: 999px;
        background: linear-gradient(
          135deg,
          var(--brand),
          var(--brand-d)
        );
        color: #fff;
        display: grid;
        place-items: center;
        overflow: visible;
        box-shadow:
          0 18px 40px rgba(59, 130, 246, 0.34),
          0 10px 20px rgba(15, 23, 42, 0.24);
        z-index: 220;
        transition:
          transform 0.18s ease,
          box-shadow 0.18s ease,
          opacity 0.18s ease;
      }
      .support-fab[hidden],
      .support-widget[hidden] {
        display: none !important;
      }
      .support-fab:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow:
          0 22px 46px rgba(59, 130, 246, 0.38),
          0 12px 24px rgba(15, 23, 42, 0.26);
      }
      .support-fab::before {
        content: "";
        position: absolute;
        inset: 6px;
        border-radius: 999px;
        background:
          radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.35), transparent 34%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0));
        opacity: 0.95;
        pointer-events: none;
      }
      .support-fab-core {
        position: relative;
        width: 46px;
        height: 46px;
        border-radius: 999px;
        display: grid;
        place-items: center;
        background: rgba(255, 255, 255, 0.16);
        border: 1px solid rgba(255, 255, 255, 0.24);
        backdrop-filter: blur(12px);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
        z-index: 1;
      }
      .support-fab svg {
        width: 24px;
        height: 24px;
      }
      .support-fab-dot {
        position: absolute;
        top: 7px;
        right: 8px;
        width: 11px;
        height: 11px;
        border-radius: 999px;
        background: #ef4444;
        box-shadow:
          0 0 0 4px rgba(239, 68, 68, 0.18),
          0 0 18px rgba(239, 68, 68, 0.5);
        z-index: 3;
      }
      .support-fab.has-unread .support-fab-dot {
        animation: supportPulse 1.6s ease-in-out infinite;
      }
      .support-fab-badge {
        position: absolute;
        top: -2px;
        right: -2px;
        min-width: 22px;
        height: 22px;
        padding: 0 6px;
        border-radius: 999px;
        background: #ef4444;
        color: #fff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 800;
        border: 2px solid rgba(15, 23, 42, 0.6);
        z-index: 4;
      }
      @keyframes supportPulse {
        0%,
        100% {
          transform: scale(1);
          box-shadow:
            0 0 0 4px rgba(239, 68, 68, 0.18),
            0 0 18px rgba(239, 68, 68, 0.42);
        }
        50% {
          transform: scale(1.16);
          box-shadow:
            0 0 0 7px rgba(239, 68, 68, 0.1),
            0 0 24px rgba(239, 68, 68, 0.56);
        }
      }
      .support-widget {
        position: fixed;
        right: 22px;
        bottom: 98px;
        width: min(392px, calc(100vw - 24px));
        border: 1px solid var(--border);
        border-radius: 24px;
        background:
          linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.94)),
          var(--bg2);
        box-shadow:
          0 26px 70px rgba(2, 6, 23, 0.42),
          0 12px 28px rgba(15, 23, 42, 0.22);
        overflow: hidden;
        z-index: 220;
        opacity: 0;
        transform: translateY(12px) scale(0.98);
        pointer-events: none;
        transition:
          opacity 0.18s ease,
          transform 0.18s ease;
      }
      .support-widget.show {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
      }
      html[data-theme="light"] .support-widget {
        background:
          linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.98),
            rgba(244, 247, 252, 0.96)
          ),
          var(--bg2);
      }
      .support-widget-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        padding: 18px 18px 14px;
        background: linear-gradient(
          180deg,
          rgba(59, 130, 246, 0.18),
          rgba(59, 130, 246, 0.08)
        );
        border-bottom: 1px solid rgba(148, 163, 184, 0.16);
      }
      .support-widget-head strong {
        display: block;
        font-size: 15px;
        color: var(--text);
      }
      .support-widget-head span {
        display: block;
        margin-top: 4px;
        font-size: 12px;
        color: var(--text3);
        line-height: 1.55;
      }
      .support-widget-close {
        width: 34px;
        height: 34px;
        border: 1px solid var(--border);
        border-radius: 999px;
        background: var(--bg3);
        color: var(--text2);
        display: grid;
        place-items: center;
        flex: 0 0 auto;
      }
      .support-widget-body {
        padding: 14px;
        display: grid;
        gap: 12px;
      }
      .support-thread-list,
      .support-timeline,
      .support-admin-panel-head {
        border: 1px solid var(--border);
        border-radius: 18px;
        background: var(--bg3);
      }
      .support-thread-list {
        min-height: 520px;
        max-height: 620px;
        overflow: auto;
        padding: 8px;
        display: grid;
        align-content: start;
        gap: 8px;
      }
      .support-thread-item {
        border: 1px solid transparent;
        border-radius: 14px;
        background: transparent;
        color: inherit;
        padding: 12px;
        text-align: left;
        display: grid;
        gap: 8px;
        transition:
          background 0.16s ease,
          border-color 0.16s ease,
          transform 0.16s ease;
      }
      .support-thread-item:hover {
        background: var(--bg4);
        border-color: var(--border2);
        transform: translateY(-1px);
      }
      .support-thread-item.active {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.22);
      }
      .support-thread-top,
      .support-thread-meta,
      .support-compose-actions,
      .support-bubble-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }
      .support-thread-name {
        font-size: 14px;
        font-weight: 800;
        color: var(--text);
      }
      .support-thread-email,
      .support-thread-preview,
      .support-thread-time,
      .support-compose-note {
        font-size: 12px;
        color: var(--text3);
      }
      .support-thread-preview {
        line-height: 1.55;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        word-break: break-word;
      }
      .support-thread-badge {
        min-width: 22px;
        height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(249, 115, 22, 0.18);
        color: #fdba74;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        font-weight: 800;
      }
      .support-admin-panel {
        display: grid;
        gap: 12px;
      }
      .support-admin-panel-head {
        padding: 14px 16px;
        font-size: 13px;
        color: var(--text2);
        line-height: 1.6;
      }
      .support-timeline {
        min-height: 320px;
        max-height: 360px;
        overflow: auto;
        padding: 16px;
        display: grid;
        align-content: start;
        gap: 12px;
      }
      .support-timeline--admin {
        min-height: 380px;
      }
      .support-bubble {
        max-width: min(82%, 560px);
        padding: 12px 14px;
        border-radius: 18px;
        background: var(--bg4);
        border: 1px solid var(--border);
        color: var(--text);
        display: grid;
        gap: 8px;
        justify-self: start;
      }
      .support-bubble.own {
        justify-self: end;
        background: linear-gradient(
          180deg,
          rgba(59, 130, 246, 0.16),
          rgba(59, 130, 246, 0.08)
        );
        border-color: rgba(59, 130, 246, 0.2);
      }
      .support-bubble-meta strong {
        font-size: 12px;
        color: var(--text);
      }
      .support-bubble-meta span {
        font-size: 11px;
        color: var(--text3);
      }
      .support-bubble-body {
        font-size: 13px;
        line-height: 1.65;
        white-space: normal;
        word-break: break-word;
      }
      .support-empty {
        min-height: 140px;
        display: grid;
        place-items: center;
        text-align: center;
        color: var(--text3);
        font-size: 13px;
        line-height: 1.6;
        padding: 18px;
      }
      .support-compose {
        display: grid;
        gap: 10px;
      }
      .support-textarea {
        min-height: 112px;
        resize: vertical;
      }
      .account-device-card,
      .account-device-empty {
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 14px;
        background: var(--bg3);
      }
      .account-device-empty {
        color: var(--text3);
        text-align: center;
      }
      @media (max-width: 980px) {
        .account-billing-grid,
        .account-grid--equal,
        .support-admin-grid {
          grid-template-columns: 1fr;
        }
      }
      @media (max-width: 640px) {
        .user-popup-tool-row {
          align-items: center;
          flex-direction: row;
          padding: 10px 12px;
          border-radius: 12px;
        }
        .user-popup-tools {
          gap: 8px;
          padding: 0 12px 10px;
        }
        .user-popup-tool-row span {
          display: none;
        }
        .user-popup-tool-row strong {
          font-size: 12px;
        }
        .user-popup-theme {
          width: 42px;
          height: 42px;
        }
        .user-popup-lang {
          transform: scale(0.94);
          transform-origin: right center;
        }
        .account-inline-actions--triple {
          grid-template-columns: 1fr;
        }
        .account-inline-status {
          width: 100%;
        }
        .support-fab {
          right: 14px;
          bottom: 14px;
          width: 58px;
          height: 58px;
        }
        .support-widget {
          right: 12px;
          left: 12px;
          bottom: 84px;
          width: auto;
          border-radius: 22px;
        }
        .support-bubble {
          max-width: 100%;
        }
        .support-compose-actions,
        .support-thread-top,
        .support-thread-meta,
        .support-bubble-meta {
          align-items: flex-start;
          flex-direction: column;
        }
        .support-thread-list,
        .support-timeline,
        .support-timeline--admin {
          max-height: none;
        }
      }
      .account-device-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
      }
      .account-device-title {
        font-size: 14px;
        font-weight: 800;
        color: var(--text);
      }
      .account-device-sub {
        margin-top: 4px;
        color: var(--text3);
        font-size: 12px;
      }
      .account-device-badge {
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(34, 197, 94, 0.12);
        color: #22c55e;
        font-size: 11px;
        font-weight: 800;
        white-space: nowrap;
      }
      .account-device-meta {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-top: 12px;
      }
      .account-device-meta span {
        display: grid;
        gap: 4px;
        font-size: 12px;
        color: var(--text3);
      }
      .account-device-meta b {
        font-size: 13px;
        color: var(--text);
      }
      .affiliate-preset-shell {
        margin-bottom: 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        background: linear-gradient(
          180deg,
          rgba(59, 130, 246, 0.08),
          rgba(59, 130, 246, 0.03)
        );
        display: grid;
        gap: 12px;
      }
      .affiliate-preset-shell.empty {
        background: var(--bg3);
      }
      .affiliate-preset-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
      }
      .affiliate-preset-head strong {
        display: block;
        color: var(--text);
        font-size: 14px;
      }
      .affiliate-preset-head span {
        display: block;
        margin-top: 4px;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.55;
      }
      .affiliate-preset-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 12px;
      }
      .affiliate-preset-card {
        border: 1px solid rgba(59, 130, 246, 0.14);
        border-radius: 16px;
        padding: 12px;
        background: var(--bg2);
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
        min-height: 182px;
      }
      .affiliate-preset-copy {
        display: grid;
        gap: 5px;
        min-height: 0;
      }
      .affiliate-preset-copy b {
        color: var(--text);
        font-size: 14px;
      }
      .affiliate-preset-copy span {
        display: -webkit-box;
        overflow: hidden;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.55;
        word-break: break-word;
      }
      .affiliate-preset-actions {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .affiliate-preset-status {
        min-width: 112px;
        padding: 8px 10px;
        border-radius: 10px;
        background: var(--bg4);
        color: var(--text3);
        font-size: 11px;
        font-weight: 800;
        text-align: center;
      }
      .affiliate-preset-status.ok {
        background: rgba(34, 197, 94, 0.12);
        color: #4ade80;
      }
      .affiliate-preset-status.err {
        background: rgba(239, 68, 68, 0.12);
        color: #fca5a5;
      }
      .affiliate-preset-status.warn {
        background: rgba(245, 158, 11, 0.12);
        color: #fbbf24;
      }
      .affiliate-preset-empty {
        color: var(--text3);
        font-size: 12px;
        line-height: 1.65;
      }
      .auto-alias-box {
        display: flex;
        align-items: center;
        gap: 8px;
        min-height: 46px;
        padding: 0 12px;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--bg3);
        overflow: hidden;
      }
      .auto-alias-preview {
        flex: 1;
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
        line-height: 1.5;
        word-break: break-word;
      }
      .auto-alias-note {
        margin-top: 8px;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.55;
      }
      .create-ai-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }
      .create-ai-note {
        flex: 1;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.55;
      }
      .create-ai-hint {
        display: none;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--bg4);
        color: var(--text3);
        font-size: 12px;
        line-height: 1.55;
      }
      .create-ai-hint.show {
        display: block;
      }
      .create-ai-hint.ok {
        background: rgba(34, 197, 94, 0.12);
        color: #bbf7d0;
      }
      .create-ai-hint.warn {
        background: rgba(245, 158, 11, 0.12);
        color: #fde68a;
      }
      .create-ai-hint.err {
        background: rgba(239, 68, 68, 0.12);
        color: #fecaca;
      }
      .app-body {
        display: flex;
        flex: 1;
        overflow: hidden;
      }

      /* SIDEBAR */
      .sidebar {
        width: var(--sidebar);
        background: var(--bg2);
        border-right: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        overflow: hidden;
        transition: width 0.25s;
      }
      .sidebar.collapsed {
        width: 0;
      }
      .sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(2, 6, 23, 0.58);
        backdrop-filter: blur(2px);
        z-index: 190;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
      }
      .sidebar-backdrop.show {
        opacity: 1;
        pointer-events: auto;
      }
      .snav {
        flex: 1;
        padding: 10px 8px;
        overflow-y: auto;
      }
      .sgroup {
        font-size: 10px;
        font-weight: 700;
        color: var(--text3);
        text-transform: uppercase;
        letter-spacing: 0.07em;
        padding: 8px 8px 3px;
      }
      .sitem {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 10px;
        border-radius: 7px;
        color: var(--text2);
        cursor: pointer;
        transition: 0.15s;
        margin-bottom: 2px;
        white-space: nowrap;
      }
      .sitem:hover {
        background: var(--bg3);
        color: var(--text);
      }
      .sitem.active {
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
      }
      .sitem svg {
        flex-shrink: 0;
        opacity: 0.7;
      }
      .sitem.active svg {
        opacity: 1;
      }
      .sitem .slabel {
        font-size: 13px;
        font-weight: 500;
      }
      .sitem .sbadge {
        margin-left: auto;
        background: var(--brand);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 1px 6px;
        border-radius: 10px;
        flex-shrink: 0;
      }
      .sfooter {
        padding: 10px 8px;
        border-top: 1px solid var(--border);
      }
      .upgrade-box {
        background: linear-gradient(
          135deg,
          rgba(59, 130, 246, 0.1),
          rgba(139, 92, 246, 0.1)
        );
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: 9px;
        padding: 12px;
      }
      .upgrade-box h4 {
        font-size: 12px;
        font-weight: 700;
        margin-bottom: 3px;
      }
      .upgrade-box p {
        font-size: 11px;
        color: var(--text2);
        margin-bottom: 9px;
        line-height: 1.4;
      }
      .btn-up {
        width: 100%;
        padding: 7px;
        background: var(--brand);
        border: none;
        border-radius: 6px;
        color: #fff;
        font-size: 12px;
        font-weight: 700;
        transition: 0.15s;
      }
      .btn-up:hover {
        background: var(--brand-d);
      }

      /* CONTENT */
      .content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 22px;
        min-width: 0;
      }
      .page {
        display: none;
      }
      .page.active {
        display: block;
      }
      .ph {
        margin-bottom: 20px;
      }
      .ph h1 {
        font-size: 19px;
        font-weight: 800;
        margin-bottom: 3px;
      }
      .ph p {
        font-size: 13px;
        color: var(--text2);
      }

      /* ══ CARDS ══ */
      .card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r);
      }
      .card-p {
        padding: 18px 20px;
      }
      .card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border);
      }
      .card-head h3 {
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 7px;
      }

      /* STATS GRID */
      .sg {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 12px;
        margin-bottom: 18px;
      }
      .sc {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 16px 18px;
      }
      .sc-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8px;
      }
      .sc-lbl {
        font-size: 12px;
        color: var(--text2);
      }
      .sc-icon {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
      }
      .sc-val {
        font-size: 24px;
        font-weight: 800;
      }
      .sc-sub {
        font-size: 11px;
        color: var(--text3);
        margin-top: 1px;
      }

      /* CHART */
      .chart-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 18px;
        margin-bottom: 18px;
      }
      .chart-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 14px;
      }
      .chart-head h3 {
        font-size: 14px;
        font-weight: 700;
      }
      .stats-note {
        font-size: 11px;
        color: var(--text3);
      }
      .chart-filters {
        display: flex;
        gap: 5px;
      }
      .cf {
        padding: 4px 11px;
        border-radius: 6px;
        border: 1px solid var(--border);
        background: transparent;
        color: var(--text2);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.15s;
      }
      .cf.active,
      .cf:hover {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
      }
      .ch-wrap {
        height: 200px;
      }
      .stats-analytics-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
      }
      .stats-analytics-card {
        min-width: 0;
        border: 1px solid var(--border);
        border-radius: 14px;
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
          var(--bg3);
        padding: 14px;
      }
      .stats-card-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
      }
      .stats-card-head h4 {
        font-size: 13px;
        font-weight: 800;
      }
      .stats-map-wrap {
        height: 300px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: rgba(15, 23, 42, 0.16);
        overflow: hidden;
      }
      .admin-user-geo-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
        gap: 16px;
        margin-bottom: 16px;
      }
      .admin-user-geo-list {
        display: grid;
        gap: 10px;
      }
      .admin-user-geo-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 12px 14px;
        border-radius: 16px;
        border: 1px solid var(--border);
        background: var(--bg2);
      }
      .admin-user-geo-item-main {
        min-width: 0;
        display: grid;
        gap: 3px;
      }
      .admin-user-geo-country {
        color: var(--text);
        font-weight: 700;
      }
      .admin-user-geo-city {
        color: var(--text3);
        font-size: 12px;
      }
      .admin-user-geo-count {
        color: var(--brand);
        font-weight: 800;
        white-space: nowrap;
      }
      .stats-map-empty,
      .stats-table-empty {
        height: 100%;
        min-height: 160px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: var(--text3);
        font-size: 12px;
        line-height: 1.6;
        padding: 18px;
      }
      .stats-table-wrap {
        min-height: 300px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.02);
        overflow: hidden;
      }
      .stats-mini-table {
        width: 100%;
        border-collapse: collapse;
      }
      .stats-mini-table th,
      .stats-mini-table td {
        padding: 11px 12px;
      }
      .stats-mini-table tbody tr:last-child td {
        border-bottom: none;
      }
      .stats-platform-chart-wrap {
        height: 300px;
        border-radius: 12px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.02);
        padding: 10px;
      }
      .stats-rank {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 22px;
        height: 22px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: #93c5fd;
        font-size: 11px;
        font-weight: 800;
        margin-right: 8px;
      }
      .stats-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 9px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
      }
      .stats-pill-dot {
        width: 8px;
        height: 8px;
        border-radius: 999px;
      }

      /* ══ SHORTEN FORM ══ */
      .sf-grid {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 14px;
        margin-bottom: 18px;
      }
      @media (max-width: 880px) {
        .sf-grid {
          grid-template-columns: 1fr;
        }
      }

      .sf-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 20px;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
      }
      .create-grid {
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
        gap: 16px;
        align-items: start;
      }
      .create-preview {
        position: sticky;
        top: 18px;
      }
      .create-side-stack {
        display: grid;
        gap: 16px;
        align-self: start;
      }
      .create-form-head {
        margin-bottom: 14px;
      }
      .create-form-head h3 {
        margin-bottom: 4px;
        display: block;
      }
      .create-form-head p {
        max-width: 46ch;
      }
      .create-form-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 30px;
        padding: 0 11px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        white-space: nowrap;
      }
      .sf-card h3 {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 16px;
        display: flex;
        align-items: center;
        gap: 7px;
      }

      .url-bar {
        display: flex;
        gap: 8px;
        margin-bottom: 13px;
      }
      .url-bar input {
        flex: 1;
        min-width: 0;
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 8px;
        padding: 10px 13px;
        color: var(--text);
        font-size: 14px;
        outline: none;
        transition: 0.2s;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .url-bar input:focus {
        border-color: var(--brand);
        background: var(--bg4);
      }
      .url-bar input::placeholder {
        color: var(--text3);
      }
      .url-inline-hint {
        display: none;
        margin: -6px 0 10px;
        padding-left: 4px;
        font-size: 12px;
        color: #fca5a5;
      }
      .url-inline-hint.show {
        display: block;
      }
      .btn-go {
        padding: 10px 18px;
        background: var(--brand);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        white-space: nowrap;
        transition: 0.15s;
        display: flex;
        align-items: center;
        gap: 6px;
      }
      .btn-go:hover {
        background: var(--brand-d);
        transform: translateY(-1px);
      }
      .btn-go:active {
        transform: none;
      }
      .btn-go:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }

      /* detect badge */
      .det {
        display: none;
        align-items: center;
        gap: 7px;
        padding: 7px 11px;
        border-radius: 7px;
        font-size: 12px;
        font-weight: 600;
        margin-bottom: 11px;
      }
      .det.shopee {
        background: rgba(238, 77, 45, 0.1);
        border: 1px solid rgba(238, 77, 45, 0.2);
        color: #ff6b4a;
      }
      .det.tiktok {
        background: rgba(105, 201, 208, 0.08);
        border: 1px solid rgba(105, 201, 208, 0.18);
        color: var(--tiktok);
      }
      .det.show {
        display: flex;
      }

      /* form grid */
      .fg {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 11px;
      }
      @media (max-width: 600px) {
        .fg {
          grid-template-columns: 1fr;
        }
      }
      .fg.full {
        grid-column: 1/-1;
      }
      .fl {
        font-size: 11px;
        font-weight: 700;
        color: var(--text2);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: block;
        margin-bottom: 4px;
      }
      .fi {
        width: 100%;
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 7px;
        padding: 8px 11px;
        color: var(--text);
        font-size: 13px;
        outline: none;
        transition: 0.2s;
      }
      .fi:focus {
        border-color: var(--brand);
        background: var(--bg4);
      }
      .fi::placeholder {
        color: var(--text3);
      }
      .fi:disabled {
        opacity: 0.4;
        cursor: not-allowed;
      }
      .pfx {
        display: flex;
        align-items: center;
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 7px;
        overflow: hidden;
        transition: 0.2s;
      }
      .pfx:focus-within {
        border-color: var(--brand);
        background: var(--bg4);
      }
      .pfx span {
        padding: 8px 0 8px 11px;
        font-size: 13px;
        color: var(--text3);
        white-space: nowrap;
      }
      .pfx input {
        flex: 1;
        background: transparent;
        border: none;
        padding: 8px 11px 8px 3px;
        color: var(--text);
        font-size: 13px;
        outline: none;
      }
      .pfx input::placeholder {
        color: var(--text3);
      }
      .create-form-grid {
        display: grid;
        gap: 10px;
        margin-bottom: 12px;
      }
      .create-form-grid--alias-domain {
        grid-template-columns: minmax(0, 1fr) 220px;
      }
      .domain-picker-meta {
        margin-top: 6px;
        color: var(--text3);
        font-size: 11px;
        line-height: 1.5;
      }
      .domain-fallback {
        min-height: 39px;
        display: flex;
        align-items: center;
        padding: 0 11px;
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 7px;
        color: var(--text);
        font-size: 13px;
        font-weight: 600;
      }

      /* LOCK OVERLAY */
      .lock-wrap {
        position: relative;
      }
      .lock-overlay {
        position: absolute;
        inset: 0;
        background: rgba(13, 17, 23, 0.7);
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 2;
        backdrop-filter: blur(1px);
      }
      .lock-overlay span {
        font-size: 12px;
        font-weight: 700;
        color: var(--text2);
        display: flex;
        align-items: center;
        gap: 5px;
      }

      /* META SECTION */
      .meta-sec {
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 8px;
        overflow: hidden;
        margin-bottom: 12px;
      }
      .meta-toggle {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 11px 14px;
        background: transparent;
        border: none;
        color: var(--text);
        cursor: pointer;
        transition: 0.15s;
      }
      .meta-toggle:hover {
        background: var(--bg4);
      }
      .mt-label {
        font-size: 13px;
        font-weight: 700;
        flex: 1;
        text-align: left;
      }
      .mt-badge {
        font-size: 10px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 10px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        color: #fff;
      }
      .mt-arrow {
        color: var(--text3);
        font-size: 11px;
        transition: 0.2s;
      }
      .mt-arrow.open {
        transform: rotate(180deg);
      }
      .meta-body {
        display: none;
        padding: 14px;
        border-top: 1px solid var(--border);
      }
      .meta-body.open {
        display: block;
      }

      /* Upload area */
      .upload-area {
        border: 2px dashed var(--border2);
        border-radius: 8px;
        padding: 16px;
        text-align: center;
        cursor: pointer;
        transition: 0.2s;
        position: relative;
        margin-bottom: 10px;
      }
      .upload-area:hover {
        border-color: var(--brand);
        background: rgba(59, 130, 246, 0.04);
      }
      .upload-area input[type="file"] {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
      }
      .upload-area .ua-icon {
        font-size: 22px;
        margin-bottom: 5px;
      }
      .upload-area p {
        font-size: 12px;
        color: var(--text2);
      }
      .upload-area p small {
        color: var(--text3);
      }
      .upload-preview {
        width: 100%;
        max-height: 150px;
        object-fit: cover;
        border-radius: 7px;
        margin-bottom: 10px;
        display: none;
      }
      .or-sep {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
      }
      .or-sep::before,
      .or-sep::after {
        content: "";
        flex: 1;
        height: 1px;
        background: var(--border);
      }
      .or-sep span {
        font-size: 11px;
        color: var(--text3);
      }

      /* OG preview card */
      .og-prev {
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: 8px;
        overflow: hidden;
        margin-top: 11px;
      }
      .og-prev-img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        display: none;
      }
      .og-prev-ph {
        width: 100%;
        height: 120px;
        background: linear-gradient(
          135deg,
          rgba(59, 130, 246, 0.06),
          rgba(139, 92, 246, 0.06)
        );
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: var(--text3);
      }
      .og-prev-info {
        padding: 9px 12px;
      }
      .og-prev-dom {
        font-size: 10px;
        color: var(--text3);
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 2px;
      }
      .og-prev-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 2px;
        line-height: 1.3;
      }
      .og-prev-desc {
        font-size: 11px;
        color: var(--text2);
        line-height: 1.35;
      }

      /* Result */
      .res-card {
        background: linear-gradient(
          135deg,
          rgba(59, 130, 246, 0.07),
          rgba(139, 92, 246, 0.07)
        );
        border: 1px solid rgba(59, 130, 246, 0.22);
        border-radius: 8px;
        padding: 14px;
        margin-top: 14px;
        display: none;
        overflow: hidden;
        word-break: break-all;
      }
      .res-card.show {
        display: block;
      }
      .res-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
      }
      .res-main {
        flex: 1;
        min-width: 0;
      }
      .res-side {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
        flex-shrink: 0;
      }
      .res-lbl {
        font-size: 10px;
        font-weight: 700;
        color: var(--brand);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-align: right;
      }
      .res-url {
        flex: 1;
        font-size: 15px;
        font-weight: 700;
        color: #93c5fd;
        word-break: break-all;
      }
      .btn-cp {
        padding: 6px 13px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 7px;
        color: var(--text2);
        font-size: 12px;
        font-weight: 600;
        transition: 0.15s;
        white-space: nowrap;
      }
      .btn-cp:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .btn-cp.ok {
        background: rgba(34, 197, 94, 0.1);
        border-color: rgba(34, 197, 94, 0.25);
        color: var(--green);
      }
      .res-meta {
        margin-top: 7px;
        font-size: 11px;
        color: var(--text3);
        word-break: break-all;
        overflow-wrap: anywhere;
      }
      .res-dl {
        margin-top: 5px;
        font-size: 11px;
        color: var(--brand);
      }
      @media (max-width: 640px) {
        .res-row {
          flex-direction: column-reverse;
          gap: 10px;
        }
        .res-side {
          width: 100%;
          flex-direction: row;
          align-items: center;
          justify-content: space-between;
          gap: 10px;
        }
        .res-lbl {
          text-align: left;
        }
      }
      /* Error */
      .ferr {
        background: rgba(239, 68, 68, 0.08);
        border: 1px solid rgba(239, 68, 68, 0.22);
        border-radius: 7px;
        padding: 9px 13px;
        color: #fca5a5;
        font-size: 13px;
        margin-top: 9px;
        display: none;
      }
      .ferr.show {
        display: block;
      }
      .ferr .upgrade-link {
        color: var(--brand);
        cursor: pointer;
        text-decoration: underline;
        margin-left: 6px;
      }

      /* ══ ACTIVITY ══ */
      .act-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 16px;
        min-width: 0;
        overflow: hidden;
      }
      .act-card h3 {
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      .dash-hero {
        background: linear-gradient(
          180deg,
          rgba(59, 130, 246, 0.08) 0%,
          rgba(13, 17, 23, 0) 100%
        );
        border: 1px solid var(--border);
        border-radius: var(--r);
        padding: 18px;
      }
      .dash-hero-top {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
      }
      .dash-hero-copy {
        max-width: 560px;
      }
      .dash-hero-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 9px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 10px;
      }
      .dash-hero-title {
        font-size: 19px;
        font-weight: 800;
        margin-bottom: 6px;
      }
      .dash-hero-desc {
        color: var(--text2);
        font-size: 13px;
        line-height: 1.6;
        max-width: 52ch;
      }
      .dash-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 16px;
      }
      .dash-action {
        padding: 9px 13px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
        transition: 0.15s;
      }
      .dash-action:hover {
        background: var(--bg4);
        transform: translateY(-1px);
      }
      .dash-action.primary {
        background: linear-gradient(135deg, var(--brand), var(--brand-d));
        border-color: transparent;
        color: #fff;
      }
      .dash-steps {
        display: grid;
        gap: 8px;
        margin-top: 14px;
      }
      .dash-step {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 0;
        border-top: 1px solid var(--border);
      }
      .dash-step:first-child {
        border-top: none;
        padding-top: 0;
      }
      .dash-step-badge {
        width: 26px;
        height: 26px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
        font-size: 12px;
        font-weight: 800;
        flex-shrink: 0;
      }
      .dash-step-title {
        font-size: 13px;
        font-weight: 700;
        color: var(--text);
        margin-bottom: 2px;
      }
      .dash-step-desc {
        font-size: 12px;
        color: var(--text2);
        line-height: 1.5;
      }
      .act-empty {
        color: var(--text3);
        font-size: 12px;
        text-align: center;
        padding: 16px 0;
      }
      .ai {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr) auto;
        align-items: center;
        gap: 9px;
        padding: 7px 0;
        border-bottom: 1px solid var(--border);
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
      }
      .ai:last-child {
        border-bottom: none;
      }
      .ai-ic {
        width: 30px;
        height: 30px;
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        flex-shrink: 0;
      }
      .ai-ic.shopee {
        background: rgba(238, 77, 45, 0.1);
      }
      .ai-ic.tiktok {
        background: rgba(105, 201, 208, 0.08);
      }
      .ai-ic.generic {
        background: rgba(99, 102, 241, 0.08);
      }
      .ai-info {
        flex: 1;
        min-width: 0;
        overflow: hidden;
      }
      .ai-short {
        display: block;
        font-size: 12px;
        font-weight: 700;
        color: var(--brand);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .ai-orig {
        display: block;
        max-width: 100%;
        font-size: 11px;
        color: var(--text3);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .ai-clicks {
        font-size: 11px;
        color: var(--text2);
        white-space: nowrap;
        flex-shrink: 0;
        max-width: 100%;
      }
      .admin-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 0 0 18px;
      }
      .admin-tab-btn {
        border: 1px solid var(--border);
        background: var(--bg2);
        color: var(--text2);
        border-radius: 999px;
        padding: 10px 16px;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: 0.01em;
        transition:
          transform 0.16s ease,
          border-color 0.16s ease,
          color 0.16s ease,
          background 0.16s ease,
          box-shadow 0.16s ease;
      }
      .admin-tab-btn:hover {
        transform: translateY(-1px);
        color: var(--text);
        border-color: rgba(59, 130, 246, 0.4);
      }
      .admin-tab-btn.active {
        color: #eff6ff;
        border-color: rgba(59, 130, 246, 0.7);
        background:
          linear-gradient(135deg, rgba(59, 130, 246, 0.96), rgba(37, 99, 235, 0.92)),
          var(--brand);
        box-shadow: 0 16px 32px rgba(37, 99, 235, 0.22);
      }
      .admin-panel {
        display: none;
      }
      .admin-panel.active {
        display: block;
      }
      .admin-panel .sg {
        margin-bottom: 0;
      }
      .admin-overview-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 16px;
      }
      .admin-overview-chart-card {
        overflow: hidden;
      }
      .admin-overview-chart-head {
        gap: 12px;
      }
      .admin-overview-chart-head p {
        margin-top: 4px;
        font-size: 12px;
        color: var(--text2);
      }
      .admin-overview-range {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
      }
      .admin-overview-range-btn {
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text2);
        border-radius: 999px;
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 700;
        transition: 0.16s ease;
      }
      .admin-overview-range-btn.active {
        background: rgba(59, 130, 246, 0.14);
        border-color: rgba(59, 130, 246, 0.36);
        color: #93c5fd;
      }
      .admin-overview-chart-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0 18px 14px;
      }
      .admin-overview-chart-meta span {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        background: var(--bg3);
        border: 1px solid var(--border);
        font-size: 12px;
        color: var(--text2);
      }
      .admin-overview-chart-wrap {
        height: 320px;
        padding: 0 18px 18px;
      }
      .admin-overview-list,
      .admin-plan-list,
      .admin-top-link-list {
        display: grid;
        gap: 8px;
        padding: 14px 16px 16px;
      }
      .admin-overview-item,
      .admin-top-link-item {
        display: grid;
        gap: 2px;
        padding: 11px 13px;
        border-radius: 12px;
        background: var(--bg3);
        border: 1px solid var(--border);
      }
      .admin-overview-item strong,
      .admin-top-link-item strong {
        font-size: 13px;
        color: var(--text);
      }
      .admin-overview-item span,
      .admin-top-link-item span {
        font-size: 12px;
        color: var(--text2);
        line-height: 1.5;
      }
      .admin-overview-item span {
        display: none;
      }
      .admin-overview-item.ok {
        border-color: rgba(34, 197, 94, 0.24);
      }
      .admin-overview-item.warn {
        border-color: rgba(245, 158, 11, 0.26);
      }
      .admin-overview-item.err {
        border-color: rgba(239, 68, 68, 0.24);
      }
      .admin-overview-empty {
        padding: 14px;
        border-radius: 14px;
        background: var(--bg3);
        border: 1px dashed var(--border);
        font-size: 12px;
        color: var(--text3);
      }
      .admin-health-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        padding: 14px 16px 16px;
      }
      .admin-health-item {
        display: grid;
        gap: 5px;
        padding: 11px 13px;
        border-radius: 12px;
        background: var(--bg3);
        border: 1px solid var(--border);
      }
      .admin-health-item.wide {
        grid-column: span 3;
      }
      .admin-health-item span {
        font-size: 12px;
        color: var(--text2);
      }
      .admin-health-item strong {
        font-size: 15px;
        color: var(--text);
      }
      .admin-plan-chip {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 12px 14px;
        border-radius: 14px;
        background: var(--bg3);
        border: 1px solid var(--border);
      }
      .admin-plan-chip strong {
        font-size: 13px;
        color: var(--text);
      }
      .admin-plan-chip span {
        font-size: 12px;
        color: var(--text2);
      }
      .admin-top-link-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
      }
      .admin-top-link-code {
        font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
          "Liberation Mono", "Courier New", monospace;
      }
      .admin-top-link-type {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 22px;
        padding: 0 8px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: #93c5fd;
        font-size: 11px;
        font-weight: 700;
      }
      .admin-top-link-url {
        word-break: break-all;
      }

      /* ══ TABLE ══ */
      .tbl-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: var(--r);
        overflow: hidden;
      }
      .tbl-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 18px;
        border-bottom: 1px solid var(--border);
      }
      .tbl-head h3 {
        font-size: 14px;
        font-weight: 700;
      }
      .tbl-search {
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 7px;
        padding: 6px 11px;
        color: var(--text);
        font-size: 12px;
        outline: none;
        width: 190px;
        transition: 0.2s;
      }
      .tbl-search:focus {
        border-color: var(--brand);
      }
      .tbl-search::placeholder {
        color: var(--text3);
      }
      .tbl-head-actions {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
      }
      .tbl-select {
        min-width: 130px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 7px;
        padding: 6px 11px;
        color: var(--text);
        font-size: 12px;
        outline: none;
      }
      .tbl-select:focus {
        border-color: var(--brand);
      }
      .admin-bulkbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 18px;
        border-bottom: 1px solid var(--border);
        background: rgba(59, 130, 246, 0.05);
      }
      .admin-bulk-summary {
        font-size: 12px;
        color: var(--text2);
        font-weight: 700;
      }
      .admin-bulk-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      .tbl-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 18px;
        border-top: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.02);
      }
      .pagination-status {
        font-size: 12px;
        color: var(--text3);
      }
      .pagination-actions {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .pagination-btn {
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text2);
        border-radius: 8px;
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 700;
      }
      .pagination-btn:disabled {
        opacity: 0.45;
        cursor: not-allowed;
      }
      .pagination-btn:not(:disabled):hover {
        background: var(--bg4);
        color: var(--text);
      }
      .link-filters {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 10px;
      }
      .link-bulkbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 18px;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid transparent;
        background:
          linear-gradient(180deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.02)),
          transparent;
        transition:
          max-height 0.18s ease,
          padding 0.18s ease,
          border-color 0.18s ease;
      }
      .link-bulkbar.active {
        max-height: 90px;
        padding: 12px 18px;
        border-bottom-color: rgba(249, 115, 22, 0.16);
      }
      .link-bulk-status {
        color: var(--text2);
        font-size: 12px;
        font-weight: 700;
      }
      .link-bulk-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
      }
      .chip {
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text2);
        font-size: 12px;
        font-weight: 700;
        transition: 0.15s;
        white-space: nowrap;
      }
      .chip:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .chip.active {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.35);
        color: #93c5fd;
      }
      table {
        width: 100%;
        border-collapse: collapse;
      }
      thead tr {
        border-bottom: 1px solid var(--border);
      }
      th {
        padding: 9px 14px;
        text-align: left;
        font-size: 10px;
        font-weight: 700;
        color: var(--text3);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
      }
      td {
        padding: 11px 14px;
        font-size: 13px;
        color: var(--text2);
        border-bottom: 1px solid var(--border);
      }
      .admin-row-selected td {
        background: rgba(59, 130, 246, 0.07);
      }
      .td-check {
        width: 52px;
      }
      .tbl-check {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 18px;
        height: 18px;
        position: relative;
      }
      .tbl-check input {
        position: absolute;
        inset: 0;
        opacity: 0;
        cursor: pointer;
      }
      .tbl-check span {
        width: 18px;
        height: 18px;
        border-radius: 6px;
        border: 1.5px solid var(--border2);
        background: var(--bg3);
        transition: 0.15s ease;
      }
      .tbl-check input:checked + span,
      .tbl-check input:indeterminate + span {
        background: var(--brand);
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
      }
      .tbl-check input:checked + span::after,
      .tbl-check input:indeterminate + span::after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 8px;
        height: 4px;
        border-left: 2px solid #fff;
        border-bottom: 2px solid #fff;
        transform: translate(-50%, -58%) rotate(-45deg);
      }
      .tbl-check input:indeterminate + span::after {
        width: 8px;
        height: 2px;
        border: none;
        background: #fff;
        border-radius: 999px;
        transform: translate(-50%, -50%);
      }
      tbody tr:last-child td {
        border-bottom: none;
      }
      tbody tr:hover td {
        background: rgba(255, 255, 255, 0.015);
      }
      tbody tr.is-selected td {
        background: rgba(59, 130, 246, 0.09);
      }
      .td-link {
        color: var(--brand);
        font-weight: 600;
      }
      .td-orig {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .td-orig-wrap {
        display: block;
        max-width: 100%;
      }
      .td-orig-text {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .td-orig-toggle {
        display: none;
        margin-top: 6px;
        padding: 0;
        border: none;
        background: transparent;
        color: #93c5fd;
        font-size: 11px;
        font-weight: 800;
        cursor: pointer;
      }
      .td-orig-toggle:hover {
        color: #bfdbfe;
      }
      .pill {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 700;
      }
      .pill.shopee {
        background: rgba(238, 77, 45, 0.1);
        color: #ff6b4a;
      }
      .pill.tiktok {
        background: rgba(105, 201, 208, 0.08);
        color: var(--tiktok);
      }
      .pill.generic {
        background: rgba(99, 102, 241, 0.08);
        color: #818cf8;
      }
      .tbl-empty {
        text-align: center;
        color: var(--text3);
        padding: 36px;
        font-size: 13px;
      }

      /* ══ TOOLS ══ */
      .tool-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
        gap: 18px;
        margin-top: 18px;
        align-items: start;
      }
      .tool-card,
      .tool-preview {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 20px;
        min-width: 0;
      }
      .tool-preview {
        display: flex;
        flex-direction: column;
        gap: 14px;
        position: sticky;
        top: 18px;
        align-self: start;
        min-width: 0;
      }
      .tool-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 14px;
      }
      .tool-head h3 {
        font-size: 14px;
        font-weight: 700;
      }
      .tool-head p {
        font-size: 12px;
        color: var(--text3);
        margin-top: 3px;
      }
      .tool-kicker {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 9px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: #93c5fd;
        font-size: 11px;
        font-weight: 700;
        margin-bottom: 10px;
      }
      .qr-box {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 320px;
        border: 1px dashed var(--border2);
        border-radius: 14px;
        background: var(--bg3);
        overflow: hidden;
      }
      .qr-placeholder {
        text-align: center;
        color: var(--text3);
        font-size: 13px;
        padding: 16px;
      }
      .qr-box canvas,
      .qr-box img {
        display: block;
        max-width: 100%;
      }
      .bio-preview-shell {
        border: 1px solid var(--border2);
        border-radius: 16px;
        overflow: hidden;
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(13, 17, 23, 0));
      }
      .bio-cover {
        height: 120px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
      }
      .bio-body {
        padding: 16px;
      }
      .bio-avatar {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 28px;
        font-weight: 800;
        color: #fff;
        margin-top: -48px;
        border: 3px solid var(--bg2);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
      }
      .bio-title {
        font-size: 18px;
        font-weight: 800;
        margin-top: 12px;
      }
      .bio-subtitle {
        font-size: 13px;
        color: var(--text2);
        line-height: 1.5;
        margin-top: 6px;
      }
      .bio-stats {
        display: flex;
        gap: 8px;
        margin-top: 14px;
        flex-wrap: wrap;
      }
      .bio-stat {
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--border);
        font-size: 12px;
        color: var(--text2);
      }
      .bio-links {
        display: grid;
        gap: 8px;
        margin-top: 14px;
      }
      .bio-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 12px;
        background: var(--bg3);
        border: 1px solid var(--border);
        color: var(--text);
        font-size: 13px;
        font-weight: 700;
      }
      .bio-link small {
        display: block;
        color: var(--text3);
        font-weight: 600;
        margin-top: 2px;
      }
      .bio-collection {
        margin-top: 14px;
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.025);
      }
      .bio-collection-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 12px;
      }
      .bio-collection-head h4 {
        font-size: 14px;
        font-weight: 800;
      }
      .bio-collection-head p,
      .bio-collection-note {
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
        margin-top: 4px;
      }
      .bio-collection-actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-end;
      }
      .bio-chip-btn {
        padding: 8px 11px;
        border-radius: 999px;
        border: 1px solid var(--border);
        background: var(--bg3);
        color: var(--text);
        font-size: 12px;
        font-weight: 700;
        transition: 0.15s;
      }
      .bio-chip-btn:hover {
        background: var(--bg4);
      }
      .bio-chip-btn.ghost {
        background: transparent;
      }
      .bio-order-list,
      .bio-pool-list {
        display: grid;
        gap: 8px;
      }
      .bio-order-item,
      .bio-pool-item {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--bg3);
        padding: 10px 12px;
        color: var(--text);
        text-align: left;
      }
      .bio-order-item {
        cursor: grab;
      }
      .bio-order-item:active {
        cursor: grabbing;
      }
      .bio-handle {
        width: 30px;
        height: 30px;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text2);
        font-size: 14px;
      }
      .bio-order-copy strong,
      .bio-pool-title {
        display: block;
        font-size: 13px;
        font-weight: 800;
      }
      .bio-order-copy span,
      .bio-pool-sub {
        display: block;
        margin-top: 3px;
        color: var(--text2);
        font-size: 11px;
        line-height: 1.4;
        word-break: break-word;
      }
      .bio-order-tools {
        display: flex;
        gap: 5px;
      }
      .bio-mini-btn,
      .bio-pool-add {
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.03);
        color: var(--text);
        border-radius: 10px;
        width: 28px;
        height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 800;
        flex-shrink: 0;
      }
      .bio-mini-btn.danger {
        color: #fca5a5;
      }
      .bio-pool-item {
        grid-template-columns: minmax(0, 1fr) auto;
        cursor: pointer;
      }
      .bio-pool-title {
        margin-right: 10px;
      }
      .bio-pool-add {
        background: rgba(59, 130, 246, 0.12);
        color: var(--brand);
      }
      .bio-order-empty {
        border: 1px dashed var(--border2);
        border-radius: 14px;
        padding: 14px;
        color: var(--text2);
        background: rgba(255, 255, 255, 0.02);
        display: grid;
        gap: 4px;
      }
      .bio-order-empty b {
        color: var(--text);
        font-size: 13px;
      }
      .integration-head {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
        gap: 14px;
        margin-top: 18px;
      }
      .integration-banner,
      .integration-summary-card,
      .integration-card {
        background: var(--bg2);
        border: 1px solid var(--border);
        border-radius: 18px;
      }
      .integration-banner {
        padding: 20px;
      }
      .integration-banner h3 {
        font-size: 22px;
        margin-bottom: 8px;
      }
      .integration-banner p {
        color: var(--text2);
        line-height: 1.6;
        font-size: 13px;
      }
      .integration-summary {
        display: grid;
        gap: 12px;
      }
      .integration-summary-card {
        padding: 16px;
      }
      .integration-summary-card .k {
        display: inline-flex;
        padding: 4px 9px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.12);
        color: #93c5fd;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 10px;
      }
      .integration-summary-card b {
        display: block;
        margin-bottom: 4px;
      }
      .integration-summary-card p {
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
      }
      .integration-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 18px;
      }
      .integration-card {
        padding: 18px;
      }
      .integration-card-spot {
        background:
          radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 35%),
          var(--bg2);
      }
      .integration-card-top {
        display: flex;
        align-items: start;
        justify-content: space-between;
        gap: 12px;
      }
      .integration-name {
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 4px;
      }
      .integration-desc {
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
      }
      .integration-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 28px;
        padding: 0 10px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 800;
        background: rgba(34, 197, 94, 0.12);
        color: #86efac;
        white-space: nowrap;
      }
      .integration-status.warning {
        background: rgba(245, 158, 11, 0.12);
        color: #fbbf24;
      }
      .integration-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 12px;
      }
      .integration-tags span {
        padding: 5px 8px;
        border-radius: 999px;
        background: var(--bg3);
        border: 1px solid var(--border);
        color: var(--text2);
        font-size: 11px;
      }
      .integration-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 14px;
      }
      .team-invite-grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 220px 190px;
        gap: 12px;
        align-items: end;
      }
      .team-invite-cta .user-btn {
        width: 100%;
        min-width: 0;
      }
      .team-panel-stack {
        display: grid;
        gap: 14px;
        margin-top: 18px;
      }
      .team-panel-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }
      .team-quick-card .integration-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
      .team-template-video-wrap {
        margin-top: 8px;
        width: min(220px, 100%);
        border: 1px solid var(--border);
        border-radius: 12px;
        overflow: hidden;
        background: rgba(0, 0, 0, 0.28);
      }
      .team-template-video {
        display: block;
        width: 100%;
        height: auto;
        max-height: 180px;
        background: #000;
      }
.team-template-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.team-template-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.team-template-card-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 18px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.team-template-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.team-template-card-right {
  display: grid;
  gap: 12px;
  align-content: start;
}
.team-template-media {
  width: 120px;
  min-height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.team-template-media img,
.team-template-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}
.team-template-link-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.team-template-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.team-template-link-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.team-template-link-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.team-template-link-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}
.team-template-link-value {
  display: -webkit-box;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.45;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.team-template-actions {
  display: grid;
  gap: 8px;
  min-width: 140px;
  align-content: start;
}
.team-template-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.team-template-meta {
  color: var(--text2);
  font-size: 13px;
  line-height: 1.45;
}
.team-template-meta.muted {
  color: var(--text3);
  font-size: 12px;
}
.team-template-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.team-template-meta-box {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.team-template-source-picker {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.team-template-source-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg3);
  color: var(--text);
  font-size: 13px;
  text-align: left;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.team-template-source-trigger:hover,
.team-template-source-trigger.open {
  border-color: var(--brand);
  background: var(--bg4);
}
.team-template-source-trigger:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.team-template-source-trigger::after {
  content: "▾";
  color: var(--text3);
  font-size: 12px;
}
.team-template-source-dropdown {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.team-template-source-dropdown.hidden {
  display: none;
}
.team-template-source-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.team-template-source-item.active {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}
.team-template-source-item.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.team-template-source-item input {
  margin-top: 2px;
}
.team-template-source-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.team-template-source-primary {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
.team-template-source-secondary {
  color: var(--text3);
  font-size: 12px;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .team-template-card-shell {
    grid-template-columns: 1fr;
  }
  .team-template-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-template-link-row {
    grid-template-columns: 1fr;
  }
  .team-template-link-action {
    justify-content: flex-start;
  }
}
.team-template-modal-shell {
  max-width: 760px;
}
.team-template-modal-body {
  display: grid;
  gap: 14px;
}
.team-template-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.team-template-span-2 {
  grid-column: 1 / -1;
}
.team-template-modal-note {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
}
.team-template-modal-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: rgba(59, 130, 246, 0.08);
}
.team-template-modal-summary strong {
  font-size: 14px;
  color: var(--text);
}
.team-template-modal-summary span {
  font-size: 12px;
  color: var(--text2);
  line-height: 1.6;
}

      /* ══ PRICING ══ */
      .pricing-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 14px;
        margin-top: 18px;
      }
      .plan-card {
        background: var(--bg2);
        border: 1.5px solid var(--border);
        border-radius: 14px;
        padding: 22px;
        position: relative;
        transition: 0.2s;
      }
      .plan-card:hover {
        border-color: var(--border2);
      }
      .plan-card.featured {
        border-color: var(--brand);
        background: linear-gradient(
          180deg,
          rgba(59, 130, 246, 0.06) 0%,
          var(--bg2) 100%
        );
      }
      .plan-featured-badge {
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        background: var(--brand);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        padding: 3px 12px;
        border-radius: 20px;
        white-space: nowrap;
      }
      .plan-name {
        font-size: 16px;
        font-weight: 800;
        margin-bottom: 4px;
      }
      .plan-price {
        font-size: 26px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 2px;
      }
      .plan-price span {
        font-size: 13px;
        font-weight: 400;
        color: var(--text2);
      }
      .plan-desc {
        font-size: 12px;
        color: var(--text2);
        margin-bottom: 16px;
        line-height: 1.5;
      }
      .plan-features {
        list-style: none;
        margin-bottom: 18px;
      }
      .plan-features li {
        font-size: 13px;
        color: var(--text2);
        padding: 5px 0;
        display: flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid var(--border);
      }
      .plan-features li:last-child {
        border-bottom: none;
      }
      .plan-features li .ck {
        font-size: 14px;
      }
      .plan-features li .no {
        opacity: 0.4;
      }
      .btn-plan {
        width: 100%;
        padding: 10px;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.15s;
      }
      .btn-plan.free-btn {
        background: var(--bg3);
        border: 1px solid var(--border);
        color: var(--text2);
      }
      .btn-plan.free-btn:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .btn-plan.pro-btn {
        background: var(--brand);
        color: #fff;
      }
      .btn-plan.pro-btn:hover {
        background: var(--brand-d);
        transform: translateY(-1px);
      }
      .btn-plan.biz-btn {
        background: linear-gradient(135deg, var(--purple), #6d28d9);
        color: #fff;
      }
      .btn-plan.biz-btn:hover {
        opacity: 0.9;
        transform: translateY(-1px);
      }
      .current-plan-badge {
        display: inline-block;
        font-size: 11px;
        font-weight: 700;
        color: var(--green);
        background: rgba(34, 197, 94, 0.1);
        border-radius: 20px;
        padding: 2px 9px;
        margin-bottom: 10px;
      }

      /* ══ TOAST ══ */
      .toast {
        position: fixed;
        top: max(18px, env(safe-area-inset-top, 0px) + 12px);
        right: 22px;
        background: var(--bg3);
        border: 1px solid var(--border2);
        border-radius: 9px;
        padding: 11px 16px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transform: translateY(-16px);
        opacity: 0;
        transition: 0.3s;
        pointer-events: none;
        z-index: 9999;
        max-width: 320px;
      }
      .toast.show {
        transform: translateY(0);
        opacity: 1;
      }
      .toast.ok {
        border-color: rgba(34, 197, 94, 0.3);
        color: var(--green);
      }
      .toast.err {
        border-color: rgba(239, 68, 68, 0.3);
        color: #fca5a5;
      }
      .toast.warn {
        border-color: rgba(245, 158, 11, 0.3);
        color: #fcd34d;
      }

      @media (max-width: 768px) {
        .topbar {
          height: auto;
          min-height: 54px;
          display: grid;
          grid-template-columns: auto minmax(0, 1fr) auto;
          column-gap: 8px;
          row-gap: 10px;
          padding: 10px 12px 12px;
          align-items: center;
        }
        .tb-menu-btn {
          grid-column: 1;
          grid-row: 1;
          width: 36px;
          height: 36px;
          margin-right: 0 !important;
          padding: 0 !important;
          border-radius: 10px !important;
          background: rgba(255, 255, 255, 0.03) !important;
          border: 1px solid var(--border) !important;
        }
        .tb-logo {
          grid-column: 2;
          grid-row: 1;
          justify-self: start;
          min-width: 0;
          gap: 6px;
          font-size: 15px;
        }
        .tb-logo .li {
          width: 26px;
          height: 26px;
          border-radius: 8px;
          font-size: 12px;
        }
        .tb-search {
          grid-column: 1 / -1;
          grid-row: 2;
          grid-column: 1 / -1;
          width: 100%;
          max-width: none;
          margin: 0;
        }
        .tb-search input {
          padding-right: 12px;
          font-size: 13px;
        }
        .tb-search .kbd2 {
          display: none;
        }
        .tb-right {
          grid-column: 3;
          grid-row: 1;
          flex-wrap: nowrap;
          gap: 6px;
          margin-left: 0;
          justify-self: end;
          min-width: 0;
        }
        .tb-lang-btn {
          min-width: 36px;
          height: 28px;
          padding: 0 10px;
        }
        .tb-plan-badge {
          display: none;
        }
        .tb-uname {
          max-width: 72px;
          font-size: 12px;
        }
        .tb-user {
          max-width: 132px;
          padding: 4px 8px 4px 6px;
          gap: 6px;
        }
        .tb-user > span:last-child {
          font-size: 9px !important;
        }
        .tb-avatar {
          width: 24px;
          height: 24px;
          font-size: 11px;
        }
        .tb-bell {
          width: 36px;
          height: 36px;
        }
        .tb-bell svg {
          width: 17px;
          height: 17px;
        }
        .notification-popup {
          right: 56px;
          top: 112px;
          width: min(360px, calc(100vw - 20px));
        }
        .user-popup {
          right: 10px;
          top: 112px;
          width: min(360px, calc(100vw - 20px));
        }
        .account-hero,
        .account-profile-grid,
        .account-grid,
        .account-qr-wrap,
        .account-verify-row,
        .account-device-meta {
          grid-template-columns: 1fr;
        }
        .account-hero {
          flex-direction: column;
          align-items: flex-start;
        }
        .account-hero-main {
          width: 100%;
          align-items: flex-start;
        }
        .account-avatar-stack {
          margin-bottom: 10px;
        }
        .account-hero-copy h2 {
          font-size: 24px;
        }
        .account-hero-email {
          font-size: 12px;
        }
        .account-inline-actions,
        .account-secret-row {
          grid-template-columns: 1fr;
        }
        .payment-modal-body,
        .payment-bank-meta {
          grid-template-columns: 1fr;
        }
        .payment-summary-row {
          align-items: flex-start;
          flex-direction: column;
        }
        .modal-payment {
          width: calc(100vw - 20px);
        }
        .account-hero-actions {
          width: 100%;
          justify-content: stretch;
        }
        .account-hero-actions .user-btn,
        .account-verify-row .user-btn {
          width: 100%;
        }
        .account-verify-label {
          align-self: start;
        }
        .auth-shell {
          grid-template-columns: 1fr;
        }
        .auth-hero-top {
          align-items: flex-start;
        }
        .auth-nav {
          width: 100%;
        }
        .auth-hero {
          padding: 22px;
        }
        .auth-hero-grid,
        .auth-story-grid {
          grid-template-columns: 1fr;
        }
        .auth-feature-grid,
        .auth-stats {
          grid-template-columns: 1fr;
        }
        .auth-wrap {
          position: static;
          max-width: none;
        }
        .auth-surface-grid {
          grid-template-columns: 1fr;
        }
        .auth-surface-preview .row {
          flex-direction: column;
          align-items: flex-start;
        }
        .integration-head,
        .integration-grid {
          grid-template-columns: 1fr;
        }
        .create-preview,
        .tool-preview {
          position: static;
        }
        .team-invite-grid,
        .team-panel-grid,
        .team-quick-card .integration-actions {
          grid-template-columns: 1fr;
        }
        .sidebar {
          position: fixed;
          left: -100%;
          top: 0;
          bottom: 0;
          z-index: 200;
          transition: 0.25s;
          width: min(86vw, 290px) !important;
          box-shadow: 18px 0 40px rgba(0, 0, 0, 0.35);
        }
        .sidebar.mob-open {
          left: 0;
        }
        .bio-collection-head {
          flex-direction: column;
        }
        .bio-collection-actions {
          justify-content: flex-start;
        }
        .bio-order-item,
        .bio-pool-item {
          grid-template-columns: auto minmax(0, 1fr);
        }
        .bio-order-tools {
          grid-column: 1 / -1;
          justify-content: flex-end;
        }
        .content {
          padding: 14px;
        }
        .sg,
        .admin-panel .sg {
          grid-template-columns: 1fr;
        }
        .sc {
          padding: 14px 15px;
        }
        .sc-sub {
          line-height: 1.45;
        }
        .dash-hero-top {
          flex-direction: column;
        }
        .dash-hero-top > .act-card {
          flex: 1 1 auto !important;
          min-width: 0 !important;
          width: 100%;
        }
        .dash-hero-title {
          font-size: 18px;
        }
        .user-tabs {
          grid-template-columns: 1fr;
        }
        .url-bar {
          flex-direction: column;
        }
        .btn-go {
          width: 100%;
          justify-content: center;
        }
        .pfx {
          flex-direction: column;
          align-items: stretch;
        }
        .pfx span {
          padding: 8px 11px 0;
        }
        .pfx input {
          padding: 8px 11px 10px;
          min-width: 0;
        }
        .video-sec .fg {
          grid-template-columns: 1fr;
        }
        .create-form-grid--alias-domain,
        .sf-card [style*="grid-template-columns:1fr 180px"],
        .sf-card [style*="grid-template-columns: 1fr 180px"] {
          grid-template-columns: 1fr !important;
        }
        .video-sec [style*="grid-template-columns:140px 1fr"],
        .video-sec [style*="grid-template-columns: 140px 1fr"] {
          grid-template-columns: 1fr !important;
        }
        .tool-grid {
          grid-template-columns: 1fr;
        }
        .admin-tabs {
          flex-wrap: nowrap;
          overflow-x: auto;
          padding-bottom: 4px;
          scrollbar-width: none;
        }
        .admin-tabs::-webkit-scrollbar {
          display: none;
        }
        .admin-tab-btn {
          flex: 0 0 auto;
          white-space: nowrap;
          padding: 9px 14px;
          font-size: 12px;
        }
        .admin-overview-grid,
        .admin-health-grid {
          grid-template-columns: 1fr;
        }
        .admin-overview-chart-head {
          flex-direction: column;
          align-items: stretch;
        }
        .admin-overview-range {
          justify-content: flex-start;
        }
        .admin-overview-chart-wrap {
          height: 260px;
          padding: 0 14px 14px;
        }
        .admin-overview-chart-meta {
          padding: 0 14px 12px;
        }
        .admin-user-geo-grid {
          grid-template-columns: 1fr;
        }
        .admin-health-item.wide {
          grid-column: span 1;
        }
        .admin-bulkbar,
        .tbl-pagination {
          flex-direction: column;
          align-items: stretch;
        }
        .admin-bulk-actions,
        .pagination-actions {
          justify-content: stretch;
        }
        .pagination-btn {
          flex: 1;
        }
        .stats-analytics-grid {
          grid-template-columns: 1fr;
        }
        .sf-grid,
        .create-grid {
          grid-template-columns: 1fr;
        }
        .tbl-head {
          flex-direction: column;
          align-items: stretch;
          gap: 10px;
        }
        .admin-user-detail-grid {
          grid-template-columns: 1fr;
        }
        .admin-user-detail-hero {
          align-items: flex-start;
          flex-direction: column;
        }
        .link-bulkbar,
        .link-bulkbar.active {
          flex-direction: column;
          align-items: stretch;
        }
        .tbl-search {
          width: 100%;
        }
        .mobile-card-table {
          border-collapse: separate;
        }
        .mobile-card-table thead {
          position: absolute;
          width: 1px;
          height: 1px;
          padding: 0;
          margin: -1px;
          overflow: hidden;
          clip: rect(0, 0, 0, 0);
          white-space: nowrap;
          border: 0;
        }
        .mobile-card-table tbody {
          display: grid;
          gap: 12px;
        }
        .mobile-card-table tbody tr {
          display: block;
          border: 1px solid var(--border);
          border-radius: 18px;
          padding: 14px;
          background: rgba(255, 255, 255, 0.025);
        }
        .mobile-card-table tbody tr:hover td,
        .mobile-card-table tbody tr.is-selected td,
        .mobile-card-table tbody tr.admin-row-selected td {
          background: transparent;
        }
        .mobile-card-table tbody td:not(.tbl-empty) {
          display: grid !important;
          grid-template-columns: minmax(96px, 116px) minmax(0, 1fr);
          gap: 8px 12px;
          align-items: start;
          padding: 9px 0;
          border-bottom: 1px solid rgba(148, 163, 184, 0.12);
          white-space: normal;
          word-break: break-word;
        }
        .mobile-card-table tbody td:not(.tbl-empty)::before {
          content: attr(data-label);
          color: var(--text3);
          font-size: 10px;
          font-weight: 800;
          letter-spacing: 0.05em;
          text-transform: uppercase;
        }
        .mobile-card-table tbody td:last-child,
        .mobile-card-table tbody td.td-actions {
          border-bottom: none;
          padding-bottom: 0;
        }
        .mobile-card-table tbody td.td-check {
          display: flex !important;
          justify-content: flex-end;
          padding-top: 0;
          padding-bottom: 6px;
          border-bottom: none;
        }
        .mobile-card-table tbody td.td-check::before {
          display: none;
        }
        .mobile-card-table tbody td.td-actions {
          display: flex !important;
          gap: 6px;
          flex-wrap: wrap;
          align-items: center;
        }
        .mobile-card-table tbody td.td-actions::before {
          content: attr(data-label);
          width: 100%;
          color: var(--text3);
          font-size: 10px;
          font-weight: 800;
          letter-spacing: 0.05em;
          text-transform: uppercase;
        }
        .mobile-card-table .td-orig {
          max-width: none;
          white-space: normal;
          overflow: visible;
          text-overflow: clip;
        }
        .mobile-card-table .td-orig-wrap {
          width: 100%;
        }
        .mobile-card-table .td-orig-text {
          white-space: normal;
          word-break: break-word;
        }
        .mobile-card-table .td-orig-wrap.is-clamped .td-orig-text {
          display: -webkit-box;
          -webkit-line-clamp: 2;
          -webkit-box-orient: vertical;
          overflow: hidden;
        }
        .mobile-card-table .td-orig-toggle {
          display: inline-flex;
          align-items: center;
        }
        .mobile-card-table .tbl-empty {
          display: block !important;
          padding: 8px 0;
          border: none;
          text-align: left;
        }
      }
      @media (max-width: 430px) {
        .tb-uname {
          display: none;
        }
        .tb-user {
          max-width: none;
          padding: 4px 6px;
        }
        .tb-logo {
          font-size: 14px;
        }
      }
      /* ADMIN */
      .plan-select {
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 6px;
        padding: 4px 8px;
        color: var(--text);
        font-size: 12px;
        outline: none;
        cursor: pointer;
      }
      .plan-select:focus {
        border-color: var(--brand);
      }
      .btn-del {
        padding: 4px 10px;
        background: rgba(239, 68, 68, 0.1);
        border: 1px solid rgba(239, 68, 68, 0.2);
        border-radius: 6px;
        color: #fca5a5;
        font-size: 11px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.15s;
      }
      .btn-del:hover {
        background: rgba(239, 68, 68, 0.2);
      }
      .badge-role {
        font-size: 10px;
        font-weight: 700;
        padding: 2px 7px;
        border-radius: 10px;
      }
      .badge-role.admin {
        background: rgba(245, 158, 11, 0.15);
        color: #fcd34d;
      }
      .badge-role.support {
        background: rgba(59, 130, 246, 0.14);
        color: #93c5fd;
      }
      .badge-role.user {
        background: rgba(100, 116, 139, 0.1);
        color: var(--text3);
      }
      .admin-user-row {
        cursor: pointer;
      }
      .admin-user-row:hover td {
        background: rgba(59, 130, 246, 0.04);
      }
      .admin-user-detail-modal {
        max-width: 760px;
      }
      .admin-user-detail-hero {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 16px;
        background: var(--bg3);
        border: 1px solid var(--border);
      }
      .admin-user-detail-avatar {
        width: 58px;
        height: 58px;
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 24px;
        font-weight: 800;
        color: #fff;
        background: linear-gradient(135deg, var(--brand), #60a5fa);
        box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
      }
      .admin-user-detail-hero-copy {
        min-width: 0;
        flex: 1;
      }
      .admin-user-detail-title {
        font-size: 20px;
        font-weight: 800;
        color: var(--text);
      }
      .admin-user-detail-subtitle {
        margin-top: 4px;
        color: var(--text2);
        font-size: 13px;
        word-break: break-all;
      }
      .admin-user-detail-summary {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
        align-items: center;
      }
      .admin-user-plan,
      .admin-user-detail-id {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 24px;
        padding: 0 10px;
        border-radius: 999px;
        background: rgba(59, 130, 246, 0.1);
        color: #93c5fd;
        font-size: 11px;
        font-weight: 800;
      }
      .admin-user-detail-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }
      .admin-user-detail-item {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 12px 14px;
        border-radius: 12px;
        background: var(--bg3);
        border: 1px solid var(--border);
        min-width: 0;
      }
      .admin-user-detail-label {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--text3);
      }
      .admin-user-detail-value {
        font-size: 14px;
        line-height: 1.5;
        color: var(--text);
        word-break: break-word;
      }
      .admin-user-detail-raw-wrap {
        margin-top: 16px;
        padding: 14px;
        border-radius: 14px;
        background: var(--bg3);
        border: 1px solid var(--border);
      }
      .admin-user-detail-raw-label {
        margin-bottom: 10px;
        font-size: 12px;
        font-weight: 700;
        color: var(--text2);
      }
      .admin-user-detail-raw {
        margin: 0;
        max-height: 240px;
        overflow: auto;
        font-size: 12px;
        line-height: 1.55;
        color: var(--text2);
        white-space: pre-wrap;
        word-break: break-word;
      }
      /* VIDEO FORM */
      .video-sec {
        background: var(--bg3);
        border: 1.5px solid var(--border);
        border-radius: 8px;
        padding: 14px;
        margin-bottom: 12px;
        display: none;
      }
      .video-sec.show {
        display: block;
      }
      /* ══ EDIT MODAL ══ */
      .modal-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 500;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        backdrop-filter: blur(4px);
      }
      .modal-backdrop.hidden {
        display: none;
      }
      .modal {
        background: var(--bg2);
        border: 1px solid var(--border2);
        border-radius: 16px;
        padding: 24px;
        width: 100%;
        max-width: 560px;
        max-height: 90vh;
        overflow-y: auto;
      }
      .modal-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
      }
      .modal-head h3 {
        font-size: 15px;
        font-weight: 800;
      }
      .modal-close {
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 7px;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: var(--text2);
        font-size: 14px;
        transition: 0.15s;
      }
      .modal-close:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .modal-footer {
        display: flex;
        gap: 8px;
        justify-content: flex-end;
        margin-top: 16px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
      }
      .modal-confirm {
        max-width: 460px;
      }
      .confirm-copy {
        color: var(--text2);
        font-size: 13px;
        line-height: 1.7;
      }
      .confirm-copy p {
        margin: 0;
      }
      .confirm-note {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 10px;
        border: 1px solid rgba(245, 158, 11, 0.18);
        background: rgba(245, 158, 11, 0.08);
        color: #fcd34d;
        font-size: 12px;
        line-height: 1.55;
      }
      .btn-save {
        padding: 9px 20px;
        background: var(--brand);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 700;
        cursor: pointer;
        transition: 0.15s;
      }
      .btn-save:hover {
        background: var(--brand-d);
      }
      .btn-save:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
      .btn-cancel {
        padding: 9px 16px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text2);
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.15s;
      }
      .btn-cancel:hover {
        background: var(--bg4);
        color: var(--text);
      }
      .thumb-preview {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        display: none;
        margin-bottom: 8px;
      }
      .btn-thumb {
        padding: 7px 13px;
        background: var(--bg3);
        border: 1px solid var(--border);
        border-radius: 7px;
        color: var(--text2);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        transition: 0.15s;
        display: flex;
        align-items: center;
        gap: 5px;
      }
      .btn-thumb:hover {
        background: var(--bg4);
        color: var(--text);
      }

      /* BocLink-inspired landing refresh */
      #authScreen {
        --bg: #f7f1e6;
        --bg2: rgba(255, 251, 244, 0.92);
        --bg3: rgba(255, 255, 255, 0.72);
        --bg4: #efe1c6;
        --border: #e8d9be;
        --border2: #d8c39c;
        --text: #1f170f;
        --text2: #5d5140;
        --text3: #9e907b;
        --brand: #3b82f6;
        --brand-d: #2563eb;
        --brand-glow: rgba(59, 130, 246, 0.18);
        --purple: #8b5cf6;
        --green: #2e7d57;
        --red: #b45309;
        background:
          radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.16), transparent 24%),
          radial-gradient(circle at 80% 0%, rgba(139, 92, 246, 0.14), transparent 18%),
        linear-gradient(180deg, #fbf7ef 0%, #f6efe2 48%, #efe2c8 100%);
      }
      #authScreen [hidden] {
        display: none !important;
      }
      #authScreen .auth-menu {
        position: sticky;
        top: 0;
        z-index: 25;
        width: 100%;
        margin: 0 0 22px;
        padding: 12px 0;
        display: block;
        border-radius: 0;
        background: rgba(255, 251, 244, 0.94);
        border: none;
        border-bottom: 1px solid rgba(190, 170, 130, 0.32);
        box-shadow:
          0 10px 30px rgba(25, 41, 104, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(14px);
      }
      #authScreen .auth-menu-inner {
        width: min(1400px, calc(100% - 32px));
        margin: 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
      }
      #authScreen .auth-shell {
        width: min(1250px, 100%);
        margin: 0 auto;
        margin-top: 18px;
        grid-template-columns: minmax(0, 1.1fr) minmax(340px, 430px);
        gap: 36px;
      }
      #authScreen[data-route="login"] .auth-menu,
      #authScreen[data-route="register"] .auth-menu {
        display: none;
      }
      #authScreen[data-route="login"] .auth-shell,
      #authScreen[data-route="register"] .auth-shell {
        display: flex;
        justify-content: center;
        align-items: center;
      }
      #authScreen[data-route="login"] .auth-hero,
      #authScreen[data-route="register"] .auth-hero,
      #authScreen[data-route="login"] .auth-visual,
      #authScreen[data-route="register"] .auth-visual,
      #authScreen[data-route="login"] .auth-surface,
      #authScreen[data-route="register"] .auth-surface,
      #authScreen[data-route="login"] .auth-story,
      #authScreen[data-route="register"] .auth-story,
      #authScreen[data-route="login"] .auth-feel,
      #authScreen[data-route="register"] .auth-feel,
      #authScreen[data-route="login"] .auth-stats,
      #authScreen[data-route="register"] .auth-stats,
      #authScreen[data-route="login"] .auth-feature-grid,
      #authScreen[data-route="register"] .auth-feature-grid {
        display: none;
      }
      #authScreen[data-route="login"] .auth-wrap,
      #authScreen[data-route="register"] .auth-wrap {
        width: min(460px, 100%);
        max-width: none;
        margin: 0 auto;
        position: static;
      }
      #authScreen[data-route="login"] .auth-logo,
      #authScreen[data-route="register"] .auth-logo {
        display: block;
      }
      #authScreen[data-route="login"] .auth-card,
      #authScreen[data-route="register"] .auth-card {
        margin-top: 0;
      }
      #authScreen .auth-hero {
        position: relative;
        overflow: visible;
        background: transparent;
        border: 0;
        border-radius: 0;
        padding: 12px 4px 0 8px;
        box-shadow: none;
      }
      #authScreen .auth-hero::after {
        inset: 12px auto auto 0;
        width: 240px;
        height: 240px;
        background: radial-gradient(circle, rgba(59, 130, 246, 0.07), transparent 66%);
      }
      #authScreen .auth-intro-hero {
        display: grid;
        gap: 16px;
        padding: 26px;
        border-radius: 30px;
        border: 1px solid rgba(190, 170, 130, 0.34);
        background:
          radial-gradient(circle at top right, rgba(59, 130, 246, 0.14), transparent 34%),
          linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 248, 238, 0.88)),
          rgba(255, 251, 244, 0.9);
        box-shadow:
          0 24px 48px rgba(82, 60, 23, 0.12),
          inset 0 1px 0 rgba(255, 255, 255, 0.72);
      }
      #authScreen .auth-dash-hero {
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
      }
      #authScreen .auth-intro-copy {
        max-width: 620px;
      }
      #authScreen .auth-intro-steps {
        min-width: 220px;
        flex: 0 0 280px;
        background: rgba(255, 255, 255, 0.62);
        border-color: rgba(190, 170, 130, 0.3);
        box-shadow: none;
      }
      #authScreen .auth-intro-quick {
        display: grid;
        gap: 12px;
      }
      #authScreen .auth-intro-tags {
        margin-top: 0;
      }
      #authScreen .auth-intro-quick .auth-shortener {
        margin: 0;
      }
      #authScreen .auth-intro-quick .auth-output-result {
        margin-top: 0;
      }
      #authScreen .auth-hero-top {
        margin-bottom: 18px;
        position: relative;
      }
      #authScreen .auth-brand-mark {
        background: linear-gradient(135deg, var(--brand), var(--purple));
        border: 1px solid rgba(255, 255, 255, 0.36);
        box-shadow:
          0 14px 28px rgba(59, 130, 246, 0.22),
          0 8px 18px rgba(139, 92, 246, 0.12),
          inset 0 1px 0 rgba(255, 255, 255, 0.34);
      }
      #authScreen .auth-brand-text span {
        color: var(--text2);
      }
      #authScreen .auth-nav {
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      #authScreen .auth-nav-group {
        position: relative;
        display: flex;
        align-items: center;
      }
      #authScreen .auth-nav a {
        color: var(--text2);
        border: 1px solid transparent;
        background: transparent;
      }
      #authScreen .auth-nav button {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 8px 11px;
        border-radius: 999px;
        border: 1px solid transparent;
        background: transparent;
        color: var(--text2);
        font-size: 12px;
        font-weight: 700;
        transition: 0.15s;
      }
      #authScreen .auth-nav button span {
        font-size: 10px;
        line-height: 1;
        opacity: 0.8;
      }
      #authScreen .auth-dropdown {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        min-width: 220px;
        padding: 10px;
        display: none;
        flex-direction: column;
        gap: 6px;
        background: rgba(255, 251, 244, 0.98);
        border: 1px solid rgba(190, 170, 130, 0.38);
        border-radius: 18px;
        box-shadow:
          0 18px 36px rgba(76, 57, 17, 0.14),
          inset 0 1px 0 rgba(255, 255, 255, 0.72);
      }
      #authScreen .auth-nav-group:hover .auth-dropdown,
      #authScreen .auth-nav-group.open .auth-dropdown,
      #authScreen .auth-nav-group:focus-within .auth-dropdown {
        display: flex;
      }
      #authScreen .auth-dropdown a {
        width: 100%;
        text-align: left;
        border-radius: 12px;
        padding: 10px 12px;
        color: var(--text2);
      }
      #authScreen .auth-dropdown a:hover {
        background: rgba(59, 130, 246, 0.08);
        color: var(--text);
      }
      #authScreen .auth-nav a:hover {
        color: var(--text);
        border-color: rgba(190, 170, 130, 0.4);
        background: rgba(255, 255, 255, 0.46);
      }
      #authScreen .auth-nav button:hover {
        color: var(--text);
        border-color: rgba(190, 170, 130, 0.4);
        background: rgba(255, 255, 255, 0.46);
      }
      #authScreen .auth-nav a.outline {
        border-color: rgba(190, 170, 130, 0.56);
        background: rgba(255, 255, 255, 0.48);
        color: var(--text);
      }
      #authScreen .auth-nav a.fill,
      #authScreen .auth-hero-action.primary,
      #authScreen .auth-shortener-btn {
        background: linear-gradient(135deg, var(--brand), var(--purple));
        border-color: transparent;
        color: #fff;
        box-shadow:
          0 14px 26px rgba(59, 130, 246, 0.24),
          0 6px 14px rgba(139, 92, 246, 0.12);
      }
      #authScreen .auth-nav-toggle {
        display: none;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        border: 1px solid rgba(59, 130, 246, 0.22);
        background: rgba(255, 255, 255, 0.52);
        color: var(--text);
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      #authScreen .auth-nav-toggle svg {
        width: 18px;
        height: 18px;
      }
      #authScreen .auth-kicker {
        background: rgba(59, 130, 246, 0.12);
        border-color: rgba(59, 130, 246, 0.2);
        color: var(--brand-d);
      }
      #authScreen .auth-hero h1,
      #authScreen .auth-hero h2 {
        font-size: clamp(42px, 4.1vw, 60px);
        line-height: 0.98;
        letter-spacing: -0.05em;
        max-width: 13ch;
        margin-bottom: 16px;
        color: #1f170f;
        text-shadow: none;
        opacity: 1;
      }
      #authScreen .auth-hero-accent,
      #authScreen .auth-typed {
        display: inline;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      #authScreen .auth-typed {
        display: inline-block;
        vertical-align: baseline;
      }
      #authScreen .typed-roller-viewport {
        display: inline-block;
        overflow: hidden;
        vertical-align: bottom;
        white-space: normal;
      }
      #authScreen .typed-roller-track {
        display: flex;
        flex-direction: column;
        will-change: transform;
        transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
      }
      #authScreen .typed-roller-item {
        display: flex;
        align-items: center;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
      }
      #authScreen .auth-hero-title strong {
        font: inherit;
      }
      #authScreen .auth-hero p {
        max-width: 60ch;
        color: var(--text2);
        font-size: 15px;
        line-height: 1.72;
      }
      #authScreen .auth-shortener {
        margin-top: 18px;
        border-radius: 18px;
        padding: 12px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(59, 130, 246, 0.18);
        box-shadow:
          0 16px 30px rgba(25, 41, 104, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.7);
        max-width: 760px;
      }
      #authScreen .auth-shortener-row {
        display: flex;
        gap: 8px;
        align-items: center;
      }
      #authScreen .auth-shortener-actions {
        display: flex;
        align-items: center;
        gap: 8px;
      }
      #authScreen .auth-shortener-input {
        flex: 1;
        min-width: 0;
        height: 48px;
        border-radius: 12px;
        border: 1px solid rgba(59, 130, 246, 0.18);
        background: #fff;
        color: var(--text);
        padding: 0 14px;
        outline: none;
        font-size: 15px;
        font-weight: 600;
      }
      #authScreen .auth-shortener-input::placeholder {
        color: #9a8f80;
      }
      #authScreen .auth-shortener-input:focus {
        border-color: var(--brand);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
      }
      #authScreen .auth-shortener-btn {
        min-width: 108px;
        height: 48px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 800;
      }
      #authScreen .auth-output-result {
        margin-top: 14px;
        border-radius: 16px;
        padding: 12px;
        border: 1px solid rgba(59, 130, 246, 0.18);
        background: rgba(255, 255, 255, 0.78);
        display: flex;
        align-items: center;
        gap: 12px;
        box-shadow:
          0 16px 30px rgba(25, 41, 104, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.72);
      }
      #authScreen .auth-output-qr {
        width: 76px;
        height: 76px;
        flex: 0 0 auto;
        border-radius: 12px;
        overflow: hidden;
        background: #fff;
        border: 1px solid rgba(59, 130, 246, 0.12);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      #authScreen .auth-output-qr canvas,
      #authScreen .auth-output-qr svg {
        width: 100% !important;
        height: 100% !important;
      }
      #authScreen .auth-output-text {
        flex: 1;
        min-width: 0;
      }
      #authScreen .auth-output-text p {
        font-size: 14px;
        line-height: 1.45;
        color: var(--text2);
        margin-bottom: 10px;
      }
      #authScreen .auth-result-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 14px;
        border-radius: 12px;
        background: linear-gradient(135deg, var(--brand), var(--purple));
        color: #fff;
        font-weight: 800;
        box-shadow:
          0 14px 26px rgba(59, 130, 246, 0.22),
          0 6px 14px rgba(139, 92, 246, 0.12);
      }
      #authScreen .typed-cursor {
        display: inline-block;
        margin-left: 2px;
        color: var(--brand);
        animation: authTypedBlink 1s steps(1, end) infinite;
      }
      @keyframes authTypedBlink {
        50% {
          opacity: 0;
        }
      }

      #authScreen .auth-feel,
      #authScreen .auth-stats,
      #authScreen .auth-feature-grid,
      #authScreen .auth-surface,
      #authScreen .auth-story {
        margin-top: 18px;
      }

      #authScreen .auth-feel {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
      }

      #authScreen .auth-feel span {
        padding: 9px 12px;
        border-radius: 999px;
        border: 1px solid rgba(59, 130, 246, 0.12);
        background: rgba(255, 255, 255, 0.52);
        color: var(--text2);
        font-size: 12px;
        font-weight: 700;
      }

      #authScreen .auth-feel.secondary span {
        background: rgba(139, 92, 246, 0.07);
        border-color: rgba(139, 92, 246, 0.12);
      }

      #authScreen .auth-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
      }

      #authScreen .auth-stat {
        border-radius: 18px;
        border: 1px solid rgba(190, 170, 130, 0.28);
        background: rgba(255, 255, 255, 0.56);
        padding: 16px;
        box-shadow: 0 12px 28px rgba(25, 41, 104, 0.06);
      }

      #authScreen .auth-stat .n {
        display: block;
        font-size: 28px;
        line-height: 1;
        font-weight: 900;
        color: var(--brand-d);
      }

      #authScreen .auth-stat .l {
        display: block;
        margin-top: 8px;
        color: var(--text2);
        font-size: 12px;
        line-height: 1.5;
      }

      #authScreen .auth-feature-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
      }

      #authScreen .auth-feature {
        border-radius: 20px;
        border: 1px solid rgba(190, 170, 130, 0.3);
        background: rgba(255, 255, 255, 0.6);
        padding: 18px;
        box-shadow: 0 16px 30px rgba(25, 41, 104, 0.06);
      }

      #authScreen .auth-feature b {
        display: block;
        font-size: 14px;
        margin-bottom: 8px;
      }

      #authScreen .auth-feature span {
        display: block;
        color: var(--text2);
        font-size: 12px;
        line-height: 1.65;
      }

      #authScreen .auth-surface,
      #authScreen .auth-story {
        border-radius: 28px;
        border: 1px solid rgba(190, 170, 130, 0.3);
        background:
          linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.52));
        padding: 18px;
        box-shadow: 0 16px 38px rgba(25, 41, 104, 0.08);
      }
      #authScreen .auth-shortener-btn:hover,
      #authScreen .auth-hero-action.primary:hover {
        transform: translateY(-1px);
      }
      #authScreen .auth-hero-actions {
        margin-top: 14px;
      }
      #authScreen .auth-hero-action {
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.48);
        border-color: rgba(59, 130, 246, 0.16);
      }
      #authScreen .auth-feel.secondary {
        margin-top: 10px;
      }
      #authScreen .auth-surface-card .n {
        color: var(--text);
      }
      #authScreen .auth-surface-preview {
        background: linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(255, 255, 255, 0.72));
      }
      #authScreen .auth-surface-preview .row + .row {
        border-top-color: rgba(190, 170, 130, 0.2);
      }
      #authScreen .auth-wrap {
        position: sticky;
        top: 24px;
        max-width: 420px;
        display: grid;
        gap: 16px;
      }
      #authScreen .auth-logo {
        display: none;
      }
      #authScreen .auth-logo .al-icon {
        background: linear-gradient(135deg, var(--brand), var(--purple));
        border: 1px solid rgba(255, 255, 255, 0.36);
        box-shadow:
          0 10px 20px rgba(59, 130, 246, 0.24),
          0 6px 14px rgba(139, 92, 246, 0.12);
      }
      #authScreen .auth-card {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(59, 130, 246, 0.14);
        box-shadow:
          0 18px 40px rgba(25, 41, 104, 0.1),
          inset 0 1px 0 rgba(255, 255, 255, 0.8);
      }
      #authScreen .auth-card-title {
        margin-bottom: 12px;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0.01em;
        color: var(--text2);
      }
      #authScreen .auth-tabs {
        background: rgba(234, 241, 255, 0.88);
      }
      #authScreen .auth-tab.active {
        background: #fff;
        box-shadow: 0 4px 10px rgba(76, 57, 17, 0.08);
      }
      #authScreen .auth-input,
      #authScreen .user-input {
        background: #fff;
        border-color: rgba(59, 130, 246, 0.16);
      }
      #authScreen .auth-input:focus,
      #authScreen .user-input:focus {
        border-color: var(--brand);
      }
      #authScreen .auth-divider span {
        background: #f7f1e6;
      }
      #authScreen .auth-visual {
        position: relative;
        border-radius: 32px;
        padding: 18px 18px 26px;
        background:
          linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(139, 92, 246, 0.14)),
          rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(59, 130, 246, 0.18);
        box-shadow:
          0 28px 58px rgba(25, 41, 104, 0.16),
          0 8px 20px rgba(76, 57, 17, 0.06);
        perspective: 1600px;
        transform-style: preserve-3d;
        isolation: isolate;
      }
      #authScreen .auth-visual::before {
        content: "";
        position: absolute;
        inset: 28px 18px 24px 18px;
        border-radius: 28px;
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.14), rgba(139, 92, 246, 0.1));
        box-shadow:
          0 20px 42px rgba(59, 130, 246, 0.12),
          inset 0 1px 0 rgba(255, 255, 255, 0.28);
        transform: translate3d(18px, 16px, -24px) rotateY(-10deg) rotateX(6deg);
        pointer-events: none;
        z-index: 0;
      }
      #authScreen .auth-visual-badge,
      #authScreen .auth-visual-float {
        position: absolute;
        z-index: 2;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(59, 130, 246, 0.16);
        box-shadow:
          0 12px 28px rgba(25, 41, 104, 0.12),
          0 1px 0 rgba(255, 255, 255, 0.7) inset;
        color: var(--brand-d);
        font-weight: 800;
      }
      #authScreen .auth-visual-badge {
        top: 12px;
        left: 12px;
        padding: 10px 14px;
      }
      #authScreen .auth-visual-float {
        padding: 10px 14px;
        font-size: 14px;
        color: var(--brand-d);
      }
      #authScreen .auth-visual-float.left {
        left: 6px;
        bottom: 38px;
        transform: rotate(-6deg);
      }
      #authScreen .auth-visual-float.right {
        right: 6px;
        bottom: 110px;
        transform: rotate(6deg);
      }
      #authScreen .auth-visual-card {
        position: relative;
        z-index: 1;
        background: #fff;
        border-radius: 22px;
        border: 1px solid rgba(59, 130, 246, 0.14);
        padding: 16px;
        overflow: hidden;
        transform: translateZ(0) rotateY(-15deg) rotateX(6deg);
        transform-origin: center center;
        box-shadow:
          0 30px 56px rgba(25, 41, 104, 0.18),
          0 14px 30px rgba(59, 130, 246, 0.12),
          inset 0 1px 0 rgba(255, 255, 255, 0.7);
      }
      #authScreen .auth-visual-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
      }
      #authScreen .auth-visual-top strong {
        display: block;
        font-size: 15px;
        font-weight: 900;
      }
      #authScreen .auth-visual-top span {
        display: block;
        margin-top: 3px;
        color: var(--text2);
        font-size: 12px;
        font-weight: 600;
      }
      #authScreen .auth-visual-kpi {
        color: var(--brand-d);
        font-size: 14px;
        font-weight: 800;
      }
      #authScreen .auth-visual-chart {
        margin-top: 10px;
        border-radius: 18px;
        background:
          linear-gradient(180deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.04));
        border: 1px solid rgba(59, 130, 246, 0.08);
        overflow: hidden;
      }
      #authScreen .auth-visual-chart svg {
        display: block;
        width: 100%;
        height: auto;
      }
      #authScreen .auth-visual-footer {
        margin-top: 12px;
        display: flex;
        justify-content: center;
      }
      #authScreen .auth-visual-footer span {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 10px 14px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(59, 130, 246, 0.14);
        box-shadow:
          0 10px 22px rgba(25, 41, 104, 0.08),
          inset 0 1px 0 rgba(255, 255, 255, 0.8);
        font-size: 14px;
        font-weight: 800;
        color: var(--text);
      }
      #authScreen .auth-visual-footer span::before {
        content: "🔗";
      }

      #authScreen .auth-footer {
        width: min(1250px, 100%);
        margin: 18px auto 10px;
        border-radius: 28px;
        border: 1px solid rgba(190, 170, 130, 0.28);
        background:
          linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(17, 24, 39, 0.94));
        box-shadow:
          0 28px 60px rgba(25, 41, 104, 0.18),
          inset 0 1px 0 rgba(255, 255, 255, 0.04);
        padding: 22px;
      }
      #authScreen .auth-footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 0.75fr));
        gap: 20px;
        align-items: start;
      }
      #authScreen .auth-footer-brand {
        display: flex;
        align-items: flex-start;
        gap: 14px;
      }
      #authScreen .auth-footer-brand b,
      #authScreen .auth-footer-col b {
        display: block;
        color: #f8f4ec;
        font-size: 14px;
        font-weight: 800;
        margin-bottom: 8px;
      }
      #authScreen .auth-footer-brand span {
        display: block;
        max-width: 40ch;
        color: rgba(248, 244, 236, 0.68);
        font-size: 12px;
        line-height: 1.6;
      }
      #authScreen .auth-footer-col {
        display: flex;
        flex-direction: column;
        gap: 8px;
      }
      #authScreen .auth-footer-col a {
        color: rgba(248, 244, 236, 0.72);
        font-size: 12px;
        font-weight: 600;
      }
      #authScreen .auth-footer-col a:hover {
        color: #ffffff;
      }
      #authScreen .auth-footer-bottom {
        margin-top: 18px;
        padding-top: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
        color: rgba(248, 244, 236, 0.58);
        font-size: 12px;
      }
      #authScreen .auth-footer-bottom-links {
        display: flex;
        align-items: center;
        gap: 14px;
      }
      #authScreen .auth-footer-bottom-links a {
        color: rgba(248, 244, 236, 0.72);
        font-weight: 600;
      }
      #authScreen .auth-footer-bottom-links a:hover {
        color: #fff;
      }

      @media (max-width: 768px) {
        #authScreen {
          padding: 0 10px 26px;
        }
        #authScreen .auth-menu {
          padding: 10px 0 12px;
        }
        #authScreen .auth-menu-inner {
          width: calc(100% - 20px);
          flex-wrap: wrap;
        }
        #authScreen .auth-shell {
          grid-template-columns: 1fr;
          gap: 16px;
        }
        #authScreen .auth-hero {
          padding: 20px 18px 18px;
          border-radius: 28px;
          text-align: center;
        }
        #authScreen .auth-intro-hero {
          padding: 18px;
          border-radius: 24px;
        }
        #authScreen .auth-hero-top {
          align-items: center;
          flex-wrap: nowrap;
        }
        #authScreen .auth-intro-steps {
          min-width: 0;
          flex: 1 1 auto;
        }
        #authScreen .auth-brand {
          min-width: 0;
        }
        #authScreen .auth-nav-toggle {
          display: inline-flex;
          margin-left: auto;
        }
        #authScreen .auth-brand-text b,
        #authScreen .auth-brand-text span {
          text-align: left;
        }
        #authScreen .auth-nav {
          position: absolute;
          top: calc(100% + 10px);
          left: 0;
          right: 0;
          display: none;
          padding: 12px;
          border-radius: 20px;
          background: rgba(255, 251, 244, 0.98);
          border: 1px solid rgba(59, 130, 246, 0.14);
          box-shadow: 0 18px 36px rgba(76, 57, 17, 0.14);
          z-index: 5;
          flex-direction: column;
        }
        #authScreen .auth-nav.open {
          display: flex;
        }
        #authScreen .auth-nav-group {
          width: 100%;
          flex-direction: column;
          align-items: stretch;
        }
        #authScreen .auth-dropdown {
          position: static;
          min-width: 0;
          width: 100%;
          margin-top: 8px;
        }
        #authScreen .auth-nav a,
        #authScreen .auth-nav button {
          width: 100%;
          justify-content: center;
          text-align: center;
        }
        #authScreen .auth-hero h1,
        #authScreen .auth-hero h2 {
          max-width: none;
          font-size: clamp(34px, 11vw, 48px);
          line-height: 0.98;
          margin-top: 14px;
        }
        #authScreen .auth-hero p {
          margin-inline: auto;
          font-size: 14px;
        }
        #authScreen .auth-shortener-row {
          flex-direction: column;
        }
        #authScreen .auth-shortener-actions {
          width: 100%;
        }
        #authScreen .auth-shortener-btn,
        #authScreen .auth-shortener-input {
          width: 100%;
        }
        #authScreen .auth-output-result {
          flex-direction: column;
          align-items: flex-start;
        }
        #authScreen .auth-hero-actions,
        #authScreen .auth-feel,
        #authScreen .auth-stats,
        #authScreen .auth-feature-grid,
        #authScreen .auth-surface-top,
        #authScreen .auth-surface-preview .row {
          justify-content: center;
        }
        #authScreen .auth-feel span {
          flex: 1 1 auto;
          justify-content: center;
        }
        #authScreen .auth-wrap {
          position: static;
          max-width: none;
        }
        #authScreen .auth-visual {
          margin-top: 2px;
        }
        #authScreen .auth-visual-card {
          transform: none;
        }
        #authScreen .auth-visual-float.left {
          left: 10px;
          bottom: 24px;
        }
        #authScreen .auth-visual-float.right {
          right: 10px;
          bottom: 92px;
        }
        #authScreen .auth-footer {
          width: calc(100% - 4px);
          padding: 18px;
        }
        #authScreen .auth-footer-inner {
          grid-template-columns: 1fr;
          gap: 18px;
        }
        #authScreen .auth-footer-bottom {
          align-items: flex-start;
        }
      }
    
