/* ==========================================================================
   ANUMIXTOOLS - PREMIUM BLACK + GOLD + CREAM DESIGN SYSTEM
   ========================================================================== */

:root {
  /* Brand Color Palette - Light Mode (Cream & Gold) */
  --bg-main: #FAF7F0;
  --bg-surface: #FFFFFF;
  --bg-subtle: #F4EFE6;
  
  --primary-black: #111111;
  --gold: #D4A72C;
  --gold-light: #E8C968;
  --gold-subtle: rgba(212, 167, 44, 0.12);
  --gold-border: rgba(212, 167, 44, 0.4);
  
  --text-main: #111111;
  --dark-gray: #374151;
  --text-muted: #6B7280;
  
  --border-color: #E5E1D8;
  --border-hover: #D4A72C;

  --shadow-sm: 0 2px 4px rgba(17, 17, 17, 0.03);
  --shadow-md: 0 8px 24px -4px rgba(17, 17, 17, 0.05);
  --shadow-lg: 0 16px 36px -8px rgba(17, 17, 17, 0.08);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Dark Mode Adaptation (Luxury Technology Product) */
[data-theme="dark"] {
  --bg-main: #111111;
  --bg-surface: #1A1A1A;
  --bg-subtle: #242424;
  
  --primary-black: #FFFFFF;
  --gold: #D4A72C;
  --gold-light: #E8C968;
  --gold-subtle: rgba(212, 167, 44, 0.16);
  --gold-border: rgba(212, 167, 44, 0.5);

  --text-main: #FFFFFF;
  --dark-gray: #E5E7EB;
  --text-muted: #A1A1AA;
  
  --border-color: #2A2A2A;
  --border-hover: #D4A72C;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-border) var(--bg-subtle);
  overflow-x: hidden;
  max-width: 100%;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: rgba(212, 167, 44, 0.4);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Gold Selection Highlight */
::selection {
  background: rgba(212, 167, 44, 0.35);
  color: var(--text-main);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

/* Accessible Focus Rings */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.75rem;
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.btn-gold {
  background-color: var(--gold);
  color: #111111;
  border: 1px solid var(--gold);
  box-shadow: 0 4px 12px rgba(212, 167, 44, 0.25);
}

.btn-gold:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 167, 44, 0.35);
}

.btn-dark {
  background-color: var(--primary-black);
  color: var(--bg-main);
  border: 1px solid var(--primary-black);
}

.btn-dark:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.nav-kbd {
  font-size: 0.7rem;
  font-family: monospace;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--text-muted);
  margin-left: 0.35rem;
  display: none;
}

@media (min-width: 768px) {
  .nav-kbd {
    display: inline-block;
  }
}

/* ==========================================================================
   1. NAVBAR
   ========================================================================== */
/* Floating Glass Pill Navbar (Matching Reference Screenshot) */
.navbar-header {
  position: sticky;
  top: 14px;
  z-index: 100;
  background: transparent;
  padding: 0 1rem;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem 0.45rem 1.5rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(212, 167, 44, 0.35);
  border-radius: var(--radius-full);
  box-shadow: 0 16px 36px -8px rgba(17, 17, 17, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .nav-container {
  background: rgba(26, 26, 26, 0.75);
  border: 1px solid rgba(212, 167, 44, 0.3);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}

.brand-logo-img {
  height: 44px;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease, filter 0.25s;
}

[data-theme="dark"] .brand-logo-img {
  filter: brightness(1.1) drop-shadow(0 2px 6px rgba(212, 167, 44, 0.35));
}

[data-theme="light"] .brand-logo-img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
}

.brand-logo-img:hover {
  transform: scale(1.04);
}

.footer-logo-img {
  height: 46px;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 2px 8px rgba(212, 167, 44, 0.2));
}

.brand-accent {
  color: var(--gold);
}

.desktop-nav {
  display: none;
  position: relative;
  align-items: center;
  gap: 0.35rem;
  padding: 4px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-full);
}

[data-theme="dark"] .desktop-nav {
  background: rgba(255, 255, 255, 0.06);
}

@media (min-width: 900px) {
  .desktop-nav {
    display: flex;
  }
}

.nav-link {
  position: relative;
  z-index: 2;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.25s ease;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: #111111;
}

/* Water Drop Liquid Sliding Indicator */
.nav-sliding-indicator {
  position: absolute;
  top: 4px;
  left: 0;
  height: calc(100% - 8px);
  width: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: var(--radius-full);
  box-shadow: 0 4px 16px rgba(212, 167, 44, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
              width 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease;
  opacity: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Circular Theme Toggle Button Pill (Matching Screenshot) */
.circle-theme-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .circle-theme-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.circle-theme-btn:hover {
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Primary Gold Pill Action Button (Desktop Only) */
.nav-cta-btn {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111111;
  background-color: var(--gold);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(212, 167, 44, 0.3);
  transition: var(--transition);
}

@media (min-width: 900px) {
  .nav-cta-btn {
    display: inline-flex;
  }
}

.nav-cta-btn:hover {
  background-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(212, 167, 44, 0.4);
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.desktop-only-text {
  display: none;
}

@media (min-width: 640px) {
  .desktop-only-text {
    display: inline;
  }
}

.sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: inline-block;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
  cursor: pointer;
}

@media (min-width: 900px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: var(--bg-surface);
  z-index: 200;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease;
  padding: 1.5rem;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.drawer-close-btn {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.mobile-nav-item:hover {
  background-color: var(--gold-subtle);
  color: var(--gold);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 190;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 0 2rem 0;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-section {
    padding: 4.5rem 0 3.5rem 0;
  }
}

.gold-ambient-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gold-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  background: var(--gold);
}

.gold-circle-1 {
  width: 250px;
  height: 250px;
  top: -50px;
  left: -50px;
}

.gold-circle-2 {
  width: 280px;
  height: 280px;
  bottom: -40px;
  right: -40px;
}

.gold-circle-3 {
  width: 160px;
  height: 160px;
  top: 40%;
  left: 45%;
}

.hero-glass-panel {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
}

.hero-graphic-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-3d-graphic {
  width: 100%;
  max-width: 380px;
  height: auto;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

@media (min-width: 900px) {
  .hero-container {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  background-color: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.badge-gold-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.hero-title {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 3.15rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.65rem;
  }
}

.hero-gold-text {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .hero-subtitle {
    font-size: 1.125rem;
  }
}

.hero-search-box {
  position: relative;
  max-width: 520px;
  margin-top: 0.5rem;
}

/* Official 3D AnumixTools Utility Graphic Visual */
.hero-graphic-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
}

.hero-3d-graphic {
  width: 100%;
  max-width: 440px;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-3d-graphic:hover {
  transform: translateY(-5px) scale(1.02);
}

.abstract-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .abstract-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.abstract-node {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.abstract-node:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  background-color: var(--gold-subtle);
}

.node-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 0.35rem;
}

.node-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-main);
}

/* ==========================================================================
   3. GLOBAL SEARCH SECTION
   ========================================================================== */
.search-section {
  padding: 1rem 0 2.5rem 0;
}

.search-card {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.search-input-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-surface);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.4rem 0.5rem 0.4rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.search-input-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px var(--gold-subtle), var(--shadow-md);
}

.search-icon {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

.search-input-box input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-main);
  padding: 0.6rem 0;
}

.search-input-box input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 0 0.5rem;
}

