    @font-face { font-family: 'Sofia Pro'; src: url('/static/fonts/sofia-pro/SofiaProLight.woff2') format('woff2'); font-weight: 300; font-display: swap; }
    @font-face { font-family: 'Sofia Pro'; src: url('/static/fonts/sofia-pro/SofiaProRegular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
    @font-face { font-family: 'Sofia Pro'; src: url('/static/fonts/sofia-pro/SofiaProMedium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
    @font-face { font-family: 'Sofia Pro'; src: url('/static/fonts/sofia-pro/SofiaProSemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
    @font-face { font-family: 'Sofia Pro'; src: url('/static/fonts/sofia-pro/SofiaProBold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
    @font-face { font-family: 'Source Sans Pro'; src: url('/static/fonts/source-sans-pro/SourceSansPro-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
    @font-face { font-family: 'Source Sans Pro'; src: url('/static/fonts/source-sans-pro/SourceSansPro-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
    @font-face { font-family: 'Source Sans Pro'; src: url('/static/fonts/source-sans-pro/SourceSansPro-Semibold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
    @font-face { font-family: 'Source Sans Pro'; src: url('/static/fonts/source-sans-pro/SourceSansPro-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
  </style>

  <!-- Vue 3 + Vue Router (CDN, no build step) -->
  <script src="https://cdnjs.cloudflare.com/ajax/libs/vue/3.4.0/vue.global.prod.min.js"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/vue-router/4.3.0/vue-router.global.prod.min.js"></script>

  <style>
    /* ===================================================================
       DESIGN SYSTEM — mirrors console-onboarding Tailwind tokens exactly
       Layout structure: console4.0 (sidebar + topbar + content)
       Aesthetic: console-onboarding (light, clean, Sofia Pro, teal/blue)
    =================================================================== */

    /* --- Reset & Base --- */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      /* Primary palette — matches console-onboarding tailwind.config.js */
      --primary-50:  #ebf3fd;
      --primary-100: #c1dafa;
      --primary-200: #a3c8f7;
      --primary-300: #78aff4;
      --primary-400: #5e9ff1;
      --primary-500: #3687ee;
      --primary-600: #317bd9;
      --primary-700: #2660a9;
      --primary-800: #1e4a83;
      --primary-900: #173964;

      /* Secondary (teal) */
      --secondary-50:  #eefbfd;
      --secondary-100: #cbf3f7;
      --secondary-200: #b2edf4;
      --secondary-300: #8ee4ee;
      --secondary-400: #79dfeb;
      --secondary-500: #57d7e6;
      --secondary-600: #4fc4d1;
      --secondary-700: #3e99a3;
      --secondary-800: #30767f;

      /* Grey scale */
      --grey-50:  #f2f3f5;
      --grey-100: #ebedf0;
      --grey-200: #d6d9df;
      --grey-300: #7a8699;
      --grey-400: #6e798a;
      --grey-500: #626b7a;

      /* Design system colors (from console4.0 variables.scss) */
      --dark-blue:   #001528;
      --space-cadet: #374b63;
      --body-bg:     #f0f6f8;
      --white:       #ffffff;
      --blue:        #3687ee;
      --pale-dark:   #81ccd3;
      --pale-blue:   #90d4e2;
      --modern-light-blue: #e6f7f9;

      /* Semantic */
      --success: #4ade80;
      --warning: #faa41a;
      --error:   #ee5353;

      /* Layout */
      --topbar-height: 60px;
      --sidebar-width: 220px;
    }

    html { scroll-behavior: smooth; height: 100%; }

    html ::-webkit-scrollbar { width: 6px; }
    html ::-webkit-scrollbar-track { background: var(--grey-50); }
    html ::-webkit-scrollbar-thumb { background: rgba(55,75,99,.3); border-radius: 3px; }
    html ::-webkit-scrollbar-thumb:hover { background: rgba(55,75,99,.6); }

    body {
      font-family: 'Source Sans Pro', sans-serif;
      font-size: 15px;
      color: #111;
      background: var(--body-bg);
      letter-spacing: 0.2px;
      height: 100%;
    }

    h1,h2,h3,h4,h5,h6 {
      font-family: 'Sofia Pro', sans-serif;
      color: var(--dark-blue);
      font-weight: 300;
    }

    h2 { font-size: 1.5rem; padding: 10px 0; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }

    a { color: var(--blue); text-decoration: none; }
    a:hover { text-decoration: none; }

    /* --- Animations --- */
    @keyframes spin { to { transform: rotate(360deg); } }
    @keyframes reveal {
      from { opacity: 0; transform: translateY(12px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .animate-reveal { animation: reveal 0.4s cubic-bezier(0,1,0.5,1) both; }

    .fade-enter-active, .fade-leave-active { transition: opacity 0.18s ease; }
    .fade-enter-from, .fade-leave-to { opacity: 0; }

    /* --- Spinner --- */
    .spinner {
      border: 2px solid rgba(54,135,238,.18);
      border-top-color: var(--primary-500);
      border-radius: 50%;
      width: 1.25rem; height: 1.25rem;
      animation: spin 0.7s linear infinite;
      display: inline-block;
    }
    .spinner-lg {
      width: 2.25rem; height: 2.25rem;
      border-width: 3px;
    }

    /* ===================================================================
       LAYOUT — console4.0 structure, light-themed
    =================================================================== */

    #app { height: 100vh; display: flex; flex-direction: column; }

    /* Top bar */
    .topbar {
      position: fixed; top: 0; left: 0; right: 0;
      height: var(--topbar-height);
      background: var(--white);
      border-bottom: 1px solid var(--grey-200);
      box-shadow: 0 1px 4px rgba(0,0,0,.06);
      display: flex; align-items: center;
      padding: 0 1.25rem;
      z-index: 100;
      gap: 1rem;
    }

    .topbar-logo {
      display: flex; align-items: center; gap: 0.5rem;
      font-family: 'Sofia Pro', sans-serif;
      font-weight: 600; font-size: 1.05rem;
      color: var(--dark-blue);
      flex-shrink: 0;
    }

    .topbar-logo svg { flex-shrink: 0; }

    .topbar-spacer { flex: 1; }

    .topbar-partner {
      display: flex; align-items: center; gap: 0.5rem;
      font-size: 0.875rem; color: var(--grey-400);
    }

    .blog-select {
      font-family: 'Source Sans Pro', sans-serif;
      font-size: 0.875rem;
      color: var(--dark-blue);
      border: 1px solid var(--grey-200);
      border-radius: 6px;
      padding: 0.3rem 0.6rem;
      background: var(--grey-50);
      cursor: pointer;
      outline: none;
      max-width: 220px;
    }
    .blog-select:focus { border-color: var(--primary-400); }

    .topbar-user {
      display: flex; align-items: center; gap: 0.75rem;
      font-size: 0.875rem;
    }

    .topbar-username { color: var(--grey-400); }

    .btn-logout {
      background: none; border: none;
      color: var(--primary-500); cursor: pointer;
      font-size: 0.875rem; font-family: 'Source Sans Pro', sans-serif;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      transition: background 0.15s;
    }
    .btn-logout:hover { background: var(--primary-50); }

    /* Shell below topbar */
    .shell {
      display: flex;
      height: calc(100vh - var(--topbar-height));
      margin-top: var(--topbar-height);
    }

    /* Sidebar */
    .sidebar {
      width: var(--sidebar-width);
      background: var(--grey-50);
      border-right: 1px solid var(--grey-200);
      flex-shrink: 0;
      display: flex;
      flex-direction: column;
      padding: 1.25rem 0;
      overflow-y: auto;
      overflow-x: hidden;
      transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .sidebar.sidebar-collapsed {
      --sidebar-width: 64px;
    }

    .sidebar-section-label {
      font-size: 0.68rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--grey-300);
      padding: 0 1.1rem 0.4rem;
      margin-top: 0.75rem;
      white-space: nowrap;
      opacity: 1;
      transition: opacity 0.2s;
    }
    .sidebar.sidebar-collapsed .sidebar-section-label {
      opacity: 0;
    }

    .nav-link {
      display: flex; align-items: center; gap: 0.6rem;
      padding: 0.55rem 1.1rem;
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--grey-400);
      text-decoration: none;
      border-left: 3px solid transparent;
      transition: background 0.12s, color 0.12s, border-color 0.12s, padding 0.3s;
      cursor: pointer;
      border-radius: 0 6px 6px 0;
      margin-right: 0.5rem;
      white-space: nowrap;
      overflow: hidden;
    }
    
    .sidebar.sidebar-collapsed .nav-link {
      padding: 0.55rem 1.1rem; /* keep icon somewhat centered, original padding left is 1.1rem (17.6px). 17.6 + 24 + 17.6 = 59.2px. Close to 64px. */
    }
    
    .nav-link-text {
      transition: opacity 0.2s;
      opacity: 1;
    }
    .sidebar.sidebar-collapsed .nav-link-text {
      opacity: 0;
    }
    .nav-link:hover {
      background: var(--primary-50);
      color: var(--primary-600);
    }
    .nav-link.active {
      background: var(--primary-50);
      color: var(--primary-600);
      border-left-color: var(--primary-500);
      font-weight: 600;
    }
    .nav-link svg { flex-shrink: 0; opacity: 0.7; }
    .nav-link.active svg { opacity: 1; }

    /* Main content */
    .main-content {
      flex: 1;
      overflow-y: auto;
      padding: 1.75rem 2rem;
    }

    /* ===================================================================
       COMPONENTS — white-box, white-panel, forms, buttons, badges
       All mirror exact console4.0 styles.scss patterns
    =================================================================== */

    /* Cards */
    .white-box {
      background: var(--white);
      padding: 17px 20px;
      border-radius: 4px;
      box-shadow: 0 2px 25px rgba(0,0,0,.08);
      margin-bottom: 1rem;
    }

    .white-panel {
      background: var(--white);
      padding: 18px 20px;
      border-radius: 4px;
      box-shadow: 0 2px 30px rgba(0,0,0,.08);
    }

    .white-box-title {
      font-family: 'Sofia Pro', sans-serif;
      font-weight: 600;
      font-size: 0.95rem;
      letter-spacing: 0.5px;
      color: var(--dark-blue);
      border-bottom: 1px solid var(--grey-200);
      padding-bottom: 10px;
      margin-bottom: 14px;
    }

    /* Buttons (console-onboarding monu-button style) */
    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 0.4rem;
      padding: 0.45rem 1.1rem;
      border-radius: 8px;
      font-size: 0.875rem;
      font-family: 'Source Sans Pro', sans-serif;
      font-weight: 600;
      letter-spacing: 0.01em;
      border: none; cursor: pointer;
      transition: background 0.15s, box-shadow 0.15s, opacity 0.15s;
      position: relative; overflow: hidden;
    }
    .btn:disabled { opacity: 0.45; cursor: not-allowed; }

    .btn-primary {
      background: var(--primary-500);
      color: var(--white);
    }
    .btn-primary:hover:not(:disabled) { background: var(--primary-600); }

    .btn-secondary-outline {
      background: transparent;
      color: var(--primary-500);
      border: 2px solid var(--primary-500);
    }
    .btn-secondary-outline:hover:not(:disabled) {
      background: var(--primary-50);
    }

    .btn-ghost {
      background: var(--white);
      color: var(--grey-500);
      border: 1px solid var(--grey-200);
    }
    .btn-ghost:hover:not(:disabled) { background: var(--grey-50); }

    .btn-danger {
      background: #fee2e2;
      color: var(--error);
      border: 1px solid #fca5a5;
    }
    .btn-danger:hover:not(:disabled) { background: #fecaca; }

    .btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; border-radius: 6px; }

    /* Ripple effect (console-onboarding monu-button) */
    .btn .ripple {
      position: absolute; border-radius: 50%;
      transform: scale(0);
      animation: ripple 600ms linear;
      background: rgba(255,255,255,.3);
      pointer-events: none;
    }
    @keyframes ripple { to { transform: scale(4); opacity: 0; } }

    /* Forms — console4.0 flat border-bottom style */
    .form-group { margin-bottom: 1rem; }

    .from-label {
      display: block;
      font-size: 0.8rem;
      color: var(--grey-400);
      margin-bottom: 3px;
      font-family: 'Source Sans Pro', sans-serif;
    }

    .form-control {
      display: block;
      width: 100%;
      padding: 0.4rem 0.2rem;
      font-size: 0.95rem;
      font-family: 'Source Sans Pro', sans-serif;
      color: #111;
      background: transparent;
      border: 0;
      border-bottom: 1px solid var(--grey-300);
      border-radius: 0;
      outline: none;
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .form-control:focus {
      border-bottom-color: var(--dark-blue);
      background: var(--grey-50);
      box-shadow: inset 0 0 11px rgba(0,0,0,.07);
    }
    .form-control:disabled { color: var(--grey-300); cursor: not-allowed; }

    select.form-control {
      padding: 0.375rem 0.2rem;
      cursor: pointer;
    }

    .form-error {
      font-size: 0.78rem;
      color: var(--error);
      margin-top: 3px;
    }

    /* Badge — status pills */
    .badge {
      display: inline-flex; align-items: center;
      padding: 2px 10px;
      border-radius: 9999px;
      font-size: 0.75rem; font-weight: 700;
      text-transform: uppercase; letter-spacing: 0.06em;
    }
    .badge-pending  { background: var(--primary-100); color: var(--primary-700); }
    .badge-accepted { background: #dcfce7; color: #166534; }
    .badge-rejected { background: #fee2e2; color: #991b1b; }
    .badge-withdrawn { background: var(--grey-100); color: var(--grey-500); }
    .badge-expired  { background: #fff7ed; color: #9a3412; }
    .badge-ma { background: var(--secondary-100); color: var(--secondary-800); }
    .badge-mi { background: var(--primary-100); color: var(--primary-700); }

    /* Alert */
    .alert {
      padding: 0.75rem 1rem;
      border-radius: 6px;
      font-size: 0.875rem;
      margin-bottom: 1rem;
      box-shadow: 0 2px 20px rgba(0,0,0,.06);
    }
    .alert-info    { background: var(--modern-light-blue); color: var(--secondary-800); border-left: 3px solid var(--secondary-500); }
    .alert-success { background: #dcfce7; color: #166534; border-left: 3px solid var(--success); }
    .alert-error   { background: #fee2e2; color: #991b1b; border-left: 3px solid var(--error); }
    .alert-warning { background: #fff7ed; color: #9a3412; border-left: 3px solid var(--warning); }

    /* Divider */
    .divider { width: 100%; height: 1px; background: var(--grey-200); margin: 1rem 0; }

    /* Table */
    .table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
    .table th { text-align: left; font-weight: 600; color: var(--grey-400); font-size: 0.8rem; padding: 0.5rem 0.75rem; border-bottom: 1px solid var(--grey-200); }
    .table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--grey-100); color: #222; vertical-align: middle; }
    .table tr:last-child td { border-bottom: none; }
    .table tr:hover td { background: var(--grey-50); }

    /* Wallet stat cards (console4.0 wallet-box style) */
    .wallet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
    .wallet-box {
      background: var(--white);
      border-radius: 4px;
      box-shadow: 0 2px 25px rgba(0,0,0,.08);
      overflow: hidden;
      display: flex; flex-direction: column;
    }
    .wallet-box-value {
      display: flex; align-items: center; justify-content: center;
      font-family: 'Sofia Pro', sans-serif;
      font-size: 2.5rem; font-weight: 300;
      color: var(--grey-400);
      flex: 1; padding: 1.5rem;
    }
    .wallet-box-value.null-value { font-size: 1rem; color: var(--grey-300); font-style: italic; }
    .wallet-box-label {
      font-size: 0.8rem; letter-spacing: 0.5px;
      padding: 0.6rem 1rem;
      text-align: center;
    }
    .wallet-box-label.blue { background: #eef4f9; color: var(--space-cadet); }
    .wallet-box-label.teal { background: var(--modern-light-blue); color: var(--secondary-700); }
    .wallet-box-label.yellow { background: #fff8e1; color: #795004; }

    /* Site cards */
    .site-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1rem; margin-bottom: 1rem; }
    .site-card {
      background: var(--white);
      border-radius: 4px;
      box-shadow: 0 2px 25px rgba(0,0,0,.08);
      display: flex; flex-direction: column;
      transition: box-shadow 0.2s;
    }
    .site-card:hover { box-shadow: 0 4px 32px rgba(0,0,0,.13); }

    .site-card-header { padding: 1rem 1.1rem 0.5rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
    .site-card-url {
      font-family: 'Source Sans Pro', sans-serif;
      font-weight: 600; font-size: 0.925rem;
      color: var(--dark-blue);
      word-break: break-all;
      text-decoration: none;
    }
    .site-card-url:hover { text-decoration: underline; }
    .site-card-meta { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex-shrink: 0; }
    
    .site-card-info { padding: 0 1.1rem 1rem; font-size: 0.8rem; color: var(--grey-400); display: flex; flex-direction: column; gap: 0.4rem; }
    .site-card-info-item { display: flex; align-items: center; gap: 0.4rem; }
    
    .site-card-actions { padding: 0.8rem 1.1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; background: #f9fafb; border-top: 1px solid var(--grey-100); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; }

    /* Empty state */
    .empty-state {
      text-align: center; padding: 3rem 1rem;
      color: var(--grey-300);
    }
    .empty-state svg { margin: 0 auto 1rem; opacity: 0.4; }
    .empty-state h3 { font-family: 'Sofia Pro',sans-serif; font-weight: 400; font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--grey-400); }
    .empty-state p { font-size: 0.875rem; max-width: 320px; margin: 0 auto 1.25rem; }

    /* Modal */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(0,21,40,.45);
      display: flex; align-items: center; justify-content: center;
      z-index: 200;
      backdrop-filter: blur(2px);
    }
    .modal {
      background: var(--white);
      border-radius: 8px;
      box-shadow: 0 8px 60px rgba(0,0,0,.2);
      width: 100%; max-width: 520px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      margin: 1rem;
    }
    .modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1.1rem 1.4rem;
      border-bottom: 1px solid var(--grey-200);
    }
    .modal-title {
      font-family: 'Sofia Pro',sans-serif;
      font-weight: 600; font-size: 1rem;
      color: var(--dark-blue);
    }
    .modal-body { padding: 1.4rem; overflow-y: auto; flex: 1; }
    .modal-footer {
      padding: 1rem 1.4rem;
      border-top: 1px solid var(--grey-200);
      display: flex; justify-content: flex-end; gap: 0.6rem;
    }
    .modal-close {
      background: none; border: none; cursor: pointer;
      color: var(--grey-400); font-size: 1.25rem; line-height: 1;
      padding: 0.15rem 0.3rem; border-radius: 4px;
      transition: background 0.1s;
    }
    .modal-close:hover { background: var(--grey-100); color: #111; }

    /* Payment mode toggle */
    .mode-toggle { display: flex; border: 1px solid var(--grey-200); border-radius: 8px; overflow: hidden; margin-bottom: 1.25rem; }
    .mode-toggle-btn {
      flex: 1; padding: 0.6rem; font-size: 0.875rem;
      font-family: 'Source Sans Pro',sans-serif; font-weight: 600;
      background: transparent; border: none; cursor: pointer;
      color: var(--grey-400);
      transition: background 0.15s, color 0.15s;
    }
    .mode-toggle-btn.active {
      background: var(--primary-500); color: var(--white);
    }

    /* Onboarding steps */
    .step-list { display: flex; flex-direction: column; gap: 0.5rem; }
    .step-item {
      display: flex; align-items: center; gap: 0.75rem;
      padding: 0.5rem 0;
      font-size: 0.875rem;
    }
    .step-dot {
      width: 20px; height: 20px; border-radius: 50%;
      flex-shrink: 0; display: flex; align-items: center; justify-content: center;
      font-size: 0.7rem;
    }
    .step-dot.done { background: var(--success); color: white; }
    .step-dot.pending { background: var(--grey-200); color: var(--grey-400); }
    .step-dot.active { background: var(--primary-500); color: white; }


    /* ===================================================================
       MOBILE RESPONSIVENESS
    =================================================================== */
    .mobile-menu-btn {
      display: none;
      background: none; border: none; cursor: pointer;
      color: var(--dark-blue);
      padding: 0.25rem;
    }

    .mobile-backdrop {
      display: none;
      position: fixed;
      top: var(--topbar-height);
      left: 0; right: 0; bottom: 0;
      background: rgba(0, 0, 0, 0.4);
      z-index: 90;
      opacity: 0;
      transition: opacity 0.3s;
    }

    @media (max-width: 768px) {
      .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
      
      .topbar { gap: 0.5rem; padding: 0 0.75rem; }
      .topbar-logo-text { display: none; }
      .topbar-logo { gap: 0.25rem; }
      
      .sidebar {
        position: fixed;
        top: var(--topbar-height);
        left: 0;
        bottom: 0;
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 8px rgba(0,0,0,0.1);
      }
      
      .sidebar.sidebar-open {
        transform: translateX(0);
      }
      
      .mobile-backdrop.backdrop-visible {
        display: block;
        opacity: 1;
      }

      .main-content {
        padding: 1.5rem;
      }
    }
