/* ============================================================
   UTSERVIO CENTRAL HUB — Modern Cosmic Control Center Stylesheet
   ============================================================ */

:root {
  --bg1: #09090B;
  --bg2: #121214;
  --bg3: #1C1C1E;
  --bg4: #2A2A2E;
  --text1: #FFFFFF;
  --text2: #E5E5EA;
  --text3: #8E8E93;
  --text4: #48484A;
  --gold: #F5A623;
  --gold-light: #FFB84D;
  --gold-dark: #C4841A;
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --danger: #FF453A;
  --success: #30D158;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --radius-squircle: 25px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="light"] {
  --bg1: #F2F2F7;
  --bg2: #FFFFFF;
  --bg3: #E5E5EA;
  --bg4: #D1D1D6;
  --text1: #1C1C1E;
  --text2: #3A3A3C;
  --text3: #8E8E93;
  --text4: #C7C7CC;
  --border: rgba(0, 0, 0, 0.06);
  --border-light: rgba(0, 0, 0, 0.12);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.05);
}

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

html,
body {
  height: 100%;
  width: 100%;
  font-family: var(--font);
  background: var(--bg1);
  color: var(--text2);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  transition: background var(--transition), color var(--transition);
}

/* ============================================================
   CINEMATIC AURORA MESH BACKGROUND (Highly Active)
   ============================================================ */
body {
  background-color: #070709;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.25) 0px, transparent 60%),
    radial-gradient(at 100% 0%, rgba(245, 166, 35, 0.18) 0px, transparent 55%),
    radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.2) 0px, transparent 60%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  background-attachment: fixed;
}

[data-theme="light"] body {
  background-color: #F2F2F7;
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
    radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(245, 166, 35, 0.05) 0px, transparent 50%),
    radial-gradient(at 50% 100%, rgba(59, 130, 246, 0.04) 0px, transparent 50%);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
}

.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}

/* High-performance GPU-composited glowing cosmic nebulas (Radial Gradients replace 120px Gaussian blur) */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
  contain: strict;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.32) 0%, rgba(139, 92, 246, 0.12) 38%, transparent 70%);
  top: -10%;
  right: -5%;
  animation: floatOrb1 20s ease-in-out infinite alternate;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.20) 0%, rgba(245, 166, 35, 0.08) 38%, transparent 70%);
  bottom: -10%;
  left: -5%;
  animation: floatOrb2 16s ease-in-out infinite alternate;
}

.orb-3 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.08) 38%, transparent 70%);
  top: 22%;
  left: 8%;
  animation: floatOrb3 24s ease-in-out infinite alternate;
}

[data-theme="light"] .orb-1 { background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 70%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle, rgba(245, 166, 35, 0.05) 0%, rgba(245, 166, 35, 0.02) 40%, transparent 70%); }
[data-theme="light"] .orb-3 { background: radial-gradient(circle, rgba(59, 130, 246, 0.04) 0%, rgba(59, 130, 246, 0.015) 40%, transparent 70%); }

/* Dynamic Floating Keyframes (translate3d for hardware compositing) */
@keyframes floatOrb1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-140px, 80px, 0) scale(1.12); }
}
@keyframes floatOrb2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(120px, -90px, 0) scale(1.15); }
}
@keyframes floatOrb3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-80px, -60px, 0) scale(0.9); }
}

@media (prefers-reduced-motion: reduce) {
  .orb-1, .orb-2, .orb-3 {
    animation: none !important;
  }
}

/* ============================================================
   TOPBAR (Perfectly matched to Certificate Studio)
   ============================================================ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px; /* Matches Studio */
  padding: 0 24px; /* Matches Studio */
  background: rgba(17, 17, 17, 0.85); /* Matches Studio */
  backdrop-filter: blur(12px); /* Matches Studio */
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06); /* Matches Studio */
  z-index: 100;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
}

[data-theme="light"] .topbar {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px; /* Matches Studio */
  text-decoration: none;
}

.logo img {
  height: 28px; /* Matches Studio */
  object-fit: contain;
}

.logo-product {
  font-family: 'Outfit', sans-serif;
  font-size: 13px; /* Matches Studio */
  font-weight: 700; /* Matches Studio */
  color: var(--gold); /* Matches Studio */
  letter-spacing: 1px; /* Matches Studio */
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px; /* Matches Studio */
}

/* Integrated Topbar Omnibox Search */
.topbar-search {
  flex: 1;
  max-width: 440px;
  margin: 0 16px;
  display: flex;
  align-items: center;
  min-width: 0;
}

.topbar-search .search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.topbar-search .search-input {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 36px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text1);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: none;
  box-sizing: border-box;
}

[data-theme="light"] .topbar-search .search-input {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.09);
  color: #202124;
}

.topbar-search .search-input:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

[data-theme="light"] .topbar-search .search-input:focus {
  background: #ffffff;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.2);
}

.topbar-search .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text3);
  pointer-events: none;
  transition: color 0.2s ease;
}

.topbar-search .search-input:focus + .search-icon {
  color: var(--gold);
}

/* Buttons (Clean matched sizes) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm); /* Matches Studio */
  font-size: 12px; /* Matches Studio */
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.96);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .btn-ghost {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text1);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.15);
}

.btn-icon {
  width: 34px; /* Perfectly tight icon buttons */
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

/* Super Admin Topbar RBAC Shield Button */
#adminConsoleBadge {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  text-decoration: none;
  transition: all var(--transition);
}

#adminConsoleBadge[style*="display: none"] {
  display: none !important;
}

#adminConsoleBadge:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
  transform: scale(1.05);
}

#adminConsoleBadge:active {
  transform: scale(0.95);
}

[data-theme="light"] #adminConsoleBadge {
  color: #d97706;
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.25);
}

[data-theme="light"] #adminConsoleBadge:hover {
  background: rgba(217, 119, 6, 0.16);
  border-color: rgba(217, 119, 6, 0.45);
  color: #b45309;
  box-shadow: 0 0 12px rgba(217, 119, 6, 0.2);
}

/* Profile Dropdowns (Matches Studio exactly) */
.user-menu-wrap {
  position: relative;
}

.avatar {
  width: 32px; /* Matches Studio */
  height: 32px; /* Matches Studio */
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0A;
  font-weight: 700;
  font-size: 13px; /* Matches Studio */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar:hover {
  transform: scale(1.06);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.4);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px; /* Matches Studio */
  background: var(--bg2); /* Matches Studio */
  border: 1px solid var(--border); /* Matches Studio */
  border-radius: var(--radius); /* Matches Studio */
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition);
  z-index: 200;
}

[data-theme="light"] .user-dropdown {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
}

.user-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-header {
  padding: 12px 14px; /* Matches Studio */
}

.user-dropdown-name {
  font-size: 13px; /* Matches Studio */
  font-weight: 600; /* Matches Studio */
  color: var(--text1);
}

.user-dropdown-email {
  font-size: 11px; /* Matches Studio */
  color: var(--text3);
  margin-top: 2px;
  word-break: break-all;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0 10px; /* Matches Studio */
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px; /* Matches Studio */
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text2);
  text-decoration: none;
  transition: background var(--transition);
  cursor: pointer;
}

.user-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .user-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.03);
}

.user-dropdown-item.danger {
  color: var(--danger);
}

/* ============================================================
   GOOGLE ACCOUNT & APPS LAUNCHER POPOVERS
   ============================================================ */
#userDropdown {
  width: 320px !important;
  border-radius: 16px !important;
  padding: 18px 16px 14px !important;
  background: #17181c !important;
  border: 1px solid rgba(255, 255, 255, 0.10) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.55) !important;
  box-sizing: border-box !important;
}

[data-theme="light"] #userDropdown {
  background: #ffffff !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
}

.google-user-center {
  text-align: center !important;
  padding: 4px 0 !important;
}

.google-large-avatar {
  width: 68px !important;
  height: 68px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  color: #0f172a !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  box-shadow: 0 4px 20px rgba(245, 166, 35, 0.35), 0 0 0 3px rgba(245, 166, 35, 0.3) !important;
}

.google-user-name {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin-top: 12px !important;
  letter-spacing: 0.1px !important;
}

[data-theme="light"] .google-user-name {
  color: #1f2937 !important;
}

.google-user-email {
  font-size: 13px !important;
  color: #9aa0a6 !important;
  margin-top: 2px !important;
}

[data-theme="light"] .google-user-email {
  color: #6b7280 !important;
}

.google-badges-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.google-role-badge {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  padding: 2.5px 8px !important;
  border-radius: 9999px !important;
  background: rgba(245, 166, 35, 0.15) !important;
  color: #f5a623 !important;
  border: 1px solid rgba(245, 166, 35, 0.3) !important;
}

.google-mfa-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2.5px 8px !important;
  border-radius: 9999px !important;
  background: rgba(52, 199, 89, 0.12) !important;
  color: #34c759 !important;
  border: 1px solid rgba(52, 199, 89, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.google-avatar-edit-badge {
  position: absolute !important;
  bottom: -2px !important;
  right: -2px !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  background: #28292d !important;
  border: 2px solid #1c1d21 !important;
  color: #e8eaed !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45) !important;
  transition: transform 0.18s ease, background 0.18s ease !important;
  padding: 0 !important;
  outline: none !important;
}

[data-theme="light"] .google-avatar-edit-badge {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: #3c4043 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.google-avatar-edit-badge:hover {
  transform: scale(1.1) !important;
  background: #3c4043 !important;
}

[data-theme="light"] .google-avatar-edit-badge:hover {
  background: #f1f3f4 !important;
}

.google-manage-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 8px 18px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  background: transparent !important;
  color: #e8eaed !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  margin-top: 14px !important;
  transition: all 0.18s ease !important;
}