/* Live Search Dropdown */
.search-dropdown-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 340px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.search-dropdown-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background-color: var(--gold-subtle);
}

.search-result-icon {
  font-size: 1.35rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.search-result-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
}

.search-result-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   4. SECTIONS COMMON STYLES
   ========================================================================== */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 4rem 0;
  }
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem auto;
}

.section-gold-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Responsive Cards Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 580px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Minimal Tool Card */
.tool-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.tool-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.popular-card {
  border-color: rgba(212, 167, 44, 0.4);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.tool-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid var(--border-color);
}

.popular-star-badge {
  font-size: 0.725rem;
  font-weight: 700;
  color: #111111;
  background-color: var(--gold);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
}

.tool-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  line-height: 1.3;
}

.tool-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tool-card-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.tool-card:hover .tool-card-action {
  text-decoration: underline;
}

/* ==========================================================================
   5. CATEGORIES SECTION
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
}

.category-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.cat-emoji {
  font-size: 1.85rem;
}

.cat-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.cat-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.cat-tool-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.cat-tool-chips span {
  font-size: 0.75rem;
  font-weight: 500;
  background-color: var(--bg-subtle);
  color: var(--dark-gray);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.cat-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gold);
}

/* ==========================================================================
   6. TRUST & PRIVACY SECTION
   ========================================================================== */
.privacy-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .privacy-card {
    flex-direction: row;
    text-align: left;
    padding: 2.5rem 3rem;
  }
}

.privacy-shield-icon {
  width: 80px;
  height: 80px;
  min-width: 80px;
  border-radius: var(--radius-full);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.privacy-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.privacy-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 650px;
  line-height: 1.6;
}

/* ==========================================================================
   7. WHY ANUMIXTOOLS SECTION
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.why-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.why-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.why-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   8. FOOTER (#111111 Dark Footer)
   ========================================================================== */
.site-footer {
  background-color: #111111;
  color: #FFFFFF;
  border-top: 1px solid #222222;
  margin-top: auto;
  padding-top: 3.5rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: 1.3fr 2fr;
  }
}

.light-brand {
  color: #FFFFFF;
}

.footer-tagline {
  font-size: 0.9rem;
  color: #A1A1AA;
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 580px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-column a {
  font-size: 0.875rem;
  color: #A1A1AA;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid #222222;
  padding: 1.35rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #71717A;
}

/* ==========================================================================
   MULTI-PAGE SPA VIEWS & BANNER
   ========================================================================== */
.page-view {
  display: none;
  animation: fadeIn 0.25s ease-in-out;
}

.page-view.active {
  display: block;
}

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

.page-hero-banner {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0 2.5rem 0;
  text-align: center;
}

.page-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
}

.tools-filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.filter-tab {
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--dark-gray);
  transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #111111;
}

.tools-page-search {
  max-width: 540px;
  margin: 0 auto 2.5rem auto;
}

.tools-page-search input {
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
}

.tools-page-search input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

/* ==========================================================================
   INTERACTIVE TOOL MODAL DIALOG
   ========================================================================== */
.tool-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.tool-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(17, 17, 17, 0.7);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.25s ease;
  z-index: 10;
}

.tool-modal.active .modal-card {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-subtle);
}

.modal-title-area {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.modal-icon {
  font-size: 1.4rem;
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close-btn {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* Tool Forms & Controls */
.tool-ui-group {
  margin-bottom: 1.15rem;
}

.tool-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.tool-input, .tool-select, .tool-textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.tool-input:focus, .tool-select:focus, .tool-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-subtle);
  background-color: var(--bg-surface);
}

.tool-textarea {
  min-height: 130px;
  resize: vertical;
}

.tool-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.result-box {
  background-color: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  text-align: center;
  margin-top: 1.15rem;
}

.result-value {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--gold);
  font-family: var(--font-heading);
}

.result-desc {
  font-size: 0.875rem;
  color: var(--dark-gray);
  margin-top: 0.25rem;
}

