  /* ===== ROOT VARIABLES & GLOBAL STYLES ===== */
  :root {
    --bg-main: #000000;
    --bg-card: #141414;
    --accent: #9A8A48;
    --text-main: #ffffff;
    --text-dim: #999999;
    --sidebar-w: 280px;
    --nav-h: 75px;
  }

  html {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    touch-action: manipulation;
  }

  body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
    touch-action: manipulation;
  }

  #view-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(circle at 20% 20%, rgba(154,138,72,0.12), transparent 30%),
                radial-gradient(circle at 80% 10%, rgba(154,138,72,0.08), transparent 30%),
                var(--bg-main);
    box-sizing: border-box;
  }

  .auth-card {
    width: 100%;
    max-width: 420px;
    background: #0c0c0c;
    border: 1px solid #1f1f1f;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .auth-title {
    margin: 0;
    text-align: center;
    color: var(--accent);
    letter-spacing: 1px;
    font-size: 16px;
  }

  .auth-input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid #222;
    background: #0f0f0f;
    color: var(--text-main);
    font-size: 12px;
    box-sizing: border-box;
  }

  .keep-logged-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-dim);
  }

  .primary-auth {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 12px 30px rgba(154,138,72,0.35);
  }

  .google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.4px;
  }

  .google-btn img {
    width: 18px;
    height: 18px;
  }

  .auth-toggle-link {
    font-size: 11px;
    text-align: center;
    color: var(--accent);
    text-decoration: underline;
  }

  .auth-msg {
    min-height: 16px;
    text-align: center;
    font-size: 11px;
    color: var(--accent);
  }

  ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
  }
  ::-webkit-scrollbar-track {
    background: #000000;
  }
  ::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
    border: 2px solid #000000;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #b5a35a;
  }

  .hidden {
    display: none !important;
  }

  button, .auth-toggle-link, .back-btn, .dropdown-item, .pdf-link {
    transition: all 0.2s ease;
    cursor: pointer;
  }

  button:hover {
    filter: brightness(1.2);
  }
  button:active {
    transform: scale(0.96);
    filter: brightness(0.8);
  }

  /* ===== LAYOUT ===== */
  #view-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
  }

  .main-wrapper {
    display: flex;
    flex-direction: row;
    height: calc(100vh - var(--nav-h));
    overflow: hidden;
  }

  .content-area {
    flex: 1;
    padding: 0 10px;
    background: var(--bg-main);
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  /* ===== SIDEBAR ===== */
  .sidebar {
    width: var(--sidebar-w);
    background: #0a0a0a;
    border-right: 1px solid #222;
    padding: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    position: sticky;
    top: 0;
    height: 100%;
    overflow-y: auto;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
    min-width: 0;
  }

  .filter-item {
    display: flex;
    align-items: center;
    font-size: 11px;
    margin-bottom: 12px;
    color: var(--text-dim);
    width: 100%;
    cursor: pointer;
  }
  .filter-item input {
    margin-right: 12px;
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
    cursor: pointer;
  }
  .filter-count {
    margin-left: auto;
    color: var(--accent);
    font-size: 9px;
    font-weight: bold;
  }

  /* ===== FIXED HEADERS (All Pages) ===== */
  .fixed-module-header {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-main);
    border-bottom: 1px solid #222;
  }

  .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  .header-back-btn, .orders-back-btn {
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 800;
    border: none;
    font-size: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    cursor: pointer;
  }

  /* Orders page specific header */
  .orders-fixed-header {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 1001;
    background: var(--bg-main);
    border-bottom: 1px solid #222;
  }

  .orders-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 0 10px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }

  /* ===== INVENTORY & PRODUCTS ===== */
  .view-order-container {
    position: fixed;
    top: var(--nav-h);
    right: 25px;
    z-index: 1000;
    padding: 0;
  }
  
  .view-order-btn {
    background: var(--accent);
    color: #000;
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 800;
    border: none;
    font-size: 11px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    padding-bottom: 60px;
    touch-action: pan-y;
    margin-top: 15px;
  }

  
  .p-card {
    background: var(--bg-card);
    border-radius: 8px;
    border: 4px solid var(--accent);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .p-img-container {
    width: 100%;
    aspect-ratio: 1/1;
    position: relative;
    background: #050505;
    overflow: hidden;
    min-height: 200px;
  }
  .p-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    position: absolute;
    top: 0;
    left: 0;
    display: block !important;
  }
  .p-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  .p-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    margin: 0 0 8px 0;
    height: 32px;
    overflow: hidden;
    line-height: 1.3;
  }
  .p-batch {
    font-size: 10px;
    color: #666;
    margin-bottom: 8px;
    font-weight: bold;
  }
  .p-stats {
    background: #080808;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #222;
    font-size: 11px;
    margin-bottom: 12px;
  }
  .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0;
  }
  .stat-label {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 9px;
  }
  .stat-accent {
    color: var(--accent);
    font-weight: bold;
    font-size: 9px;
  }
  .pdf-link {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
    font-size: 9px;
  }
  .pdf-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  /* ===== PDF VIEWER ===== */
  #pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  .pdf-container {
    width: 90%;
    height: 80%;
    background: #111;
    border: 1px solid var(--accent);
    position: relative;
  }
  .pdf-toolbar {
    width: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
  }
  .pdf-action-btn {
    color: var(--accent);
    font-weight: 800;
    font-size: 12px;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    padding: 5px 15px;
    border-radius: 4px;
    background: transparent;
  }
  .pdf-action-btn:hover {
    background: var(--accent);
    color: #000;
  }

  /* ===== QUANTITY CONTROLS ===== */
  .qty-control {
    display: flex;
    align-items: center;
    background: #222;
    border-radius: 4px;
    border: 1px solid #444;
    height: 45px;
    overflow: hidden;
  }
  .qty-btn {
    background: transparent;
    border: none;
    color: white;
    width: 40px;
    height: 100%;
    font-size: 20px;
    flex-shrink: 0;
  }
  .qty-btn:hover {
    background: #333;
    color: var(--accent);
  }
  .qty-display {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 9px;
  }
  .qty-count {
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
  }
  .qty-price {
    color: #fff;
    font-size: 9px;
    margin-top: 2px;
  }
  .qty-display input {
    font-size: 10px;
    text-align: center;
    width: 100%;
    padding: 4px 2px;
    margin-top: 2px;
  }

  /* ===== ALERTS & MODALS ===== */
  #custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .custom-alert-box {
    background: #111;
    border: 1px solid var(--accent);
    border-radius: 8px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  }
  .custom-alert-title {
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 15px 0;
  }
  .custom-alert-message {
    color: #fff;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 25px 0;
  }
  .custom-alert-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
  }
  .custom-alert-btn {
    padding: 12px 24px;
    border-radius: 4px;
    border: 1px solid var(--accent);
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .custom-alert-btn-primary {
    background: var(--accent);
    color: #000;
  }
  .custom-alert-btn-primary:hover {
    background: #b5a35a;
  }
  .custom-alert-btn-secondary {
    background: transparent;
    color: var(--accent);
  }
  .custom-alert-btn-secondary:hover {
    background: var(--accent);
    color: #000;
  }

  /* ===== AUTH PAGE ===== */
  #view-auth {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%);
    z-index: 5000;
  }
  
  .auth-card { 
    background: var(--bg-card); 
    width: 360px; 
    padding: 40px; 
    border: 1px solid var(--accent); 
    border-radius: 12px; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.8); 
  }
  
  .auth-input { 
    width: 100%; 
    padding: 12px; 
    margin: 8px 0; 
    background: #111; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 4px; 
    box-sizing: border-box; 
    outline: none; 
  }
  .auth-input:focus {
    border-color: var(--accent);
  }
  
  .auth-toggle-link { 
    display: block; 
    text-align: center; 
    margin-top: 20px; 
    font-size: 10px; 
    color: var(--accent); 
    text-transform: uppercase; 
    font-weight: 600; 
    letter-spacing: 0.5px; 
    cursor: pointer;
  }
  .auth-toggle-link:hover {
    color: #fff;
    text-decoration: underline;
  }

  .primary-auth { 
    width: 100%; 
    padding: 15px; 
    background: var(--accent); 
    color: #000; 
    font-weight: bold; 
    border-radius: 4px; 
    border: none; 
    text-transform: uppercase; 
    margin-top: 10px; 
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .primary-auth:hover {
    background: #b5a35a !important;
    color: #000;
  }

  .keep-logged-label { 
    font-size: 10px; 
    color: var(--text-dim); 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    cursor: pointer; 
    margin-top: 10px; 
  }
  .keep-logged-label input {
    accent-color: var(--accent);
    cursor: pointer;
  }

  .google-btn {
    width: 100%; 
    padding: 12px; 
    background: #fff; 
    color: #000; 
    border: none; 
    font-weight: 600; 
    border-radius: 4px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 15px; 
    cursor: pointer;
  }

  /* ===== ORDER PAGE ===== */
  .order-card { 
    background: var(--bg-card); 
    border: 1px solid #333; 
    border-radius: 8px; 
    padding: 12px; 
    margin-bottom: 12px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 15px; 
  }

  .order-thumb { 
    width: 45px; 
    height: 45px; 
    border-radius: 4px; 
    object-fit: cover; 
    border: 1px solid var(--accent); 
    flex-shrink: 0; 
  }

  /* ===== ORDERS DASHBOARD ===== */
  .order-row {
    background: var(--bg-card);
    border: 1px solid #222;
    border-left: 4px solid var(--accent);
    padding: 18px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, border-color 0.2s;
  }
  .order-row:hover {
    border-color: var(--accent);
  }
  
  .order-info {
    cursor: pointer;
    flex-grow: 1;
  }
  .order-info b {
    font-size: 13px;
    color: #fff;
    display: block;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
  }
  .order-info span {
    font-size: 10px;
    color: #777;
    display: block;
  }
  
  .order-actions {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 5px;
    transition: text-shadow 0.2s, transform 0.2s;
    text-shadow: 0 0 2px rgba(154, 138, 72, 0.6);
  }
  .delete-btn:hover {
    text-shadow: 0 0 8px rgba(154, 138, 72, 1);
    transform: scale(1.1);
  }

  .approve-btn {
    background: var(--accent);
    color: #000;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 800;
    border: none;
    font-size: 10px;
    cursor: pointer;
  }

  .edit-btn {
    background: #333;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 800;
    border: none;
    font-size: 10px;
    cursor: pointer;
  }

  .order-status {
    font-size: 9px;
    font-weight: 800;
    padding: 5px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    background: #1a1a1a;
    color: var(--accent);
    border: 1px solid #333;
  }

  .detail-item-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #222;
  }
  .detail-item-name {
    font-size: 11px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
  }
  .detail-item-meta {
    font-size: 9px;
    color: #666;
    margin-top: 4px;
  }

  /* ===== ADMIN PAGE ===== */
  .admin-list-item { 
    padding: 15px; 
    border: 1px solid #333; 
    background: #0a0a0a; 
    border-radius: 4px; 
    margin-bottom: 10px; 
    font-weight: bold; 
    color: var(--accent); 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    cursor: pointer;
    font-size: 10px;
  }

  .price-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 10px; 
    padding: 15px; 
    background: #080808; 
    border: 1px solid #222; 
    border-top: none; 
  }

  .price-input-group { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
  }
  .price-input-label { 
    font-size: 9px; 
    color: var(--text-dim); 
  }
  .price-input { 
    background: #111; 
    border: 1px solid #333; 
    color: var(--accent); 
    padding: 6px; 
    font-size: 11px; 
    font-weight: bold; 
    width: 100%; 
    box-sizing: border-box; 
  }

  .sync-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 8px;
  }

  .sync-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(154, 138, 72, 0.3);
    border-top-color: #9A8A48;
    border-radius: 50%;
    animation: syncSpin 0.8s linear infinite;
  }

  @keyframes syncSpin {
    to { transform: rotate(360deg); }
  }

  .sync-checkmark {
    width: 20px;
    height: 20px;
    background: #9A8A48;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    animation: syncCheckFade 0.4s ease-out;
  }

  @keyframes syncCheckFade {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }

  /* ===== ATO PAGE ===== */
  .centered-view { 
    max-width: 600px; 
    margin: 40px auto; 
    padding: 0 10px 100px 10px; 
    text-align: left; 
  }
  
  .ato-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 15px; 
  }
  .full-width { 
    grid-column: span 2; 
  }
  .csz-row { 
    display: grid; 
    grid-template-columns: 1fr 80px 120px; 
    gap: 10px; 
    align-items: end; 
  }
  .ato-label { 
    font-size: 10px; 
    color: var(--accent); 
    text-transform: uppercase; 
    margin-top: 10px; 
    display: block; 
  }
  .ato-input, .ato-select { 
    width: 100%; 
    padding: 12px; 
    margin: 8px 0; 
    background: #111; 
    border: 1px solid #333; 
    color: white; 
    border-radius: 4px; 
    box-sizing: border-box; 
    outline: none; 
  }
  .ato-input:focus, .ato-select:focus { 
    border-color: var(--accent); 
  }

  /* ===== RESPONSIVE ===== */
  @media (max-width: 768px) {
    .sidebar {
      position: fixed;
      left: 0;
      top: var(--nav-h);
      bottom: 0;
      transform: translateX(-100%);
      z-index: 1500;
      transition: transform 0.3s;
      width: 80% !important;
      box-shadow: 10px 0 30px rgba(0,0,0,0.8);
    }
    .sidebar.open {
      transform: translateX(0);
    }

    .header-content {
      padding: 0 15px;
    }

    .orders-header-content {
      padding: 0 15px;
    }

    .price-grid {
      grid-template-columns: repeat(2, 1fr);
    }

    .csz-row {
      grid-template-columns: 1fr;
    }

    .ato-grid {
      grid-template-columns: 1fr;
    }
    .full-width { 
      grid-column: span 1; 
    }
  }

  /* ===== PLANT INVENTORY STYLES ===== */
  .page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 30px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  .room-section {
    margin-bottom: 0;
  }

  .room-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 0;
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
    transition: all 0.2s ease;
  }

  .room-header:hover {
    border-color: var(--accent);
    background: #222;
  }

  .room-header:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(154, 138, 72, 0.3);
  }

  .room-toggle-icon {
    font-size: 18px;
    transition: transform 0.2s ease;
    margin-left: 10px;
  }

  .room-toggle-icon.collapsed {
    transform: rotate(-90deg);
  }

  .batch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 10px 0 10px 0;
    max-height: 10000px;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .batch-grid.collapsed {
    max-height: 0;
    margin: 0;
    margin-bottom: 0;
  }

  .batch-card {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .batch-card:hover {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(154, 138, 72, 0.3);
  }

  .batch-label {
    font-size: 9px;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
  }

  .batch-name {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 16px;
    line-height: 1.3;
    word-wrap: break-word;
  }

  .batch-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #222;
  }

  .batch-stat:last-child {
    border-bottom: none;
  }

  .stat-name {
    font-size: 10px;
    color: var(--text-dim);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
  }

  .stat-value {
    font-size: 12px;
    color: var(--accent);
    font-weight: 800;
  }

  .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-dim);
  }

  .empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
  }

  .empty-state-text {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .empty-state-subtext {
    font-size: 12px;
    color: #666;
  }

  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
  }

  .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(154, 138, 72, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .loading-text {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
  }

  /* ===== MOBILE FIXES ===== */
  @media (max-width: 768px) {
    .content-area {
      scrollbar-gutter: auto;
    }
  }

  /* ===== PAGE NAVBAR (Navbar.html) ===== */
  #page-navbar {
    padding: 10px 0;
    border-bottom: 1px solid #222;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: #0a0a0a;
    z-index: 100;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    gap: 10px;
  }

  #navbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 100px;
  }

  #navbar-back-btn {
    background: var(--accent);
    border: none;
    color: #000;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }

  #navbar-title {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
  }

  #navbar-sync-btn {
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
  }

  #navbar-sync-btn:hover {
    border-color: var(--accent);
    background: #222;
  }

  #navbar-sync-btn:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(154, 138, 72, 0.3);
  }

  /* ===== HEADER/NAV BAR (Header.html) ===== */
  .nav-bar {
    height: var(--nav-h);
    background: #0a0a0a;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-sizing: border-box;
    z-index: 2000;
    position: sticky;
    top: 0;
  }

  .nav-left {
    display: flex;
    align-items: center;
    gap: 0px;
    height: 100%;
  }

  .nav-logo {
    height: 50px !important;
    width: auto !important;
    display: block !important;
    min-width: 50px;
    cursor: pointer;
    margin-left: -15px;
  }

  /* ===== UNIFIED DROPDOWN SELECTOR TEMPLATE ===== */
  .dropdown-selector {
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
  }

  /* Dropdown selector with arrow - for buttons with dropdown menus */
  .dropdown-selector-with-arrow {
    padding-right: 24px;
  }

  .dropdown-selector-with-arrow::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-main);
    pointer-events: none;
  }

  .dropdown-selector:hover {
    border-color: var(--accent);
    background: #222;
  }

  .dropdown-selector:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(154, 138, 72, 0.3);
  }

  /* Location selector - maintains fixed width for mobile */
  .location-selector {
    width: 155px;
  }

  /* Dropdown menu - unified template */
  .dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #0b0b0b;
    border: 1px solid #333;
    border-radius: 4px;
    width: 100%;
    padding: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    display: none;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .dropdown-menu.open {
    display: block;
  }

  /* Dropdown menu that opens upward (for bottom-positioned items) */
  .dropdown-menu-up {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
  }

  /* Location dropdown menu - legacy alias for backward compatibility */
  .location-dropdown-menu {
    position: absolute;
    left: 0;
    top: 100%;
    background: #0b0b0b;
    border: 1px solid #333;
    border-radius: 4px;
    width: 100%;
    padding: 8px;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.8);
    display: none;
    margin-top: 4px;
    box-sizing: border-box;
  }

  .location-dropdown-menu.open {
    display: block;
  }

  /* Dropdown options - unified template */
  .dropdown-option {
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
    background: #0b0b0b;
  }

  .dropdown-option:hover {
    background: #1a1a1a;
    color: var(--accent);
  }

  .dropdown-option.selected {
    background: #1a1a1a;
    color: var(--accent);
  }

  /* Location option - legacy alias for backward compatibility */
  .location-option {
    padding: 8px 10px;
    color: var(--text-main);
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
    background: #0b0b0b;
  }

  .location-option:hover {
    background: #1a1a1a;
    color: var(--accent);
  }

  .location-option.selected {
    background: #1a1a1a;
    color: var(--accent);
  }

  .user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
  }

  .menu-toggle {
    display: none !important;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 22px;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
  }

  .profile-dropdown {
    position: absolute;
    right: 25px;
    top: 75px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px;
    width: 240px;
    padding: 10px;
    z-index: 2100;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    text-align: left;
  }

  .dropdown-item {
    padding: 12px;
    color: var(--accent);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .dropdown-item:hover {
    background: rgba(154, 138, 72, 0.1);
    color: var(--text-main);
  }

  /* ===== SCANNER MODAL (Cultivation.html) ===== */
  #harvest-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .scanner-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    width: 95%;
    max-width: 600px;
    height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    gap: 10px;
  }

  .scanner-header {
    padding: 10px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    position: relative;
  }

  .scanner-header h2 {
    position: absolute;
    left: 10px;
    margin: 0;
    padding: 0;
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
  }

  .scanner-close {
    position: absolute;
    right: 10px;
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .scanner-close:hover {
    border-color: var(--accent);
    background: #222;
  }

  .scanner-close:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(154, 138, 72, 0.3);
  }

  /* ===== TIMER CONTROLS ===== */
  .timer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .timer-display {
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    min-width: 65px;
    text-align: right;
  }

  .timer-circle-btn {
    background: var(--accent);
    border: none;
    color: #000 !important;
    cursor: pointer;
    padding: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    transition: all 0.2s ease;
    -webkit-text-fill-color: #000 !important;
    line-height: 1;
    text-rendering: optimizeSpeed;
    -webkit-appearance: none;
    appearance: none;
  }

  .timer-circle-btn svg {
    display: block;
    fill: currentColor;
  }

  .timer-circle-btn:hover {
    filter: brightness(1.2);
  }

  .timer-circle-btn:active {
    transform: scale(0.96);
    filter: brightness(0.8);
  }

  .scanner-batch-info {
    padding: 10px;
    border-bottom: 1px solid #222;
    display: flex;
    gap: 10px;
  }

  .batch-info-row {
    display: flex;
    gap: 10px;
    font-size: 12px;
    width: 100%;
  }

  .batch-label {
    color: var(--text-dim);
    font-weight: bold;
    min-width: 60px;
  }

  .batch-value {
    color: #fff;
    font-weight: bold;
  }

  #scanner-batchName,
  #scanner-strain,
  #buck-batchName,
  #buck-strain,
  #tote-id-display {
    padding: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    box-sizing: border-box;
  }

  #camera-container {
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    background: #000;
  }

  #camera-feed {
    width: 100%;
    height: 100%;
    background: #000;
  }

  .scanner-frame {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border: 3px solid var(--accent);
    border-radius: 8px;
    background: transparent;
    box-shadow: inset 0 0 20px rgba(154, 138, 72, 0.3), 0 0 30px rgba(154, 138, 72, 0.2);
  }

  .scanner-frame-label {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent);
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    background: #000;
    padding: 0 8px;
  }

  #detection-status {
    position: absolute;
    top: 0;
    right: 20px;
    background: rgba(0,0,0,0.8);
    border: 1px solid var(--accent);
    border-radius: 4px;
    padding: 10px 15px;
    color: var(--accent);
    font-size: 10px;
    font-weight: bold;
    text-align: right;
  }

  #detection-count {
    color: #fff;
    font-size: 12px;
    margin-top: 5px;
  }

  #debug-panel {
    position: absolute;
    top: 0;
    left: 20px;
    background: rgba(0,0,0,0.95);
    border: 1px solid #9A8A48;
    border-radius: 4px;
    padding: 10px;
    color: #0f0;
    font-size: 9px;
    font-family: monospace;
    width: 260px;
    overflow: visible;
    word-break: break-all;
  }

  #debug-log {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
    max-height: 80px;
    overflow-y: auto;
  }

  #scanner-status {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent);
    text-align: center;
    font-size: 14px;
    background: rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 8px;
  }

  #scanned-barcodes-box {
    padding: 10px;
    background: rgba(0,0,0,0.5);
    border-top: 1px solid #222;
    height: 75px;
    overflow-y: auto;
    color: #fff;
    font-size: 11px;
  }

  #barcodes-list {
    color: #fff;
    font-size: 11px;
  }

  .scanner-input-container {
    padding: 10px;
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .scanner-input-container > div {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  #barcode-input,
  #weight-input {
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    box-sizing: border-box;
  }

  .scanner-actions {
    padding: 10px;
    border-top: 1px solid #222;
    display: flex;
    gap: 10px;
  }

  .scanner-bottom-panel {
    border-top: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
  }

  .scanner-bottom-panel > div {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
  }

  /* ===== BUCK PLANTS MODAL ===== */
  #buck-plants-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .buck-plants-container {
    background: var(--bg-card);
    border: 1px solid var(--accent);
    border-radius: 8px;
    width: 95%;
    max-width: 600px;
    height: 75vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 10px;
    gap: 10px;
  }

  .buck-plants-header {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
  }

  .buck-plants-header h2 {
    margin: 0;
    padding: 0;
    color: var(--accent);
    font-size: 14px;
    font-weight: bold;
  }

  #totes-list-area {
    flex: 1;
    overflow-y: auto;
    border-bottom: 1px solid #222;
    padding: 10px;
    box-sizing: border-box;
  }

  #totes-list-subform {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #pop-plants-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

  #totes-list-subform input[type="text"] {
    margin-right: 10px;
  }

  .form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 10px;
  }

  .form-group:last-of-type {
    margin-bottom: 0;
  }

  .form-group label {
    color: var(--text-main);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .form-group input {
    padding: 6px 8px;
    background: var(--bg-secondary);
    border: 1px solid #333;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 11px;
    box-sizing: border-box;
    width: 100%;
  }

  .form-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(154, 138, 72, 0.3);
  }

  .form-group input[readonly] {
    background-color: var(--bg-secondary);
    color: var(--text-dim);
    cursor: not-allowed;
  }

  .buck-plants-actions {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid var(--accent);
    flex-shrink: 0;
  }

  .buck-plants-actions button {
    flex: 1;
    padding: 10px;
    border: 1px solid var(--accent);
    border-radius: 0;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 11px;
  }

  /* Buck form tote input styling */
  #tote-buck-weight {
    padding: 10px;
    background: #1a1a1a;
    border: 1px solid var(--accent);
    border-radius: 4px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    box-sizing: border-box;
  }

  #tote-buck-weight:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 5px rgba(154, 138, 72, 0.3);
  }



  #buck-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ===== INVENTORY CONTAINER ===== */
  .inventory-container {
    width: 100%;
  }

  #inventory-content {
    width: 100%;
    padding-bottom: 10px;
  }

  #view-cultivation {
    width: 100%;
  }

  #view-orders-dashboard {
    width: 100%;
  }

  #view-ato {
    width: 100%;
  }

  #view-admin-prices {
    width: 100%;
  }

  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  /* ===== ORDER DETAILS MODAL ===== */
  #order-details-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .buck-modal-content {
    background: #111;
    width: 90%;
    max-width: 600px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }

  .buck-modal-header {
    padding: 20px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
  }

  .buck-modal-title-section {
    flex-grow: 1;
  }

  #modal-order-id {
    color: var(--accent);
    margin: 0;
    font-size: 14px;
  }

  #modal-order-client {
    font-size: 10px;
    color: #666;
  }

  .buck-modal-actions {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .buck-modal-close {
    padding: 6px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    box-sizing: border-box;
  }

  .buck-modal-close:hover {
    border-color: var(--accent);
    background: #222;
  }

  .buck-modal-close:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(154, 138, 72, 0.3);
  }

  #modal-items-list {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
  }

  .buck-modal-footer {
    padding: 20px;
    border-top: 1px solid #222;
    background: #0a0a0a;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .buck-modal-total-label {
    font-size: 10px;
    color: #999;
    font-weight: bold;
  }

  #modal-order-total {
    color: var(--accent);
    font-size: 20px;
    font-weight: 900;
  }

  .dashboard-loading {
    color: var(--accent);
    font-size: 10px;
    text-align: center;
    padding: 50px;
  }

  #orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 50px;
  }

  .spacer-60 {
    height: 60px;
  }

  /* ===== RESPONSIVE HEADER ===== */
  @media (max-width: 768px) {
    .nav-bar {
      padding: 0 10px;
    }
    .nav-left {
      gap: 10px;
    }
    .menu-toggle {
      display: flex !important;
    }
    .nav-logo {
      height: 35px !important;
      width: auto !important;
    }
    .location-selector {
      font-size: 10px;
      padding: 6px 10px;
    }
    .location-option {
      font-size: 11px;
    }
  }

  /* Validation Modal */
  .validation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9998;
  }

  .validation-modal-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #9A8A48;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
  }

  .validation-modal-content {
    padding: 30px 25px;
    overflow-y: auto;
    flex: 1;
  }

  .validation-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .validation-state.hidden {
    display: none;
  }

  .validation-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(154, 138, 72, 0.3);
    border-top-color: #9A8A48;
    border-right-color: #9A8A48;
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .validation-title {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    text-align: center;
  }

  .validation-subtitle {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
    text-align: center;
  }

  .validation-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
  }

  .validation-result-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .validation-result-section.hidden {
    display: none;
  }

  .validation-label {
    font-size: 13px;
    font-weight: 600;
    color: #9A8A48;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .validation-label-row {
    font-size: 13px;
    font-weight: 600;
    color: #9A8A48;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid #333;
  }

  .validation-count {
    color: #9A8A48;
    font-weight: 700;
  }

  #validation-invalid-section .validation-label {
    color: #9A8A48;
  }

  .validation-modal-buttons {
    display: flex;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid #333;
    justify-content: flex-end;
  }

  .validation-btn-cancel,
  .validation-btn-proceed {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .validation-btn-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid #444;
  }

  .validation-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #666;
  }

  .validation-btn-proceed {
    background: #9A8A48;
    color: #000;
  }

  .validation-btn-proceed:hover {
    background: #b39f5f;
  }

  .validation-btn-proceed:disabled {
    background: #444;
    color: var(--text-dim);
    cursor: not-allowed;
  }

  /* ===== CUSTOM ALERT MODAL ===== */
  #custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
  }

  #custom-alert-modal.hidden {
    display: none !important;
  }

  .custom-alert-box {
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 8px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  }

  .custom-alert-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
  }

  .custom-alert-message {
    margin: 0 0 25px 0;
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.5;
  }

  .custom-alert-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
  }

  .custom-alert-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .custom-alert-btn-primary {
    background: var(--accent);
    color: #000000;
  }

  .custom-alert-btn-primary:hover {
    background: #b5a35a;
    filter: none;
  }

  .custom-alert-btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
  }

  .custom-alert-btn-secondary:hover {
    background: rgba(154, 138, 72, 0.1);
    filter: none;
  }

  /* ===== COMPLIANCE BOT ===== */
  .compliance-bot-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .compliance-bot-toggle:hover {
    filter: brightness(1.2);
  }

  .compliance-bot-toggle:active {
    transform: scale(0.96);
    filter: brightness(0.8);
  }

  .compliance-bot-toggle.hidden {
    display: none !important;
  }

  .message-counter {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #000000;
    color: var(--accent);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
    border: 2px solid var(--accent);
    z-index: 10000;
    pointer-events: none;
  }

  .compliance-bot-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 360px;
    max-width: calc(100vw - 40px);
    height: 460px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 9999;
  }

  .compliance-bot-panel.open {
    display: flex;
    animation: botSlideUp 0.2s ease-out;
  }

  @keyframes botSlideUp {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .compliance-bot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #0b0b0b;
    border-bottom: 1px solid #222;
    user-select: none;
    cursor: pointer;
  }

  .compliance-bot-header:hover {
    background: #151515;
  }

  .compliance-bot-title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.6px;
    cursor: pointer;
  }

  .compliance-bot-minimize {
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
  }

  .compliance-bot-messages {
    flex: 1;
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .compliance-bot-message {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    white-space: pre-wrap;
  }

  .compliance-bot-message.user {
    align-self: flex-end;
    background: rgba(154, 138, 72, 0.18);
    border: 1px solid rgba(154, 138, 72, 0.4);
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .compliance-bot-message.user .message-footer {
    justify-content: flex-end;
  }

  .compliance-bot-message.bot {
    align-self: flex-start;
    background: #0b0b0b;
    border: 1px solid #222;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .compliance-bot-message.bot .message-footer {
    justify-content: flex-start;
  }

  .message-footer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 9px;
    color: var(--text-dim);
  }

  .message-time {
    font-size: 9px;
    color: var(--text-dim);
  }

  .message-checkmark {
    display: inline-block;
    color: var(--text-dim);
    font-size: 9px;
    font-weight: 800;
    -webkit-text-stroke: 0.4px var(--text-dim);
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
  }

  .message-checkmark.sent {
    color: var(--accent);
    -webkit-text-stroke: 0px;
    -webkit-text-fill-color: var(--accent);
  }

  .compliance-bot-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-dim);
  }

  .compliance-bot-typing span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: botPulse 1.2s infinite ease-in-out;
  }

  .compliance-bot-typing span:nth-child(2) {
    animation-delay: 0.2s;
  }

  .compliance-bot-typing span:nth-child(3) {
    animation-delay: 0.4s;
  }

  @keyframes botPulse {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
  }

  .compliance-bot-input {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #222;
    background: #0b0b0b;
  }

  .compliance-bot-input textarea {
    flex: 1;
    resize: none;
    background: #111;
    color: var(--text-main);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 12px;
    min-height: 40px;
    max-height: 90px;
  }

  .compliance-bot-send {
    background: var(--accent);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
  }

  .compliance-bot-send:hover {
    filter: brightness(1.2);
  }

  .compliance-bot-send:active {
    transform: scale(0.96);
    filter: brightness(0.8);
  }

  .compliance-mode-selector {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #222;
    background: #0b0b0b;
    overflow: visible;
    position: relative;
  }

  .mode-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-dim);
  }

  /* Mode selector uses unified dropdown styles */
  .bot-mode-selector {
    width: auto;
    min-width: 180px;
  }

  /* Legacy native select styles - no longer used */
  .mode-select {
    display: none;
  }

  .mode-select:hover {
    border-color: var(--accent);
    background: #222;
  }

  .mode-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 6px rgba(154, 138, 72, 0.3);
  }

  .mode-select option {
    background: #0b0b0b;
    color: var(--text-main);
    font-weight: 600;
  }

  @media (max-width: 600px) {
    .compliance-bot-panel {
      right: 10px;
      bottom: 70px;
      width: calc(100vw - 20px);
      height: 60vh;
    }
    .compliance-bot-toggle {
      right: 10px;
      bottom: 12px;
    }
  }