[data-theme="light"] .google-manage-pill {
  border-color: rgba(0, 0, 0, 0.18) !important;
  color: #1f1f1f !important;
}

.google-manage-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .google-manage-pill:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
}

.google-inset-box {
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  padding: 6px !important;
  margin-top: 14px !important;
  text-align: left !important;
}

[data-theme="light"] .google-inset-box {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.08) !important;
}

.google-inset-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  color: #e8eaed !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.18s ease !important;
  background: transparent !important;
  border: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

[data-theme="light"] .google-inset-row {
  color: #1f2937 !important;
}

.google-inset-row:hover {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="light"] .google-inset-row:hover {
  background: rgba(0, 0, 0, 0.04) !important;
}

.google-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.google-row-val {
  font-size: 12px !important;
  color: #9aa0a6 !important;
  font-weight: 500 !important;
}

.google-footer-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 14px !important;
  padding-top: 10px !important;
  font-size: 11px !important;
}

.google-footer-links a {
  color: #70757a !important;
  text-decoration: none !important;
}

.google-footer-links a:hover {
  color: #9aa0a6 !important;
  text-decoration: underline !important;
}

.google-signout-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 9px 16px !important;
  margin-top: 14px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #e8eaed !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  text-decoration: none !important;
}

[data-theme="light"] .google-signout-btn {
  border-color: rgba(0, 0, 0, 0.16) !important;
  color: #3c4043 !important;
}

.google-signout-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .google-signout-btn:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.28) !important;
}

/* ============================================================
   MAIN LAYOUT & COHESIVE DASHBOARD CARD
   ============================================================ */
.hub-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  position: relative;
  z-index: 10;
  overflow: hidden;
}

/* Search Bar (Clean alignment in workspace sidebar) */
.search-section {
  width: 100%;
  position: relative;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  font-size: 12.5px;
  background: rgba(10, 10, 11, 0.4);
  color: var(--text1);
  border: 1px solid var(--border);
  border-radius: 50px;
  outline: none;
  font-family: inherit;
  transition: all var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .search-input {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.search-input:focus {
  border-color: var(--gold);
  background: rgba(10, 10, 11, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="light"] .search-input:focus {
  background: #ffffff;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text3);
  pointer-events: none;
  transition: color var(--transition);
}

.search-input:focus + .search-icon {
  color: var(--gold);
}



/* ============================================================
   APP DRAWER (FLEXBOX CENTERING & BUTTER-SMOOTH HOVER)
   ============================================================ */
.workspace-apps-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 210px);
  padding: 8px 16px 24px 16px;
  margin-left: -16px;
  margin-right: -16px;
}

.workspace-apps-container::-webkit-scrollbar {
  width: 4px;
}

.workspace-apps-container::-webkit-scrollbar-track {
  background: transparent;
}

.workspace-apps-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

[data-theme="light"] .workspace-apps-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.08);
}

.workspace-apps-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

.category-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.category-title {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  opacity: 0.85;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  opacity: 0.7;
  flex-shrink: 0;
}

[data-theme="light"] .category-title {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 12px;
  justify-items: center;
  width: 100%;
}

@media (max-width: 860px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 8px;
  }
}

.app-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  cursor: pointer;
  outline: none;
  width: 84px;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Premium 3D Glossy Squircles (Hardware-accelerated) */
.app-squircle {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

[data-theme="light"] .app-squircle {
  border: none;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
}

.app-squircle img.app-icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Fallback vector icons inside squircles */
.app-squircle svg {
  width: 32px;
  height: 32px;
  color: #ffffff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}

/* Highly-optimized, hardware-accelerated smooth hover */
.app-icon-card:hover .app-squircle {
  transform: translateY(-5px) scale(1.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55);
}

.app-icon-card:active .app-squircle {
  transform: translateY(-2px) scale(0.97);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

/* Unique 3D Glow on Hover for each app */
.app-icon-card:hover .app-squircle.website {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(254, 198, 59, 0.45);
}
.app-icon-card:hover .app-squircle.core-app {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(79, 172, 254, 0.45);
}
.app-icon-card:hover .app-squircle.validator {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(52, 211, 153, 0.45);
}
.app-icon-card:hover .app-squircle.deck-viewer {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(129, 140, 248, 0.45);
}
.app-icon-card:hover .app-squircle.certify-studio {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 166, 35, 0.45);
}
.app-icon-card:hover .app-squircle.mail {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(14, 165, 233, 0.5);
}
.app-icon-card:hover .app-squircle.mail-server {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(148, 163, 184, 0.45);
}
.app-icon-card:hover .app-squircle.mail-studio {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(236, 72, 153, 0.45);
}
.app-icon-card:hover .app-squircle.chief-portal {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(245, 158, 11, 0.45);
}
.app-icon-card:hover .app-squircle.admin-panel {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(226, 232, 240, 0.45);
}
.app-icon-card:hover .app-squircle.investor-portal {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(168, 85, 247, 0.45);
}
.app-icon-card:hover .app-squircle.bill-generator {
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.55), 0 0 20px rgba(249, 115, 22, 0.45);
}

[data-theme="light"] .app-icon-card:hover .app-squircle {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16), 0 0 14px rgba(245, 166, 35, 0.25);
}

/* App Labels */
.app-label {
  margin-top: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text2);
  transition: color var(--transition);
  text-align: center;
  max-width: 96px;
  white-space: normal;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  min-height: 28px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.app-icon-card:hover .app-label {
  color: var(--text1);
}

/* ULTRA-PREMIUM HIGH-VISIBILITY SOLID BADGES (Perfect smooth transition) */
.app-badge {
  position: absolute;
  top: -6px;
  right: 12px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(255, 69, 58, 0.4);
  letter-spacing: 0.5px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  white-space: nowrap !important;
  pointer-events: none;
  user-select: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.app-badge.beta {
  background: var(--gold);
  color: #0A0A0B;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.4);
}

.app-icon-card:hover .app-badge {
  transform: scale(1.05) translateY(-2px);
}

/* GREYED OUT LOCKED APPS */
.app-icon-card.locked {
  opacity: 0.45;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  /* NEVER transform .app-icon-card container itself on hover to avoid bounding-box edge jitter */
}

.app-icon-card.locked .app-squircle {
  filter: grayscale(1);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.app-icon-card.locked:hover {
  opacity: 0.85;
}

.app-icon-card.locked:hover .app-squircle {
  transform: translateY(-4px) scale(1.05);
  filter: grayscale(0.2) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.55)) !important;
}

.app-icon-card.locked .app-label {
  color: var(--text3);
  font-weight: 500;
}

.app-icon-card.locked:hover .app-label {
  color: var(--text2);
}

/* SOLID DARK PILL BADGES FOR LOCKED & IN-QUEUE APPS */
.app-badge.locked-badge,
.app-badge.pending-badge {
  background: rgba(26, 26, 36, 0.96);
  color: #F5A623;
  border: 1px solid rgba(245, 166, 35, 0.38);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  top: -4px;
  right: 4px;
  letter-spacing: 0.4px;
  border-radius: 20px;
  white-space: nowrap !important;
  pointer-events: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-badge.pending-badge {
  border-color: rgba(245, 166, 35, 0.45);
  color: #fbbf24;
}

.app-badge.locked-badge svg,
.app-badge.pending-badge svg {
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

[data-theme="light"] .app-badge.locked-badge,
[data-theme="light"] .app-badge.pending-badge {
  background: rgba(255, 255, 255, 0.96);
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Empty State */
.empty-state {
  width: 100%;
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-state-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}

.empty-state-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 2px;
}

.empty-state-desc {
  font-size: 12px;
  color: var(--text3);
}

/* ============================================================
   SCREEN-WIDE SPLIT VIEWPORT CONTAINER
   ============================================================ */
.hub-container {
  display: grid;
  grid-template-columns: 480px 1fr;
  height: calc(100vh - 56px);
  height: calc(100dvh - 56px);
  position: relative;
  z-index: 10;
  overflow: hidden;
}

@media (max-width: 900px) {
  .hub-container {
    grid-template-columns: 1fr;
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
    overflow: hidden;
  }
  .logo img {
    height: 24px;
  }
  .logo-product {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
}

/* ============================================================
   LEFT PANEL: WORKSPACE LAUNCHER (Sidebar Sidebar)
   ============================================================ */
.workspace-panel {
  background: rgba(18, 18, 22, 0.45);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  overflow-y: auto;
  justify-content: flex-start;
  transition: background var(--transition), border-color var(--transition);
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.008) 1px, transparent 1px);
  background-size: 20px 20px;
}

[data-theme="light"] .workspace-panel {
  background: rgba(255, 255, 255, 0.65);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.008) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.008) 1px, transparent 1px);
  background-size: 20px 20px;
}