/* Dropzone */
.file-dropzone {
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  text-align: center;
  background-color: var(--bg-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.file-dropzone:hover {
  border-color: var(--gold);
  background-color: var(--gold-subtle);
}

.dropzone-icon {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.925rem;
  font-weight: 600;
}

.dropzone-hint {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.stat-card {
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  text-align: center;
}

.stat-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
}

/* ==========================================================================
   GOLD AMBIENT CIRCLES & GLASSMORPHISM SYSTEM (IMPECCABLE & STITCH SKILL)
   ========================================================================== */

/* Floating Gold Ambient Background Circles */
.hero-section {
  position: relative;
  overflow: hidden;
}

.gold-ambient-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.gold-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.35;
  transition: opacity 0.5s;
}

[data-theme="dark"] .gold-circle {
  opacity: 0.25;
}

.gold-circle-1 {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #D4A72C 0%, #E8C968 60%, transparent 100%);
  top: -50px;
  left: 10%;
  animation: floatGoldCircle1 16s infinite ease-in-out alternate;
}

.gold-circle-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #B8860B 0%, #D4A72C 65%, transparent 100%);
  bottom: -60px;
  right: 12%;
  animation: floatGoldCircle2 20s infinite ease-in-out alternate;
}

.gold-circle-3 {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #E8C968 0%, #D4A72C 70%, transparent 100%);
  top: 30%;
  left: 45%;
  animation: floatGoldCircle3 13s infinite ease-in-out alternate;
}

@keyframes floatGoldCircle1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, 35px) scale(1.15); }
  100% { transform: translate(-40px, 60px) scale(0.95); }
}

@keyframes floatGoldCircle2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -40px) scale(1.12); }
  100% { transform: translate(50px, -60px) scale(0.9); }
}

@keyframes floatGoldCircle3 {
  0% { transform: translate(0, 0) scale(0.9); }
  50% { transform: translate(-50px, 50px) scale(1.2); }
  100% { transform: translate(60px, -30px) scale(1); }
}

