/* ─────────────────────────────────────────
   Design tokens
───────────────────────────────────────── */
    :root {
      --orange: var(--primary, #1B3272);
      --orange-hover: var(--primary-hover, #142560);
      --orange-light: var(--primary-light, #EBF0FB);
      --navy:          #1a1a2e;
      --page-bg:       #F5F7FA;
      --border:        #e4e4e4;
      --border-soft:   #efefef;
      --text-dark:     #111111;
      --text-muted:    #808080;
      --white:         #ffffff;
      --green-ok:      #22c55e;
      --amber:         #f59e0b;
      --red:           #ef4444;
      --topbar-h:      64px;
      --sidebar-w:     230px;
      --footer-h:      46px;
      --radius:        8px;
      --radius-sm:     5px;
      --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
      --shadow-md:     0 4px 16px rgba(0,0,0,.12);
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    body {
      font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      font-size: 14px;
      color: var(--text-dark);
      background: var(--page-bg);
      height: 100vh;
      overflow: hidden;
    }

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

    .hidden { display: none !important; }

    /* ─────────────────────────────────────────
       Buttons
    ───────────────────────────────────────── */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 16px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      border: none;
      cursor: pointer;
      transition: background 0.15s, opacity 0.15s;
      white-space: nowrap;
    }
    .btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
    .btn-primary  { background: var(--primary); color: var(--white); }
    .btn-primary:hover { background: var(--orange-hover); }
    .btn-outline  { background: transparent; color: var(--text-dark); border: 1px solid var(--border); }
    .btn-outline:hover { background: var(--page-bg); }
    .btn-ghost    { background: transparent; color: var(--text-muted); border: none; }
    .btn-ghost:hover { color: var(--text-dark); background: var(--page-bg); }
    .btn-danger   { background: var(--red); color: var(--white); }
    .btn-danger:hover { opacity: 0.88; }
    .btn-full     { width: 100%; justify-content: center; }
    .btn-sm       { padding: 5px 12px; font-size: 12px; }

    /* ─────────────────────────────────────────
       Logo mark
    ───────────────────────────────────────── */
    .logo-mark {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--primary);
      text-decoration: none;
      flex-shrink: 0;
    }
    .logo-icon { width: 28px; height: 28px; display: block; }
    .logo-wordmark {
      font-size: 17px;
      font-weight: 800;
      letter-spacing: 0.5px;
      color: var(--primary);
      text-transform: uppercase;
    }

    /* ─────────────────────────────────────────
       LOGIN PAGE — Split screen
    ───────────────────────────────────────── */
    #login-page {
      display: flex;
      flex-direction: row;
      min-height: 100vh;
      overflow: hidden;
      background: var(--page-bg);
    }
    #login-page.hidden { display: none; }

    /* Left: dark brand hero */
    .login-hero {
      flex: 0 0 45%;
      background: var(--primary, #1B3272);
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      padding: 60px 52px;
      gap: 20px;
    }
    .login-hero-logo { margin-bottom: 4px; }
    .login-hero-title {
      font-size: 36px;
      font-weight: 800;
      color: #ffffff;
      line-height: 1.2;
      letter-spacing: -0.5px;
      margin: 0;
    }
    .login-hero-sub {
      font-size: 14px;
      color: rgba(255,255,255,0.70);
      line-height: 1.6;
      max-width: 320px;
    }
    .login-hero-badges {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 8px;
    }
    .login-hero-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      font-weight: 500;
      color: rgba(255,255,255,0.80);
    }
    .login-hero-badge svg {
      width: 16px;
      height: 16px;
      flex-shrink: 0;
      opacity: 0.75;
    }

    /* Right: white form panel */
    .login-form-panel {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 60px 40px;
      background: var(--white);
      overflow-y: auto;
    }
    .login-form-panel h2 {
      font-size: 24px;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 6px;
    }
    .login-sub {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 24px;
    }

    .form-group {
      margin-bottom: 16px;
    }
    .form-group label {
      display: block;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-dark);
      margin-bottom: 6px;
    }
    .form-group input {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      color: var(--text-dark);
      background: var(--white);
      transition: border-color 0.15s, box-shadow 0.15s;
      outline: none;
    }
    .form-group input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(27,50,114,0.15);
    }
    .form-group input::placeholder { color: #bbb; }

    .form-hint {
      font-size: 12px;
      color: var(--text-muted);
      background: #fafafa;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-sm);
      padding: 8px 12px;
      margin-bottom: 20px;
      line-height: 1.5;
    }
    .form-hint strong { color: var(--text-dark); }

    .login-error {
      font-size: 13px;
      color: var(--red);
      margin-bottom: 12px;
      display: none;
    }
    .login-error.visible { display: block; }

    .login-footer-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 24px;
      padding-top: 20px;
      border-top: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-muted);
    }
    .powered-by {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 500;
    }

    /* ─────────────────────────────────────────
       APP SHELL
    ───────────────────────────────────────── */
    .app-shell {
      display: flex;
      flex-direction: column;
      height: 100vh;
      overflow: hidden;
    }
    .app-shell.hidden { display: none; }

    /* ── Topbar ── */
    .admin-topbar {
      height: var(--topbar-h);
      background: var(--topbar-bg);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      padding: 0 20px 0 16px;
      gap: 12px;
      flex-shrink: 0;
      z-index: 100;
      box-shadow: var(--shadow-sm);
    }
    .topbar-divider {
      width: 1px;
      height: 22px;
      background: var(--border);
      flex-shrink: 0;
    }
    .topbar-title {
      font-size: 14px;
      font-weight: 500;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .topbar-spacer { flex: 1; }
    .topbar-user {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .user-avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      flex-shrink: 0;
    }
    .user-label {
      font-size: 13px;
      font-weight: 500;
      color: var(--text-dark);
    }
    .topbar-logout {
      margin-left: 10px;
      padding: 6px 14px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      background: transparent;
      color: var(--text-muted);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
    }
    .topbar-logout:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }

    /* ── Body row (sidebar + main) ── */
    .app-body {
      display: flex;
      flex: 1;
      overflow: hidden;
    }

    /* ── Sidebar ── */
    .admin-sidebar {
      width: var(--sidebar-w);
      background: var(--sidebar-bg);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      padding: 16px 8px;
      gap: 2px;
      flex-shrink: 0;
      overflow-y: auto;
    }

    .sidebar-section-label {
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--text-muted);
      padding: 12px 8px 6px;
    }

    .sidebar-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 9px 12px;
      border-radius: var(--radius-sm);
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      cursor: pointer;
      transition: background 0.12s, color 0.12s;
      border: none;
      background: none;
      text-align: left;
      width: 100%;
    }
    .sidebar-item svg { flex-shrink: 0; opacity: 0.65; }
    .sidebar-item:hover { background: var(--page-bg); color: var(--text-dark); }
    .sidebar-item:hover svg { opacity: 1; }
    .sidebar-item.active {
      background: var(--orange-light);
      color: var(--primary);
    }
    .sidebar-item.active svg { opacity: 1; }

    /* ── Main area ── */
    .admin-main {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .admin-body {
      flex: 1;
      padding: 28px 32px;
    }

    /* ── Admin screens ── */
    .admin-screen { display: none; }
    .admin-screen.active { display: block; }

    /* ── Footer ── */
    .admin-footer {
      height: var(--footer-h);
      background: var(--topbar-bg);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 20px;
      font-size: 12px;
      color: var(--text-muted);
      flex-shrink: 0;
    }
    .powered-by {
      display: flex;
      align-items: center;
      gap: 6px;
      font-weight: 500;
    }
    .helix-logo-icon {
      width: 18px;
      height: 18px;
      color: var(--primary);
    }
    .powered-by strong { color: var(--text-dark); letter-spacing: 0.05em; }

    /* ─────────────────────────────────────────
       PAGE HEADER
    ───────────────────────────────────────── */
    .page-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 20px;
    }
    .page-title {
      font-size: 22px;
      font-weight: 700;
      color: var(--text-dark);
    }

    /* ─────────────────────────────────────────
       ISSUER BAR
    ───────────────────────────────────────── */
    .issuer-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 9px 14px;
      margin-bottom: 18px;
      font-size: 13px;
    }
    .issuer-bar-label {
      font-weight: 600;
      color: var(--text-muted);
      white-space: nowrap;
    }
    .issuer-bar-addr {
      font-size: 12px;
      color: var(--text-dark);
      word-break: break-all;
      flex: 1;
    }
    .copy-btn {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--text-muted);
      padding: 4px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      transition: color 0.12s, background 0.12s;
      flex-shrink: 0;
    }
    .copy-btn:hover { color: var(--primary); background: var(--orange-light); }

    /* ─────────────────────────────────────────
       TOOLBAR
    ───────────────────────────────────────── */
    .toolbar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 16px;
      flex-wrap: wrap;
    }
    .search-wrap {
      position: relative;
      display: flex;
      align-items: center;
      flex: 1;
      min-width: 200px;
      max-width: 340px;
    }
    .search-wrap svg {
      position: absolute;
      left: 10px;
      width: 16px;
      height: 16px;
      color: #bbb;
      pointer-events: none;
    }
    .search-input {
      width: 100%;
      padding: 8px 12px 8px 34px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-dark);
      background: var(--white);
      outline: none;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .search-input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(27,50,114,0.12);
    }
    .search-input::placeholder { color: #bbb; }

    .filter-select {
      padding: 8px 30px 8px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      color: var(--text-dark);
      background: var(--white);
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      cursor: pointer;
      outline: none;
      transition: border-color 0.15s;
    }
    .filter-select:focus { border-color: var(--primary); }

    /* ─────────────────────────────────────────
       DROPDOWN
    ───────────────────────────────────────── */
    .dropdown-wrap {
      position: relative;
    }
    .dropdown-menu {
      position: absolute;
      right: 0;
      top: calc(100% + 6px);
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      min-width: 200px;
      z-index: 200;
      overflow: hidden;
    }
    .dropdown-menu button {
      display: block;
      width: 100%;
      text-align: left;
      padding: 10px 16px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-dark);
      background: none;
      border: none;
      cursor: pointer;
      transition: background 0.12s;
    }
    .dropdown-menu button:hover { background: var(--orange-light); color: var(--primary); }

    /* ─────────────────────────────────────────
       TABLES
    ───────────────────────────────────────── */
    .data-table-wrap {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
    }
    .data-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 13px;
    }
    .data-table th {
      text-align: left;
      padding: 11px 16px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      background: #fafafa;
      border-bottom: 1px solid var(--border);
      white-space: nowrap;
    }
    .data-table td {
      padding: 13px 16px;
      border-bottom: 1px solid var(--border-soft);
      vertical-align: middle;
    }
    .data-table tr:last-child td { border-bottom: none; }
    .data-table tbody tr { transition: background 0.1s; }
    .data-table tbody tr:hover { background: #fafafa; }
    .data-table tbody tr.clickable { cursor: pointer; }

    /* ─────────────────────────────────────────
       BADGES / PILLS
    ───────────────────────────────────────── */
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 3px 9px;
      border-radius: 99px;
      font-size: 11px;
      font-weight: 600;
      text-transform: capitalize;
      white-space: nowrap;
    }
    .badge-dot {
      width: 6px; height: 6px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .badge-active    { background: #dcfce7; color: #166534; }
    .badge-active .badge-dot { background: var(--green-ok); }
    .badge-draft     { background: #f1f5f9; color: #475569; }
    .badge-draft .badge-dot { background: #94a3b8; }
    .badge-announced { background: var(--primary-light, #EBF0FB); color: var(--primary, #1B3272); }
    .badge-announced .badge-dot { background: var(--primary, #1B3272); }
    .badge-executing { background: #fde8d8; color: #9a3412; }
    .badge-executing .badge-dot { background: var(--primary); }
    .badge-completed { background: #dcfce7; color: #166534; }
    .badge-completed .badge-dot { background: var(--green-ok); }
    .badge-approved  { background: #dcfce7; color: #166534; }
    .badge-approved .badge-dot { background: var(--green-ok); }
    .badge-pending   { background: #fef9c3; color: #854d0e; }
    .badge-pending .badge-dot { background: var(--amber); }
    .badge-rejected  { background: #fee2e2; color: #991b1b; }
    .badge-rejected .badge-dot { background: var(--red); }

    /* ─────────────────────────────────────────
       STAT CARDS
    ───────────────────────────────────────── */
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 14px;
      margin-bottom: 24px;
    }
    .stat-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 18px 20px;
      box-shadow: var(--shadow-sm);
    }
    .stat-label {
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--text-muted);
      margin-bottom: 8px;
    }
    .stat-value {
      font-size: 24px;
      font-weight: 700;
      color: var(--text-dark);
      line-height: 1;
    }
    .stat-sub {
      font-size: 12px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* ─────────────────────────────────────────
       DETAIL PAGE TABS
    ───────────────────────────────────────── */
    .detail-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 24px;
      gap: 16px;
      flex-wrap: wrap;
    }
    .detail-back {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      color: var(--text-muted);
      cursor: pointer;
      background: none;
      border: none;
      padding: 0;
      transition: color 0.12s;
      margin-bottom: 8px;
    }
    .detail-back:hover { color: var(--primary); }
    .detail-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
    }
    .detail-title {
      font-size: 22px;
      font-weight: 700;
    }
    .detail-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--border);
      margin-bottom: 24px;
    }
    .detail-tab {
      padding: 10px 18px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
      cursor: pointer;
      border: none;
      background: none;
      border-bottom: 2px solid transparent;
      margin-bottom: -1px;
      transition: color 0.12s, border-color 0.12s;
      white-space: nowrap;
    }
    .detail-tab:hover { color: var(--text-dark); }
    .detail-tab.active {
      color: var(--primary);
      border-bottom-color: var(--primary);
    }
    .detail-tab-panel { display: none; }
    .detail-tab-panel.active { display: block; }

    /* ─────────────────────────────────────────
       MODAL
    ───────────────────────────────────────── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.45);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .modal-overlay.hidden { display: none; }
    .modal-box {
      background: var(--white);
      border-radius: 16px;
      overflow: hidden;
      width: 100%;
      max-width: 540px;
      max-height: 90vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }
    .modal-box.modal-lg { max-width: 680px; }
    .modal-box.modal-sm { max-width: 400px; }
    .modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 24px 16px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }
    .modal-title {
      font-size: 16px;
      font-weight: 700;
      color: var(--text-dark);
    }
    .modal-close {
      width: 30px; height: 30px;
      border-radius: 50%;
      background: none;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 18px;
      line-height: 1;
      transition: background 0.12s, color 0.12s;
      flex-shrink: 0;
    }
    .modal-close:hover { background: var(--page-bg); color: var(--text-dark); }
    .modal-header--primary {
      background: var(--sidebar-bg);
      border-bottom-color: var(--sidebar-bg);
    }
    .modal-header--primary .modal-title { color: #fff; }
    .modal-header--primary .modal-close { color: rgba(255,255,255,0.8); }
    .modal-header--primary .modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }
    .modal-body {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
    }
    .modal-footer {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
      padding: 16px 24px;
      border-top: 1px solid var(--border);
      flex-shrink: 0;
    }

    /* ─────────────────────────────────────────
       FORM ELEMENTS (modal)
    ───────────────────────────────────────── */
    .field-group {
      margin-bottom: 18px;
    }
    .field-group label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      color: var(--text-dark);
      margin-bottom: 6px;
    }
    .field-group label .req { color: var(--red); margin-left: 2px; }
    .field-group input,
    .field-group select,
    .field-group textarea {
      width: 100%;
      padding: 9px 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 14px;
      color: var(--text-dark);
      background: var(--white);
      outline: none;
      font-family: inherit;
      transition: border-color 0.15s, box-shadow 0.15s;
    }
    .field-group textarea { resize: vertical; min-height: 80px; }
    .field-group input:focus,
    .field-group select:focus,
    .field-group textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(27,50,114,0.12);
    }
    .field-group input::placeholder,
    .field-group textarea::placeholder { color: #bbb; }
    .field-hint {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 5px;
    }
    .field-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
    }

    /* ─────────────────────────────────────────
       CREATE ASSET STEPPER
    ───────────────────────────────────────── */
    .ca-stepper {
      display: flex;
      align-items: flex-start;
      padding: 24px 28px 20px;
      margin-bottom: 0;
      border-bottom: 1px solid var(--border);
    }
    .ca-step {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }
    .ca-step-dot {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: 2px solid var(--border);
      background: #fff;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      transition: all 0.2s;
      flex-shrink: 0;
    }
    .ca-step.active .ca-step-dot {
      border-color: var(--primary);
      color: var(--primary);
    }
    .ca-step.done .ca-step-dot {
      border-color: var(--primary);
      background: var(--primary);
      color: #fff;
    }
    .ca-step-label {
      font-size: 10.5px;
      font-weight: 600;
      color: var(--text-muted);
      white-space: nowrap;
      text-align: center;
      line-height: 1.2;
    }
    .ca-step.active .ca-step-label,
    .ca-step.done .ca-step-label { color: var(--primary); }
    .ca-step-line {
      flex: 1;
      height: 2px;
      background: var(--border);
      margin-top: 15px;
      align-self: flex-start;
      transition: background 0.2s;
    }
    .ca-step-line.done { background: var(--primary); }
    .ca-stepper--sm {
      justify-content: center;
      gap: 0;
    }
    .ca-stepper--sm .ca-step {
      flex: 0 0 130px;
    }
    .ca-stepper--sm .ca-step-label {
      white-space: normal;
      text-align: center;
    }
    .ca-stepper--sm .ca-step-line {
      flex: 0 0 80px;
    }
    .ca-section-title {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin-bottom: 14px;
      padding-bottom: 8px;
      border-bottom: 2px solid var(--border);
    }
    .ca-review-section {
      font-size: 11px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      margin: 18px 0 6px;
    }
    .ca-currency-group {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 4px;
    }
    .ca-currency-pill {
      display: inline-flex;
      align-items: center;
      padding: 6px 14px;
      border: 1.5px solid var(--border);
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      color: var(--text-muted);
      background: #fff;
      cursor: pointer;
      transition: all 0.15s;
      user-select: none;
    }
    .ca-currency-pill input[type="checkbox"] { display: none; }
    .ca-currency-pill.selected {
      border-color: var(--primary);
      background: var(--primary-light);
      color: var(--primary);
    }
    .field-hint {
      display: block;
      font-size: 11.5px;
      color: var(--text-muted);
      margin-top: 5px;
      line-height: 1.4;
    }
    /* Review step cards */
    .ca-rv-card {
      border: 1px solid var(--border);
      border-radius: 10px;
      overflow: hidden;
      margin-bottom: 16px;
    }
    .ca-rv-card-header {
      background: #F8FAFC;
      border-bottom: 1px solid var(--border);
      padding: 10px 16px;
      font-size: 12px;
      font-weight: 700;
      color: var(--text);
    }
    .ca-rv-card-body {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      padding: 6px 16px 14px;
    }
    .ca-rv-field {
      padding: 10px 0 0;
    }
    .ca-rv-field--wide {
      grid-column: 1 / -1;
    }
    .ca-rv-label {
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 500;
      margin-bottom: 3px;
    }
    .ca-rv-value {
      font-size: 13px;
      color: var(--text);
      font-weight: 600;
      word-break: break-all;
    }

    /* ─────────────────────────────────────────
       STEP INDICATOR
    ───────────────────────────────────────── */
    .step-indicator {
      display: flex;
      align-items: center;
      gap: 0;
      margin-bottom: 28px;
    }
    .step-dot {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 28px; height: 28px;
      border-radius: 50%;
      font-size: 12px;
      font-weight: 700;
      border: 2px solid var(--border);
      color: var(--text-muted);
      background: var(--white);
      flex-shrink: 0;
      transition: all 0.2s;
    }
    .step-dot.active { border-color: var(--primary); color: var(--primary); }
    .step-dot.done { border-color: var(--green-ok); background: var(--green-ok); color: var(--white); }
    .step-line {
      flex: 1;
      height: 2px;
      background: var(--border);
      transition: background 0.2s;
    }
    .step-line.done { background: var(--green-ok); }

    /* ─────────────────────────────────────────
       TOAST
    ───────────────────────────────────────── */
    .toast-container {
      position: fixed;
      bottom: 56px;
      right: 20px;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
    }
    .toast {
      background: var(--text-dark);
      color: var(--white);
      padding: 10px 18px;
      border-radius: var(--radius);
      font-size: 13px;
      font-weight: 500;
      box-shadow: var(--shadow-md);
      pointer-events: all;
      animation: toastIn 0.2s ease;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .toast-success { background: #166534; }
    .toast-error   { background: #991b1b; }
    .toast-info    { background: #1e40af; }
    @keyframes toastIn {
      from { opacity: 0; transform: translateY(8px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ─────────────────────────────────────────
       EMPTY STATE
    ───────────────────────────────────────── */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--text-muted);
    }
    .empty-state svg { width: 40px; height: 40px; opacity: 0.3; margin-bottom: 12px; }
    .empty-state p { font-size: 13px; }

    /* ─────────────────────────────────────────
       SECTION CARD
    ───────────────────────────────────────── */
    .section-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 20px 24px;
      margin-bottom: 18px;
      box-shadow: var(--shadow-sm);
    }
    .section-card-title {
      font-size: 14px;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-soft);
    }

    /* ─────────────────────────────────────────
       KEY-VALUE LIST
    ───────────────────────────────────────── */
    .kv-list {
      display: grid;
      grid-template-columns: max-content 1fr;
      gap: 8px 20px;
      font-size: 13px;
    }
    .kv-key {
      color: var(--text-muted);
      font-weight: 500;
      white-space: nowrap;
    }
    .kv-val { color: var(--text-dark); font-weight: 500; }

    /* ─────────────────────────────────────────
       SETTINGS
    ───────────────────────────────────────── */
    .settings-section {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 24px;
      margin-bottom: 20px;
      box-shadow: var(--shadow-sm);
    }
    .settings-section h3 {
      font-size: 15px;
      font-weight: 700;
      color: var(--text-dark);
      margin-bottom: 16px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-soft);
    }
    .settings-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      border-bottom: 1px solid var(--border-soft);
      gap: 16px;
    }
    .settings-row:last-child { border-bottom: none; }
    .settings-row-label { font-size: 13px; font-weight: 500; color: var(--text-dark); }
    .settings-row-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
    .toggle {
      position: relative;
      width: 40px; height: 22px;
      flex-shrink: 0;
    }
    .toggle input { opacity: 0; width: 0; height: 0; }
    .toggle-slider {
      position: absolute;
      inset: 0;
      background: #d1d5db;
      border-radius: 99px;
      cursor: pointer;
      transition: background 0.2s;
    }
    .toggle-slider::before {
      content: '';
      position: absolute;
      width: 16px; height: 16px;
      left: 3px; top: 3px;
      background: var(--white);
      border-radius: 50%;
      transition: transform 0.2s;
      box-shadow: 0 1px 3px rgba(0,0,0,.2);
    }
    .toggle input:checked + .toggle-slider { background: var(--primary); }
    .toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

    /* ─────────────────────────────────────────
       MISC UTILITIES
    ───────────────────────────────────────── */
    .text-muted { color: var(--text-muted); }
    .text-right { text-align: right; }
    .font-mono  { font-size: 12px; }
    .fw-600     { font-weight: 600; }
    .mb-0       { margin-bottom: 0; }
    .mt-16      { margin-top: 16px; }
    .gap-8      { gap: 8px; }
    .flex-row   { display: flex; align-items: center; gap: 8px; }
    .divider    { height: 1px; background: var(--border-soft); margin: 16px 0; }
    .action-cell { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }

    /* ─────────────────────────────────────────
       NAV UPDATE PRICE GRID
    ───────────────────────────────────────── */
    .nav-row {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid var(--border-soft);
    }
    .nav-row:last-child { border-bottom: none; }
    .nav-row-name { flex: 1; font-size: 13px; font-weight: 600; }
    .nav-row-current { font-size: 12px; color: var(--text-muted); width: 90px; }
    .nav-row input {
      width: 110px;
      padding: 7px 10px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      font-size: 13px;
      outline: none;
    }
    .nav-row input:focus { border-color: var(--primary); }

    /* ─────────────────────────────────────────
       INVESTOR DETAIL CARD
    ───────────────────────────────────────── */
    .investor-card {
      background: var(--white);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 16px 20px;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      gap: 16px;
      box-shadow: var(--shadow-sm);
    }
    .investor-avatar {
      width: 40px; height: 40px;
      border-radius: 50%;
      background: var(--primary);
      color: var(--white);
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 15px;
      flex-shrink: 0;
    }
    .investor-info { flex: 1; }
    .investor-name { font-size: 14px; font-weight: 600; color: var(--text-dark); }
    .investor-email { font-size: 12px; color: var(--text-muted); }

    /* ─────────────────────────────────────────
       RESPONSIVE (minimal)
    ───────────────────────────────────────── */
    @media (max-width: 768px) {
      .admin-sidebar { display: none; }
      .admin-body { padding: 20px 16px; }
      .field-row { grid-template-columns: 1fr; }
    }

    /* ═══════════════════════════════════════════
       ISSUER PORTAL — Topbar + Sidebar Overrides
    ═══════════════════════════════════════════ */

    /* ── Topbar: white ── */
    .admin-topbar {
      background: #ffffff !important;
      border-bottom: 1px solid var(--border) !important;
      box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    .admin-topbar .topbar-title { color: var(--text) !important; }
    .admin-topbar .user-label { color: var(--text-muted) !important; }
    .admin-topbar .topbar-logout {
      color: var(--text-muted) !important;
      border-color: var(--border) !important;
    }
    .admin-topbar .topbar-logout:hover {
      color: var(--text) !important;
      border-color: #aaa !important;
    }

    /* ── Sidebar: SHUAA navy ── */
    .admin-sidebar {
      background: #002F6C !important;
      border-right: none !important;
      box-shadow: 2px 0 12px rgba(0,0,0,0.12);
      padding: 24px 12px !important;
      display: flex;
      flex-direction: column;
    }

    /* ── Web3 profile pill ── */
    .w3-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 6px 12px 6px 10px;
      border-radius: 40px;
      border: 1px solid var(--border);
      background: #ffffff;
      cursor: pointer;
      transition: border-color 0.15s, box-shadow 0.15s;
      position: relative;
      user-select: none;
    }
    .w3-pill:hover {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px var(--primary-light);
    }
    .w3-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #16a34a;
      flex-shrink: 0;
      box-shadow: 0 0 0 2px rgba(22,163,74,0.20);
    }
    .w3-balance {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }
    .w3-addr {
      font-size: 12px;
      color: var(--text-muted);
    }
    .w3-sep {
      width: 1px;
      height: 18px;
      background: var(--border);
      flex-shrink: 0;
    }
    .w3-avatar {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      font-size: 11px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .w3-name {
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
    }
    .w3-chevron {
      color: var(--text-muted);
      flex-shrink: 0;
      transition: transform 0.15s;
    }
    .w3-pill.open .w3-chevron { transform: rotate(180deg); }

    /* ── Dropdown ── */
    .w3-dropdown {
      display: none;
      position: absolute;
      top: calc(var(--topbar-h) - 8px);
      right: 20px;
      width: 240px;
      background: #ffffff;
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0,0,0,0.12);
      z-index: 200;
      overflow: hidden;
    }
    .w3-dropdown.open { display: block; }
    .w3-dropdown-header {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 14px 16px;
      background: var(--primary-light);
    }
    .w3-dropdown-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .w3-dropdown-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
    }
    .w3-dropdown-addr {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }
    .w3-dropdown-divider {
      height: 1px;
      background: var(--border);
    }
    .w3-dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 11px 16px;
      border: none;
      background: transparent;
      font-size: 13px;
      font-weight: 500;
      color: var(--text);
      cursor: pointer;
      text-align: left;
      font-family: inherit;
      transition: background 0.12s;
    }
    .w3-dropdown-item:hover { background: var(--bg); }
    .w3-dropdown-item--danger { color: var(--danger); }
    .w3-dropdown-item--danger:hover { background: var(--danger-bg); }

/* ── Custom Select ──────────────────────────────────────────────────────────── */
.cs-wrap { position: relative; }
.cs-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-weight: 400;
  gap: 8px;
  line-height: 1.4;
}
.cs-trigger:focus { outline: none; border-color: var(--primary); }
.cs-wrap.open .cs-trigger { border-color: var(--primary); }
.cs-arrow { flex-shrink: 0; transition: transform 0.15s; color: var(--text-muted); }
.cs-wrap.open .cs-arrow { transform: rotate(180deg); }
.cs-menu {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
}
.cs-option {
  padding: 9px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
}
.cs-option:hover { background: var(--bg); }
.cs-option.selected { color: var(--primary); font-weight: 600; background: #EBF8FF; }

/* ── Custom Multi-Select ──────────────────────────────────────────────────────── */
.csms-option { display: flex; align-items: center; gap: 8px; }
.csms-check {
  width: 14px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
}