@media (max-width: 900px) {
  .workspace-panel {
    border-right: none;
    border-bottom: none;
    height: 100%;
    padding: 32px 24px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.workspace-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.workspace-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--text1);
  letter-spacing: -0.5px;
}

.workspace-title span {
  color: var(--gold);
}

.workspace-desc {
  font-size: 12px;
  color: var(--text3);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================================
   RIGHT PANEL: FULL VIEWPORT LIVE PREVIEW VIEW
   ============================================================ */
.full-preview-panel {
  padding: 48px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow-y: auto;
  position: relative;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 20px 20px;
}

[data-theme="light"] .full-preview-panel {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
}

@media (max-width: 900px) {
  .full-preview-panel {
    display: none !important;
  }
}

/* Dual Column Catalog Card inside Preview Panel */
.preview-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  max-width: 860px;
  width: 100%;
  animation: previewFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes previewFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .preview-card {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 440px;
  }
}

.preview-visual-column {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Matching Glowing Ambient Auras */
.preview-glow {
  position: absolute;
  width: 320px;
  height: 220px;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.28;
  z-index: 0;
  transition: background 0.4s ease;
  pointer-events: none;
}

.preview-details-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  text-align: left;
}

.preview-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.preview-name {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 850;
  color: var(--text1);
}

.preview-badge {
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
}

.preview-badge.active {
  background: rgba(48, 209, 88, 0.15);
  color: var(--success);
}

.preview-badge.beta {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
}

.preview-badge.restricted {
  background: rgba(255, 69, 58, 0.15);
  color: var(--danger);
}

.preview-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  font-weight: 400;
}

/* Premium Solid Pill Buttons inside Preview Pane */
.preview-btn {
  width: 100%;
  margin-top: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0B !important;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none !important;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.25);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.preview-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.4);
}

.preview-btn:active {
  transform: scale(0.97);
}

.preview-btn.restricted {
  background: rgba(255, 69, 58, 0.15) !important;
  color: #FF453A !important;
  border: 1px solid rgba(255, 69, 58, 0.25);
  box-shadow: none;
  cursor: pointer;
}

.preview-btn.restricted:hover {
  background: rgba(255, 69, 58, 0.25) !important;
  transform: none;
  box-shadow: none;
}

/* ============================================================
   HIGH-FIDELITY APP INTERFACE MOCKUP FRAME
   ============================================================ */
.mock-frame {
  width: 100%;
  max-width: 440px;
  height: 280px;
  background: rgba(10, 10, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}

[data-theme="light"] .mock-frame {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.mock-browser-header {
  height: 32px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

[data-theme="light"] .mock-browser-header {
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.mock-browser-header .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.mock-browser-header .dot.red { background: #FF5F56; }
.mock-browser-header .dot.yellow { background: #FFBD2E; }
.mock-browser-header .dot.green { background: #27C93F; }

.mock-address {
  margin-left: 12px;
  font-size: 10px;
  color: var(--text3);
  background: rgba(0, 0, 0, 0.2);
  padding: 3px 20px;
  border-radius: 20px;
  flex: 1;
  max-width: 220px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .mock-address {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.04);
}

.mock-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 1. Website Mockup Elements */
.website-mock {
  background: #0B0B0C !important;
  color: #FFFFFF;
  font-family: 'DM Sans', sans-serif;
}
.web-body {
  padding: 8px 12px 10px 12px;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}
.web-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 4px;
}
.web-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.web-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 7px;
  color: rgba(255, 255, 255, 0.7);
}
.btn-mini-viewapp {
  background: var(--gold);
  color: #000;
  border: none;
  font-size: 6px;
  font-weight: bold;
  padding: 2.5px 7px;
  border-radius: 12px;
  cursor: pointer;
}
.web-hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
  flex: 1;
}
.hero-left {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pill-rev {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid rgba(245, 166, 35, 0.3);
  color: var(--gold);
  font-size: 5.5px;
  font-weight: bold;
  padding: 1.5px 5px;
  border-radius: 10px;
  width: fit-content;
}
.hero-left h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
  margin: 0;
  color: #FFFFFF;
}
.hero-left h2 .highlight {
  color: var(--gold);
}
.web-desc {
  font-size: 6.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.3;
  margin: 0;
}
.trust-badge {
  color: #4cd964;
  font-size: 5.5px;
  font-weight: 600;
}
.btn-mini-book {
  background: var(--gold);
  color: #000;
  border: none;
  font-size: 6.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  width: fit-content;
  cursor: pointer;
  margin-top: 1px;
}
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.scooter-img-wrap {
  width: 90px;
  height: 75px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.scooter-graphic {
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.scooter-svg {
  width: 65px;
  height: 45px;
}
.satisfaction-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  right: 4px;
  background: rgba(10, 10, 12, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.star-badge {
  color: var(--gold);
  font-size: 8px;
}
.badge-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}
.badge-text-col .top-txt {
  font-size: 5px;
  font-weight: bold;
  color: var(--text1);
}
.badge-text-col .sub-txt {
  font-size: 4px;
  color: rgba(255, 255, 255, 0.6);
}
.web-stats-row {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 5px;
}
.w-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.w-stat strong {
  font-size: 9px;
  font-weight: 800;
}
.w-stat span {
  font-size: 5px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
}

/* 2. Application Mockup Elements */
.app-mock {
  background: #FFFFFF !important;
  color: #1A1A1A;
  font-family: 'DM Sans', sans-serif;
}
.app-body {
  padding: 6px 8px;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  justify-content: space-between;
}
.pink-circle {
  position: absolute;
  top: -15px;
  left: -20px;
  width: 75px;
  height: 75px;
  background: #FFC0CB;
  opacity: 0.35;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.app-header-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px;
  z-index: 1;
  position: relative;
  margin-bottom: 5px;
}
.app-search-bar {
  background: #F4F4F6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-search-bar .search-icon {
  font-size: 8px;
}
.app-search-bar .search-placeholder {
  font-size: 7px;
  color: #8E8E93;
}
.app-logo-area {
  display: flex;
  align-items: center;
  gap: 4px;
}
.app-logo-area .bell-icon {
  font-size: 9px;
  color: var(--gold);
}
.app-logo-area .app-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 11px;
  color: #1A1A1A;
}
.app-scroll-content {
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
  z-index: 1;
  position: relative;
}
.app-scroll-content h4 {
  font-size: 7.5px;
  font-weight: bold;
  margin: 3px 0 2px 0;
  text-align: left;
}
.why-utservio-section h4, .trending-section h4, .highlights-section h4 {
  color: #2c2c2e;
}
.why-icons {
  display: flex;
  justify-content: space-between;
  background: #FAF9F6;
  border-radius: 6px;
  padding: 4px;
  margin-bottom: 4px;
}
.why-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5px;
  flex: 1;
}
.why-badge-icon {
  font-size: 9px;
}
.why-badge-lbl {
  font-size: 4.5px;
  font-weight: 800;
  color: #55555A;
  text-align: center;
  scale: 0.9;
}
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 4px;
}
.service-card {
  background: #FAF9F6;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  padding: 4px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.service-card .hot-tag {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #FF3B30;
  color: #FFF;
  font-size: 4px;
  font-weight: 800;
  padding: 0.5px 2px;
  border-radius: 2px;
}
.service-card .srv-icon {
  font-size: 11px;
  margin-bottom: 2px;
}
.service-card h5 {
  font-size: 6.5px;
  font-weight: 700;
  margin: 0;
  color: #1c1c1e;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.service-card .price-row {
  display: flex;
  flex-direction: column;
  gap: 0.5px;
  margin-top: 1px;
}
.service-card .cur-price {
  font-size: 7px;
  font-weight: 800;
  color: #4cd964;
}
.service-card .old-price {
  font-size: 5px;
  text-decoration: line-through;
  color: #8e8e93;
}
.service-card .discount-lbl {
  font-size: 4.5px;
  color: #ff9500;
  font-weight: bold;
}
.service-card .add-btn {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #ff9500;
  font-size: 10px;
  font-weight: bold;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.highlights-section .ba-banner {
  height: 38px;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="40" viewBox="0 0 100 40"><rect width="50" height="40" fill="%23444"/><rect x="50" width="50" height="40" fill="%23ddd"/></svg>');
  background-size: cover;
  border-radius: 6px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.before-tag {
  position: absolute;
  top: 3px;
  left: 5px;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 4px;
  font-weight: bold;
  padding: 0.5px 2px;
}
.after-tag {
  position: absolute;
  top: 3px;
  right: 5px;
  background: #4cd964;
  color: #fff;
  font-size: 4px;
  font-weight: bold;
  padding: 0.5px 2px;
}
.ba-label {
  color: #FFF;
  font-size: 7px;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}
.floating-cart-bar {
  background: #111112;
  border-radius: 8px;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3px 0;
  z-index: 2;
}
.cart-info {
  display: flex;
  align-items: center;
  gap: 4px;
}
.cart-count {
  background: #ff9500;
  color: #fff;
  font-size: 5px;
  font-weight: bold;
  padding: 1px 3px;
  border-radius: 50%;
}
.cart-total {
  color: #fff;
  font-size: 6.5px;
  font-weight: bold;
}
.view-cart-link {
  color: #4cd964;
  font-size: 6.5px;
  font-weight: bold;
}
.app-nav-bar {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-around;
  padding-top: 3px;
  background: #FFF;
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 8px;
  color: #8E8E93;
  gap: 0.5px;
}
.app-nav-item.active {
  color: #ff9500;
}
.app-nav-item span {
  font-size: 5px;
  font-weight: 500;
}

/* Validator Mockup Elements */
.mini-validator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.2);
  padding: 4px 10px;
  border-radius: 20px;
  color: var(--success);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.secure-badge svg {
  width: 10px;
  height: 10px;
  color: var(--success);
}
.mock-hash-input {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 10px;
  color: var(--text2);
  width: 180px;
  text-align: center;
}
.mock-val-btn {
  background: var(--success);
  color: #0A0A0B;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}
.val-success-msg {
  font-size: 9px;
  color: var(--success);
  font-weight: 600;
}

/* 3. Chief Management Mockup Elements */
.chief-mock {
  background: #FFFFFF !important;
  color: #1A1C1E;
}
.chief-body {
  padding: 0 !important;
  height: 100%;
}
.chief-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
}
.chief-left-panel {
  background: #2563EB;
  color: #FFFFFF;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
}
.chief-brand {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chief-brand .shield-icon {
  font-size: 13px;
}
.brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 10px;
  line-height: 1;
}
.brand-subtitle {
  font-size: 4.5px;
  letter-spacing: 0.5px;
  opacity: 0.8;
}
.chief-left-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.25;
  margin: 4px 0;
}
.chief-desc {
  font-size: 6px;
  line-height: 1.3;
  opacity: 0.85;
  margin: 0;
}
.chief-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2px 6px;
  font-size: 5px;
  font-weight: 600;
  width: fit-content;
  margin-top: 2px;
}
.chief-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 4px;
}
.chief-stats-grid .c-stat {
  display: flex;
  flex-direction: column;
}
.chief-stats-grid .c-stat strong {
  font-size: 8px;
  font-weight: 800;
}
.chief-stats-grid .c-stat span {
  font-size: 4px;
  opacity: 0.7;
}
.chief-right-panel {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  background: #FFF;
}
.auth-icon-top {
  font-size: 12px;
  color: #2563EB;
  margin-bottom: 2px;
}
.chief-right-panel h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  margin: 0 0 1px 0;
  color: #111;
}
.auth-instructions {
  font-size: 6px;
  color: #6B7280;
  margin: 0 0 5px 0;
  line-height: 1.2;
}
.auth-input-group {
  width: 100%;
  margin-bottom: 4px;
}
.auth-input-group label {
  font-size: 5.5px;
  font-weight: bold;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  display: block;
}
.auth-input-wrapper {
  display: flex;
  align-items: center;
  background: #FAF9F6;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 2.5px 5px;
  width: 100%;
}
.email-icon-prefix {
  font-size: 6px;
  color: #9CA3AF;
  margin-right: 4px;
}
.mini-input-field {
  border: none;
  background: transparent;
  font-size: 7px;
  color: #374151;
  outline: none;
  width: 100%;
  padding: 0;
}
.code-boxes {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}
.code-boxes span {
  width: 14px;
  height: 14px;
  border: 1px solid #D1D5DB;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: bold;
  background: #FAF9F6;
  color: #374151;
}
.btn-chief-signin {
  width: 100%;
  background: #2563EB;
  color: #FFF;
  border: none;
  border-radius: 4px;
  padding: 4px;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  text-align: center;
}