/* Master Frosted Hero Glass Panel (Compact, Centered, Not Full Spread Out) */
.hero-glass-panel {
  position: relative;
  z-index: 2;
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(212, 167, 44, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(17, 17, 17, 0.08), 
              0 0 0 1px rgba(255, 255, 255, 0.8) inset,
              0 1px 0 0 rgba(255, 255, 255, 0.9) inset;
  transition: var(--transition);
}

@media (min-width: 640px) {
  .hero-glass-panel {
    padding: 3rem 2.25rem;
  }
}

[data-theme="dark"] .hero-glass-panel {
  background: rgba(26, 26, 26, 0.65);
  border: 1px solid rgba(212, 167, 44, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55), 
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Standalone Detached Glass Tagline Badge (Positioned on top of Animated Hero Background) */
.hero-tagline-wrapper {
  position: relative;
  z-index: 3;
  margin: 0 0 1.75rem 0;
  display: flex;
  justify-content: center;
}

.standalone-glass-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: rgba(212, 167, 44, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 167, 44, 0.35);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px -5px rgba(212, 167, 44, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
}

.standalone-glass-tagline:hover {
  transform: translateY(-2px);
  background: rgba(212, 167, 44, 0.2);
  box-shadow: 0 12px 30px -5px rgba(212, 167, 44, 0.3), inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="dark"] .standalone-glass-tagline {
  background: rgba(212, 167, 44, 0.16);
  border: 1px solid rgba(212, 167, 44, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tagline-text {
  font-family: var(--font-heading);
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.tagline-nav-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.tagline-nav-link:hover {
  color: var(--gold);
}

.tagline-divider {
  color: var(--gold);
  font-size: 0.75rem;
  opacity: 0.6;
}

/* Sub-Category Unit Tabs Styling */
.unit-subtabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.unit-tab {
  padding: 0.45rem 0.95rem;
  font-size: 0.825rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.unit-tab:hover, .unit-tab.active {
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
  box-shadow: 0 4px 12px rgba(212, 167, 44, 0.25);
}

/* Square Bento Grid for Categories Page */
.categories-square-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .categories-square-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-square-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.cat-square-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(229, 225, 216, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -10px rgba(17, 17, 17, 0.05);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cat-square-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 20px 40px -10px rgba(212, 167, 44, 0.3);
}

[data-theme="dark"] .cat-square-card {
  background: rgba(26, 26, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cat-sq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cat-sq-icon {
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 167, 44, 0.12);
  border: 1px solid rgba(212, 167, 44, 0.3);
  border-radius: 14px;
}

.cat-sq-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
}

.cat-sq-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.cat-sq-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cat-sq-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.cat-sq-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--gold);
  transition: transform 0.2s ease;
  display: inline-block;
}

.cat-square-card:hover .cat-sq-link {
  transform: translateX(4px);
}

/* Category Tools Animated In-Page Drawer */
.cat-tools-drawer {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(229, 225, 216, 0.9);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 15px 35px -10px rgba(17, 17, 17, 0.08);
}

.cat-tools-drawer.active {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="dark"] .cat-tools-drawer {
  background: rgba(26, 26, 26, 0.8);
  border-color: rgba(255, 255, 255, 0.14);
}

.cat-drawer-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.back-to-cats-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
}

.back-to-cats-btn:hover {
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
  transform: translateX(-3px);
  box-shadow: 0 6px 16px rgba(212, 167, 44, 0.3);
}

.back-arrow-icon {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.back-to-cats-btn:hover .back-arrow-icon {
  transform: translateX(-2px);
}

.cat-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cat-drawer-emoji {
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 167, 44, 0.14);
  border: 1px solid rgba(212, 167, 44, 0.35);
  border-radius: 16px;
}

.cat-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.cat-drawer-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
}

/* Site-Wide Glassmorphism Overlays Across All Cards & Sections */
.tool-card,
.category-card,
.privacy-card,
.why-card,
.hero-visual-card,
.search-input-box,
.page-hero-banner,
.search-dropdown-results,
.modal-card,
.abstract-node {
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid rgba(229, 225, 216, 0.8) !important;
  box-shadow: 0 10px 30px -10px rgba(17, 17, 17, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.tool-card:hover,
.category-card:hover,
.why-card:hover,
.abstract-node:hover {
  background: rgba(255, 255, 255, 0.88) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 15px 35px -10px rgba(212, 167, 44, 0.28), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
  transform: translateY(-3px) !important;
}

[data-theme="dark"] .tool-card,
[data-theme="dark"] .category-card,
[data-theme="dark"] .privacy-card,
[data-theme="dark"] .why-card,
[data-theme="dark"] .hero-visual-card,
[data-theme="dark"] .search-input-box,
[data-theme="dark"] .page-hero-banner,
[data-theme="dark"] .search-dropdown-results,
[data-theme="dark"] .modal-card,
[data-theme="dark"] .abstract-node {
  background: rgba(26, 26, 26, 0.72) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .tool-card:hover,
[data-theme="dark"] .category-card:hover,
[data-theme="dark"] .why-card:hover,
[data-theme="dark"] .abstract-node:hover {
  background: rgba(34, 34, 34, 0.85) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 15px 35px -10px rgba(212, 167, 44, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

/* ==========================================================================
   ADMIN PORTAL & FIREBASE AUTHENTICATION UI
   ========================================================================== */

/* Top Admin Bar */
.admin-bar {
  background: #0d0d0d;
  color: #f3f4f6;
  border-bottom: 1px solid rgba(212, 167, 44, 0.4);
  font-size: 0.82rem;
  padding: 0.45rem 0;
  position: relative;
  z-index: 1001;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-badge {
  background: rgba(212, 167, 44, 0.2);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.admin-user-email {
  color: #e5e7eb;
  font-weight: 500;
}

.admin-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-bar-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f3f4f6;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-bar-btn:hover {
  background: rgba(212, 167, 44, 0.25);
  border-color: var(--gold);
  color: #ffffff;
}

.admin-logout-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #fca5a5 !important;
}

/* Footer Bottom Flex & Admin Link */
.footer-bottom-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.admin-portal-link {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  transition: var(--transition);
  opacity: 0.7;
}

.admin-portal-link:hover {
  opacity: 1;
  color: var(--gold);
  background: var(--gold-subtle);
  border-color: var(--gold-border);
}

/* Admin Modals */
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.admin-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg), 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPopIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.admin-dashboard-card {
  max-width: 520px;
}

.admin-modal-body {
  padding: 1.5rem;
}

/* Tabs */
.admin-tabs {
  display: flex;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-bottom: 1.25rem;
  gap: 0.25rem;
}

.admin-tab-btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

/* Form Styles */
.admin-form-group {
  margin-bottom: 1.1rem;
  text-align: left;
}

.admin-form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.admin-form-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-main);
  transition: var(--transition);
  box-sizing: border-box;
}

.admin-form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--gold-subtle);
}

.pwd-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-input-wrap .admin-form-input {
  padding-right: 2.75rem;
}

.pwd-toggle-btn {
  position: absolute;
  right: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.65;
  transition: var(--transition);
  padding: 0.25rem;
}

.pwd-toggle-btn:hover {
  opacity: 1;
}

/* Buttons */
.admin-btn-primary {
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(135deg, var(--gold) 0%, #b88a1c 100%);
  color: #111111;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(212, 167, 44, 0.35);
  margin-top: 0.5rem;
}

.admin-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 167, 44, 0.5);
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.admin-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.admin-btn-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.admin-btn-google:hover {
  border-color: var(--gold);
  background: var(--bg-subtle);
  transform: translateY(-1px);
}

.admin-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-divider::before,
.admin-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.admin-divider span {
  padding: 0 0.75rem;
  letter-spacing: 0.05em;
}

.admin-footer-note {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* Alerts */
.admin-auth-alert {
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.1rem;
  animation: fadeIn 0.2s ease-in;
}

.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

.alert-success {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #22c55e;
}

/* Dashboard Console UI */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.admin-stat-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 0.75rem;
  text-align: center;
}

.admin-stat-card .stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-main);
}

.admin-stat-card .stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-active-text {
  color: #22c55e !important;
}

.admin-info-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.admin-info-box h4 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.admin-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .admin-info-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-info-row:last-child {
  border-bottom: none;
}

.info-label {
  color: var(--text-muted);
  font-weight: 500;
}

.info-val {
  color: var(--text-main);
  font-weight: 600;
}

.dash-code {
  font-family: monospace;
  font-size: 0.78rem;
  background: var(--bg-surface);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.badge-verified {
  color: #22c55e;
  font-weight: 600;
}

.admin-console-actions {
  display: flex;
  gap: 0.75rem;
}

.admin-console-actions button {
  flex: 1;
}

.admin-btn-danger {
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-btn-danger:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ==========================================================================
   LIVE CURRENCY CONVERTER COMPONENT STYLES
   ========================================================================== */
.currency-converter-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.curr-status-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
}

.curr-live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseLiveDot 2s infinite;
}

@keyframes pulseLiveDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.curr-status-text {
  font-family: var(--font-body);
  color: var(--text-muted);
}

.curr-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.curr-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.curr-chip:hover {
  background: var(--gold-subtle);
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

.curr-exchange-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: flex-end;
}

@media (max-width: 600px) {
  .curr-exchange-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.curr-field-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.curr-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.curr-val-input {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-heading);
}

.curr-select {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.65rem;
  cursor: pointer;
}

.curr-swap-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 0.25rem;
}

.curr-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease;
}

.curr-swap-btn:hover {
  background: var(--gold);
  color: #111111;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(212, 167, 44, 0.4);
}

.curr-result-panel {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.curr-main-res {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.2;
}

.curr-inverse-res {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}

.curr-calc-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INTERACTIVE TOOL MODAL DIALOG
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(212, 167, 44, 0.18);
  transform: scale(0.94) translateY(18px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
  z-index: 10;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.modal-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.modal-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #EF4444;
  color: #EF4444;
  transform: rotate(90deg);
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

/* ==========================================================================
   7. LUXURY CATEGORIES SQUARE BOXES & ANIMATED DRAWER
   ========================================================================== */
.categories-square-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.cat-square-box {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.cat-square-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: var(--transition);
}

.cat-square-box:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.7), 0 0 24px rgba(212, 167, 44, 0.16);
}

