﻿
    /* ============================================================
       DESIGN TOKENS
    ============================================================ */
    :root {
      /* Access FS logo colors */
      --ramhb-primary:   #f42941;
      --ramhb-secondary: #1f2e44;
      --ramhb-main:      #9ba0a9;

      /* Colors â€“ Light */
      --ramhb-bg-base:         #f7f6f3;
      --ramhb-bg-surface:      #ffffff;
      --ramhb-bg-elevated:     #ffffff;
      --ramhb-bg-subtle:       #f0ede8;
      --ramhb-bg-hover:        #ece9e3;
      --ramhb-bg-overlay:      rgba(0,0,0,0.45);

      --ramhb-border-default:  #e5e1da;
      --ramhb-border-strong:   #ccc8c0;
      --ramhb-border-focus: var(--ramhb-primary);

      --ramhb-text-primary:    #1a1814;
      --ramhb-text-secondary:  #5c5750;
      --ramhb-text-muted: var(--ramhb-main);
      --ramhb-text-on-accent:  #ffffff;
      --ramhb-text-link: var(--ramhb-primary);

      --ramhb-accent-primary: var(--ramhb-primary);
      --ramhb-accent-light: #fde8eb;
      --ramhb-accent-dark: #c41e34;

      --ramhb-sidebar-bg: var(--ramhb-secondary);
      --ramhb-sidebar-text:    #b8b4ac;
      --ramhb-sidebar-active: var(--ramhb-primary);
      --ramhb-sidebar-hover:   #2a2722;
      --ramhb-sidebar-border:  #2e2b27;
      --ramhb-sidebar-icon:    #7a766e;
      --ramhb-sidebar-width:   240px;
      --ramhb-sidebar-collapsed: 60px;

      --ramhb-success:         #3d9e6a;
      --ramhb-success-bg:      #e8f7ef;
      --ramhb-warning:         #d4882a;
      --ramhb-warning-bg:      #fdf3e3;
      --ramhb-danger:          #d94f4f;
      --ramhb-danger-bg:       #fdf0f0;
      --ramhb-info:            #3a7fc1;
      --ramhb-info-bg:         #eaf2fb;

      --ramhb-shadow-xs:       0 1px 2px rgba(0,0,0,0.05);
      --ramhb-shadow-sm:       0 1px 3px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
      --ramhb-shadow-md:       0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
      --ramhb-shadow-lg:       0 8px 24px rgba(0,0,0,0.10), 0 3px 8px rgba(0,0,0,0.06);
      --ramhb-shadow-xl:       0 20px 48px rgba(0,0,0,0.14), 0 8px 16px rgba(0,0,0,0.08);

      --ramhb-radius-sm:       6px;
      --ramhb-radius-md:       8px;
      --ramhb-radius-lg:       12px;
      --ramhb-radius-xl:       16px;
      --ramhb-radius-full:     9999px;

      --ramhb-transition:      0.2s ease;
      --ramhb-transition-slow: 0.3s ease;

      --ramhb-topbar-height:   56px;
      --ramhb-font-mono:       'DM Mono', 'Fira Code', monospace;
    }

    [data-theme="dark"] {
      --ramhb-bg-base:         #111210;
      --ramhb-bg-surface:      #1a1916;
      --ramhb-bg-elevated:     #222019;
      --ramhb-bg-subtle:       #1f1e1b;
      --ramhb-bg-hover:        #252320;
      --ramhb-bg-overlay:      rgba(0,0,0,0.65);

      --ramhb-border-default:  #2e2c28;
      --ramhb-border-strong:   #3e3c38;
      --ramhb-border-focus:    #c8a96e;

      --ramhb-text-primary:    #f0ede8;
      --ramhb-text-secondary:  #9c9892;
      --ramhb-text-muted:      #5c5a56;
      --ramhb-text-on-accent:  #ffffff;
      --ramhb-text-link:       #e0ac58;

      --ramhb-accent-primary:  var(--ramhb-primary);
      --ramhb-accent-light:    #3d1a22;
      --ramhb-accent-dark:     #ff4d63;

      --ramhb-sidebar-bg:      var(--ramhb-secondary);
      --ramhb-sidebar-text:    #8a8680;
      --ramhb-sidebar-active:  var(--ramhb-primary);
      --ramhb-sidebar-hover:   #1a1916;
      --ramhb-sidebar-border:  #1e1d1a;

      --ramhb-shadow-xs:       0 1px 2px rgba(0,0,0,0.2);
      --ramhb-shadow-sm:       0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.15);
      --ramhb-shadow-md:       0 4px 12px rgba(0,0,0,0.3), 0 2px 4px rgba(0,0,0,0.2);
      --ramhb-shadow-lg:       0 8px 24px rgba(0,0,0,0.35), 0 3px 8px rgba(0,0,0,0.2);
      --ramhb-shadow-xl:       0 20px 48px rgba(0,0,0,0.5), 0 8px 16px rgba(0,0,0,0.3);

      --ramhb-success-bg:      rgba(61, 158, 106, 0.15);
      --ramhb-warning-bg:      rgba(212, 136, 42, 0.15);
      --ramhb-danger-bg:       rgba(217, 79, 79, 0.15);
      --ramhb-info-bg:         rgba(58, 127, 193, 0.15);
    }

    /* ============================================================
       RESET & BASE
    ============================================================ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { font-size: 13px; scroll-behavior: smooth; }
    body {
      font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
      background: var(--ramhb-bg-base);
      color: var(--ramhb-text-primary);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }
    a { color: var(--ramhb-text-link); text-decoration: none; }
    button { font-family: inherit; cursor: pointer; border: none; background: none; }
    input, select, textarea { font-family: inherit; font-size: inherit; }
    svg { display: block; flex-shrink: 0; }
    ul, ol { list-style: none; }
    img { max-width: 100%; display: block; }

    /* ============================================================
       LAYOUT SHELL
    ============================================================ */
    .ramhb-shell {
      display: flex;
      min-height: 100vh;
    }

    /* ============================================================
       SIDEBAR
    ============================================================ */
    .ramhb-sidebar {
      width: var(--ramhb-sidebar-width);
      background: var(--ramhb-sidebar-bg);
      border-right: 1px solid var(--ramhb-sidebar-border);
      display: flex;
      flex-direction: column;
      position: fixed;
      top: 0; left: 0;
      height: 100vh;
      z-index: 200;
      transition: width var(--ramhb-transition-slow), transform var(--ramhb-transition-slow);
      overflow: hidden;
    }
    .ramhb-sidebar.ramhb-collapsed { width: var(--ramhb-sidebar-collapsed); }
    .ramhb-sidebar.ramhb-mobile-open { transform: translateX(0) !important; }

    .ramhb-sidebar-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 16px;
      height: var(--ramhb-topbar-height);
      border-bottom: 1px solid var(--ramhb-sidebar-border);
      flex-shrink: 0;
      overflow: hidden;
    }
    .ramhb-sidebar-logo .ramhb-logo-icon {
      width: 28px; height: 28px;
      background: var(--ramhb-accent-primary);
      border-radius: var(--ramhb-radius-sm);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .ramhb-sidebar-logo .ramhb-logo-icon svg { color: #fff; }
    .ramhb-sidebar-logo .ramhb-logo-text {
      font-size: 14px; font-weight: 700;
      color: #fff; letter-spacing: -0.3px;
      white-space: nowrap;
      opacity: 1; transition: opacity var(--ramhb-transition);
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-logo-text { opacity: 0; pointer-events: none; }

    .ramhb-sidebar-nav {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding: 10px 0;
      scrollbar-width: thin;
      scrollbar-color: var(--ramhb-sidebar-border) transparent;
    }
    .ramhb-sidebar-nav::-webkit-scrollbar { width: 3px; }
    .ramhb-sidebar-nav::-webkit-scrollbar-track { background: transparent; }
    .ramhb-sidebar-nav::-webkit-scrollbar-thumb { background: var(--ramhb-sidebar-border); border-radius: 99px; }

    .ramhb-nav-section-label {
      padding: 14px 16px 5px;
      font-size: 9.5px;
      font-weight: 600;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--ramhb-sidebar-icon);
      white-space: nowrap;
      opacity: 1; transition: opacity var(--ramhb-transition);
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-section-label {
      display: none;
      height: 0;
      padding: 0;
      margin: 0;
      overflow: hidden;
    }

    /* Flyout heading â€” only in collapsed drop-right panel, not inline submenu */
    .ramhb-nav-flyout-title {
      display: none;
    }

    .ramhb-nav-item {
      position: relative;
    }
    .ramhb-nav-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 7px 16px;
      color: var(--ramhb-sidebar-text);
      font-size: 12.5px;
      font-weight: 450;
      border-radius: 0;
      cursor: pointer;
      transition: background var(--ramhb-transition), color var(--ramhb-transition);
      white-space: nowrap;
      position: relative;
      user-select: none;
    }
    .ramhb-nav-link:hover { background: var(--ramhb-sidebar-hover); color: #fff; }
    .ramhb-nav-link.ramhb-active {
      color: var(--ramhb-sidebar-active);
      background: rgba(200,150,60,0.08);
    }
    .ramhb-nav-link.ramhb-active::before {
      content: '';
      position: absolute;
      left: 0; top: 4px; bottom: 4px;
      width: 2.5px;
      background: var(--ramhb-sidebar-active);
      border-radius: 0 2px 2px 0;
    }
    .ramhb-nav-link svg { flex-shrink: 0; }
    .ramhb-nav-link .ramhb-nav-label { flex: 1; transition: opacity var(--ramhb-transition), transform var(--ramhb-transition); }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item > .ramhb-nav-link > .ramhb-nav-label,
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item > .ramhb-nav-link > .ramhb-nav-badge,
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item > .ramhb-nav-link > .ramhb-chevron {
      display: none !important;
      width: 0 !important;
      height: 0 !important;
      overflow: hidden !important;
      opacity: 0 !important;
      position: absolute !important;
      pointer-events: none !important;
    }
    .ramhb-nav-link .ramhb-nav-badge {
      background: var(--ramhb-accent-primary);
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      padding: 1px 5px;
      border-radius: var(--ramhb-radius-full);
      transition: opacity var(--ramhb-transition);
    }
    .ramhb-nav-link .ramhb-chevron {
      margin-left: auto;
      transition: transform var(--ramhb-transition), opacity var(--ramhb-transition);
      color: var(--ramhb-sidebar-icon);
    }
    .ramhb-nav-link.ramhb-open .ramhb-chevron { transform: rotate(90deg); }

    /* Submenu */
    .ramhb-nav-submenu {
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.3s ease;
    }
    .ramhb-nav-submenu.ramhb-open { max-height: 300px; }
    .ramhb-nav-submenu .ramhb-nav-link {
      padding-left: 42px;
      font-size: 12px;
      color: var(--ramhb-sidebar-icon);
    }
    .ramhb-nav-submenu .ramhb-nav-link:hover { color: var(--ramhb-sidebar-text); }
    .ramhb-nav-submenu .ramhb-nav-link.ramhb-active { color: var(--ramhb-sidebar-active); }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu:not(.ramhb-nav-flyout) { display: none; }

    /* Collapsed sidebar: flyout submenu (drop-right on hover) */
    .ramhb-sidebar.ramhb-collapsed {
      overflow: visible;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-sidebar-nav {
      overflow: visible;
      padding: 6px 0;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item {
      margin: 0;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item > .ramhb-nav-link {
      justify-content: center;
      align-items: center;
      padding: 9px 0;
      gap: 0;
      min-height: 38px;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item > .ramhb-nav-link > svg:first-child {
      flex-shrink: 0;
      display: block;
      margin: 0 auto;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-item.ramhb-flyout-parent > .ramhb-nav-link {
      background: var(--ramhb-sidebar-hover);
      color: #fff;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout {
      display: block !important;
      position: fixed;
      top: auto;
      left: var(--ramhb-sidebar-collapsed);
      width: auto;
      height: auto;
      min-width: 210px;
      max-width: 260px;
      overflow-y: auto;
      overflow-x: hidden;
      max-height: 0;
      padding: 0;
      margin: 0;
      background: var(--ramhb-sidebar-bg);
      border: 1px solid var(--ramhb-sidebar-border);
      border-radius: var(--ramhb-radius-md);
      box-shadow: var(--ramhb-shadow-lg);
      z-index: 400;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateX(-6px);
      transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout.ramhb-flyout-visible {
      max-height: min(70vh, 420px);
      padding: 6px 0;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: translateX(0);
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout .ramhb-nav-flyout-title {
      display: block;
      padding: 8px 14px 6px;
      font-size: 10px;
      font-weight: 600;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      color: var(--ramhb-sidebar-icon);
      border-bottom: 1px solid var(--ramhb-sidebar-border);
      margin-bottom: 4px;
      white-space: nowrap;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout .ramhb-nav-link {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 14px;
      justify-content: flex-start;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout .ramhb-nav-link svg {
      display: block !important;
      flex-shrink: 0;
      width: 13px;
      height: 13px;
      opacity: 1 !important;
      visibility: visible !important;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout .ramhb-nav-label {
      display: block !important;
      position: static !important;
      width: auto !important;
      height: auto !important;
      opacity: 1 !important;
      transform: none !important;
      pointer-events: auto !important;
      overflow: visible !important;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout .ramhb-nav-link.ramhb-active::before {
      display: none;
    }
    .ramhb-sidebar.ramhb-collapsed .ramhb-nav-submenu.ramhb-nav-flyout .ramhb-nav-link.ramhb-active {
      background: rgba(244, 41, 65, 0.12);
    }

    /* Sidebar footer */
    .ramhb-sidebar-footer {
      padding: 12px 10px;
      border-top: 1px solid var(--ramhb-sidebar-border);
      flex-shrink: 0;
    }
    .ramhb-sidebar-footer .ramhb-user-pill {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 7px;
      border-radius: var(--ramhb-radius-md);
      cursor: pointer;
      transition: background var(--ramhb-transition);
      overflow: hidden;
    }
    .ramhb-sidebar-footer .ramhb-user-pill:hover { background: var(--ramhb-sidebar-hover); }
    .ramhb-sidebar-footer .ramhb-avatar {
      width: 28px; height: 28px;
      border-radius: var(--ramhb-radius-full);
      background: var(--ramhb-accent-primary);
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: #fff;
      flex-shrink: 0;
    }
    .ramhb-sidebar-footer .ramhb-user-info { overflow: hidden; transition: opacity var(--ramhb-transition); }
    .ramhb-sidebar-footer .ramhb-user-name { font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; }
    .ramhb-sidebar-footer .ramhb-user-role { font-size: 10px; color: var(--ramhb-sidebar-icon); white-space: nowrap; }
    .ramhb-sidebar.ramhb-collapsed .ramhb-sidebar-footer .ramhb-user-info { opacity: 0; }

    /* Sidebar toggle button */
    .ramhb-sidebar-toggle-btn {
      position: fixed;
      top: 15px;
      left: calc(var(--ramhb-sidebar-width) - 14px);
      z-index: 300;
      width: 24px; height: 24px;
      border-radius: var(--ramhb-radius-full);
      background: var(--ramhb-bg-surface);
      border: 1px solid var(--ramhb-border-default);
      box-shadow: var(--ramhb-shadow-sm);
      display: flex; align-items: center; justify-content: center;
      color: var(--ramhb-text-secondary);
      transition: left var(--ramhb-transition-slow), transform var(--ramhb-transition);
      cursor: pointer;
    }
    .ramhb-sidebar-toggle-btn:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }
    .ramhb-sidebar.ramhb-collapsed ~ .ramhb-sidebar-toggle-btn,
    body.ramhb-sidebar-collapsed .ramhb-sidebar-toggle-btn {
      left: calc(var(--ramhb-sidebar-collapsed) - 12px);
    }
    .ramhb-sidebar.ramhb-collapsed ~ * .ramhb-sidebar-toggle-btn { left: calc(var(--ramhb-sidebar-collapsed) - 12px); }

    /* ============================================================
       MAIN CONTENT
    ============================================================ */
    .ramhb-main {
      flex: 1;
      margin-left: var(--ramhb-sidebar-width);
      min-width: 0;
      display: flex;
      flex-direction: column;
      transition: margin-left var(--ramhb-transition-slow);
    }
    .ramhb-main.ramhb-sidebar-collapsed { margin-left: var(--ramhb-sidebar-collapsed); }

    /* ============================================================
       TOP NAVBAR
    ============================================================ */
    .ramhb-topbar {
      height: var(--ramhb-topbar-height);
      background: var(--ramhb-bg-surface);
      border-bottom: 1px solid var(--ramhb-border-default);
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 0 20px;
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: var(--ramhb-shadow-xs);
    }

    .ramhb-topbar-mobile-toggle {
      display: none;
      align-items: center;
      justify-content: center;
      width: 32px; height: 32px;
      border-radius: var(--ramhb-radius-md);
      color: var(--ramhb-text-secondary);
      transition: background var(--ramhb-transition), color var(--ramhb-transition);
    }
    .ramhb-topbar-mobile-toggle:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }

    .ramhb-topbar-search {
      flex: 1;
      max-width: 380px;
      position: relative;
    }
    .ramhb-topbar-search input {
      width: 100%;
      height: 32px;
      padding: 0 12px 0 34px;
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
      background: var(--ramhb-bg-subtle);
      color: var(--ramhb-text-primary);
      font-size: 12px;
      transition: border-color var(--ramhb-transition), background var(--ramhb-transition), box-shadow var(--ramhb-transition);
      outline: none;
    }
    .ramhb-topbar-search input::placeholder { color: var(--ramhb-text-muted); }
    .ramhb-topbar-search input:focus {
      border-color: var(--ramhb-border-focus);
      background: var(--ramhb-bg-surface);
      box-shadow: 0 0 0 3px rgba(200,150,60,0.12);
    }
    .ramhb-topbar-search .ramhb-search-icon {
      position: absolute;
      left: 10px; top: 50%;
      transform: translateY(-50%);
      color: var(--ramhb-text-muted);
      pointer-events: none;
    }
    .ramhb-topbar-search .ramhb-kbd {
      position: absolute;
      right: 8px; top: 50%;
      transform: translateY(-50%);
      font-family: var(--ramhb-font-mono);
      font-size: 9px;
      color: var(--ramhb-text-muted);
      background: var(--ramhb-bg-hover);
      border: 1px solid var(--ramhb-border-default);
      padding: 1px 4px;
      border-radius: 4px;
    }

    .ramhb-topbar-spacer { flex: 1; }

    .ramhb-topbar-actions {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .ramhb-icon-btn {
      position: relative;
      width: 32px; height: 32px;
      border-radius: var(--ramhb-radius-md);
      display: flex; align-items: center; justify-content: center;
      color: var(--ramhb-text-secondary);
      transition: background var(--ramhb-transition), color var(--ramhb-transition);
      cursor: pointer;
    }
    .ramhb-icon-btn:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }
    .ramhb-icon-btn .ramhb-badge-dot {
      position: absolute;
      top: 5px; right: 5px;
      width: 7px; height: 7px;
      background: var(--ramhb-danger);
      border-radius: var(--ramhb-radius-full);
      border: 1.5px solid var(--ramhb-bg-surface);
    }
    .ramhb-icon-btn .ramhb-badge-count {
      position: absolute;
      top: 2px; right: 2px;
      min-width: 14px; height: 14px;
      padding: 0 3px;
      background: var(--ramhb-danger);
      color: #fff;
      font-size: 8px;
      font-weight: 700;
      border-radius: var(--ramhb-radius-full);
      display: flex; align-items: center; justify-content: center;
      border: 1.5px solid var(--ramhb-bg-surface);
    }

    /* Theme toggle */
    .ramhb-theme-toggle {
      width: 32px; height: 32px;
      border-radius: var(--ramhb-radius-md);
      display: flex; align-items: center; justify-content: center;
      color: var(--ramhb-text-secondary);
      transition: background var(--ramhb-transition), color var(--ramhb-transition);
      cursor: pointer;
    }
    .ramhb-theme-toggle:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }

    /* Divider */
    .ramhb-topbar-divider {
      width: 1px; height: 20px;
      background: var(--ramhb-border-default);
      margin: 0 4px;
    }

    /* Profile button */
    .ramhb-profile-btn {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 4px 10px 4px 4px;
      border-radius: var(--ramhb-radius-md);
      cursor: pointer;
      transition: background var(--ramhb-transition);
    }
    .ramhb-profile-btn:hover { background: var(--ramhb-bg-hover); }
    .ramhb-profile-btn .ramhb-avatar {
      width: 28px; height: 28px;
      border-radius: var(--ramhb-radius-full);
      background: var(--ramhb-accent-primary);
      display: flex; align-items: center; justify-content: center;
      font-size: 11px; font-weight: 700; color: #fff;
    }
    .ramhb-profile-btn .ramhb-profile-name {
      font-size: 12px; font-weight: 500;
      color: var(--ramhb-text-primary);
    }
    .ramhb-profile-btn .ramhb-chevron { color: var(--ramhb-text-muted); }

    /* ============================================================
       DROPDOWN MENUS
    ============================================================ */
    .ramhb-dropdown-wrapper {
      position: relative;
    }
    .ramhb-dropdown-menu {
      position: absolute;
      top: calc(100% + 6px);
      right: 0;
      background: var(--ramhb-bg-elevated);
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-lg);
      box-shadow: var(--ramhb-shadow-xl);
      min-width: 220px;
      z-index: 500;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px) scale(0.97);
      transform-origin: top right;
      transition: opacity var(--ramhb-transition), transform var(--ramhb-transition), visibility var(--ramhb-transition);
      overflow: hidden;
    }
    .ramhb-dropdown-menu.ramhb-open {
      opacity: 1;
      visibility: visible;
      transform: translateY(0) scale(1);
    }
    .ramhb-dropdown-header {
      padding: 12px 14px 10px;
      border-bottom: 1px solid var(--ramhb-border-default);
    }
    .ramhb-dropdown-header .ramhb-d-name { font-size: 12.5px; font-weight: 600; color: var(--ramhb-text-primary); }
    .ramhb-dropdown-header .ramhb-d-email { font-size: 11px; color: var(--ramhb-text-muted); margin-top: 1px; }
    .ramhb-dropdown-title {
      padding: 10px 14px 4px;
      font-size: 9.5px;
      font-weight: 700;
      letter-spacing: 0.7px;
      text-transform: uppercase;
      color: var(--ramhb-text-muted);
    }
    .ramhb-dropdown-item {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 7px 14px;
      font-size: 12.5px;
      color: var(--ramhb-text-secondary);
      cursor: pointer;
      transition: background var(--ramhb-transition), color var(--ramhb-transition);
    }
    .ramhb-dropdown-item:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }
    .ramhb-dropdown-item.ramhb-danger { color: var(--ramhb-danger); }
    .ramhb-dropdown-item.ramhb-danger:hover { background: var(--ramhb-danger-bg); }
    .ramhb-dropdown-item svg { flex-shrink: 0; }
    .ramhb-dropdown-sep {
      height: 1px;
      background: var(--ramhb-border-default);
      margin: 4px 0;
    }

    /* Notification dropdown */
    .ramhb-notif-dropdown { min-width: 300px; }
    .ramhb-notif-item {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 10px 14px;
      cursor: pointer;
      transition: background var(--ramhb-transition);
      border-bottom: 1px solid var(--ramhb-border-default);
    }
    .ramhb-notif-item:last-child { border-bottom: none; }
    .ramhb-notif-item:hover { background: var(--ramhb-bg-hover); }
    .ramhb-notif-item.ramhb-unread { background: rgba(200,150,60,0.04); }
    .ramhb-notif-icon {
      width: 30px; height: 30px;
      border-radius: var(--ramhb-radius-md);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
    }
    .ramhb-notif-icon.ramhb-success { background: var(--ramhb-success-bg); color: var(--ramhb-success); }
    .ramhb-notif-icon.ramhb-warning { background: var(--ramhb-warning-bg); color: var(--ramhb-warning); }
    .ramhb-notif-icon.ramhb-danger  { background: var(--ramhb-danger-bg);  color: var(--ramhb-danger);  }
    .ramhb-notif-icon.ramhb-info    { background: var(--ramhb-info-bg);    color: var(--ramhb-info);    }
    .ramhb-notif-body .ramhb-notif-title { font-size: 12px; font-weight: 500; color: var(--ramhb-text-primary); }
    .ramhb-notif-body .ramhb-notif-desc  { font-size: 11px; color: var(--ramhb-text-muted); margin-top: 1px; }
    .ramhb-notif-body .ramhb-notif-time  { font-size: 10px; color: var(--ramhb-text-muted); margin-top: 3px; font-family: var(--ramhb-font-mono); }
    .ramhb-notif-unread-dot {
      width: 6px; height: 6px;
      background: var(--ramhb-accent-primary);
      border-radius: var(--ramhb-radius-full);
      margin-top: 5px;
      flex-shrink: 0;
    }

    /* ============================================================
       MOBILE OVERLAY
    ============================================================ */
    .ramhb-mobile-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--ramhb-bg-overlay);
      z-index: 150;
      opacity: 0;
      transition: opacity var(--ramhb-transition-slow);
    }
    .ramhb-mobile-overlay.ramhb-active { opacity: 1; }

    /* ============================================================
       PAGE CONTENT
    ============================================================ */
    .ramhb-content {
      flex: 1;
      padding: 24px 24px;
      overflow: auto;
    }

    /* Page header */
    .ramhb-page-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 24px;
      flex-wrap: wrap;
    }
    .ramhb-page-title { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; color: var(--ramhb-text-primary); }
    .ramhb-page-subtitle { font-size: 12.5px; color: var(--ramhb-text-muted); margin-top: 2px; }
    .ramhb-page-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

    /* Breadcrumb */
    .ramhb-breadcrumb {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 11.5px;
      color: var(--ramhb-text-muted);
      margin-bottom: 6px;
    }
    .ramhb-breadcrumb span { color: var(--ramhb-text-primary); }
    .ramhb-breadcrumb svg { color: var(--ramhb-border-strong); }

    /* ============================================================
       BUTTONS
    ============================================================ */
    .ramhb-btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 0 14px;
      height: 32px;
      border-radius: var(--ramhb-radius-md);
      font-size: 12.5px;
      font-weight: 500;
      transition: all var(--ramhb-transition);
      white-space: nowrap;
      cursor: pointer;
      border: 1px solid transparent;
    }
    .ramhb-btn svg { flex-shrink: 0; }

    .ramhb-btn-primary {
      background: var(--ramhb-accent-primary);
      color: #fff;
      border-color: var(--ramhb-accent-primary);
    }
    .ramhb-btn-primary:hover { background: var(--ramhb-accent-dark); border-color: var(--ramhb-accent-dark); }

    .ramhb-btn-secondary {
      background: var(--ramhb-bg-surface);
      color: var(--ramhb-text-primary);
      border-color: var(--ramhb-border-default);
      box-shadow: var(--ramhb-shadow-xs);
    }
    .ramhb-btn-secondary:hover { background: var(--ramhb-bg-hover); border-color: var(--ramhb-border-strong); }

    .ramhb-btn-ghost {
      background: transparent;
      color: var(--ramhb-text-secondary);
    }
    .ramhb-btn-ghost:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }

    .ramhb-btn-danger {
      background: var(--ramhb-danger);
      color: #fff;
      border-color: var(--ramhb-danger);
    }
    .ramhb-btn-danger:hover { opacity: 0.9; }

    .ramhb-btn-sm { height: 26px; padding: 0 10px; font-size: 11.5px; }
    .ramhb-btn-lg { height: 38px; padding: 0 18px; font-size: 13.5px; }
    .ramhb-btn-icon { width: 32px; padding: 0; justify-content: center; }
    .ramhb-btn-icon.ramhb-btn-sm { width: 26px; }

    /* ============================================================
       STATS CARDS
    ============================================================ */
    .ramhb-stats-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 14px;
      margin-bottom: 24px;
    }

    .ramhb-stat-card {
      background: var(--ramhb-bg-surface);
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-lg);
      padding: 16px;
      box-shadow: var(--ramhb-shadow-sm);
      transition: box-shadow var(--ramhb-transition), transform var(--ramhb-transition);
      cursor: default;
    }
    .ramhb-stat-card:hover { box-shadow: var(--ramhb-shadow-md); transform: translateY(-1px); }

    .ramhb-stat-card-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 12px;
    }
    .ramhb-stat-card-label {
      font-size: 11px;
      font-weight: 500;
      color: var(--ramhb-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .ramhb-stat-icon {
      width: 32px; height: 32px;
      border-radius: var(--ramhb-radius-md);
      display: flex; align-items: center; justify-content: center;
    }
    .ramhb-stat-icon.ramhb-amber  { background: var(--ramhb-accent-light); color: var(--ramhb-accent-primary); }
    .ramhb-stat-icon.ramhb-green  { background: var(--ramhb-success-bg);   color: var(--ramhb-success); }
    .ramhb-stat-icon.ramhb-red    { background: var(--ramhb-danger-bg);    color: var(--ramhb-danger); }
    .ramhb-stat-icon.ramhb-blue   { background: var(--ramhb-info-bg);      color: var(--ramhb-info); }

    .ramhb-stat-value {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.8px;
      color: var(--ramhb-text-primary);
      margin-bottom: 6px;
      font-variant-numeric: tabular-nums;
    }
    .ramhb-stat-trend {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      font-size: 11px;
      font-weight: 500;
      padding: 2px 6px;
      border-radius: var(--ramhb-radius-full);
    }
    .ramhb-stat-trend.ramhb-up   { background: var(--ramhb-success-bg); color: var(--ramhb-success); }
    .ramhb-stat-trend.ramhb-down { background: var(--ramhb-danger-bg);  color: var(--ramhb-danger); }
    .ramhb-stat-trend-label { font-size: 11px; color: var(--ramhb-text-muted); margin-left: 4px; }

    /* Gradient stat card */
    .ramhb-stat-card.ramhb-gradient {
      background: linear-gradient(135deg, var(--ramhb-primary) 0%, #ff6b7a 100%);
      border-color: transparent;
      color: #fff;
    }
    .ramhb-stat-card.ramhb-gradient .ramhb-stat-card-label,
    .ramhb-stat-card.ramhb-gradient .ramhb-stat-value,
    .ramhb-stat-card.ramhb-gradient .ramhb-stat-trend-label { color: rgba(255,255,255,0.85); }
    .ramhb-stat-card.ramhb-gradient .ramhb-stat-icon { background: rgba(255,255,255,0.2); color: #fff; }
    .ramhb-stat-card.ramhb-gradient .ramhb-stat-trend.ramhb-up   { background: rgba(255,255,255,0.2); color: #fff; }

    /* ============================================================
       GRID LAYOUTS
    ============================================================ */
    .ramhb-content-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
      margin-bottom: 24px;
    }
    .ramhb-content-grid.ramhb-wide { grid-template-columns: 2fr 1fr; }
    .ramhb-content-grid.ramhb-three { grid-template-columns: repeat(3, 1fr); }

    /* ============================================================
       CARD / PANEL
    ============================================================ */
    .ramhb-card {
      background: var(--ramhb-bg-surface);
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-lg);
      box-shadow: var(--ramhb-shadow-sm);
      overflow: hidden;
    }
    .ramhb-card-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 18px 12px;
      border-bottom: 1px solid var(--ramhb-border-default);
    }
    .ramhb-card-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--ramhb-text-primary);
      letter-spacing: -0.2px;
    }
    .ramhb-card-subtitle {
      font-size: 11px;
      color: var(--ramhb-text-muted);
      margin-top: 1px;
    }
    .ramhb-card-body { padding: 18px; }
    .ramhb-card-footer {
      padding: 12px 18px;
      border-top: 1px solid var(--ramhb-border-default);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    /* ============================================================
       DATA TABLE
    ============================================================ */
    .ramhb-table-toolbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 14px 18px 10px;
      flex-wrap: wrap;
    }
    .ramhb-table-search {
      position: relative;
      width: 220px;
    }
    .ramhb-table-search input {
      width: 100%;
      height: 30px;
      padding: 0 10px 0 30px;
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
      background: var(--ramhb-bg-subtle);
      color: var(--ramhb-text-primary);
      font-size: 12px;
      outline: none;
      transition: border-color var(--ramhb-transition), box-shadow var(--ramhb-transition);
    }
    .ramhb-table-search input:focus {
      border-color: var(--ramhb-border-focus);
      box-shadow: 0 0 0 3px rgba(200,150,60,0.12);
    }
    .ramhb-table-search .ramhb-search-icon {
      position: absolute;
      left: 9px; top: 50%;
      transform: translateY(-50%);
      color: var(--ramhb-text-muted);
      pointer-events: none;
    }

    .ramhb-table-filters { display: flex; gap: 6px; }

    .ramhb-table-wrapper { overflow-x: auto; }
    table {
      width: 100%;
      border-collapse: collapse;
    }
    thead tr {
      border-bottom: 1px solid var(--ramhb-border-default);
    }
    th {
      padding: 9px 14px;
      text-align: left;
      font-size: 11px;
      font-weight: 600;
      color: var(--ramhb-text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
      white-space: nowrap;
      cursor: pointer;
      user-select: none;
      transition: color var(--ramhb-transition);
    }
    th:hover { color: var(--ramhb-text-primary); }
    th.ramhb-sorted { color: var(--ramhb-accent-primary); }
    th .ramhb-sort-icon { display: inline-flex; vertical-align: middle; margin-left: 3px; opacity: 0.4; }
    th.ramhb-sorted .ramhb-sort-icon { opacity: 1; }

    tbody tr {
      border-bottom: 1px solid var(--ramhb-border-default);
      transition: background var(--ramhb-transition);
    }
    tbody tr:last-child { border-bottom: none; }
    tbody tr:hover { background: var(--ramhb-bg-hover); }
    td {
      padding: 10px 14px;
      font-size: 12.5px;
      color: var(--ramhb-text-primary);
      white-space: nowrap;
    }

    /* Table-specific elements */
    .ramhb-td-user { display: flex; align-items: center; gap: 9px; }
    .ramhb-td-avatar {
      width: 26px; height: 26px;
      border-radius: var(--ramhb-radius-full);
      font-size: 10px; font-weight: 700;
      display: flex; align-items: center; justify-content: center;
      color: #fff; flex-shrink: 0;
    }
    .ramhb-td-username { font-size: 12.5px; font-weight: 500; }
    .ramhb-td-email { font-size: 11px; color: var(--ramhb-text-muted); }

    .ramhb-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 2px 7px;
      border-radius: var(--ramhb-radius-full);
      font-size: 10.5px;
      font-weight: 500;
      white-space: nowrap;
    }
    .ramhb-badge::before { content: ''; width: 5px; height: 5px; border-radius: var(--ramhb-radius-full); background: currentColor; opacity: 0.7; }
    .ramhb-badge.ramhb-success { background: var(--ramhb-success-bg); color: var(--ramhb-success); }
    .ramhb-badge.ramhb-warning { background: var(--ramhb-warning-bg); color: var(--ramhb-warning); }
    .ramhb-badge.ramhb-danger  { background: var(--ramhb-danger-bg);  color: var(--ramhb-danger);  }
    .ramhb-badge.ramhb-info    { background: var(--ramhb-info-bg);     color: var(--ramhb-info);    }
    .ramhb-badge.ramhb-neutral { background: var(--ramhb-bg-subtle);   color: var(--ramhb-text-muted); }

    .ramhb-td-actions { display: flex; gap: 4px; align-items: center; }

    /* Pagination */
    .ramhb-pagination {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 12px 18px;
      border-top: 1px solid var(--ramhb-border-default);
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 8px;
    }
    .ramhb-pagination-info { font-size: 11.5px; color: var(--ramhb-text-muted); }
    .ramhb-pagination-controls { display: flex; gap: 2px; align-items: center; }
    .ramhb-page-btn {
      width: 28px; height: 28px;
      border-radius: var(--ramhb-radius-md);
      border: 1px solid var(--ramhb-border-default);
      background: var(--ramhb-bg-surface);
      color: var(--ramhb-text-secondary);
      font-size: 12px;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: all var(--ramhb-transition);
    }
    .ramhb-page-btn:hover { border-color: var(--ramhb-border-strong); color: var(--ramhb-text-primary); }
    .ramhb-page-btn.ramhb-active {
      background: var(--ramhb-accent-primary);
      border-color: var(--ramhb-accent-primary);
      color: #fff;
      font-weight: 600;
    }
    .ramhb-page-btn:disabled { opacity: 0.4; pointer-events: none; }

    /* ============================================================
       FORM COMPONENTS
    ============================================================ */
    .ramhb-form-grid { display: grid; gap: 16px; }
    .ramhb-form-grid.ramhb-cols-2 { grid-template-columns: 1fr 1fr; }
    .ramhb-form-grid.ramhb-cols-3 { grid-template-columns: repeat(3, 1fr); }

    .ramhb-form-group { display: flex; flex-direction: column; gap: 5px; }
    .ramhb-form-label {
      font-size: 11.5px;
      font-weight: 500;
      color: var(--ramhb-text-secondary);
      display: flex;
      align-items: center;
      gap: 4px;
    }
    .ramhb-form-label .ramhb-required { color: var(--ramhb-danger); }

    .ramhb-input-wrapper { position: relative; }
    .ramhb-form-input {
      width: 100%;
      height: 34px;
      padding: 0 12px;
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
      background: var(--ramhb-bg-surface);
      color: var(--ramhb-text-primary);
      font-size: 12.5px;
      outline: none;
      transition: border-color var(--ramhb-transition), box-shadow var(--ramhb-transition), background var(--ramhb-transition);
    }
    .ramhb-form-input::placeholder { color: var(--ramhb-text-muted); }
    .ramhb-form-input:focus {
      border-color: var(--ramhb-border-focus);
      box-shadow: 0 0 0 3px rgba(200,150,60,0.12);
    }
    .ramhb-form-input:disabled {
      background: var(--ramhb-bg-subtle);
      color: var(--ramhb-text-muted);
      cursor: not-allowed;
    }
    .ramhb-form-input.ramhb-error { border-color: var(--ramhb-danger); }
    .ramhb-form-input.ramhb-error:focus { box-shadow: 0 0 0 3px rgba(217,79,79,0.12); }
    .ramhb-form-input.ramhb-has-icon-left { padding-left: 34px; }
    .ramhb-form-input.ramhb-has-icon-right { padding-right: 34px; }

    .ramhb-input-icon-left, .ramhb-input-icon-right {
      position: absolute;
      top: 50%; transform: translateY(-50%);
      color: var(--ramhb-text-muted);
      pointer-events: none;
    }
    .ramhb-input-icon-left { left: 10px; }
    .ramhb-input-icon-right { right: 10px; }
    .ramhb-input-icon-right.ramhb-clickable { pointer-events: all; cursor: pointer; }
    .ramhb-input-icon-right.ramhb-clickable:hover { color: var(--ramhb-text-primary); }

    .ramhb-form-hint {
      font-size: 11px;
      color: var(--ramhb-text-muted);
      margin-top: 2px;
    }
    .ramhb-form-error {
      font-size: 11px;
      color: var(--ramhb-danger);
      display: flex;
      align-items: center;
      gap: 4px;
      margin-top: 2px;
    }

    /* Textarea */
    .ramhb-form-textarea {
      width: 100%;
      padding: 8px 12px;
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
      background: var(--ramhb-bg-surface);
      color: var(--ramhb-text-primary);
      font-size: 12.5px;
      outline: none;
      resize: vertical;
      min-height: 80px;
      transition: border-color var(--ramhb-transition), box-shadow var(--ramhb-transition);
    }
    .ramhb-form-textarea:focus {
      border-color: var(--ramhb-border-focus);
      box-shadow: 0 0 0 3px rgba(200,150,60,0.12);
    }

    /* Select */
    .ramhb-form-select {
      width: 100%;
      height: 34px;
      padding: 0 32px 0 12px;
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
      background: var(--ramhb-bg-surface);
      color: var(--ramhb-text-primary);
      font-size: 12.5px;
      outline: none;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.ramhb-w3.ramhb-org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239c9690' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      transition: border-color var(--ramhb-transition), box-shadow var(--ramhb-transition);
      cursor: pointer;
    }
    .ramhb-form-select:focus {
      border-color: var(--ramhb-border-focus);
      box-shadow: 0 0 0 3px rgba(200,150,60,0.12);
    }

    /* Checkbox */
    .ramhb-checkbox-label {
      display: flex;
      align-items: center;
      gap: 9px;
      font-size: 12.5px;
      color: var(--ramhb-text-primary);
      cursor: pointer;
      user-select: none;
    }
    .ramhb-checkbox-label input[type="checkbox"] { display: none; }
    .ramhb-checkbox-box {
      width: 16px; height: 16px;
      border: 1.5px solid var(--ramhb-border-strong);
      border-radius: 4px;
      background: var(--ramhb-bg-surface);
      display: flex; align-items: center; justify-content: center;
      transition: all var(--ramhb-transition);
      flex-shrink: 0;
    }
    .ramhb-checkbox-label input[type="checkbox"]:checked ~ .ramhb-checkbox-box {
      background: var(--ramhb-accent-primary);
      border-color: var(--ramhb-accent-primary);
    }
    .ramhb-checkbox-label input[type="checkbox"]:checked ~ .ramhb-checkbox-box::after {
      content: '';
      width: 8px; height: 5px;
      border-left: 2px solid #fff;
      border-bottom: 2px solid #fff;
      transform: rotate(-45deg) translateY(-1px);
    }

    /* Radio */
    .ramhb-radio-group { display: flex; gap: 8px; flex-wrap: wrap; }
    .ramhb-radio-btn {
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 6px 12px;
      border: 1.5px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
      cursor: pointer;
      font-size: 12px;
      color: var(--ramhb-text-secondary);
      transition: all var(--ramhb-transition);
      user-select: none;
    }
    .ramhb-radio-btn input { display: none; }
    .ramhb-radio-btn:hover { border-color: var(--ramhb-border-strong); color: var(--ramhb-text-primary); }
    .ramhb-radio-btn.ramhb-selected {
      border-color: var(--ramhb-accent-primary);
      background: var(--ramhb-accent-light);
      color: var(--ramhb-accent-primary);
      font-weight: 500;
    }
    .ramhb-radio-dot {
      width: 14px; height: 14px;
      border-radius: var(--ramhb-radius-full);
      border: 1.5px solid currentColor;
      display: flex; align-items: center; justify-content: center;
    }
    .ramhb-radio-btn.ramhb-selected .ramhb-radio-dot::after {
      content: '';
      width: 6px; height: 6px;
      border-radius: var(--ramhb-radius-full);
      background: var(--ramhb-accent-primary);
    }

    /* Toggle switch */
    .ramhb-toggle-switch {
      display: flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      user-select: none;
    }
    .ramhb-toggle-switch input { display: none; }
    .ramhb-toggle-track {
      width: 34px; height: 18px;
      border-radius: var(--ramhb-radius-full);
      background: var(--ramhb-border-strong);
      position: relative;
      transition: background var(--ramhb-transition);
    }
    .ramhb-toggle-thumb {
      position: absolute;
      top: 2px; left: 2px;
      width: 14px; height: 14px;
      border-radius: var(--ramhb-radius-full);
      background: #fff;
      box-shadow: var(--ramhb-shadow-xs);
      transition: transform var(--ramhb-transition);
    }
    .ramhb-toggle-switch input:checked ~ .ramhb-toggle-track { background: var(--ramhb-accent-primary); }
    .ramhb-toggle-switch input:checked ~ .ramhb-toggle-track .ramhb-toggle-thumb { transform: translateX(16px); }
    .ramhb-toggle-label { font-size: 12.5px; color: var(--ramhb-text-primary); }

    /* Dropzone */
    .ramhb-dropzone {
      border: 2px dashed var(--ramhb-border-strong);
      border-radius: var(--ramhb-radius-lg);
      padding: 32px 20px;
      text-align: center;
      cursor: pointer;
      transition: all var(--ramhb-transition);
      background: var(--ramhb-bg-subtle);
    }
    .ramhb-dropzone:hover, .ramhb-dropzone.ramhb-dragover {
      border-color: var(--ramhb-accent-primary);
      background: var(--ramhb-accent-light);
    }
    .ramhb-dropzone-icon {
      width: 40px; height: 40px;
      border-radius: var(--ramhb-radius-lg);
      background: var(--ramhb-bg-surface);
      border: 1px solid var(--ramhb-border-default);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 10px;
      color: var(--ramhb-text-muted);
      box-shadow: var(--ramhb-shadow-xs);
    }
    .ramhb-dropzone-title { font-size: 13px; font-weight: 500; color: var(--ramhb-text-primary); margin-bottom: 4px; }
    .ramhb-dropzone-subtitle { font-size: 11.5px; color: var(--ramhb-text-muted); }
    .ramhb-dropzone-hint { font-size: 10.5px; color: var(--ramhb-text-muted); margin-top: 6px; }
    .ramhb-dropzone input[type="file"] { display: none; }

    .ramhb-file-list { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
    .ramhb-file-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      background: var(--ramhb-bg-surface);
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-md);
    }
    .ramhb-file-icon { color: var(--ramhb-accent-primary); flex-shrink: 0; }
    .ramhb-file-info { flex: 1; min-width: 0; }
    .ramhb-file-name { font-size: 12px; font-weight: 500; truncate; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .ramhb-file-size { font-size: 10.5px; color: var(--ramhb-text-muted); font-family: var(--ramhb-font-mono); }
    .ramhb-file-progress {
      height: 3px;
      background: var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-full);
      margin-top: 4px;
      overflow: hidden;
    }
    .ramhb-file-progress-bar {
      height: 100%;
      background: var(--ramhb-accent-primary);
      border-radius: var(--ramhb-radius-full);
      transition: width 0.5s ease;
    }

    /* ============================================================
       MODAL
    ============================================================ */
    .ramhb-modal-backdrop {
      position: fixed;
      inset: 0;
      background: var(--ramhb-bg-overlay);
      z-index: 1000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity var(--ramhb-transition), visibility var(--ramhb-transition);
    }
    .ramhb-modal-backdrop.ramhb-open {
      opacity: 1;
      visibility: visible;
    }
    .ramhb-modal {
      background: var(--ramhb-bg-elevated);
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-xl);
      box-shadow: var(--ramhb-shadow-xl);
      width: 100%;
      max-width: 480px;
      max-height: 90vh;
      overflow-y: auto;
      transform: translateY(12px) scale(0.98);
      transition: transform var(--ramhb-transition);
    }
    .ramhb-modal-backdrop.ramhb-open .ramhb-modal { transform: translateY(0) scale(1); }
    .ramhb-modal-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      padding: 18px 20px 14px;
      border-bottom: 1px solid var(--ramhb-border-default);
    }
    .ramhb-modal-title { font-size: 14px; font-weight: 700; letter-spacing: -0.3px; }
    .ramhb-modal-subtitle { font-size: 12px; color: var(--ramhb-text-muted); margin-top: 2px; }
    .ramhb-modal-close {
      width: 26px; height: 26px;
      border-radius: var(--ramhb-radius-md);
      display: flex; align-items: center; justify-content: center;
      color: var(--ramhb-text-muted);
      cursor: pointer;
      transition: background var(--ramhb-transition), color var(--ramhb-transition);
      flex-shrink: 0;
    }
    .ramhb-modal-close:hover { background: var(--ramhb-bg-hover); color: var(--ramhb-text-primary); }
    .ramhb-modal-body { padding: 20px; }
    .ramhb-modal-footer {
      padding: 14px 20px;
      border-top: 1px solid var(--ramhb-border-default);
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 8px;
    }

    /* ============================================================
       TOAST NOTIFICATIONS
    ============================================================ */
    .ramhb-toast-container {
      position: fixed;
      top: 14px; right: 14px;
      z-index: 2000;
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-width: 320px;
    }
    .ramhb-toast {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px 14px;
      background: var(--ramhb-bg-elevated);
      border: 1px solid var(--ramhb-border-default);
      border-radius: var(--ramhb-radius-lg);
      box-shadow: var(--ramhb-shadow-xl);
      transform: translateX(110%);
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      overflow: hidden;
    }
    .ramhb-toast.ramhb-show { transform: translateX(0); }
    .ramhb-toast.ramhb-hide { transform: translateX(110%); transition: transform 0.25s ease-in; }
    .ramhb-toast-bar {
      position: absolute;
      bottom: 0; left: 0;
      height: 2px;
      border-radius: 0 0 0 var(--ramhb-radius-lg);
      transition: width linear;
    }
    .ramhb-toast.ramhb-success .ramhb-toast-bar { background: var(--ramhb-success); }
    .ramhb-toast.ramhb-error   .ramhb-toast-bar { background: var(--ramhb-danger); }
    .ramhb-toast.ramhb-warning .ramhb-toast-bar { background: var(--ramhb-warning); }
    .ramhb-toast.ramhb-info    .ramhb-toast-bar { background: var(--ramhb-info); }
    .ramhb-toast-icon {
      width: 28px; height: 28px;
      border-radius: var(--ramhb-radius-md);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      margin-top: 1px;
    }
    .ramhb-toast.ramhb-success .ramhb-toast-icon { background: var(--ramhb-success-bg); color: var(--ramhb-success); }
    .ramhb-toast.ramhb-error   .ramhb-toast-icon { background: var(--ramhb-danger-bg);  color: var(--ramhb-danger); }
    .ramhb-toast.ramhb-warning .ramhb-toast-icon { background: var(--ramhb-warning-bg); color: var(--ramhb-warning); }
    .ramhb-toast.ramhb-info    .ramhb-toast-icon { background: var(--ramhb-info-bg);    color: var(--ramhb-info); }
    .ramhb-toast-content { flex: 1; min-width: 0; }
    .ramhb-toast-title { font-size: 12.5px; font-weight: 600; color: var(--ramhb-text-primary); }
    .ramhb-toast-message { font-size: 11.5px; color: var(--ramhb-text-secondary); margin-top: 1px; line-height: 1.4; }
    .ramhb-toast-close {
      color: var(--ramhb-text-muted);
      cursor: pointer;
      flex-shrink: 0;
      margin-top: 2px;
      transition: color var(--ramhb-transition);
    }
    .ramhb-toast-close:hover { color: var(--ramhb-text-primary); }

    /* ============================================================
       TABS
    ============================================================ */
    .ramhb-tabs {
      display: flex;
      gap: 0;
      border-bottom: 1px solid var(--ramhb-border-default);
      margin-bottom: 16px;
    }
    .ramhb-tab-btn {
      padding: 9px 16px;
      font-size: 12.5px;
      font-weight: 500;
      color: var(--ramhb-text-muted);
      border-bottom: 2px solid transparent;
      cursor: pointer;
      transition: color var(--ramhb-transition), border-color var(--ramhb-transition);
      white-space: nowrap;
    }
    .ramhb-tab-btn:hover { color: var(--ramhb-text-primary); }
    .ramhb-tab-btn.ramhb-active {
      color: var(--ramhb-accent-primary);
      border-bottom-color: var(--ramhb-accent-primary);
    }
    .ramhb-tab-pane { display: none; }
    .ramhb-tab-pane.ramhb-active { display: block; }

    /* ============================================================
       CHARTS (CSS-only sparklines + fake bar chart)
    ============================================================ */
    .ramhb-chart-area {
      position: relative;
      height: 200px;
      overflow: hidden;
    }
    .ramhb-bar-chart {
      display: flex;
      align-items: flex-end;
      gap: 6px;
      height: 100%;
      padding: 0 4px;
    }
    .ramhb-bar-col {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      height: 100%;
      justify-content: flex-end;
    }
    .ramhb-bar {
      width: 100%;
      border-radius: var(--ramhb-radius-sm) var(--ramhb-radius-sm) 0 0;
      background: var(--ramhb-accent-primary);
      opacity: 0.85;
      transition: opacity var(--ramhb-transition);
      cursor: pointer;
    }
    .ramhb-bar:hover { opacity: 1; }
    .ramhb-bar.ramhb-secondary { background: var(--ramhb-border-strong); opacity: 0.5; }
    .ramhb-bar-label { font-size: 9.5px; color: var(--ramhb-text-muted); font-family: var(--ramhb-font-mono); }

    .ramhb-chart-grid {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      pointer-events: none;
      padding-bottom: 20px;
    }
    .ramhb-chart-grid-line {
      border-top: 1px dashed var(--ramhb-border-default);
      position: relative;
    }
    .ramhb-chart-grid-line::before {
      content: attr(data-val);
      position: absolute;
      right: calc(100% + 4px);
      top: -8px;
      font-size: 9px;
      color: var(--ramhb-text-muted);
      font-family: var(--ramhb-font-mono);
      white-space: nowrap;
    }

    /* Donut chart CSS */
    .ramhb-donut-chart {
      position: relative;
      width: 120px; height: 120px;
    }
    .ramhb-donut-chart svg { transform: rotate(-90deg); }
    .ramhb-donut-center {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
    .ramhb-donut-value { font-size: 18px; font-weight: 700; letter-spacing: -0.5px; }
    .ramhb-donut-label { font-size: 9.5px; color: var(--ramhb-text-muted); }

    .ramhb-chart-legend { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
    .ramhb-legend-item { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--ramhb-text-secondary); }
    .ramhb-legend-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
    .ramhb-legend-pct { margin-left: auto; font-family: var(--ramhb-font-mono); font-size: 11px; color: var(--ramhb-text-primary); font-weight: 500; }

    /* Sparkline */
    .ramhb-sparkline { width: 60px; height: 24px; }

    /* ============================================================
       ACTIVITY FEED
    ============================================================ */
    .ramhb-activity-list { display: flex; flex-direction: column; }
    .ramhb-activity-item {
      display: flex;
      align-items: flex-start;
      gap: 11px;
      padding: 10px 0;
      border-bottom: 1px solid var(--ramhb-border-default);
    }
    .ramhb-activity-item:last-child { border-bottom: none; }
    .ramhb-activity-dot {
      width: 26px; height: 26px;
      border-radius: var(--ramhb-radius-full);
      display: flex; align-items: center; justify-content: center;
      flex-shrink: 0;
      margin-top: 2px;
    }
    .ramhb-activity-content { flex: 1; min-width: 0; }
    .ramhb-activity-text { font-size: 12px; color: var(--ramhb-text-primary); line-height: 1.45; }
    .ramhb-activity-text strong { font-weight: 600; }
    .ramhb-activity-time { font-size: 10.5px; color: var(--ramhb-text-muted); margin-top: 2px; font-family: var(--ramhb-font-mono); }

    /* ============================================================
       QUICK STATS ROW
    ============================================================ */
    .ramhb-mini-stats { display: flex; gap: 1px; }
    .ramhb-mini-stat {
      flex: 1;
      padding: 12px 14px;
      background: var(--ramhb-bg-surface);
      border: 1px solid var(--ramhb-border-default);
      text-align: center;
    }
    .ramhb-mini-stat:first-child { border-radius: var(--ramhb-radius-md) 0 0 var(--ramhb-radius-md); }
    .ramhb-mini-stat:last-child  { border-radius: 0 var(--ramhb-radius-md) var(--ramhb-radius-md) 0; }
    .ramhb-mini-stat-value { font-size: 16px; font-weight: 700; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; }
    .ramhb-mini-stat-label { font-size: 10.5px; color: var(--ramhb-text-muted); margin-top: 2px; }

    /* ============================================================
       DEMO TOAST BUTTONS
    ============================================================ */
    .ramhb-demo-toast-row { display: flex; gap: 8px; flex-wrap: wrap; }

    /* ============================================================
       SECTION DIVIDER
    ============================================================ */
    .ramhb-section-divider {
      height: 1px;
      background: var(--ramhb-border-default);
      margin: 28px 0;
    }
    .ramhb-section-label {
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      color: var(--ramhb-text-muted);
      margin-bottom: 14px;
    }

    /* ============================================================
       PROGRESS BAR
    ============================================================ */
    .ramhb-progress-bar {
      height: 6px;
      background: var(--ramhb-bg-subtle);
      border-radius: var(--ramhb-radius-full);
      overflow: hidden;
    }
    .ramhb-progress-fill {
      height: 100%;
      border-radius: var(--ramhb-radius-full);
      background: var(--ramhb-accent-primary);
      transition: width 0.8s ease;
    }

    /* ============================================================
       CUSTOM SCROLLBAR (MAIN)
    ============================================================ */
    .ramhb-content::-webkit-scrollbar { width: 5px; }
    .ramhb-content::-webkit-scrollbar-track { background: transparent; }
    .ramhb-content::-webkit-scrollbar-thumb { background: var(--ramhb-border-strong); border-radius: 99px; }

    /* ============================================================
       RESPONSIVE
    ============================================================ */
    @media (max-width: 1100px) {
      .ramhb-stats-grid { grid-template-columns: repeat(2, 1fr); }
      .ramhb-content-grid.ramhb-wide { grid-template-columns: 1fr; }
    }
    @media (max-width: 860px) {
      .ramhb-content-grid { grid-template-columns: 1fr; }
      .ramhb-form-grid.ramhb-cols-2, .ramhb-form-grid.ramhb-cols-3 { grid-template-columns: 1fr; }
      .ramhb-content-grid.ramhb-three { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 768px) {
      html { font-size: 13px; }
      .ramhb-sidebar {
        transform: translateX(-100%);
        width: var(--ramhb-sidebar-width) !important;
        overflow: hidden;
      }
      .ramhb-sidebar .ramhb-nav-submenu.ramhb-nav-flyout {
        position: static !important;
        left: auto !important;
        top: auto !important;
        min-width: 0;
        max-height: 0;
        border: none;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }
      .ramhb-sidebar-toggle-btn { display: none; }
      .ramhb-main { margin-left: 0 !important; }
      .ramhb-mobile-overlay { display: block; }
      .ramhb-topbar-mobile-toggle { display: flex; }
      .ramhb-topbar-search { max-width: 200px; }
      .ramhb-profile-btn .ramhb-profile-name { display: none; }
      .ramhb-stats-grid { grid-template-columns: 1fr 1fr; }
      .ramhb-content { padding: 16px; }
      .ramhb-content-grid.ramhb-three { grid-template-columns: 1fr; }
      .ramhb-kbd { display: none; }
    }
    @media (max-width: 480px) {
      .ramhb-stats-grid { grid-template-columns: 1fr; }
      .ramhb-topbar-search { max-width: 140px; }
    }

    /* ============================================================
       UTILITIES
    ============================================================ */
    .ramhb-flex { display: flex; }
    .ramhb-flex-col { flex-direction: column; }
    .ramhb-items-center { align-items: center; }
    .ramhb-justify-between { justify-content: space-between; }
    .ramhb-gap-2 { gap: 8px; }
    .ramhb-gap-3 { gap: 12px; }
    .ramhb-mt-1 { margin-top: 4px; }
    .ramhb-mt-2 { margin-top: 8px; }
    .ramhb-mt-3 { margin-top: 12px; }
    .ramhb-mb-2 { margin-bottom: 8px; }
    .ramhb-text-muted { color: var(--ramhb-text-muted); font-size: 11.5px; }
    .ramhb-text-sm { font-size: 12px; }
    .ramhb-font-mono { font-family: var(--ramhb-font-mono); }
    .ramhb-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ============================================================
       INLINE SVG ICON HELPER
    ============================================================ */
    .ramhb-ico { display: inline-flex; align-items: center; justify-content: center; }
  