/* 4. Certify Studio Mockup Elements */
.certify-mock {
  background: #111112 !important;
  color: #FFFFFF;
}
.certify-body {
  padding: 0 !important;
  height: 100%;
}
.certify-split {
  display: grid;
  grid-template-columns: 85px 1fr;
  height: 100%;
}
.certify-sidebar {
  background: #1A1A1C;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.sidebar-sec {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.sidebar-sec h6 {
  font-size: 5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.3px;
  margin: 0;
}
.sec-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sec-hdr .clear-btn {
  font-size: 4.5px;
  color: #FF453A;
  font-weight: bold;
  cursor: pointer;
}
.tpl-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.tpl-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 2.5px;
  font-size: 5.5px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.tpl-chip.active {
  border-color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold);
  font-weight: bold;
}
.mini-field {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}
.mini-field label {
  font-size: 4.5px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.4);
}
.mini-field input {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 5.5px;
  color: rgba(255, 255, 255, 0.8);
  outline: none;
}
.certify-canvas {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.certificate-container {
  background: #FFFFFF;
  color: #1A1A1C;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.diag-ribbon {
  position: absolute;
  top: -20px;
  right: -25px;
  width: 70px;
  height: 45px;
  background: linear-gradient(135deg, var(--gold) 45%, #111 45%, #111 55%, var(--gold) 55%);
  transform: rotate(45deg);
}
.cert-logo-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  text-align: left;
}
.cert-logo-row .c-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 8px;
  color: var(--gold);
}
.cert-logo-row .cred-id {
  font-size: 4px;
  color: #6B7280;
  line-height: 1.1;
  text-align: right;
  margin-right: 25px;
}
.cert-body-center {
  text-align: center;
  margin: 2px 0;
}
.c-title {
  font-size: 4.5px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 0.5px;
}
.c-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 900;
  margin: 1px 0;
  color: #111;
}
.c-recipient-label {
  font-size: 4px;
  color: #6B7280;
  font-style: italic;
}
.c-recipient-name {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  font-weight: bold;
  color: #222;
  margin: 1px 0;
  border-bottom: 0.5px solid #ccc;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px 1px 10px;
}
.c-cert-text {
  font-size: 4.5px;
  color: #4B5563;
  max-width: 180px;
  margin: 2px auto 0 auto;
  line-height: 1.3;
}
.cert-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px solid #E5E7EB;
  padding-top: 3px;
}
.cert-qr {
  font-size: 7px;
  text-align: left;
  line-height: 1;
}
.cert-qr span {
  font-size: 3px;
  color: #9CA3AF;
}
.cert-seal {
  font-size: 7px;
  text-align: center;
  color: #10B981;
  line-height: 1;
}
.cert-seal span {
  font-size: 3px;
  font-weight: bold;
}
.cert-sigs {
  display: flex;
  gap: 8px;
}
.sig-line {
  display: flex;
  flex-direction: column;
  text-align: center;
  border-top: 0.5px solid #9CA3AF;
  padding-top: 1px;
  min-width: 32px;
}
.sig-line span {
  font-size: 3.5px;
  font-weight: bold;
  color: #374151;
}
.sig-line small {
  font-size: 2.5px;
  color: #9CA3AF;
  scale: 0.95;
}

/* 5. Mail Studio Mockup Elements */
.mail-mock {
  background: #111112 !important;
  color: #FFFFFF;
}
.mail-body {
  padding: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.mail-top-nav {
  height: 22px;
  background: #18181B;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.mail-logo {
  display: flex;
  align-items: center;
  gap: 3px;
}
.mail-logo .logo-bold {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 7.5px;
  color: var(--gold);
}
.mail-logo .logo-sub {
  font-size: 4.5px;
  font-weight: bold;
  color: #A1A1AA;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 3px;
  border-radius: 2px;
}
.mail-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.mail-actions .action-tab {
  font-size: 5.5px;
  color: #A1A1AA;
  cursor: pointer;
}
.mail-actions .action-tab.active {
  color: #FFF;
  font-weight: bold;
}
.gmail-pill {
  background: var(--gold);
  color: #000;
  font-size: 4.5px;
  font-weight: bold;
  padding: 1.5px 4px;
  border-radius: 8px;
}
.mail-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  height: calc(100% - 22px);
  overflow: hidden;
}
.mail-left-sidebar {
  background: #18181B;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.mail-left-sidebar .side-tab {
  font-size: 5px;
  color: #71717A;
  padding: 2.5px 4px;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.mail-left-sidebar .side-tab.active {
  background: rgba(255, 255, 255, 0.05);
  color: var(--gold);
  font-weight: bold;
}
.mail-center-canvas {
  background: #09090B;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
}
.email-meta-inputs {
  background: #18181B;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 3px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.email-meta-inputs div {
  display: flex;
  gap: 4px;
  font-size: 5px;
}
.email-meta-inputs label {
  color: #71717A;
  font-weight: bold;
  min-width: 24px;
}
.email-meta-inputs span {
  color: #E4E4E7;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.email-template-view {
  background: #0B0B0C;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 6px;
  text-align: center;
}
.email-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 2px;
  margin-bottom: 4px;
}
.email-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 6.5px;
  color: var(--gold);
}
.email-links {
  display: flex;
  gap: 4px;
  font-size: 4px;
  color: rgba(255, 255, 255, 0.6);
}
.email-hero-mini {
  padding: 4px 0;
}
.hero-rev-badge {
  font-size: 4px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: 0.3px;
}
.email-hero-mini h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 8px;
  font-weight: bold;
  margin: 1px 0;
  color: #FFF;
}
.email-hero-mini p {
  font-size: 4.5px;
  color: rgba(255, 255, 255, 0.6);
  margin: 1px auto;
  max-width: 120px;
  line-height: 1.2;
}
.email-btn-mini {
  background: var(--gold);
  color: #000;
  border: none;
  font-size: 4.5px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 6px;
  margin-top: 1.5px;
}
.email-grid-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 4px 0;
}
.grid-box {
  background: rgba(255, 255, 255, 0.02);
  border: 0.5px solid rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  padding: 3px 1px;
  font-size: 7px;
}
.grid-box strong {
  font-size: 4px;
  color: #FFF;
  display: block;
  margin-top: 1px;
  scale: 0.9;
}
.email-footer-mini {
  display: flex;
  justify-content: space-around;
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding-top: 3px;
  font-size: 4px;
  color: rgba(255, 255, 255, 0.4);
}
.mail-right-sidebar {
  background: #18181B;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.no-selection-box {
  text-align: center;
  opacity: 0.3;
}
.no-selection-box span {
  font-size: 10px;
}
.no-selection-box p {
  font-size: 4px;
  margin-top: 2px;
}