.cat-square-box:hover::before {
  opacity: 1;
}

.cat-square-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cat-square-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  transition: transform 0.25s ease;
}

.cat-square-box:hover .cat-square-icon-wrap {
  transform: scale(1.08) rotate(3deg);
  border-color: var(--gold);
}

.cat-square-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.cat-square-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.cat-square-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.cat-square-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.cat-square-chips span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  padding: 0.22rem 0.55rem;
  border-radius: var(--radius-sm);
}

.cat-square-footer {
  border-top: 1px solid var(--border-color);
  padding-top: 0.85rem;
}

.cat-square-btn {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform 0.2s ease;
}

.cat-square-box:hover .cat-square-btn {
  transform: translateX(4px);
}

/* Category Tools Animated Drawer */
.category-tools-drawer {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-md);
  animation: fadeInDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.cat-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 1rem;
}

.cat-drawer-back-btn {
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.cat-drawer-back-btn:hover {
  background: var(--gold);
  color: #111111;
  transform: translateX(-3px);
}

.cat-drawer-title-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cat-drawer-emoji {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  flex-shrink: 0;
}

.cat-drawer-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
}

.cat-drawer-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ==========================================================================
   8. LUXURY SITE FOOTER (UNIVERSAL ACROSS ALL PAGES)
   ========================================================================== */
.footer {
  background: #0d0e10;
  border-top: 1px solid var(--gold-border);
  padding-top: 3.5rem;
  margin-top: 4rem;
  position: relative;
  z-index: 10;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.3fr 2.7fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo img {
  height: 38px;
  width: auto;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 320px;
}

.footer-privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--gold);
  width: fit-content;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (max-width: 480px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-col a {
  font-size: 0.86rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-col a:hover {
  color: var(--gold);
  transform: translateX(3px);
}

.footer-meta-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.25rem;
}

/* Footer Bottom Strip */
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  background: #09090b;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--gold);
}

.back-to-top-btn {
  color: var(--gold) !important;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   9. SMART INVOICE GENERATOR STYLES (INVOIFY ENGINE)
   ========================================================================== */
.invoice-gen-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.invoice-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.invoice-actions-left, .invoice-actions-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.invoice-document {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: relative;
}

.inv-doc-header {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .inv-doc-header {
    grid-template-columns: 1fr;
  }
}

.inv-brand-box {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.inv-title-input {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  background: transparent;
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.4rem;
  width: 100%;
}

.inv-title-input:hover, .inv-title-input:focus {
  border-color: var(--gold-border);
  background: var(--gold-subtle);
}

.inv-sub-input {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  padding: 0.15rem 0.4rem;
  width: 100%;
}

.inv-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

@media (max-width: 480px) {
  .inv-meta-grid {
    grid-template-columns: 1fr;
  }
}

.inv-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.inv-meta-item label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.inv-meta-input, .inv-select {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.45rem 0.65rem;
  font-size: 0.88rem;
  font-family: inherit;
  transition: var(--transition);
}

.inv-meta-input:focus, .inv-select:focus {
  border-color: var(--gold);
  background: var(--bg-surface);
}

.inv-parties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .inv-parties-grid {
    grid-template-columns: 1fr;
  }
}

.inv-party-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.inv-party-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.inv-field-input {
  background: transparent;
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.3rem 0.5rem;
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
}

.inv-field-input:hover, .inv-field-input:focus {
  border-color: var(--gold-border);
  background: var(--bg-surface);
}

.inv-field-bold {
  font-weight: 700;
  font-size: 1rem;
}

.inv-field-textarea {
  background: transparent;
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
  font-family: inherit;
  resize: vertical;
  min-height: 48px;
  width: 100%;
}

.inv-field-textarea:hover, .inv-field-textarea:focus {
  border-color: var(--gold-border);
  background: var(--bg-surface);
}

.inv-items-section {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inv-table-responsive {
  overflow-x: auto;
}

.inv-items-table {
  width: 100%;
  border-collapse: collapse;
}

.inv-items-table th {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--gold-border);
  padding: 0.65rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: left;
}

.inv-items-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 0.5rem;
  vertical-align: middle;
}

.inv-item-row {
  transition: all 0.2s ease;
}

.inv-item-name, .inv-item-qty, .inv-item-rate {
  background: transparent;
  border: 1px dashed transparent;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.35rem 0.5rem;
  font-size: 0.88rem;
  font-family: inherit;
  width: 100%;
}

.inv-item-name:hover, .inv-item-name:focus,
.inv-item-qty:hover, .inv-item-qty:focus,
.inv-item-rate:hover, .inv-item-rate:focus {
  border-color: var(--gold-border);
  background: var(--bg-subtle);
}

.inv-delete-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.inv-delete-btn:hover {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.15);
}

.inv-add-item-btn {
  background: var(--gold-subtle);
  border: 1px dashed var(--gold-border);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: fit-content;
  transition: var(--transition);
}

.inv-add-item-btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #111;
}

.inv-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

@media (max-width: 768px) {
  .inv-footer-grid {
    grid-template-columns: 1fr;
  }
}

.inv-notes-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.inv-notes-textarea {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: inherit;
  padding: 0.75rem;
  resize: vertical;
  min-height: 110px;
  line-height: 1.5;
}

.inv-notes-textarea:focus {
  border-color: var(--gold);
  background: var(--bg-surface);
}

.inv-totals-box {
  background: var(--bg-subtle);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.inv-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.inv-total-row strong {
  color: var(--text-main);
  font-size: 0.95rem;
}

.inv-input-row {
  display: grid;
  grid-template-columns: 1.2fr 80px 1fr;
  gap: 0.5rem;
  align-items: center;
}

.inv-calc-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.25rem 0.45rem;
  font-size: 0.85rem;
  text-align: center;
}

