/* ============================================================
       got.reviews Brand System
       Mint green primary (#11C97A) + navy ink (#0F1B2D)
       ============================================================ */
    :root {
      /* --pink is kept as the variable name everywhere for stability, but its value
         is now the got.reviews brand mint. Same for --purple, --gradient, etc. */
      --pink: #11C97A;
      --pink-soft: rgba(17, 201, 122, 0.12);
      --pink-faint: rgba(17, 201, 122, 0.06);
      --purple: #0BA866;
      --gradient: linear-gradient(135deg, #11C97A 0%, #0FB872 50%, #0BA866 100%);
      --gradient-soft: linear-gradient(135deg, rgba(17,201,122,0.16) 0%, rgba(11,168,102,0.16) 100%);
      --ink: #0F1B2D;
      --ink-2: #1A2738;
      --ink-3: #253245;
      --line-dark: rgba(255,255,255,0.08);
      --line-dark-2: rgba(255,255,255,0.14);
      --bg: #F8FAFB;
      --surface: #FFFFFF;
      --surface-2: #F4F6F8;
      --line: #E5EAEF;
      --line-strong: #D5DBE2;
      --heading: #0F1B2D;
      --body: #4A5560;
      --muted: #7B8794;
      --lavender: #BDD3E0;
      /* --green is the functional "success" color (owner-active, "Passwords match", etc.) — nudged
         to teal so it stays distinguishable from the brand mint --pink */
      --green: #0E9F8E;
      --green-soft: rgba(14, 159, 142, 0.10);
      --red: #DC2841;
      --red-soft: rgba(220, 40, 65, 0.10);
      --amber: #D58A0E;
      --amber-soft: rgba(213, 138, 14, 0.12);
      --blue: #2563EB;
      --blue-soft: rgba(37, 99, 235, 0.10);
      --radius: 14px;
      --radius-sm: 10px;
      --radius-lg: 20px;
      --radius-pill: 999px;
      --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.04);
      --shadow: 0 4px 24px rgba(15, 27, 45, 0.06);
      --shadow-lg: 0 24px 60px rgba(15, 27, 45, 0.10);
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; }
    body {
      font-family: "DM Sans", system-ui, sans-serif;
      background: var(--bg);
      color: var(--body);
      font-size: 14px;
      line-height: 1.55;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    h1, h2, h3, h4, h5 {
      font-family: "Plus Jakarta Sans", sans-serif;
      color: var(--heading);
      font-weight: 700;
      letter-spacing: -0.01em;
      margin: 0;
    }
    .mono { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; }
    a { color: var(--heading); text-decoration: none; }
    .hidden { display: none !important; }

    /* Bootstrap integration helpers */
    .h-100 { height: 100% !important; }
    .w-100 { width: 100% !important; }
    .main { width: 100%; }
    #page-content { width: 100%; flex: 1 0 auto; }
    .page-footer { flex: 0 0 auto; }

    /* ============================================================
       Buttons
       ============================================================ */
    .btn {
      display: inline-flex; align-items: center; gap: 8px;
      padding: 10px 18px;
      border-radius: var(--radius-pill);
      font-family: "DM Sans", sans-serif;
      font-weight: 500; font-size: 13px;
      cursor: pointer; transition: all .25s;
      border: none; white-space: nowrap; line-height: 1.2;
      text-decoration: none;
    }
    .btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .btn-primary {
      background: var(--gradient); color: #fff;
      box-shadow: 0 6px 18px rgba(17, 201, 122, 0.28);
    }
    .btn-primary:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(17, 201, 122, 0.34);
      color: #fff;
    }
    .btn-ghost {
      background: var(--surface-2); color: var(--heading);
      border: 1px solid var(--line);
    }
    .btn-ghost:hover { background: #fff; border-color: var(--line-strong); color: var(--heading); }
    .btn-dark { background: var(--ink); color: #fff; }
    .btn-dark:hover { background: var(--ink-3); color: #fff; }
    .btn-danger { background: var(--red); color: #fff; }
    .btn-danger:hover { background: #c0233a; color: #fff; }
    .btn-sm { padding: 7px 14px; font-size: 12px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }
    .btn svg { width: 14px; height: 14px; }

    /* ============================================================
       Layout (sidebar + main)
       ============================================================ */
    .app {
      display: flex;
      min-height: 100vh;
    }
    /* Sidebar column: fixed width on desktop, hidden on tablet/mobile (drawer takes over) */
    .sidebar-col { flex: 0 0 260px; max-width: 260px; }
    .main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
    /* Hide the sidebar below the lg breakpoint (Bootstrap default: <992px) */
    @media (max-width: 991.98px) {
      /* Hide only the desktop sidebar on tablet/mobile.
         Do not hide .mobile-drawer .sidebar, otherwise the drawer opens blank. */
      .sidebar-col,
      .app > .sidebar { display: none !important; }
    }

    /* ---------- Sidebar ---------- */
    .sidebar {
      background: var(--ink);
      color: var(--lavender);
      padding: 22px 18px;
      display: flex; flex-direction: column; gap: 26px;
      position: sticky; top: 0;
      height: 100vh;
      border-right: 1px solid var(--line-dark);
    }
    .brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; }
    .brand-mark {
      width: 36px; height: 36px;
      border-radius: 10px;
      /* Dark navy tile so the green star pops on light AND dark surfaces consistently */
      background: var(--ink);
      display: flex; align-items: center; justify-content: center;
      box-shadow: 0 6px 18px rgba(17, 201, 122, 0.35);
      overflow: hidden;
    }
    .brand-mark img {
      width: 28px; height: 28px;
      object-fit: contain;
      display: block;
    }
    .brand-name {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-weight: 700; color: #fff; font-size: 15px; line-height: 1.1;
    }
    .brand-name span {
      color: var(--lavender); font-weight: 500; font-size: 11px;
      display: block; margin-top: 2px; letter-spacing: 0.02em;
    }
    .nav-section { display: flex; flex-direction: column; gap: 2px; }
    .nav-divider {
      height: 1px; background: var(--line-dark);
      margin: 10px 12px;
    }
    .nav-label {
      font-size: 10px; font-weight: 600; text-transform: uppercase;
      letter-spacing: 0.12em; color: rgba(205, 191, 214, 0.5);
      padding: 8px 12px 4px;
    }
    .nav-item {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px; border-radius: 10px;
      color: rgba(205, 191, 214, 0.85);
      font-size: 14px; font-weight: 500;
      transition: all .2s; cursor: pointer; position: relative;
      border: none; background: transparent; width: 100%; text-align: left;
      text-decoration: none;
    }
    .nav-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
    .nav-item.active { background: rgba(17, 201, 122, 0.14); color: #fff; }
    .nav-item.active::before {
      content: ""; position: absolute; left: -18px; top: 50%;
      transform: translateY(-50%);
      width: 3px; height: 22px;
      background: var(--gradient);
      border-radius: 0 3px 3px 0;
    }
    .nav-item svg { width: 18px; height: 18px; opacity: 0.85; }
    .nav-item.active svg { opacity: 1; }
    .nav-item .badge {
      margin-left: auto; background: var(--pink); color: #fff;
      font-size: 10px; font-weight: 600;
      padding: 2px 7px; border-radius: 999px;
      font-family: "JetBrains Mono", monospace;
    }
    .sidebar-footer {
      margin-top: auto; padding: 12px;
      border-radius: 14px;
      background: rgba(255,255,255,0.03);
      border: 1px solid var(--line-dark);
      display: flex; align-items: center; gap: 10px;
    }
    .avatar {
      width: 36px; height: 36px; border-radius: 10px;
      background: var(--gradient);
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-weight: 700;
      font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px;
      flex-shrink: 0;
    }
    .sidebar-footer .who { line-height: 1.2; flex: 1; min-width: 0; }
    .sidebar-footer .who strong {
      color: #fff; font-size: 13px; font-weight: 600; display: block;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .sidebar-footer .who span {
      color: rgba(205, 191, 214, 0.6); font-size: 11px;
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block;
    }
    .sidebar-logout {
      background: transparent; border: 1px solid transparent;
      width: 32px; height: 32px;
      border-radius: 8px;
      color: rgba(205, 191, 214, 0.55);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; flex-shrink: 0;
      transition: all .15s;
    }
    .sidebar-logout:hover {
      color: #fff;
      background: rgba(17, 201, 122, 0.18);
      border-color: rgba(17, 201, 122, 0.32);
    }
    .sidebar-logout svg { width: 15px; height: 15px; }

    /* ---------- Topbar ---------- */
    .topbar {
      min-height: 64px; padding: 12px 32px;
      background: var(--surface);
      border-bottom: 1px solid var(--line);
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px; position: sticky; top: 0; z-index: 5;
    }
    @media (max-width: 767.98px) { .topbar { padding: 12px 16px; gap: 8px; } }
    .crumbs {
      display: flex; align-items: center; gap: 8px;
      color: var(--muted); font-size: 13px;
      min-width: 0; flex: 1;
      overflow: hidden;
    }
    .crumbs > * { white-space: nowrap; }
    .crumbs strong {
      color: var(--heading); font-weight: 600;
      font-family: "Plus Jakarta Sans", sans-serif;
      overflow: hidden; text-overflow: ellipsis;
    }
    .crumbs a { color: var(--muted); }
    .crumbs a:hover { color: var(--heading); }
    .crumbs .chev { opacity: 0.4; flex-shrink: 0; }
    @media (max-width: 575.98px) {
      .crumbs .crumb-prefix, .crumbs .crumb-chev-1 { display: none; }
    }
    .top-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
    .pill {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 12px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      font-size: 12px; color: var(--body); font-weight: 500;
      white-space: nowrap;
    }
    @media (max-width: 767.98px) { .pill { display: none; } }
    .pill .live-dot {
      width: 7px; height: 7px;
      background: var(--green);
      border-radius: 50%;
      animation: pulse 1.8s ease-in-out infinite;
    }
    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(20,160,107,0.6); }
      70% { box-shadow: 0 0 0 8px rgba(20,160,107,0); }
      100% { box-shadow: 0 0 0 0 rgba(20,160,107,0); }
    }
    .mobile-menu-btn {
      display: none;
      background: var(--surface-2);
      border: 1px solid var(--line);
      width: 38px; height: 38px;
      border-radius: 10px;
      align-items: center; justify-content: center;
      color: var(--heading);
      cursor: pointer; flex-shrink: 0;
    }
    .mobile-menu-btn:hover { background: #fff; border-color: var(--line-strong); }
    .mobile-menu-btn svg { width: 18px; height: 18px; }
    @media (max-width: 991.98px) { .mobile-menu-btn { display: inline-flex; } }
    @media (max-width: 460px) {
      #btn-primary-action .btn-label { display: none; }
      #btn-primary-action { padding: 10px 14px; }
    }

    /* ---------- Page chrome ---------- */
    .page { padding: 28px 32px 48px; }
    @media (max-width: 767.98px) { .page { padding: 20px 16px 40px; } }
    .page-head { margin-bottom: 28px; }
    .h-eyebrow {
      font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
      color: var(--pink); font-weight: 600;
      margin-bottom: 8px; display: inline-flex; align-items: center; gap: 6px;
    }
    .h-eyebrow svg { width: 12px; height: 12px; }
    .page-head h1 { font-size: 30px; line-height: 1.1; font-weight: 800; }
    @media (max-width: 575.98px) { .page-head h1 { font-size: 24px; } }
    .page-head h1 em {
      font-style: normal;
      background: var(--gradient);
      -webkit-background-clip: text; background-clip: text;
      color: transparent;
    }
    .page-head .sub {
      color: var(--body); font-size: 14px; margin-top: 6px; max-width: 600px;
    }

    /* ---------- Stat cards ---------- */
    /* stat-row is a Bootstrap .row — these rules just style the cards inside */
    .stat-row { margin-bottom: 28px; }
    .stat-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 18px 20px;
      box-shadow: var(--shadow-sm);
    }
    .stat-card .l {
      font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
      color: var(--muted); font-weight: 600;
    }
    .stat-card .v {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 28px; font-weight: 800; color: var(--heading);
      margin-top: 6px; letter-spacing: -0.02em; line-height: 1;
    }
    .stat-card .v small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
    .stat-card .delta {
      font-size: 11px;
      margin-top: 8px;
      display: inline-flex; align-items: center; gap: 4px;
      color: var(--green);
    }
    .stat-card .delta svg { width: 10px; height: 10px; }
    .stat-card .delta.flat { color: var(--muted); }

    /* ---------- Cards (general) ---------- */
    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 24px;
      box-shadow: var(--shadow-sm);
    }
    .card.flush { padding: 0; overflow: hidden; }
    .card-head {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
    }
    .card-title {
      font-size: 15px; font-weight: 700;
      font-family: "Plus Jakarta Sans", sans-serif; color: var(--heading);
    }
    .card-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

    /* ---------- Section heads ---------- */
    .section-head {
      display: flex; align-items: flex-end; justify-content: space-between;
      gap: 16px; margin-bottom: 18px; flex-wrap: wrap;
    }
    .section-head h2 { font-size: 18px; font-weight: 700; color: var(--heading); }
    .section-head .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }

    /* ---------- Tags / pills ---------- */
    .tag {
      display: inline-flex; align-items: center; gap: 5px;
      padding: 4px 10px; border-radius: var(--radius-pill);
      font-size: 11px; font-weight: 500;
      background: var(--surface-2); color: var(--body);
      border: 1px solid var(--line);
    }
    .tag.gradient {
      background: var(--gradient-soft);
      color: var(--pink); border-color: transparent;
    }
    .tag.danger { background: var(--red-soft); color: var(--red); border-color: transparent; }
    .tag svg { width: 11px; height: 11px; }

    /* ============================================================
       CLIENT CARDS (compact, app-feel)
       ============================================================ */
    /* client-grid is a Bootstrap .row — these rules just style the cards inside */
    .client-card { width: 100%; }
    .client-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 16px 18px;
      box-shadow: var(--shadow-sm);
      transition: all .2s;
      display: flex; flex-direction: column; gap: 12px;
    }
    .client-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
    .cc-row {
      display: flex; align-items: center; gap: 12px;
    }
    .cc-logo {
      width: 44px; height: 44px; border-radius: 10px;
      background: var(--surface-2); border: 1px solid var(--line);
      object-fit: cover; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      color: var(--pink);
      overflow: hidden;
    }
    .cc-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .cc-logo svg { width: 18px; height: 18px; }
    .cc-info { flex: 1; min-width: 0; }
    /* Quick-action icon buttons in the top-right of each client card (Edit / Delete) */
    .cc-quick-actions {
      display: flex; align-items: center; gap: 2px;
      flex-shrink: 0;
      margin-left: 4px;
    }
    .cc-icon-btn {
      width: 32px; height: 32px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      border: 1px solid transparent;
      background: transparent;
      color: var(--muted);
      cursor: pointer;
      text-decoration: none;
      transition: background .15s, color .15s, border-color .15s;
    }
    .cc-icon-btn svg { width: 15px; height: 15px; }
    .cc-icon-btn:hover {
      background: var(--surface-2);
      border-color: var(--line);
      color: var(--heading);
    }
    .cc-icon-btn.danger:hover {
      background: var(--red-soft);
      border-color: transparent;
      color: var(--red);
    }
    .cc-name {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 15px; font-weight: 700;
      color: var(--heading); letter-spacing: -0.01em;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .cc-email {
      font-size: 12px; color: var(--muted);
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
      margin-top: 1px;
    }
    .cc-tags { display: flex; gap: 5px; flex-wrap: wrap; }
    .cc-actions {
      display: flex; align-items: center; gap: 4px;
      padding-top: 10px; border-top: 1px solid var(--line);
      flex-wrap: wrap;
    }
    .cc-action {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 6px 10px; font-size: 12px;
      color: var(--body); font-weight: 500;
      background: transparent; border: none; border-radius: 7px;
      cursor: pointer;
      font-family: "DM Sans", sans-serif;
      text-decoration: none;
      transition: all .15s;
    }
    .cc-action:hover { background: var(--surface-2); color: var(--heading); }
    .cc-action.primary { color: var(--pink); }
    .cc-action.primary:hover { background: var(--pink-faint); color: var(--pink); }
    .cc-action.danger:hover { background: var(--red-soft); color: var(--red); }
    .cc-action svg { width: 13px; height: 13px; }
    .cc-action .mini-badge {
      background: var(--red); color: #fff;
      font-size: 10px; font-weight: 600;
      padding: 1px 5px; border-radius: 999px;
      font-family: "JetBrains Mono", monospace;
      margin-left: -2px;
    }
    .cc-spacer { flex: 1; }

    /* ============================================================
       FORMS (separate-page editor)
       ============================================================ */
    .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
    .field-row { margin-bottom: 0; }
    .field-row > .field { margin-bottom: 18px; }
    .field label {
      font-size: 12px; font-weight: 600;
      color: var(--heading);
      font-family: "Plus Jakarta Sans", sans-serif;
    }
    .field label .req { color: var(--pink); margin-left: 2px; }
    .field .help { font-size: 11px; color: var(--muted); }
    .input, .textarea, .select {
      font-family: "DM Sans", sans-serif;
      font-size: 14px;
      padding: 11px 14px;
      border-radius: 10px;
      border: 1px solid var(--line-strong);
      background: var(--surface);
      color: var(--heading);
      width: 100%;
      transition: all .2s;
    }
    .input:focus, .textarea:focus, .select:focus {
      outline: none; border-color: var(--pink);
      box-shadow: 0 0 0 4px var(--pink-faint);
    }
    .input::placeholder, .textarea::placeholder { color: var(--muted); }
    .textarea { min-height: 96px; resize: vertical; }

    /* Logo group with fetch button */
    .logo-group { display: flex; gap: 8px; align-items: stretch; }
    .logo-group .input { flex: 1; min-width: 0; }
    .btn-fetch {
      display: inline-flex; align-items: center; gap: 6px;
      padding: 0 14px;
      background: var(--gradient-soft);
      color: var(--pink);
      border: 1px solid transparent;
      border-radius: 10px;
      font-family: "DM Sans", sans-serif;
      font-weight: 600; font-size: 12px;
      cursor: pointer;
      white-space: nowrap;
      transition: all .2s;
    }
    .btn-fetch:hover:not(:disabled) {
      background: var(--gradient);
      color: #fff;
      box-shadow: 0 4px 12px rgba(17, 201, 122, 0.24);
    }
    .btn-fetch svg { width: 14px; height: 14px; }
    .logo-preview {
      display: flex; align-items: center; gap: 10px;
      margin-top: 8px;
      padding: 8px 10px;
      background: var(--surface-2);
      border: 1px dashed var(--line-strong);
      border-radius: 8px;
      font-size: 11px;
      color: var(--muted);
    }
    .logo-preview img {
      width: 32px; height: 32px;
      border-radius: 6px;
      object-fit: cover;
      background: #fff;
      border: 1px solid var(--line);
    }
    .logo-preview .placeholder {
      width: 32px; height: 32px;
      border-radius: 6px;
      background: #fff;
      border: 1px solid var(--line);
      display: flex; align-items: center; justify-content: center;
      color: var(--muted);
    }
    .logo-preview .placeholder svg { width: 14px; height: 14px; }

    /* Platform editor rows */
    .platform-row {
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 10px;
    }
    .platform-row-head {
      display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
    }
    .platform-row-head .num {
      width: 22px; height: 22px;
      border-radius: 6px;
      background: var(--gradient);
      color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-family: "JetBrains Mono", monospace;
      font-size: 11px; font-weight: 700;
    }
    .platform-row-head .label {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 13px; font-weight: 600; color: var(--heading);
    }
    .platform-row-head .preview { margin-left: auto; font-size: 11px; color: var(--muted); }
    .platform-row .field { margin-bottom: 10px; }
    .platform-row .field:last-child { margin-bottom: 0; }
    .platform-row .input { padding: 9px 12px; font-size: 13px; }

    .form-actions {
      display: flex; gap: 10px; justify-content: flex-end;
      padding-top: 20px; margin-top: 24px;
      border-top: 1px solid var(--line);
      flex-wrap: wrap;
    }
    @media (max-width: 575.98px) {
      .form-actions { flex-direction: column-reverse; }
      .form-actions .btn { width: 100%; justify-content: center; }
    }

    /* ============================================================
       DASHBOARD
       ============================================================ */
    .dash-grid { margin-top: 0; }
    .dash-grid > [class*="col-"] { display: flex; }
    .dash-grid > [class*="col-"] > .card { width: 100%; }

    .feedback-list { display: flex; flex-direction: column; }
    .feedback-row {
      display: flex; gap: 14px; align-items: flex-start;
      padding: 14px 0;
      border-bottom: 1px solid var(--line);
    }
    .feedback-row:last-child { border-bottom: none; }
    .feedback-row:first-child { padding-top: 0; }
    .fb-stars { display: flex; gap: 1px; flex-shrink: 0; padding-top: 2px; }
    .fb-stars svg { width: 13px; height: 13px; }
    .fb-body { flex: 1; min-width: 0; }
    .fb-meta {
      display: flex; align-items: center; gap: 8px;
      margin-bottom: 4px; flex-wrap: wrap;
    }
    .fb-name { font-weight: 600; color: var(--heading); font-size: 13px; }
    .fb-client {
      font-size: 11px; color: var(--muted);
      display: inline-flex; align-items: center; gap: 4px;
    }
    .fb-client::before { content: "·"; opacity: 0.5; }
    .fb-time {
      font-size: 11px; color: var(--muted);
      margin-left: auto;
      font-family: "JetBrains Mono", monospace;
    }
    .fb-comment {
      font-size: 13px; color: var(--body); line-height: 1.5;
      overflow: hidden; display: -webkit-box;
      -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    }

    .recent-clients { display: flex; flex-direction: column; gap: 8px; }
    .recent-client {
      display: flex; align-items: center; gap: 12px;
      padding: 10px 12px;
      border: 1px solid var(--line);
      border-radius: 10px;
      transition: all .2s;
      color: var(--heading);
    }
    .recent-client:hover { border-color: var(--line-strong); background: var(--surface-2); }
    .recent-client .rc-logo {
      width: 36px; height: 36px; border-radius: 8px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      display: flex; align-items: center; justify-content: center;
      color: var(--pink);
      overflow: hidden;
      flex-shrink: 0;
    }
    .recent-client .rc-logo img { width: 100%; height: 100%; object-fit: cover; }
    .recent-client .rc-logo svg { width: 16px; height: 16px; }
    .recent-client .rc-name {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 13px; font-weight: 600;
      overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    }
    .recent-client .rc-info { flex: 1; min-width: 0; }
    .recent-client .rc-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
    .recent-client .rc-arrow { color: var(--muted); }
    .recent-client .rc-arrow svg { width: 14px; height: 14px; }

    /* ============================================================
       INBOX page
       ============================================================ */
    .review-item {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 18px 20px;
      margin-bottom: 12px;
      box-shadow: var(--shadow-sm);
    }
    .review-head {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 12px; margin-bottom: 10px;
    }
    .review-stars { display: flex; gap: 2px; margin-top: 4px; }
    .review-stars svg { width: 14px; height: 14px; }
    .review-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
    .review-name { font-weight: 600; color: var(--heading); font-size: 14px; }
    .review-contact {
      font-size: 12px; color: var(--muted); margin-bottom: 10px;
      display: flex; gap: 14px; flex-wrap: wrap;
    }
    .review-contact span { display: inline-flex; align-items: center; gap: 4px; }
    .review-contact svg { width: 11px; height: 11px; }
    .review-comment {
      color: var(--body); font-size: 13px; line-height: 1.6;
      padding: 12px 14px;
      background: var(--surface-2);
      border-radius: 8px;
      margin-bottom: 12px;
    }
    .review-actions { display: flex; gap: 8px; flex-wrap: wrap; }

    /* ============================================================
       EMPTY STATES
       ============================================================ */
    .empty-state {
      text-align: center;
      padding: 60px 24px;
      border: 1.5px dashed var(--line-strong);
      border-radius: var(--radius-lg);
      background: var(--surface);
    }
    .empty-state .icon {
      width: 56px; height: 56px;
      border-radius: 14px;
      background: var(--gradient-soft);
      color: var(--pink);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 16px;
    }
    .empty-state .icon svg { width: 24px; height: 24px; }
    .empty-state h3 { font-size: 18px; margin-bottom: 6px; }
    .empty-state p { max-width: 380px; margin: 0 auto 16px; color: var(--muted); font-size: 13px; }

    /* ============================================================
       MODAL (small, for confirms only)
       ============================================================ */
    .modal-backdrop {
      position: fixed; inset: 0;
      background: rgba(15, 14, 20, 0.55);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 100;
      opacity: 0; pointer-events: none;
      transition: opacity .25s;
      display: flex; align-items: center; justify-content: center;
      padding: 24px;
      overflow-y: auto;
      overscroll-behavior: contain;
    }
    @media (max-width: 575.98px) {
      .modal-backdrop { padding: 12px; }
    }
    .modal-backdrop.open { opacity: 1; pointer-events: auto; }
    .modal {
      background: var(--surface);
      border-radius: var(--radius-lg);
      width: 100%;
      max-width: 440px;
      margin: auto;
      box-shadow: 0 24px 80px rgba(15, 14, 20, 0.32);
      border: 1px solid var(--line);
      transform: translateY(8px) scale(0.98);
      transition: transform .25s cubic-bezier(0.2, 0, 0.1, 1);
      display: flex; flex-direction: column;
      overflow: hidden;
    }
    .modal-backdrop.open .modal { transform: translateY(0) scale(1); }
    .modal-head { padding: 22px 26px 14px; }
    .modal-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; }
    .modal-head p { font-size: 13px; color: var(--muted); margin: 0; }
    .modal-foot {
      padding: 16px 22px;
      border-top: 1px solid var(--line);
      display: flex; gap: 10px; justify-content: flex-end;
      background: var(--surface-2);
    }

    /* ============================================================
       TOAST
       ============================================================ */
    #toast-container {
      position: fixed; bottom: 24px; right: 24px;
      z-index: 200;
      display: flex; flex-direction: column; gap: 10px;
      pointer-events: none; max-width: 380px;
    }
    .toast {
      background: var(--ink); color: #fff;
      padding: 12px 16px;
      border-radius: 12px;
      font-size: 13px; font-weight: 500;
      box-shadow: 0 12px 32px rgba(15, 14, 20, 0.32);
      border: 1px solid var(--line-dark);
      display: flex; align-items: center; gap: 12px;
      pointer-events: auto;
      transform: translateX(120%); opacity: 0;
      transition: transform .35s cubic-bezier(0.2, 0, 0.1, 1), opacity .25s;
      min-width: 280px;
    }
    .toast.show { transform: translateX(0); opacity: 1; }
    .toast .toast-ico {
      width: 28px; height: 28px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(255,255,255,0.08);
    }
    .toast.success .toast-ico { background: rgba(20,160,107,0.20); color: #4dd49b; }
    .toast.error .toast-ico { background: rgba(220,40,65,0.20); color: #ff6478; }
    .toast.brand .toast-ico { background: rgba(17,201,122,0.20); color: #5DE0A3; }
    .toast .toast-ico svg { width: 14px; height: 14px; }
    .toast .toast-body { flex: 1; line-height: 1.45; min-width: 0; }
    .toast .toast-body strong {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-weight: 700; display: block; color: #fff; font-size: 13px;
    }
    .toast .toast-body span { color: var(--lavender); font-size: 12px; }

    /* ============================================================
       LOGIN PAGE
       ============================================================ */
    .login-view {
      min-height: 100vh;
      display: flex;
      background: var(--bg);
    }
    .login-view > * { flex: 1 1 0; min-width: 0; }
    @media (max-width: 991.98px) {
      .login-view { display: block; }
      .login-brand-panel { display: none; }
    }
    .login-brand-panel {
      background: var(--ink);
      color: #fff;
      padding: 48px;
      position: relative;
      overflow: hidden;
      display: flex; flex-direction: column;
    }
    .login-brand-panel::before {
      content: "";
      position: absolute; inset: 0;
      background:
        radial-gradient(ellipse 800px 600px at 0% 0%, rgba(17,201,122,0.32) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 100%, rgba(11,168,102,0.32) 0%, transparent 60%);
      pointer-events: none;
    }
    .login-brand-panel > * { position: relative; z-index: 1; }
    .login-brand-top {
      display: flex; align-items: center; gap: 12px;
    }
    .login-brand-bottom {
      margin-top: auto;
    }
    .login-brand-bottom .quote {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 28px; line-height: 1.25;
      font-weight: 700;
      letter-spacing: -0.01em;
      color: #fff;
      margin-bottom: 16px;
    }
    .login-brand-bottom .quote em {
      font-style: normal;
      background: var(--gradient);
      -webkit-background-clip: text; background-clip: text;
      color: transparent;
    }
    .login-brand-bottom .attrib {
      font-size: 13px; color: var(--lavender);
      display: flex; align-items: center; gap: 10px;
    }
    .login-brand-bottom .attrib .avatar { width: 28px; height: 28px; font-size: 11px; }

    .login-form-panel {
      padding: 48px;
      display: flex; flex-direction: column; justify-content: center;
      min-height: 100vh;
    }
    @media (max-width: 575.98px) { .login-form-panel { padding: 32px 20px; } }
    .login-form-inner {
      max-width: 380px;
      margin: 0 auto;
      width: 100%;
    }
    .login-form-inner h1 {
      font-size: 32px;
      margin-bottom: 8px;
      letter-spacing: -0.02em;
    }
    .login-form-inner .sub {
      color: var(--body);
      margin-bottom: 28px;
      font-size: 14px;
    }
    .login-form-inner .field { margin-bottom: 14px; }

    /* Row containing "Remember me" + "Forgot password?" link */
    .login-form-inner .login-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 6px 0 12px;
      font-size: 13px;
    }
    .login-form-inner .checkbox {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      user-select: none;
      color: var(--heading);
      font-weight: 500;
      position: relative;
    }
    .login-form-inner .checkbox input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
      width: 0; height: 0;
    }
    .login-form-inner .checkbox .box {
      width: 18px; height: 18px;
      border-radius: 5px;
      border: 1.5px solid var(--line);
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.15s, border-color 0.15s;
      flex-shrink: 0;
    }
    .login-form-inner .checkbox .box::after {
      content: '';
      width: 11px; height: 11px;
      background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
      background-size: contain;
      background-repeat: no-repeat;
      opacity: 0;
      transition: opacity 0.15s;
    }
    .login-form-inner .checkbox:hover .box {
      border-color: var(--pink);
    }
    .login-form-inner .checkbox input:checked + .box {
      background: var(--pink);
      border-color: var(--pink);
    }
    .login-form-inner .checkbox input:checked + .box::after { opacity: 1; }
    .login-form-inner .checkbox input:focus-visible + .box {
      outline: 2px solid var(--pink);
      outline-offset: 2px;
    }
    .login-form-inner .link-muted {
      color: var(--muted);
      text-decoration: none;
      transition: color 0.15s;
      font-weight: 500;
    }
    .login-form-inner .link-muted:hover { color: var(--pink); }

    /* Forgot-password success state */
    .login-form-inner .back-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--muted);
      text-decoration: none;
      font-size: 13px;
      font-weight: 500;
      margin-bottom: 22px;
      transition: color 0.15s;
    }
    .login-form-inner .back-link:hover { color: var(--heading); }
    .login-form-inner .back-link svg { flex-shrink: 0; }

    .login-form-inner .success-card {
      text-align: center;
      padding: 8px 0;
    }
    .login-form-inner .success-card .success-icon {
      width: 64px; height: 64px;
      border-radius: 16px;
      background: var(--gradient);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 22px;
      box-shadow: 0 10px 28px rgba(17, 201, 122, 0.35), 0 0 0 8px rgba(17, 201, 122, 0.06);
    }
    .login-form-inner .success-card .success-icon svg {
      width: 30px; height: 30px;
    }
    .login-form-inner .success-card h3 {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 22px;
      font-weight: 800;
      color: var(--heading);
      margin: 0 0 12px;
      letter-spacing: -0.01em;
    }
    .login-form-inner .success-card p {
      color: var(--muted);
      font-size: 14px;
      line-height: 1.6;
      margin: 0 0 24px;
    }
    /* Pink-tinted email pill, like a soft inline code */
    .login-form-inner .email-pill {
      display: inline-block;
      background: rgba(17, 201, 122, 0.08);
      color: var(--pink);
      font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 12.5px;
      padding: 2px 8px;
      border-radius: 5px;
      font-weight: 500;
      word-break: break-all;
    }
    /* Soft secondary button — "Resend email" */
    .login-form-inner .btn-resend {
      width: 100%;
      padding: 14px;
      background: var(--surface-2);
      color: var(--heading);
      border: 1px solid var(--line);
      border-radius: var(--radius-pill);
      font-weight: 600;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
      font-family: "DM Sans", sans-serif;
    }
    .login-form-inner .btn-resend:hover:not(.cooling) {
      background: #fff;
      border-color: rgba(17, 201, 122, 0.3);
      color: var(--pink);
    }
    .login-form-inner .btn-resend.cooling {
      opacity: 0.55;
      cursor: not-allowed;
    }
    /* Pink-accent text button — "Use a different email" */
    .login-form-inner .link-pink {
      background: none;
      border: none;
      color: var(--pink);
      font-family: inherit;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      margin-top: 16px;
      padding: 6px 12px;
      transition: opacity 0.15s;
    }
    .login-form-inner .link-pink:hover { opacity: 0.7; }

    .login-form-inner .submit {
      width: 100%;
      padding: 14px;
      background: var(--gradient);
      color: #fff;
      border: none;
      border-radius: var(--radius-pill);
      font-weight: 600; font-size: 14px;
      cursor: pointer;
      box-shadow: 0 6px 18px rgba(17, 201, 122, 0.28);
      transition: all .2s;
      font-family: "DM Sans", sans-serif;
      margin-top: 8px;
    }
    .login-form-inner .submit:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 10px 24px rgba(17, 201, 122, 0.34);
    }
    .login-form-inner .hint {
      margin-top: 18px;
      padding: 12px 14px;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 10px;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.5;
    }
    .login-form-inner .hint strong {
      color: var(--heading); font-weight: 600;
      display: block; margin-bottom: 2px;
    }

    /* ============================================================
       MOBILE DRAWER
       ============================================================ */
    .mobile-drawer {
      position: fixed; top: 0; left: 0; bottom: 0;
      width: 280px;
      background: var(--ink);
      color: var(--lavender);
      z-index: 110;
      transform: translateX(-100%);
      transition: transform .3s cubic-bezier(0.2, 0, 0.1, 1);
      box-shadow: 12px 0 32px rgba(0, 0, 0, 0.18);
      overflow-y: auto;
    }
    .mobile-drawer.open { transform: translateX(0); }
    .mobile-drawer .sidebar {
      display: flex !important;
      position: static; height: auto; min-height: 100vh; border-right: 0;
    }
    #mobile-sidebar:not(.sidebar) {
      display: flex !important;
      flex-direction: column;
      gap: 26px;
      min-height: 100vh;
      padding: 22px 18px;
    }
    .mobile-drawer-overlay {
      position: fixed; inset: 0;
      background: rgba(15, 14, 20, 0.55);
      backdrop-filter: blur(2px);
      -webkit-backdrop-filter: blur(2px);
      z-index: 105;
      opacity: 0; pointer-events: none;
      transition: opacity .25s;
    }
    .mobile-drawer-overlay.open { opacity: 1; pointer-events: auto; }
    .mobile-drawer-close,
    .mobile-close-btn {
      position: absolute; top: 14px; right: 14px;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid var(--line-dark);
      width: 30px; height: 30px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      color: var(--lavender);
      cursor: pointer;
    }
    .mobile-drawer-close:hover,
    .mobile-close-btn:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
    .mobile-drawer-close svg,
    .mobile-close-btn svg { width: 14px; height: 14px; }

    /* ============================================================
       CUSTOMER REVIEW PAGE (public, premium)
       ============================================================ */
    .review-page {
      min-height: 100vh;
      background: var(--bg);
      position: relative;
      overflow: hidden;
    }
    .review-page::before {
      content: ""; position: absolute; inset: 0;
      background-image:
        radial-gradient(ellipse 800px 600px at 15% 0%, rgba(17,201,122,0.10) 0%, transparent 60%),
        radial-gradient(ellipse 700px 500px at 85% 100%, rgba(11,168,102,0.10) 0%, transparent 60%);
      pointer-events: none;
    }
    .review-page-inner {
      position: relative; z-index: 1;
      max-width: 620px;
      margin: 0 auto;
      padding: 80px 24px 60px;
    }
    @media (max-width: 575.98px) { .review-page-inner { padding: 56px 20px 40px; } }

    .preview-banner {
      position: sticky; top: 0; z-index: 50;
      background: var(--ink);
      color: #fff;
      padding: 10px 0;
      font-size: 13px;
    }
    .preview-banner-inner {
      max-width: 1100px; margin: 0 auto;
      padding: 0 24px;
      display: flex; align-items: center; justify-content: space-between;
      gap: 12px;
    }
    .preview-banner .label { display: inline-flex; align-items: center; gap: 8px; }
    .preview-banner .label svg { width: 14px; height: 14px; color: var(--pink); }
    .preview-banner .exit {
      background: transparent; border: none; color: var(--lavender);
      cursor: pointer; font-size: 13px;
      display: inline-flex; align-items: center; gap: 4px;
    }
    .preview-banner .exit:hover { color: #fff; }
    .preview-banner .exit svg { width: 14px; height: 14px; }

    .rp-header { text-align: center; margin-bottom: 36px; }
    .rp-logo-wrap {
      width: 104px; height: 104px;
      margin: 0 auto 22px;
      padding: 3px;
      border-radius: 26px;
      background: var(--gradient);
      box-shadow:
        0 8px 24px rgba(17, 201, 122, 0.18),
        0 2px 8px rgba(15, 14, 20, 0.06);
    }
    .rp-logo {
      width: 100%; height: 100%;
      border-radius: 22px;
      background: var(--surface);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      color: var(--pink);
    }
    .rp-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .rp-logo svg { width: 36px; height: 36px; }
    @media (max-width: 575.98px) {
      .rp-logo-wrap { width: 88px; height: 88px; border-radius: 22px; }
      .rp-logo { border-radius: 18px; }
    }
    .rp-eyebrow {
      font-size: 11px;
      text-transform: uppercase; letter-spacing: 0.28em;
      color: var(--pink); font-weight: 600;
      margin-bottom: 14px;
    }
    .rp-title {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 42px; line-height: 1.1; font-weight: 800;
      color: var(--heading); letter-spacing: -0.02em;
      margin-bottom: 16px;
    }
    @media (max-width: 575.98px) { .rp-title { font-size: 32px; } }
    .rp-description {
      color: var(--body); font-size: 15px; line-height: 1.65;
      max-width: 460px; margin: 0 auto;
    }
    .rp-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      padding: 40px 36px;
      box-shadow: 0 12px 40px rgba(15, 14, 20, 0.05);
    }
    @media (max-width: 575.98px) { .rp-card { padding: 28px 22px; } }
    .rp-card h2 {
      font-size: 22px; text-align: center;
      margin-bottom: 6px;
      font-weight: 800; letter-spacing: -0.01em;
    }
    .rp-card .rp-sub {
      text-align: center; color: var(--muted);
      font-size: 13px; margin-bottom: 28px;
    }
    .star-row {
      display: flex; justify-content: center; gap: 10px;
      margin-bottom: 14px;
    }
    @media (max-width: 575.98px) { .star-row { gap: 6px; } }
    .star-btn {
      background: transparent; border: none; cursor: pointer;
      padding: 4px;
      transition: transform .15s;
    }
    .star-btn:hover { transform: scale(1.08); }
    .star-btn:active { transform: scale(0.95); }
    .star-btn svg { width: 52px; height: 52px; display: block; transition: all .2s; }
    @media (max-width: 575.98px) { .star-btn svg { width: 42px; height: 42px; } }
    .star-btn .star-fill { fill: #E5E1EC; transition: fill .2s; }
    .star-btn .star-stroke { stroke: #DDD9E3; }
    .star-btn.active .star-fill { fill: url(#starGradient); }
    .star-btn.active .star-stroke { stroke: transparent; }
    .star-btn.pulse { animation: starPulse 0.45s ease-out; }
    @keyframes starPulse {
      0% { transform: scale(1); }
      40% { transform: scale(1.25); }
      100% { transform: scale(1); }
    }
    .rating-label {
      text-align: center;
      font-family: "Plus Jakarta Sans", sans-serif;
      font-weight: 600; font-size: 15px;
      color: var(--heading);
      margin-bottom: 6px;
      min-height: 22px;
    }
    /* After a rating is picked, hide the helper text but keep the stars
       visible (locked) so the customer can see their selection. */
    .rp-card.rated .rp-sub { display: none; }
    .rp-card.rated .rating-label {
      font-size: 20px;
      margin: 4px 0 14px;
      min-height: 0;
    }
    .star-row.locked .star-btn { cursor: default; }
    .star-row.locked .star-btn:hover,
    .star-row.locked .star-btn:active { transform: none; }
    .star-row.locked .star-btn:disabled { opacity: 1; }
    .rating-hint {
      text-align: center; font-size: 12px; color: var(--muted);
      min-height: 18px;
    }
    .rp-divider { height: 1px; background: var(--line); margin: 28px 0; }
    .feedback-form, .platform-grid { animation: fadeIn .35s ease-out; }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .feedback-form .lead-text, .platform-grid .lead-text {
      text-align: center; color: var(--body); font-size: 14px;
      line-height: 1.55; margin-bottom: 18px;
      max-width: 440px; margin-left: auto; margin-right: auto;
    }
    .feedback-form .lead-text strong, .platform-grid .lead-text strong {
      color: var(--heading); font-weight: 600;
    }
    .feedback-form .input, .feedback-form .textarea { margin-bottom: 10px; }
    .feedback-form .submit {
      width: 100%; padding: 14px;
      background: var(--ink); color: #fff;
      border: none; border-radius: var(--radius-pill);
      font-weight: 600; font-size: 14px;
      cursor: pointer; transition: all .2s;
      font-family: "DM Sans", sans-serif; margin-top: 6px;
    }
    .feedback-form .submit:hover:not(:disabled) {
      background: var(--gradient); color: #fff;
      box-shadow: 0 8px 20px rgba(17, 201, 122, 0.32);
    }
    .feedback-form .submit:disabled { opacity: 0.5; cursor: not-allowed; }
    .platforms { margin-top: 0; }
    .platforms > [class*="col-"] { display: flex; }
    .platforms .platform-link { width: 100%; }
    .platform-link {
      display: flex; align-items: center; gap: 12px;
      padding: 14px 16px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      color: var(--heading);
      transition: all .2s;
    }
    .platform-link:hover {
      background: #fff;
      border-color: var(--pink);
      box-shadow: 0 4px 14px rgba(17, 201, 122, 0.12);
      transform: translateY(-1px);
      color: var(--heading);
    }
    .platform-logo {
      width: 36px; height: 36px;
      border-radius: 9px;
      background: #fff;
      border: 1px solid var(--line);
      display: flex; align-items: center; justify-content: center;
      overflow: hidden;
      flex-shrink: 0;
    }
    .platform-logo img { width: 22px; height: 22px; object-fit: contain; }
    .platform-logo svg { width: 18px; height: 18px; color: var(--muted); }
    .platform-name {
      font-weight: 600; font-size: 14px; flex: 1;
      font-family: "Plus Jakarta Sans", sans-serif;
    }
    .platform-link .arrow { color: var(--muted); transition: color .2s; }
    .platform-link:hover .arrow { color: var(--pink); }
    .platform-link .arrow svg { width: 16px; height: 16px; display: block; }
    .rp-footer {
      text-align: center; margin-top: 32px;
      font-size: 11px; color: var(--muted);
      letter-spacing: 0.05em;
    }
    .rp-footer .powered { display: inline-flex; align-items: center; gap: 6px; }
    .rp-footer .powered svg { width: 12px; height: 12px; color: var(--pink); }
    .rp-success { text-align: center; padding: 12px 0 8px; animation: fadeIn .4s ease-out; }
    .rp-success .check-icon {
      width: 64px; height: 64px; border-radius: 16px;
      background: var(--green-soft); color: var(--green);
      display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
    }
    .rp-success .check-icon svg { width: 32px; height: 32px; }
    .rp-success h2 { font-size: 28px; margin-bottom: 10px; }
    .rp-success p { color: var(--body); max-width: 360px; margin: 0 auto; font-size: 14px; }
/* ============================================================
   CLIENT PORTAL ADDITIONS
   ============================================================ */
.brand-mark.client-mark {
  background: var(--surface);
  overflow: hidden;
  color: var(--pink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.brand-mark.client-mark img { width: 100%; height: 100%; object-fit: cover; }

.sidebar-poweredby {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 8px 4px;
  font-size: 10px;
  color: rgba(205, 191, 214, 0.5);
  letter-spacing: 0.04em;
}
.sidebar-poweredby svg { width: 10px; height: 10px; color: var(--pink); }
.sidebar-poweredby strong { color: rgba(205, 191, 214, 0.75); font-weight: 600; }

/* Centered "Powered by" footer that sits at the bottom of every authed page. */
.page-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 24px 32px 28px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.page-footer svg { width: 12px; height: 12px; color: var(--pink); }
.page-footer strong { color: var(--heading); font-weight: 600; }
.page-footer .page-footer-sep { opacity: 0.5; }
@media (max-width: 575.98px) {
  .page-footer { flex-wrap: wrap; gap: 4px 8px; text-align: center; }
  .page-footer .page-footer-sep { display: none; }
}

/* Owner status pill on agency client cards */
.owner-status {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 500;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--body);
}
.owner-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}
.owner-status.active { background: var(--green-soft); color: var(--green); border-color: transparent; }
.owner-status.active .dot { background: var(--green); }
.owner-status.invited { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.owner-status.invited .dot { background: var(--amber); }
.owner-status.none { color: var(--muted); }
.owner-status svg { width: 11px; height: 11px; }

/* Owner-access card inside the client-form page */
.owner-access {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 18px;
}
.owner-access .oa-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.owner-access .oa-avatar {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--gradient);
  color: #fff; font-weight: 700; font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.owner-access .oa-avatar.muted { background: var(--surface); color: var(--muted); border: 1px dashed var(--line-strong); }
.owner-access .oa-info { flex: 1; min-width: 0; }
.owner-access .oa-name {
  font-weight: 600; color: var(--heading); font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.owner-access .oa-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.owner-access .oa-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* Invite link share box */
.invite-share {
  background: var(--ink); color: #fff;
  border-radius: 12px; padding: 16px;
  margin-top: 14px;
}
.invite-share .label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--lavender); font-weight: 600; margin-bottom: 8px;
}
.invite-share .url-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex; align-items: center; gap: 8px;
}
.invite-share .url-box code {
  flex: 1; min-width: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; color: #fff;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.invite-share .url-box .copy-btn {
  background: rgba(255,255,255,0.10);
  border: 1px solid var(--line-dark);
  color: #fff;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 600;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.invite-share .url-box .copy-btn:hover { background: rgba(255,255,255,0.18); }
.invite-share .url-box .copy-btn svg { width: 11px; height: 11px; }
.invite-share .share-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.invite-share .share-actions .btn-on-dark {
  background: rgba(255,255,255,0.10);
  color: #fff;
  border: 1px solid var(--line-dark);
}
.invite-share .share-actions .btn-on-dark:hover { background: rgba(255,255,255,0.18); color: #fff; }

/* Accept-invite landing — uses login-view two-panel shell but with a card on the right */
.invite-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm);
}
.invite-card .ic-logo {
  width: 56px; height: 56px;
  border-radius: 14px;
  padding: 3px;
  background: var(--gradient);
  flex-shrink: 0;
}
.invite-card .ic-logo-inner {
  width: 100%; height: 100%;
  border-radius: 11px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--pink);
}
.invite-card .ic-logo-inner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.invite-card .ic-logo-inner svg { width: 22px; height: 22px; }
.invite-card .ic-info { flex: 1; min-width: 0; }
.invite-card .ic-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--pink); font-weight: 600;
}
.invite-card .ic-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 20px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--heading); margin-top: 2px;
}
.invite-card .ic-email {
  font-size: 12px; color: var(--muted); margin-top: 4px;
}

    /* ============================================================
       Platform catalog UI (client-form / client-profile / platforms admin)
       ============================================================ */

    /* Empty state when a client has no platforms picked yet */
    .platform-empty {
      background: var(--surface-2);
      border: 1px dashed var(--line-strong, var(--line));
      border-radius: 12px;
      padding: 22px 18px;
      text-align: center;
      color: var(--muted);
      font-size: 13px;
    }
    .platform-empty strong { color: var(--heading); font-weight: 600; }

    /* One row per platform the client has picked */
    .platform-card-row > [class*="col-"] { display: flex; }
    .platform-card {
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 12px 14px;
      margin-bottom: 10px;
      width: 100%;
      transition: border-color .15s;
    }
    .platform-card:hover { border-color: rgba(0,0,0,0.12); }
    .platform-card-head {
      display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
    }
    .platform-logo-sm {
      width: 36px; height: 36px;
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      overflow: hidden;
      background: #fff;
      border: 1px solid var(--line);
    }
    .platform-logo-sm img { width: 22px; height: 22px; object-fit: contain; }
    .platform-logo-fallback {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 14px; font-weight: 700;
      color: var(--heading);
    }
    .platform-meta { flex: 1; min-width: 0; font-size: 14px; color: var(--heading); }
    .platform-meta strong { font-weight: 600; }
    .platform-card .field { margin: 0; }
    .platform-card .input { padding: 9px 12px; font-size: 13px; }

    .btn.btn-sm { padding: 6px 12px; font-size: 12px; }
    .platform-remove { color: var(--muted); }
    .platform-remove:hover { color: #e23744; border-color: #e2374433; }

    /* Picker modal (used by client-form & client-profile to add a platform) */
    .modal-large { max-width: 720px; }
    .platform-pick-grid {
      margin-top: 16px;
      max-height: 60vh;
      overflow-y: auto;
      padding: 4px;
    }
    .platform-pick-cat {
      font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
      color: var(--muted); font-weight: 700;
      padding: 10px 4px 4px;
      border-top: 1px solid var(--line);
      margin-top: 4px;
    }
    .platform-pick-cat:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
    .platform-pick-tile {
      position: relative;
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 10px;
      padding: 14px 10px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      text-align: center;
      font-size: 12px;
      color: var(--heading);
      transition: border-color .15s, background .15s, transform .1s;
    }
    .platform-pick-tile:hover {
      border-color: var(--pink);
      background: rgba(17, 201, 122, 0.05);
    }
    .platform-pick-tile:active { transform: translateY(1px); }
    .platform-pick-tile.disabled {
      opacity: .45; cursor: not-allowed; pointer-events: none;
    }
    .platform-pick-tile .platform-logo-sm { width: 40px; height: 40px; }
    .platform-pick-tile .platform-logo-sm img { width: 26px; height: 26px; }
    .platform-pick-tile .name { font-weight: 600; line-height: 1.3; }
    .platform-pick-grid .platform-pick-tile { width: 100%; height: 100%; }
    .platform-pick-tile .picked-badge {
      position: absolute; top: 6px; right: 6px;
      width: 18px; height: 18px;
      border-radius: 50%;
      background: var(--pink); color: #fff;
      display: flex; align-items: center; justify-content: center;
      font-size: 11px;
    }

    /* Platforms admin page */
    .platforms-toolbar {
      display: flex; align-items: center; gap: 12px;
      margin-bottom: 22px; flex-wrap: wrap;
    }
    .platforms-toolbar input.input { max-width: 320px; padding: 9px 14px; font-size: 13px; }
    .platforms-toolbar .spacer { flex: 1; }

    /* platform-admin-grid is now a Bootstrap .row — these rules just style the cards inside */
    .platform-admin-card { width: 100%; }
    /* A-Z section heading spanning the full grid row */
    .platform-letter {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 0.18em;
      text-transform: uppercase;
      color: var(--muted);
      padding: 14px 4px 4px;
      border-top: 1px solid var(--line);
    }
    .platform-admin-grid > .col-12:first-child .platform-letter {
      border-top: 0;
      padding-top: 0;
    }
    .platform-admin-card {
      background: var(--surface-2);
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
    }
    .platform-admin-card .head {
      display: flex; align-items: flex-start; gap: 12px;
    }
    .platform-admin-card .head .platform-logo-sm { width: 44px; height: 44px; }
    .platform-admin-card .head .platform-logo-sm img { width: 28px; height: 28px; }
    .platform-admin-card .info { flex: 1; min-width: 0; }
    .platform-admin-card .info strong {
      font-family: "Plus Jakarta Sans", sans-serif;
      font-size: 15px;
      display: block;
      color: var(--heading);
    }
    .platform-admin-card .info .cat {
      font-size: 10px; color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      font-weight: 700;
      margin-top: 2px;
    }
    .platform-admin-card .info .usage {
      font-size: 12px; color: var(--muted);
      display: flex; align-items: center; gap: 6px;
      margin-top: 4px;
    }
    .platform-admin-card .usage .dot {
      width: 6px; height: 6px; border-radius: 50%;
      background: rgba(140, 135, 154, 0.5);
    }
    .platform-admin-card .usage.in-use .dot { background: #10b981; }
    .platform-admin-card .quick-actions {
      display: flex;
      align-items: center;
      gap: 2px;
      flex-shrink: 0;
      margin-left: 4px;
    }

    .color-swatch {
      display: inline-block;
      width: 14px; height: 14px;
      border-radius: 4px;
      vertical-align: middle;
      margin-right: 6px;
      border: 1px solid rgba(0,0,0,0.1);
    }
    .field input[type=color] {
      width: 56px; height: 38px;
      padding: 3px; border-radius: 8px;
      background: var(--surface-2);
      border: 1px solid var(--line);
      cursor: pointer;
    }

    /* ============================================================
       Password strength meter (accept-invite, future reset pages)
       ============================================================ */
    .pwd-meter {
      display: flex;
      gap: 6px;
      margin-top: 10px;
    }
    .pwd-meter .seg {
      flex: 1 1 0;
      height: 4px;
      background: var(--line);
      border-radius: 999px;
      transition: background 0.2s ease;
    }
    /* Light up segments based on score: .s1 fills 1, .s4 fills all 4 */
    .pwd-meter.s1 .seg:nth-child(-n+1) { background: #ef4444; }
    .pwd-meter.s2 .seg:nth-child(-n+2) { background: #f59e0b; }
    .pwd-meter.s3 .seg:nth-child(-n+3) { background: #84cc16; }
    .pwd-meter.s4 .seg:nth-child(-n+4) { background: #10b981; }

    .pwd-meter-label {
      margin-top: 10px;
      font-size: 10.5px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      font-weight: 700;
      color: var(--muted);
    }
    .pwd-meter-label.s1 { color: #ef4444; }
    .pwd-meter-label.s2 { color: #f59e0b; }
    .pwd-meter-label.s3 { color: #84cc16; }
    .pwd-meter-label.s4 { color: #10b981; }

    .pwd-checks {
      margin-top: 10px;
      display: flex;
      flex-wrap: wrap;
      gap: 6px 16px;
      font-size: 12.5px;
    }
    .pwd-checks .pwd-check { flex: 1 1 calc(50% - 16px); min-width: 180px; }
    .pwd-check {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--muted);
      transition: color 0.15s;
    }
    .pwd-check .dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      background: rgba(140, 135, 154, 0.45);
      flex-shrink: 0;
      transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
    }
    .pwd-check.ok { color: #10b981; }
    .pwd-check.ok .dot {
      background: #10b981;
      box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
      transform: scale(1.1);
    }

    .pwd-match-msg {
      margin-top: 8px;
      font-size: 12.5px;
      font-weight: 600;
      min-height: 16px;
      color: var(--muted);
      transition: color 0.15s;
    }
    .pwd-match-msg.ok  { color: #10b981; }
    .pwd-match-msg.bad { color: #ef4444; }

    /* Required-field asterisk */
    .field label .req {
      color: var(--pink);
      margin-left: 2px;
      font-weight: 700;
    }

    @media (max-width: 991.98px) {
      .app { display: block; }
      .main { min-height: 100vh; }
      .topbar { width: 100%; }
    }
    @media (max-width: 575.98px) {
      .topbar { gap: 10px; padding-left: 14px; padding-right: 14px; }
      .top-actions { width: 100%; justify-content: flex-start; }
      .top-actions .btn { flex: 1 1 auto; justify-content: center; }
      .modal-foot { flex-direction: column-reverse; }
      .modal-foot .btn { width: 100%; justify-content: center; }
    }