.user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 8.5px;
}
.user-row span {
  color: var(--text2);
}
.user-row .badge {
  font-size: 7px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  text-transform: uppercase;
}
.user-row .badge.active { background: rgba(48, 209, 88, 0.15); color: var(--success); }
.user-row .badge.admin { background: rgba(245, 166, 35, 0.15); color: var(--gold); }
.user-row .badge.blocked { background: rgba(255, 69, 58, 0.15); color: var(--danger); }


/* ============================================================
   AUTHENTICATION SCREEN
   ============================================================ */
.auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg1);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.auth-screen.open {
  opacity: 1;
  visibility: visible;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: rgba(20, 20, 22, 0.65);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-screen.open .auth-card {
  transform: translateY(0);
}

[data-theme="light"] .auth-card {
  background: rgba(255, 255, 255, 0.7);
}

.auth-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.auth-logo-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(245, 166, 35, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(245, 166, 35, 0.25);
}

.auth-title {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  color: var(--text1);
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--text3);
  text-align: center;
  margin-bottom: 24px;
}

.auth-error {
  background: rgba(255, 69, 58, 0.12);
  color: #ff453a;
  border: 1px solid rgba(255, 69, 58, 0.2);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.auth-field input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text1);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}

[data-theme="light"] .auth-field input {
  background: rgba(255, 255, 255, 0.85);
}

.auth-field input:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.15);
}

[data-theme="light"] .auth-field input:focus {
  background: #ffffff;
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0A;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  margin-top: 8px;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
}

.auth-submit:active {
  transform: scale(0.98);
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text3);
}

.auth-toggle a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.restricted-modal {
  width: 100%;
  max-width: 400px;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transform: scale(0.95);
  transition: all var(--spring);
  text-align: center;
}

[data-theme="light"] .restricted-modal {
  background: rgba(255, 255, 255, 0.95);
}

.modal-backdrop.open .restricted-modal {
  transform: scale(1);
}

.modal-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 69, 58, 0.08);
  border: 1px solid rgba(255, 69, 58, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--danger);
  margin: 0 auto 16px auto;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--text1);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13px;
  color: var(--text3);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ============================================================
   TOAST SYSTEM
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 10px 20px;
  background: rgba(20, 20, 22, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text1);
  font-size: 12px;
  font-weight: 600;
  z-index: 2000;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-gold {
  border-color: rgba(245, 166, 35, 0.3);
  color: var(--gold);
}

.toast-danger {
  border-color: rgba(255, 69, 58, 0.3);
  color: #ff453a;
}

/* ============================================================
   7. UTSERVIO CENTRAL APP WORKSPACE MOCKUP
   ============================================================ */
.mini-app-workspace {
  display: grid;
  grid-template-columns: 85px 1fr;
  height: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.app-sidebar {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid var(--border);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="light"] .app-sidebar {
  background: rgba(0, 0, 0, 0.02);
}

.app-sidebar .act {
  font-size: 7.5px;
  color: var(--text3);
  padding: 4px;
  border-radius: 4px;
  white-space: nowrap;
  text-align: left;
}

.app-sidebar .act.active {
  background: rgba(245, 166, 35, 0.1);
  color: var(--gold);
  font-weight: 700;
}

.app-main {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg2);
}

.project-header {
  font-size: 9px;
  font-weight: 800;
  color: var(--text1);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  text-align: left;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.proj-card .count {
  font-size: 7px;
  color: var(--text4);
}

/* 6. Utservio Bill Generator Mockup Elements */
.bill-mock {
  background: #F4F5F6 !important;
  color: #1A1C1E;
}

.bill-body {
  padding: 0 !important;
  height: 100%;
}

.bill-top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #E5E7EB;
  padding: 10px 14px;
  background: #FFFFFF;
}

.bill-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bill-logo-box {
  background: #FF9500;
  color: #FFFFFF;
  font-weight: 900;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 11px;
  font-family: 'Outfit', sans-serif;
}

.bill-brand-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bill-brand-text .logo-main {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #1A1C1E;
  font-family: 'Outfit', sans-serif;
}

.bill-brand-text .logo-sub {
  font-size: 5.5px;
  font-weight: 700;
  color: #8E8E93;
  letter-spacing: 0.2px;
}

.btn-view-bills {
  background: #FFF6E6;
  border: 1px solid #FFE0B2;
  color: #FF9500;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 7.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.bill-pricing-toggle-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}

.toggle-lbl {
  font-size: 7.5px;
  font-weight: 800;
  color: #8E8E93;
  letter-spacing: 0.5px;
}

.toggle-switch {
  width: 24px;
  height: 12px;
  background: #E5E7EB;
  border-radius: 10px;
  position: relative;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
}

.bill-workspace {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  padding: 0 14px 14px 14px;
  height: calc(100% - 66px);
}

.bill-left-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bill-left-col .section-title {
  font-size: 9px;
  font-weight: 800;
  color: #1A1C1E;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}

.bill-left-col .section-title .grid-icon {
  color: #FF9500;
}

.bill-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.bill-service-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.srv-emoji {
  font-size: 16px;
}

.srv-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.srv-info h6 {
  font-size: 8px;
  font-weight: 700;
  color: #1A1C1E;
  margin: 0;
}

.srv-price {
  font-size: 8px;
  font-weight: 800;
  color: #FF9500;
}

.btn-srv-add {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: #FF9500;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 700;
  padding: 2px 5px;
  cursor: pointer;
}

.bill-invoice-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.inv-hdr {
  font-size: 9px;
  font-weight: 800;
  color: #1A1C1E;
  display: flex;
  align-items: center;
  gap: 4px;
  text-align: left;
}

.inv-cart-icon {
  color: #FF9500;
}

.inv-input-wrap input {
  width: 100%;
  padding: 5px 8px;
  font-size: 8px;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  color: #8E8E93;
  background: #F9FAFB;
}

.inv-pills-row {
  display: flex;
  gap: 6px;
}

.btn-combo-pill {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #FF9500;
  color: #FF9500;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 7px;
  font-weight: 700;
  cursor: pointer;
}

.inv-amount-box {
  background: #FFF2E6;
  border: 1px dashed #FFD6B3;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.amt-lbl {
  font-size: 6px;
  font-weight: 800;
  color: #FF5E36;
  letter-spacing: 0.5px;
}

.amt-val {
  font-size: 16px;
  font-weight: 900;
  color: #FF5E36;
  margin: 0;
}

.discount-input {
  width: 90%;
  border: 1px solid #FFE0C2;
  background: #FFFFFF;
  color: #FF9500;
  border-radius: 4px;
  padding: 4px;
  font-size: 7px;
  text-align: center;
}

.inv-actions-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.inv-circ-btn {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  color: #1A1C1E;
  cursor: pointer;
}

.inv-circ-btn.btn-trash {
  border-color: #FFE5E5;
  color: #FF3B30;
  background: #FFF5F5;
}

.btn-inv-submit {
  width: 100%;
  border: none;
  padding: 6px;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
  cursor: pointer;
}

.btn-inv-submit.green-btn {
  background: #34C759;
  color: #FFFFFF;
}

.btn-inv-submit.orange-btn {
  background: #FF9500;
  color: #FFFFFF;
}

/* ============================================================
   MINIMALIST ASCII DASHBOARD VIEW (Logo + Title + ASCII Globe)
   ============================================================ */
.ascii-dashboard-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px;
  animation: asciiFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  position: relative;
  z-index: 1;
}

@keyframes asciiFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ascii-dash-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  filter: blur(110px);
  -webkit-filter: blur(110px);
  border-radius: 50%;
  background: rgba(245, 166, 35, 0.08);
  z-index: 0;
  pointer-events: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

[data-theme="light"] .ascii-dash-glow {
  background: rgba(245, 166, 35, 0.05);
}

.ascii-dash-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 1;
}

.ascii-dash-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(245, 166, 35, 0.25));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ascii-dash-logo:hover {
  transform: scale(1.05);
}

.ascii-dash-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold, #F5A623);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

[data-theme="light"] .ascii-dash-title {
  color: #B45309;
}