.inv-calc-input:focus {
  border-color: var(--gold);
}

.inv-total-divider {
  height: 1px;
  background: var(--border-color);
  margin: 0.25rem 0;
}

.inv-grand-total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.inv-gold-total {
  font-family: var(--font-heading);
  font-size: 1.45rem !important;
  font-weight: 800;
  color: var(--gold) !important;
}

/* Print Specific Optimizations */
@media print {
  body * {
    visibility: hidden;
  }
  #invoiceDocument, #invoiceDocument * {
    visibility: visible;
  }
  #invoiceDocument {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    background: #fff !important;
    color: #000 !important;
  }
  .invoice-action-bar, .inv-delete-btn, .inv-add-item-btn {
    display: none !important;
  }
  .inv-title-input, .inv-gold-total {
    color: #B4871E !important;
  }
}

/* ==========================================================================
   10. SMART EXPENSE & BILL SPLITTER STYLES
   ========================================================================== */
.expense-splitter-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.split-mode-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.split-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.split-tab.active {
  background: var(--gold);
  color: #111;
  box-shadow: 0 2px 8px rgba(212, 167, 44, 0.3);
}

.split-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: var(--transition);
}

.split-step-card:hover {
  border-color: var(--gold-border);
}

.split-step-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.split-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.split-step-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

.split-step-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.split-stepper-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.split-stepper-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.split-stepper-btn:hover {
  background: var(--gold);
  color: #111;
  transform: scale(1.05);
}

.split-stepper-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.4rem 1.5rem;
  min-width: 140px;
}

.split-stepper-input {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  background: transparent;
  border: none;
  width: 60px;
  text-align: center;
}

.split-stepper-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.split-chips-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.split-chip-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.split-chip-btn:hover, .split-chip-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

.split-input-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .split-input-grid {
    grid-template-columns: 1fr;
  }
}

.split-field-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.split-currency-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
}

.split-curr-badge {
  position: absolute;
  left: 0.85rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  pointer-events: none;
}

.split-main-amount {
  padding-left: 2.25rem !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--text-main) !important;
}

.split-tip-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
}

@media (max-width: 640px) {
  .split-tip-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.split-tip-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.45rem 0.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
}

.split-tip-btn:hover, .split-tip-btn.active {
  border-color: var(--gold);
  background: var(--gold-subtle);
  color: var(--gold);
}

.split-members-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.split-member-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0.75rem;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
}

.split-member-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.split-member-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-subtle);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.split-member-paid-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.split-result-hero {
  background: linear-gradient(135deg, #18191E 0%, #111215 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 167, 44, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.split-hero-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.split-hero-main {
  text-align: center;
  padding: 0.5rem 0;
}

.split-hero-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.35rem;
}

.split-hero-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(212, 167, 44, 0.25);
}

.split-hero-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: inline-block;
}

.split-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
}

@media (max-width: 600px) {
  .split-breakdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.split-breakdown-col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.split-breakdown-col span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.split-breakdown-col strong {
  font-size: 0.95rem;
  color: var(--text-main);
}

.split-highlight-col strong {
  color: var(--gold);
  font-size: 1.05rem;
}

.split-settlement-box {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.split-settlement-title {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.split-settlement-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.split-settle-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.75rem;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.split-settle-arrow {
  color: var(--gold);
  font-size: 0.8rem;
}

.split-settle-amt {
  font-weight: 700;
  color: #10B981;
}

.split-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   11. ZERO-KNOWLEDGE ENCRYPTED PASSWORD VAULT & VIP CHECKOUT STYLES
   ========================================================================== */

/* Vault Container */
.vault-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Locked Card */
.vault-locked-card {
  background: linear-gradient(135deg, #18191E 0%, #111215 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.vault-shield-icon {
  font-size: 3rem;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}

.vault-locked-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.vault-locked-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.5;
  margin: 0;
}

.vault-master-input-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  align-items: center;
}

.vault-master-input {
  padding-right: 2.5rem !important;
  font-size: 1rem !important;
  text-align: center;
}

.vault-eye-btn {
  position: absolute;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
}

.vault-security-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  max-width: 460px;
}

/* Unlocked Top Bar */
.vault-unlocked-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.vault-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10B981;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.vault-bar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vault-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vault-search-row {
  display: flex;
  gap: 0.75rem;
}

.vault-category-chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.vault-cat-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.vault-cat-chip:hover, .vault-cat-chip.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

/* Accounts List & Cards */
.vault-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.vault-empty-box {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
}

.vault-account-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.vault-account-card:hover {
  border-color: var(--gold-border);
}

.vault-acc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vault-acc-title-group {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.vault-acc-icon {
  font-size: 1.35rem;
}

.vault-acc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.vault-acc-cat-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
  background: var(--gold-subtle);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-top: 0.15rem;
}

.vault-acc-actions {
  display: flex;
  gap: 0.35rem;
}

.vault-acc-fields {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.vault-acc-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.vault-field-lbl {
  color: var(--text-muted);
  width: 75px;
  flex-shrink: 0;
}

.vault-field-val {
  color: var(--text-main);
  font-weight: 600;
  flex: 1;
  word-break: break-all;
}

.vault-inline-pass {
  background: transparent;
  border: none;
  color: var(--gold);
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1;
  padding: 0;
  pointer-events: none;
}

.vault-copy-mini-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.vault-copy-mini-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.vault-link-val {
  color: var(--gold);
  text-decoration: none;
  font-size: 0.8rem;
  word-break: break-all;
}

.vault-acc-notes {
  border-top: 1px dashed var(--border-color);
  padding-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Password Generator Box */
.vault-gen-card {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.vault-gen-display-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.vault-gen-output {
  font-family: monospace;
  font-size: 1rem !important;
  color: var(--gold) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
}

/* Add Account Modal Overlay */
.vault-add-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.vault-add-content {
  background: var(--bg-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* VIP Premium Page & Checkout */
.premium-vip-card {
  border: 1px solid var(--gold-border) !important;
  background: linear-gradient(145deg, rgba(24, 25, 30, 0.95), rgba(17, 18, 21, 0.98)) !important;
}

.premium-hero-status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(212, 167, 44, 0.08);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.premium-status-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.checkout-modal-card {
  max-width: 540px !important;
}

.checkout-plan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(212, 167, 44, 0.15) 0%, rgba(212, 167, 44, 0.05) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.checkout-plan-badge {
  font-size: 0.65rem;
  font-weight: 800;
  color: #111;
  background: var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  display: inline-block;
  margin-bottom: 0.25rem;
}

.checkout-plan-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.checkout-plan-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.2rem 0 0 0;
}

.checkout-price-tag {
  text-align: right;
}

.checkout-price-amount {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.checkout-price-cycle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.checkout-easypaisa-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkout-ep-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-size: 0.85rem;
}

.checkout-ep-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 0.5rem;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-color);
}

@media (max-width: 500px) {
  .checkout-ep-grid {
    grid-template-columns: 1fr;
  }
}

.checkout-ep-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.checkout-ep-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.checkout-ep-item strong {
  font-size: 0.85rem;
}

.checkout-trx-input {
  font-family: monospace;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--gold) !important;
}

.checkout-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #F59E0B;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
}

/* ==========================================================================
   12. GEMINI & AI WATERMARK REMOVER (PICTURE & VIDEO) STYLES
   ========================================================================== */
.wm-remover-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wm-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.75rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.wm-mode-tabs {
  display: flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.wm-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.wm-tab-btn.active {
  background: var(--gold);
  color: #111;
  box-shadow: 0 2px 8px rgba(212, 167, 44, 0.3);
}

.wm-dropzone {
  border: 2px dashed var(--gold-border);
  background: linear-gradient(135deg, rgba(212, 167, 44, 0.04) 0%, rgba(20, 21, 24, 0.95) 100%);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  transition: var(--transition);
}

.wm-dropzone:hover, .wm-dropzone.dragover {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 167, 44, 0.1) 0%, rgba(20, 21, 24, 0.95) 100%);
  transform: translateY(-2px);
}