.ascii-globe-wrapper {
  margin: 22px 0 18px 0;
  padding: 16px 22px;
  border-radius: 18px;
  background: rgba(18, 18, 20, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .ascii-globe-wrapper {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.ascii-globe-screen {
  margin: 0;
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', Consolas, 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.05;
  letter-spacing: 0.5px;
  user-select: none;
  white-space: pre;
  color: #F5A623;
  text-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

[data-theme="light"] .ascii-globe-screen {
  color: #B45309;
  text-shadow: 0 0 6px rgba(217, 119, 6, 0.2);
}

.ascii-dash-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text3, #71717A);
  z-index: 1;
}

.ascii-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold, #F5A623);
  box-shadow: 0 0 8px rgba(245, 166, 35, 0.6);
  animation: asciiPulse 2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes asciiPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

.ascii-hint-text {
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* Back to Console Button in Preview Mode */
.preview-back-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
  width: fit-content;
}

[data-theme="light"] .preview-back-btn {
  background: rgba(0, 0, 0, 0.03);
}

.preview-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text1);
  border-color: var(--border-light);
}

/* ============================================================
   RESPONSIVENESS & DEVICE OPTIMIZATIONS
   ============================================================ */
@media (max-width: 600px) {
  .workspace-panel {
    padding: 24px 16px;
    gap: 20px;
  }
  .workspace-header {
    gap: 4px;
  }
  .workspace-title {
    font-size: 18px;
  }
  .workspace-desc {
    font-size: 11px;
    line-height: 1.4;
  }
  .apps-grid {
    gap: 16px 8px;
  }
  .app-icon-card {
    width: 72px;
  }
  .app-squircle {
    width: 48px;
    height: 48px;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: none;
    filter: none;
  }
  .app-squircle img.app-icon-img,
  .app-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: none;
    filter: none;
  }
  .app-squircle svg {
    width: 28px;
    height: 28px;
  }
  .app-label,
  .app-name {
    font-size: 10px;
    margin-top: 7px;
  }

  .ascii-dashboard-view {
    padding: 16px;
  }
  .ascii-dash-logo {
    height: 40px;
  }
  .ascii-dash-title {
    font-size: 18px;
    letter-spacing: 1.5px;
  }
  .ascii-globe-wrapper {
    padding: 10px 14px;
    margin: 16px 0 12px 0;
  }
  .ascii-globe-screen {
    font-size: 9.5px;
  }
  .ascii-dash-footer {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .logo-product {
    font-size: 11px;
    letter-spacing: 0.5px;
  }
  .mock-frame {
    transform: scale(0.85);
    transform-origin: center top;
    margin-bottom: -40px;
  }
  .preview-glow {
    width: 260px;
    height: 180px;
  }
}

@media (max-width: 380px) {
  .logo-product {
    display: none;
  }
  .mock-frame {
    transform: scale(0.72);
    transform-origin: center top;
    margin-bottom: -75px;
  }
  .preview-glow {
    width: 220px;
    height: 150px;
  }
}
/* ============================================================
   PREMIUM QUICK LAUNCH WAFFLE DROPDOWN
   ============================================================ */
#waffleDropdown {
  width: 376px !important;
  background: rgba(22, 23, 27, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 28px !important;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(32px) !important;
  -webkit-backdrop-filter: blur(32px) !important;
  padding: 20px 18px 16px 18px !important;
  box-sizing: border-box !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

[data-theme="light"] #waffleDropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.06) !important;
}

/* Popover Header with Title OUTSIDE the Inner Card (like Google) */
.waffle-popover-header,
.google-popover-header {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 4px 14px 4px !important;
}

.waffle-popover-title,
.google-popover-title {
  font-family: 'Google Sans', 'Outfit', 'DM Sans', -apple-system, sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #f1f3f4 !important;
  letter-spacing: 0.15px !important;
}

[data-theme="light"] .waffle-popover-title,
[data-theme="light"] .google-popover-title {
  color: #202124 !important;
}

.google-popover-action {
  display: none !important;
}

/* Google-Style Inner Layout Background Card */
.google-popover-card {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 20px !important;
  padding: 10px 4px 10px 4px !important;
  margin-bottom: 12px !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

[data-theme="light"] .google-popover-card {
  background: #f1f3f4 !important;
  border-color: rgba(0, 0, 0, 0.05) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.google-apps-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 8px 2px !important;
  padding: 2px 2px !important;
  max-height: 390px !important;
  overflow-y: auto !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent !important;
}

[data-theme="light"] .google-apps-grid {
  scrollbar-color: rgba(0, 0, 0, 0.12) transparent !important;
}

.google-apps-grid::-webkit-scrollbar {
  width: 4px !important;
}

.google-apps-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
}

[data-theme="light"] .google-apps-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12) !important;
}

.google-divider {
  display: none !important;
}

.google-hub-pill {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 11px 18px !important;
  border-radius: 14px !important;
  background: rgba(245, 166, 35, 0.08) !important;
  border: 1px solid rgba(245, 166, 35, 0.25) !important;
  color: #f5a623 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

[data-theme="light"] .google-hub-pill {
  background: rgba(245, 166, 35, 0.1) !important;
  border-color: rgba(245, 166, 35, 0.3) !important;
  color: #b45309 !important;
}

.google-hub-pill:hover {
  background: rgba(245, 166, 35, 0.16) !important;
  border-color: rgba(245, 166, 35, 0.5) !important;
  color: #f5a623 !important;
  transform: translateY(-1px) !important;
}

[data-theme="light"] .google-hub-pill:hover {
  background: rgba(245, 166, 35, 0.18) !important;
  color: #92400e !important;
}

.waffle-dropdown-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 4px 8px 4px !important;
  border-radius: 16px !important;
  text-align: center !important;
  text-decoration: none !important;
  transition: background 0.18s ease, transform 0.18s ease !important;
  cursor: pointer !important;
  border: 1px solid transparent !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 98px !important;
}

.waffle-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  transform: translateY(-2px) !important;
}

[data-theme="light"] .waffle-dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05) !important;
}

.waffle-icon-squircle {
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35)) !important;
  transition: transform 0.2s ease, filter 0.2s ease !important;
}

.waffle-icon-img {
  width: 60px !important;
  height: 60px !important;
  object-fit: contain !important;
  border-radius: 15px !important;
  display: block !important;
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

.waffle-dropdown-item:hover .waffle-icon-squircle {
  transform: translateY(-2px) scale(1.06) !important;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.5)) !important;
}

[data-theme="light"] .waffle-dropdown-item:hover .waffle-icon-squircle {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)) !important;
}

.waffle-item-name {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #f1f3f4 !important;
  line-height: 1.25 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  max-width: 102px !important;
  margin-top: 8px !important;
  transition: color 0.18s ease !important;
  letter-spacing: 0.1px !important;
}

[data-theme="light"] .waffle-item-name {
  color: #202124 !important;
}

.waffle-dropdown-item:hover .waffle-item-name {
  color: var(--text1) !important;
}

/* ============================================================
   ACCOUNT SETTINGS DASHBOARD STYLES
   ============================================================ */
.settings-modal {
  position: relative;
  display: flex;
  width: 860px;
  max-width: 95vw;
  height: 560px;
  max-height: 90vh;
  background: #191a1e;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  z-index: 1010;
  transform: scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .settings-modal {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

.modal-backdrop.open .settings-modal {
  transform: scale(1);
}

/* Floating Close Button */
.settings-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 25;
}

.settings-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text1);
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.16);
}

[data-theme="light"] .settings-modal-close {
  border-color: rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.04);
  color: var(--text2);
}

[data-theme="light"] .settings-modal-close:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text1);
}

/* Sidebar Styling */
.settings-sidebar {
  width: 220px;
  background: #141518;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  padding: 26px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

[data-theme="light"] .settings-sidebar {
  background: #f8f9fa;
  border-color: rgba(0, 0, 0, 0.06);
}

.settings-sidebar-header {
  margin-bottom: 22px;
  padding: 0 8px;
}

.settings-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  letter-spacing: 0.2px;
}

.settings-subtitle {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.settings-nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: var(--text2);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  transition: all 0.18s ease;
}

.settings-nav-btn svg {
  transition: color 0.18s ease;
  opacity: 0.7;
  flex-shrink: 0;
}

.settings-nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text1);
}

[data-theme="light"] .settings-nav-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.settings-nav-btn.active {
  background: rgba(245, 166, 35, 0.12);
  color: #f5a623;
  font-weight: 600;
}

[data-theme="light"] .settings-nav-btn.active {
  background: rgba(245, 166, 35, 0.14);
  color: #d97706;
}

.settings-nav-btn.active svg {
  color: #f5a623;
  opacity: 1;
}

[data-theme="light"] .settings-nav-btn.active svg {
  color: #d97706;
}

/* Content Area */
.settings-content {
  flex: 1;
  padding: 28px 32px;
  overflow-y: auto;
  background: transparent;
}

.settings-pane {
  display: none;
  animation: fadeInPane 0.25s ease-out;
}

.settings-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.settings-pane-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .settings-pane-header {
  border-color: rgba(0, 0, 0, 0.06);
}

.settings-pane-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--text1);
}

.settings-pane-header p {
  font-size: 12px;
  color: var(--text3);
  margin-top: 3px;
}

.settings-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 16px;
}

[data-theme="light"] .settings-card {
  background: #fbfbfc;
  border-color: rgba(0, 0, 0, 0.07);
}

.settings-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.settings-card-desc {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 14px;
  line-height: 1.4;
}

.settings-photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 18px;
}

[data-theme="light"] .settings-photo-row {
  border-bottom-color: rgba(0, 0, 0, 0.06);
}

.settings-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.settings-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

[data-theme="light"] .settings-info-row {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.settings-info-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.settings-info-val {
  font-size: 13px;
  color: var(--text1);
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text1);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

[data-theme="light"] .theme-choice-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
}

.theme-choice-card:hover {
  border-color: rgba(245, 166, 35, 0.4);
  background: rgba(245, 166, 35, 0.04);
}

.theme-choice-card.active {
  border-color: #f5a623;
  background: rgba(245, 166, 35, 0.08);
}

[data-theme="light"] #profileName,
[data-theme="light"] #secNewPass,
[data-theme="light"] #secConfirmPass,
[data-theme="light"] #advDefaultViewSelect {
  background: #f1f3f4 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  color: #1f1f1f !important;
}

[data-theme="light"] #profileName:focus,
[data-theme="light"] #secNewPass:focus,
[data-theme="light"] #secConfirmPass:focus,
[data-theme="light"] #advDefaultViewSelect:focus {
  border-color: #d97706 !important;
  background: #ffffff !important;
}

.large-avatar-glow {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0A;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.25);
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  flex-shrink: 0;
}

.large-avatar-details h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
}

.large-avatar-details p {
  font-size: 11px;
  color: var(--text3);
  margin: 2px 0 8px 0;
}

/* Form Grid */
.settings-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.settings-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.settings-field.full-width {
  grid-column: span 2;
}

.settings-field label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-field input,
.settings-field textarea,
.settings-field select {
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text1);
  font-family: inherit;
  font-size: 13px;
  transition: all var(--transition);
  outline: none;
}

[data-theme="light"] .settings-field input,
[data-theme="light"] .settings-field textarea,
[data-theme="light"] .settings-field select {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
}

.settings-field input:focus,
.settings-field textarea:focus,
.settings-field select:focus {
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.12);
}

[data-theme="light"] .settings-field input:focus,
[data-theme="light"] .settings-field textarea:focus,
[data-theme="light"] .settings-field select:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.06);
}

.settings-action-row {
  display: flex;
  justify-content: flex-end;
}

/* Security Layout */
.settings-security-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.settings-security-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .settings-security-card {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(0, 0, 0, 0.04);
}

.settings-security-card h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 8px;
  margin-bottom: 4px;
}

/* MFA Components */
.mfa-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #EF4444;
  align-self: flex-start;
}

.mfa-status-badge.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.mfa-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.totp-setup-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.totp-qr-wrap {
  width: 80px;
  height: 80px;
  background: #ffffff;
  padding: 6px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Visual CSS mock QR code */
.mock-qr {
  width: 100%;
  height: 100%;
  position: relative;
  background: #fff;
}

.mock-qr-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 4px solid #000;
}

.mock-qr-corner.tl { top: 0; left: 0; }
.mock-qr-corner.tr { top: 0; right: 0; }
.mock-qr-corner.bl { bottom: 0; left: 0; }

.mock-qr-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #000;
}

.totp-secret-wrap {
  flex: 1;
}

.totp-label {
  font-size: 9px;
  font-weight: 800;
  color: var(--text3);
}

.totp-key-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 4px;
}

.totp-key-copy code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--gold);
}

.copy-small-btn {
  background: transparent;
  border: none;
  color: var(--text3);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.copy-small-btn:hover {
  color: var(--text1);
}

.totp-desc {
  font-size: 10px;
  color: var(--text3);
  margin-top: 6px;
  line-height: 1.35;
}

/* API Sections */
.settings-api-section {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.settings-api-section h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 8px;
}

.api-key-container {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
}

.api-key-input {
  flex: 1;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3) !important;
  color: var(--gold) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.api-key-desc {
  font-size: 11px;
  color: var(--text3);
}

/* Active Sessions Log Table */
.sessions-table-wrapper {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .sessions-table-wrapper {
  border-color: rgba(0, 0, 0, 0.06);
}

.sessions-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.sessions-table th,
.sessions-table td {
  padding: 14px 18px;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .sessions-table th,
[data-theme="light"] .sessions-table td {
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

.sessions-table th {
  background: rgba(0, 0, 0, 0.2);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sessions-table td {
  color: var(--text2);
}

.sessions-table tr:last-child td {
  border-bottom: none;
}

.sessions-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.session-device-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text1);
}

.session-device-icon {
  font-size: 16px;
}

.session-duration-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text3);
}

.session-duration-tag.active {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
}

.revoke-session-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.15);
  color: #EF4444;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.revoke-session-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

/* Advanced / System */
.settings-advanced-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.advanced-card {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.advanced-icon {
  font-size: 24px;
}

.advanced-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text1);
}

.advanced-body p {
  font-size: 12px;
  color: var(--text3);
  margin-top: 4px;
  line-height: 1.45;
}

/* Danger Zone Card */
.danger-zone-card {
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-lg);
  background: rgba(239, 68, 68, 0.02);
  padding: 24px;
  margin-top: 24px;
}

.danger-zone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #EF4444;
  margin-bottom: 8px;
}

.danger-zone-header h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
}

.danger-zone-card p {
  font-size: 12.5px;
  color: var(--text3);
  line-height: 1.5;
}

.danger-btn {
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #EF4444 !important;
}

.danger-btn:hover {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* Image Cropping Modal */
.crop-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.crop-modal-backdrop.open {
  display: flex;
}
.crop-modal-container {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 420px;
  max-width: 90%;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.crop-modal-header {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 8px;
  text-align: center;
}
.crop-modal-subtitle {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 20px;
  text-align: center;
}
.crop-canvas-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  cursor: grab;
}
.crop-canvas-wrapper:active {
  cursor: grabbing;
}
.crop-circle-overlay {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
  border: 2px solid var(--gold);
  pointer-events: none;
}
.crop-slider-container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--text3);
  font-size: 11px;
}
.crop-slider-container input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
  background: var(--bg3);
  height: 4px;
  border-radius: 2px;
  outline: none;
}
.crop-actions {
  display: flex;
  gap: 12px;
  width: 100%;
}
.crop-actions button {
  flex: 1;
}

/* ============================================================
   RESPONSIVE MOBILE BREAKPOINTS (COMPLETE COVERAGE)
   ============================================================ */

/* Tablet & Mobile Header & Popovers */
@media (max-width: 900px) {
  .hub-container {
    height: calc(100vh - 56px);
    height: calc(100dvh - 56px);
  }

  .topbar {
    padding: 0 16px;
  }

  .workspace-panel {
    border-right: none;
    padding: 24px 20px;
  }
}