.wm-drop-icon {
  font-size: 3rem;
}

.wm-drop-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.wm-drop-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 440px;
  line-height: 1.5;
  margin: 0;
}

.wm-badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

.wm-feature-badge {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.wm-workspace {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.wm-control-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.wm-presets-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.wm-preset-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
}

.wm-preset-btn:hover, .wm-preset-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-subtle);
}

.wm-canvas-wrap {
  background: #000;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wm-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.wm-canvas-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}

.wm-canvas-center {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 520px;
  overflow: auto;
}

.wm-main-canvas {
  max-width: 100%;
  max-height: 480px;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.wm-video-player-wrap {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gold-border);
}

.wm-video-overlay-box {
  position: absolute;
  border: 2px dashed #EF4444;
  background: rgba(239, 68, 68, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.wm-video-overlay-box span {
  font-size: 0.65rem;
  color: #FFF;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-weight: 700;
}

.wm-actions-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ==========================================================================
   13. ANDROID APK BUTTON & SPONSOR ADS BANNER STYLES
   ========================================================================== */
.apk-nav-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #38BDF8;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  transition: var(--transition);
}

.apk-nav-btn:hover {
  background: #38BDF8;
  color: #000;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.sponsor-slot-container {
  max-width: 1100px;
  margin: 0.5rem auto 0 auto;
  padding: 0 1rem;
}

.sponsor-top-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(20, 21, 24, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.sponsor-top-banner:hover {
  border-color: #10B981;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
}

.sponsor-badge-tag {
  background: #10B981;
  color: #000;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.sponsor-top-img {
  width: 65px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-top-title {
  font-size: 0.85rem;
  color: var(--text-main);
}

.sponsor-top-title strong {
  color: #10B981;
}

.sponsor-infeed-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(20, 21, 24, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.sponsor-infeed-card:hover {
  border-color: #10B981;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.2);
}

.sponsor-infeed-img-wrap {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 0.75rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsor-infeed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.sponsor-infeed-card:hover .sponsor-infeed-img {
  transform: scale(1.05);
}

.sponsor-footer-container {
  max-width: 1100px;
  margin: 1rem auto;
}

.sponsor-footer-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.6rem 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.sponsor-footer-card:hover {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
}

.sponsor-footer-img {
  width: 70px;
  height: 35px;
  object-fit: cover;
  border-radius: 4px;
}

.sponsor-footer-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sponsor-footer-title strong {
  color: #10B981;
}

/* ==========================================================================
   14. LIVE CAMERA QR & BARCODE SCANNER STYLES
   ========================================================================== */
.qr-scanner-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.qr-video-viewport {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 280px;
  margin: 0 auto;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.qr-video-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.qr-viewfinder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 190px;
  height: 190px;
  pointer-events: none;
}

.qr-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: #38BDF8;
  border-style: solid;
}

.qr-top-left {
  top: 0;
  left: 0;
  border-width: 3px 0 0 3px;
  border-top-left-radius: 6px;
}

.qr-top-right {
  top: 0;
  right: 0;
  border-width: 3px 3px 0 0;
  border-top-right-radius: 6px;
}

.qr-bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 3px 3px;
  border-bottom-left-radius: 6px;
}

.qr-bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 3px 3px 0;
  border-bottom-right-radius: 6px;
}

.qr-laser-line {
  position: absolute;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #38BDF8 50%, transparent 100%);
  box-shadow: 0 0 10px #38BDF8, 0 0 18px #38BDF8;
  animation: qrLaserScan 2s ease-in-out infinite alternate;
}

@keyframes qrLaserScan {
  0% {
    top: 5%;
  }
  100% {
    top: 95%;
  }
}

.qr-camera-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.qr-tool-btn {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.qr-tool-btn:hover {
  background: #38BDF8;
  color: #000;
  border-color: #38BDF8;
}

.qr-camera-status-msg {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

.qr-result-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(20, 21, 24, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-top: 0.75rem;
  animation: slideUpFade 0.3s ease;
}

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

.qr-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.qr-type-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.qr-content-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text-main);
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
}

.qr-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

.qr-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   15. ISLAMIC ZAKAT CALCULATOR STYLES
   ========================================================================== */
.zakat-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.zakat-settings-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.zakat-nisab-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.zakat-eligibility-pill {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  border: 1px solid transparent;
}

.pill-eligible {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.4);
}

.pill-ineligible {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border-color: rgba(245, 158, 11, 0.4);
}

.zakat-sections-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.zakat-group-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  transition: var(--transition);
}

.zakat-group-card:hover {
  border-color: var(--border-hover);
}

.zakat-debt-card {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.02);
}

.zakat-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.zakat-icon {
  font-size: 1.1rem;
}

.zakat-group-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.zakat-group-subtotal {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold);
}

.zakat-inputs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.zakat-result-container {
  background: linear-gradient(135deg, rgba(212, 167, 44, 0.06) 0%, rgba(20, 21, 24, 0.95) 100%);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.zakat-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.zakat-stat-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
}

.zakat-stat-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}

.zakat-stat-value {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.zakat-final-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: var(--transition);
}

.zakat-final-tag {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-transform: uppercase;
}

.zakat-final-amount {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--gold);
  margin: 0.35rem 0;
  text-shadow: 0 0 25px rgba(212, 167, 44, 0.3);
}

.zakat-final-status-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 480px;
  margin: 0 auto;
}

.zakat-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   16. UNIVERSAL HD VIDEO & PHOTO DOWNLOADER STYLES
   ========================================================================== */
.media-dl-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.media-dl-input-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.media-input-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.5rem;
  margin-top: 0.4rem;
  transition: var(--transition);
}

.media-input-bar:focus-within {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.media-platform-badge {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.media-input-field {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem !important;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
}

.media-paste-btn {
  padding: 0.45rem 0.85rem !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .media-input-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.5rem;
  }
  .media-input-field {
    min-width: 100% !important;
    order: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-top: 0.4rem !important;
  }
  .media-platform-badge {
    order: 1;
  }
  .media-paste-btn {
    order: 1;
    margin-left: auto;
  }
}

.media-supported-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.platform-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.media-result-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.06) 0%, rgba(20, 21, 24, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: slideUpFade 0.3s ease;
}

.media-preview-header {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.media-thumb-wrap {
  position: relative;
  width: 160px;
  height: 100px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

.media-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #FFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.media-meta-wrap {
  flex: 1;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.media-type-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #EF4444;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.media-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-quality-badge {
  font-size: 0.8rem;
  color: #10B981;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.media-options-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-options-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}

.media-options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.media-opt-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}

.media-opt-card:hover {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
}

.media-opt-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.media-opt-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.media-opt-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.media-dl-btn {
  padding: 0.45rem 1rem !important;
  font-size: 0.85rem !important;
  white-space: nowrap;
}

/* ==========================================================================
   17. MOBILE DRAWER & RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Hamburger Button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger-btn:hover {
  border-color: var(--gold);
  background: rgba(212, 167, 44, 0.1);
}

.hamburger-btn:hover span {
  background: var(--gold);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 290px;
  max-width: 85vw;
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.drawer-close-btn:hover {
  color: var(--gold);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  padding: 1rem 0;
  overflow-y: auto;
  flex: 1;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.5rem;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.mobile-nav-item:hover, .mobile-nav-item.active {
  background: rgba(212, 167, 44, 0.08);
  color: var(--gold);
  border-left-color: var(--gold);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

/* Tablets & Small Laptops (Max Width 992px) */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-visual {
    margin: 0 auto;
    max-width: 420px;
  }

  .footer-content {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile Phones (Max Width 768px) */
@media (max-width: 768px) {
  .desktop-nav {
    display: none !important;
  }

  .nav-cta-btn {
    display: none !important;
  }

  .hamburger-btn {
    display: flex !important;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .brand-logo-img {
    height: 34px;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0 3rem;
  }

  .hero-glass-panel {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    margin: 0.75rem auto 1.25rem;
  }

  .hero-search-box {
    max-width: 100%;
  }

  /* Section Headers */
  .section-title {
    font-size: 1.5rem;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  /* Tools Grid */
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-card {
    padding: 1.15rem;
  }

  /* Modal Sheet */
  .tool-modal-overlay {
    padding: 0.75rem;
  }

  .tool-modal-card {
    max-width: 100%;
    width: 100%;
    max-height: 92vh;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-lg);
  }

  .modal-title {
    font-size: 1.15rem;
  }

  /* QR Scanner Viewport */
  .qr-video-viewport {
    height: 240px;
  }

  .qr-viewfinder {
    width: 160px;
    height: 160px;
  }

  /* Zakat Inputs Grid */
  .zakat-inputs-grid {
    grid-template-columns: 1fr;
  }

  .zakat-final-amount {
    font-size: 1.8rem;
  }

  .zakat-actions-row {
    flex-direction: column;
  }

  .zakat-actions-row button {
    width: 100%;
  }

  /* Media Downloader */
  .media-preview-header {
    flex-direction: column;
    text-align: center;
  }

  .media-thumb-wrap {
    width: 100%;
    height: 160px;
  }

  .media-opt-card {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  .media-opt-left {
    text-align: center;
  }

  .media-opt-card .media-dl-btn {
    width: 100%;
  }

  /* Footer */
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Extra Small Phones (Max Width 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.65rem;
  }

  .container {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .filter-tab {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .btn {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }
}