/* Mobile Devices (<= 768px): Responsive Popovers & Fullscreen Settings Modal */
@media (max-width: 768px) {
  /* Prevent topbar and wraps from creating rogue containing blocks on mobile */
  .topbar {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #111111 !important;
    height: 52px !important;
    padding: 0 14px !important;
    gap: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    contain: none !important;
    perspective: none !important;
  }
  [data-theme="light"] .topbar {
    background: #ffffff !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .topbar-left .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    text-decoration: none !important;
  }

  .topbar-left .logo img {
    height: 22px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .topbar-left .logo-product {
    display: none !important;
  }

  .topbar-search {
    flex: 1 !important;
    min-width: 80px !important;
    margin: 0 4px !important;
  }

  .topbar-search .search-wrapper {
    width: 100% !important;
  }

  .topbar-search .search-input {
    height: 34px !important;
    font-size: 12.5px !important;
    padding: 0 10px 0 28px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
  }

  [data-theme="light"] .topbar-search .search-input {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #202124 !important;
  }

  .topbar-search .search-icon {
    left: 9px !important;
    width: 13px !important;
    height: 13px !important;
  }

  .topbar-right {
    gap: 4px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    contain: none !important;
    perspective: none !important;
  }

  .topbar-right .btn-icon {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
  }

  .user-avatar-btn {
    width: 30px !important;
    height: 30px !important;
  }

  .workspace-header {
    display: none !important;
  }

  .workspace-panel {
    padding: 12px 18px 32px 18px !important;
    gap: 0 !important;
  }

  .workspace-apps-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 4px 0 24px 0 !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .category-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 12px 10px 12px 10px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  }

  [data-theme="light"] .category-section {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  .category-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    padding: 0 4px 6px 4px !important;
    margin: 0 0 4px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 0.9 !important;
  }

  [data-theme="light"] .category-title {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
  }

  .apps-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px 4px !important;
    width: 100% !important;
    justify-items: center !important;
  }

  .app-icon-card {
    width: 100% !important;
    max-width: 78px !important;
    min-height: 84px !important;
    padding: 4px 2px 2px 2px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .app-icon-card:active {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(0.95) !important;
  }

  [data-theme="light"] .app-icon-card:active {
    background: rgba(0, 0, 0, 0.05) !important;
  }

  .app-squircle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  [data-theme="light"] .app-squircle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .app-squircle img.app-icon-img,
  .app-icon-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 13px !important;
    object-fit: contain !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    filter: none !important;
  }

  .app-icon-card:hover .app-squircle,
  .app-icon-card:active .app-squircle {
    transform: none !important;
    filter: none !important;
  }

  .app-label,
  .app-name {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin-top: 4px !important;
    max-width: 76px !important;
    text-align: center !important;
    color: var(--text1) !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 24px !important;
  }

  .user-menu-wrap,
  .launcher-wrap {
    position: static !important;
    transform: none !important;
    -webkit-transform: none !important;
    filter: none !important;
    contain: none !important;
    perspective: none !important;
  }

  /* Fixed Popovers: centered and strictly bounds-checked within screen (never exceed right side) */
  #waffleDropdown,
  .launcher-dropdown,
  #userDropdown,
  .user-dropdown {
    position: fixed !important;
    top: 58px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100vw - 16px) !important;
    max-width: 380px !important;
    max-height: calc(100dvh - 72px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 28px !important;
    padding: 14px 12px 14px 12px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8) !important;
    z-index: 1000000 !important;
    transform-origin: top center !important;
  }

  .google-popover-card {
    border-radius: 22px !important;
    padding: 12px 6px 10px 6px !important;
    margin-bottom: 10px !important;
  }

  .google-popover-header {
    padding: 2px 8px 8px 8px !important;
  }

  .google-popover-title {
    font-size: 14px !important;
  }

  #userDropdown,
  .user-dropdown {
    max-width: 350px !important;
  }

  /* Native Mobile Settings Modal (No oversized shells, no floating gaps) */
  .settings-modal {
    flex-direction: column !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .settings-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 16px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--text1) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 100 !important;
    -webkit-tap-highlight-color: transparent !important;
    transition: transform 0.15s ease, background 0.15s ease !important;
  }

  .settings-modal-close:active {
    transform: scale(0.92) !important;
    background: rgba(255, 255, 255, 0.16) !important;
  }

  [data-theme="light"] .settings-modal-close {
    background: rgba(0, 0, 0, 0.06) !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    color: #202124 !important;
  }

  [data-theme="light"] .settings-modal-close:active {
    background: rgba(0, 0, 0, 0.12) !important;
  }

  .settings-sidebar {
    width: 100% !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 16px 12px 16px !important;
    flex-shrink: 0 !important;
    background: #141518 !important;
  }

  [data-theme="light"] .settings-sidebar {
    background: #f8f9fa !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
  }

  .settings-sidebar-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 36px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    padding-right: 48px !important;
  }

  .settings-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
  }

  .settings-subtitle {
    display: none !important;
  }

  .settings-nav {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 4px !important;
    margin: 0 !important;
  }

  .settings-nav::-webkit-scrollbar {
    display: none;
  }

  .settings-nav-btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
    white-space: nowrap !important;
    border-radius: 8px !important;
    flex-shrink: 0 !important;
  }

  .settings-content {
    flex: 1 !important;
    padding: 16px 14px 44px 14px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .settings-pane-header {
    margin-bottom: 14px !important;
    padding-bottom: 8px !important;
  }

  .settings-pane-header h3 {
    font-size: 17px !important;
  }

  .settings-pane-header p {
    font-size: 11.5px !important;
  }

  .settings-card {
    padding: 14px 12px !important;
    border-radius: 12px !important;
    margin-bottom: 12px !important;
  }

  .settings-info-row {
    padding: 10px 0 !important;
    font-size: 12px !important;
  }

  .settings-info-label {
    font-size: 11px !important;
  }

  .settings-info-val {
    font-size: 12px !important;
  }

  #paneSecurity div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

/* Small Screens (<= 520px): Lightweight Topbar with Search, Badges, Cards */
@media (max-width: 520px) {
  .topbar {
    padding: 0 14px !important;
    height: 52px !important;
    gap: 5px !important;
  }

  .topbar-left {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
  }

  .topbar-left .logo {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    text-decoration: none !important;
  }

  .topbar-left .logo img {
    height: 22px !important;
    width: auto !important;
    max-width: 90px !important;
    object-fit: contain !important;
    display: block !important;
  }

  .topbar-left .logo-product {
    display: none !important;
  }

  .topbar-search {
    flex: 1 !important;
    min-width: 75px !important;
    margin: 0 2px !important;
  }

  .topbar-search .search-wrapper {
    width: 100% !important;
  }

  .topbar-search .search-input {
    height: 34px !important;
    font-size: 12px !important;
    padding: 0 8px 0 26px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
  }

  [data-theme="light"] .topbar-search .search-input {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #202124 !important;
  }

  .topbar-search .search-icon {
    left: 8px !important;
    width: 12px !important;
    height: 12px !important;
  }

  .topbar-right {
    gap: 3px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  .topbar-right .btn-icon {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center !important;
    justify-content: center !important;
  }

  .user-avatar-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .workspace-header {
    display: none !important;
  }

  .workspace-panel {
    padding: 12px 18px 32px 18px !important;
    gap: 0 !important;
  }

  .workspace-apps-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 4px 0 24px 0 !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    width: 100% !important;
  }

  .category-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 12px 10px 12px 10px !important;
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  }

  [data-theme="light"] .category-section {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
  }

  .category-title {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.2px !important;
    padding: 0 4px 6px 4px !important;
    margin: 0 0 4px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    opacity: 0.9 !important;
  }

  [data-theme="light"] .category-title {
    border-bottom-color: rgba(0, 0, 0, 0.05) !important;
  }

  .apps-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px 4px !important;
    width: 100% !important;
    justify-items: center !important;
  }

  .app-icon-card {
    width: 100% !important;
    max-width: 78px !important;
    min-height: 84px !important;
    padding: 4px 2px 2px 2px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .app-icon-card:active {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(0.95) !important;
  }

  [data-theme="light"] .app-icon-card:active {
    background: rgba(0, 0, 0, 0.05) !important;
  }

  .app-squircle {
    width: 52px !important;
    height: 52px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  [data-theme="light"] .app-squircle {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .app-squircle img.app-icon-img,
  .app-icon-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 13px !important;
    object-fit: contain !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25) !important;
    filter: none !important;
  }

  .app-icon-card:hover .app-squircle,
  .app-icon-card:active .app-squircle {
    transform: none !important;
    filter: none !important;
  }

  .app-label,
  .app-name {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 1.15 !important;
    margin-top: 4px !important;
    max-width: 76px !important;
    text-align: center !important;
    color: var(--text1) !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 24px !important;
  }

  /* Waffle popup items & launcher grid */
  .google-apps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px 6px !important;
    padding: 4px 2px !important;
  }

  .google-app-tile,
  .waffle-dropdown-item {
    padding: 10px 4px 8px !important;
    min-height: 98px !important;
    border-radius: 14px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease, transform 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .google-app-tile:active,
  .waffle-dropdown-item:active {
    background: rgba(255, 255, 255, 0.08) !important;
    transform: scale(0.96) !important;
  }

  .google-icon-box {
    width: 58px !important;
    height: 58px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .google-icon-box svg {
    width: 30px !important;
    height: 30px !important;
  }

  .waffle-icon-squircle {
    width: 58px !important;
    height: 58px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .waffle-icon-img {
    width: 58px !important;
    height: 58px !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    filter: none !important;
    object-fit: contain !important;
  }

  .google-tile-label,
  .waffle-item-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 6px !important;
    max-width: 98px !important;
    line-height: 1.25 !important;
    text-align: center !important;
    color: #e8eaed !important;
  }

  /* Settings Modal mobile card layouts */
  .settings-photo-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .settings-form-field > div {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .settings-form-field button {
    width: 100% !important;
    justify-content: center !important;
  }

  #paneSecurity .settings-card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  #paneSecurity .settings-card div[style*="justify-content: space-between"] {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  #signOutAllDevicesBtn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  #panePreferences .settings-card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  #prefSignOutBtn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Restricted Access Modal Mobile */
  .restricted-modal {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 18px 14px !important;
    margin: 0 12px !important;
    border-radius: 18px !important;
  }

  #requestAccessFormBody div[style*="justify-content: flex-end"] {
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }

  #requestAccessFormBody button {
    width: 100% !important;
    justify-content: center !important;
  }

  /* Crop Modal Mobile */
  .crop-modal-container {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 18px 14px !important;
    border-radius: 18px !important;
  }

  .crop-canvas-wrapper {
    width: 250px !important;
    height: 250px !important;
  }

  .crop-circle-overlay {
    top: 35px !important;
    left: 35px !important;
    width: 180px !important;
    height: 180px !important;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  #adminConsoleBadge {
    display: none !important;
  }

  .logo-product {
    display: none !important;
  }

  .apps-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px 4px !important;
  }

  .app-icon-card {
    max-width: 100px !important;
    min-height: 98px !important;
    padding: 8px 2px 6px !important;
  }

  .app-squircle {
    width: 56px !important;
    height: 56px !important;
    border-radius: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .app-squircle img.app-icon-img,
  .app-icon-img {
    width: 56px !important;
    height: 56px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    filter: none !important;
  }

  .app-label,
  .app-name {
    font-size: 11px !important;
    max-width: 88px !important;
    white-space: normal !important;
    word-break: break-word !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 26px !important;
  }

  .google-icon-box,
  .waffle-icon-squircle,
  .waffle-icon-img {
    width: 52px !important;
    height: 52px !important;
    border-radius: 12px !important;
  }

  .google-icon-box svg {
    width: 26px !important;
    height: 26px !important;
  }

  .google-tile-label,
  .waffle-item-name {
    font-size: 11px !important;
    max-width: 88px !important;
  }
}

/* Ultra-Compact Phones (<= 340px) */
@media (max-width: 340px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 8px !important;
  }
}


