/* ==========================================================================
   PRAGATI TELECOM - MODERN MULTI-TOOL PORTAL STYLESHEET
   Pure CSS | Glassmorphism | Full-Screen Fluid Grid | Light & Dark Mode
   ========================================================================== */

:root {
  /* Brand & Vibrant Color Palette */
  --brand-primary: #2563eb;
  --brand-primary-light: #60a5fa;
  --brand-primary-dark: #1d4ed8;
  --brand-cyan: #06b6d4;
  --brand-teal: #14b8a6;
  --brand-green: #10b981;
  --brand-purple: #8b5cf6;
  --brand-pink: #ec4899;
  --brand-amber: #f59e0b;
  --brand-red: #ef4444;
  --brand-indigo: #4f46e5;
  --brand-fuchsia: #db2777;

  /* Neutrals & Surfaces (Light Mode) */
  --bg-main: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-subtle: #f8fafc;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --bg-input-focus: #ffffff;

  /* Glassmorphism Variables */
  --glass-nav-bg: rgba(255, 255, 255, 0.88);
  --glass-nav-border: rgba(226, 232, 240, 0.85);
  --glass-card-bg: rgba(255, 255, 255, 0.94);
  --glass-card-border: rgba(226, 232, 240, 0.8);
  --glass-sidebar-bg: rgba(255, 255, 255, 0.92);
  --glass-blur: blur(14px);
  --glass-blur-lg: blur(20px);

  /* Typography Colors */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: rgba(37, 99, 235, 0.4);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.07);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.1);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.2);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.2);
  --shadow-glow-purple: 0 0 25px rgba(139, 92, 246, 0.2);

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout dimensions */
  --header-height: 64px;
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
}

/* ==========================================================================
   DARK MODE SYSTEM
   ========================================================================== */

[data-theme="dark"] {
  --bg-main: #0b0f19;
  --bg-surface: #111827;
  --bg-surface-elevated: #1e293b;
  --bg-card: #131d31;
  --bg-card-subtle: #17233d;
  --bg-card-hover: #1f2e4d;
  --bg-input: #172237;
  --bg-input-focus: #1e2b45;

  --glass-nav-bg: rgba(17, 24, 39, 0.88);
  --glass-nav-border: rgba(255, 255, 255, 0.08);
  --glass-card-bg: rgba(19, 29, 49, 0.88);
  --glass-card-border: rgba(255, 255, 255, 0.08);
  --glass-sidebar-bg: rgba(17, 24, 39, 0.94);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;

  --border-light: rgba(255, 255, 255, 0.1);
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-focus: rgba(96, 165, 250, 0.5);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.65);
}

/* ==========================================================================
   GLOBAL RESET & FULL-SCREEN FOUNDATION
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
  line-height: 1.5;
  width: 100%;
  height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  background-color: #f1f5f9;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.16) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.16) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.13) 0px, transparent 55%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.14) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.08) 0px, transparent 65%);
  background-attachment: fixed;
  color: var(--text-main);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

[data-theme="dark"] body {
  background-color: #0b0f19;
  background-image: 
    radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.28) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(6, 182, 212, 0.24) 0px, transparent 55%),
    radial-gradient(at 100% 100%, rgba(244, 63, 94, 0.20) 0px, transparent 55%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.20) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(245, 158, 11, 0.12) 0px, transparent 65%);
}

#root,
.app,
.main-container,
main {
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Custom smooth scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1, #06b6d4);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #4f46e5, #0891b2);
}

/* ==========================================================================
   FULL-WIDTH TOP HEADER (GLASSMORPHISM WITH RAINBOW ACCENT)
   ========================================================================== */

#site-header {
  position: sticky;
  top: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1000;
  background: var(--glass-header-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #6366f1, #06b6d4, #10b981, #f59e0b, #ec4899, #8b5cf6) 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
  height: var(--header-height);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.nav-container {
  width: 100%;
  max-width: 100%;
  padding: 0 clamp(0.75rem, 2vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
}

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: transform var(--transition-bounce);
}

.brand-logo:hover .brand-icon-wrap {
  transform: rotate(-6deg) scale(1.08);
}

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

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-main);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-title span.accent {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

/* Header Center Search / Quick Bar */
.nav-center {
  flex: 1;
  max-width: 460px;
  display: flex;
  align-items: center;
  margin: 0 1rem;
}

.nav-quick-search {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.85rem;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.nav-quick-search:hover {
  background: var(--bg-surface);
  border-color: var(--brand-primary-light);
  color: var(--brand-primary);
  box-shadow: var(--shadow-sm);
}

.nav-quick-search input {
  border: none;
  background: transparent;
  outline: none;
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  width: 100%;
}

.nav-quick-search input::placeholder {
  color: var(--text-light);
}

/* Nav Menu Links */
.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.08);
}

.nav-link.active {
  color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.12);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 2.5px;
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
}

/* Nav Actions & Theme Switch */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.btn-theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.15rem;
  transition: all var(--transition-fast);
}

.btn-theme-toggle:hover {
  background: var(--bg-surface);
  border-color: var(--brand-primary-light);
  color: var(--brand-primary);
  transform: scale(1.05);
}

.kbd-shortcut {
  font-size: 0.68rem;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: inherit;
  color: var(--text-muted);
  font-weight: 700;
}

.btn-nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-nav-whatsapp:hover {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  padding: 0.45rem;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.25rem;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur-lg);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  padding: 1.5rem;
  flex-direction: column;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
  display: flex;
}

.mobile-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1999;
}

.mobile-drawer-overlay.active {
  display: block;
}

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

.drawer-close-btn {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style: none;
}

.drawer-links .nav-link {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
}

/* ==========================================================================
   DASHBOARD WRAPPER & COLLAPSIBLE SIDEBAR
   ========================================================================== */

.dashboard-layout {
  display: flex;
  width: 100%;
  min-height: calc(100vh - var(--header-height));
  flex: 1;
  position: relative;
}

.app-sidebar {
  width: var(--sidebar-width);
  background: var(--glass-sidebar-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-right: 1px solid var(--glass-nav-border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0.85rem;
  transition: width var(--transition-normal), transform var(--transition-normal);
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 900;
}

.app-sidebar.collapsed {
  width: var(--sidebar-collapsed-width);
  padding: 1.25rem 0.5rem;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 0 0.5rem;
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.app-sidebar.collapsed .sidebar-title {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.sidebar-collapse-toggle {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: all var(--transition-fast);
}

.sidebar-collapse-toggle:hover {
  background: var(--bg-surface);
  color: var(--brand-primary);
  border-color: var(--brand-primary-light);
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}

.sidebar-group-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-light);
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}

.app-sidebar.collapsed .sidebar-group-label {
  display: none;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.sidebar-item:hover {
  background: var(--bg-card-hover);
  color: var(--brand-primary);
}

.sidebar-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(6, 182, 212, 0.14));
  color: #4f46e5;
  font-weight: 800;
  border-left: 3px solid #6366f1;
}

[data-theme="dark"] .sidebar-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(6, 182, 212, 0.22));
  color: #a5b4fc;
}

.sidebar-item-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.sidebar-item-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity var(--transition-fast);
}

.app-sidebar.collapsed .sidebar-item-text {
  opacity: 0;
  pointer-events: none;
  display: none;
}

.sidebar-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.app-sidebar.collapsed .sidebar-badge {
  display: none;
}

/* Tooltip for collapsed sidebar */
.app-sidebar.collapsed .sidebar-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text-main);
  color: var(--bg-main);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  box-shadow: var(--shadow-md);
  transition: opacity var(--transition-fast);
  z-index: 1000;
}

.app-sidebar.collapsed .sidebar-item:hover::after {
  opacity: 1;
}

/* Dashboard Main Viewport Container */
.dashboard-main-content {
  flex: 1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   FULL-WIDTH HERO & BANNER SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  padding: 3rem clamp(1rem, 3vw, 3rem) 2rem;
  overflow: hidden;
  width: 100%;
}

.hero-container {
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 1.15rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 1rem;
  box-shadow: 0 3px 12px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .hero-badge {
  color: #a5b4fc;
  border-color: rgba(165, 180, 252, 0.35);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(6, 182, 212, 0.2));
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, #0f172a 0%, #2563eb 35%, #7c3aed 70%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #60a5fa 35%, #c084fc 70%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 1.75rem;
  font-weight: 500;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--text-main);
}

/* Search & Filters Container (Vibrant Glow) */
.search-filter-wrapper {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 1rem auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.1rem 1.35rem;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.12);
  box-sizing: border-box;
}

[data-theme="dark"] .search-filter-wrapper {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
}

.search-bar-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.95rem;
}

.search-icon-inside {
  position: absolute;
  left: 1.15rem;
  color: #6366f1;
  font-size: 1.25rem;
  pointer-events: none;
}

.main-search-input {
  width: 100%;
  padding: 0.85rem 3rem 0.85rem 3.2rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-surface);
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.main-search-input:focus {
  background: var(--bg-surface);
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25), 0 0 20px rgba(99, 102, 241, 0.18);
}

.main-search-input::placeholder {
  color: var(--text-light);
}

.search-clear-btn {
  position: absolute;
  right: 1.1rem;
  background: var(--bg-card-hover);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--text-secondary);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.search-clear-btn:hover {
  background: #f43f5e;
  color: #fff;
}

/* Category Filter Tabs with Individual Vibrant Colors */
.category-filter-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  font-size: 0.84rem;
  font-weight: 800;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  border: 1.5px solid var(--border-light);
  background: var(--bg-surface);
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.filter-btn:hover {
  transform: translateY(-2px);
  border-color: var(--brand-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn[data-category="all"].active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.filter-btn[data-category="ai-photo"].active {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(217, 70, 239, 0.45);
}

.filter-btn[data-category="pdf-doc"].active {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.45);
}

.filter-btn[data-category="calc-utility"].active {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.45);
}

/* SaaS Metric Counters Grid (Elite Commercial Look) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  max-width: 960px;
  margin: 1.5rem auto 0 auto;
}

.stat-pill-box {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.06);
  transition: all 0.25s ease;
}

[data-theme="dark"] .stat-pill-box {
  background: rgba(17, 24, 39, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.stat-pill-box:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.stat-pill-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.stat-pill-info {
  display: flex;
  flex-direction: column;
}

.stat-pill-val {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.stat-pill-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  line-height: 1.3;
}

/* ==========================================================================
   FULL-WIDTH SPONSOR & NOTICE BANNER (VIBRANT GLASSMORPHISM)
   ========================================================================== */

.sponsor-ad-container {
  width: 100%;
  padding: 0 clamp(1rem, 3vw, 3rem);
  margin-bottom: 2rem;
}

.sponsor-ad-box {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.09), rgba(6, 182, 212, 0.11), rgba(16, 185, 129, 0.09));
  border: 1.5px solid rgba(99, 102, 241, 0.28);
  border-radius: var(--radius-lg);
  padding: 6px;
  text-align: center;
  position: relative;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.sponsor-ad-box:hover {
  transform: translateY(-2px);
  border-color: #6366f1;
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}

.ad-label {
  position: absolute;
  top: 0;
  right: 15px;
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 10px;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.sponsor-banner-inner {
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

[data-theme="dark"] .sponsor-banner-inner {
  background: rgba(17, 24, 39, 0.75);
}

.sponsor-badge-btn {
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: transform var(--transition-fast);
}

.sponsor-badge-btn:hover {
  transform: scale(1.05);
}
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  transition: transform var(--transition-fast);
}

.sponsor-badge-btn:hover {
  transform: scale(1.04);
}

/* ==========================================================================
   FULL-SCREEN COMPACT TOOLS GRID & SMALL CARDS
   ========================================================================== */

.tools-section {
  width: 100%;
  padding: 0 clamp(1rem, 3vw, 3rem);
  margin-bottom: 2.5rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

/* ==========================================================================
   COLORFUL 2-TIER TOOL CARD (REFERENCE INSPIRED)
   ========================================================================== */

.tool-card {
  position: relative;
  background: var(--bg-card);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  cursor: pointer;
}

[data-theme="dark"] .tool-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
}

.tool-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 18px 40px var(--card-glow, rgba(0, 0, 0, 0.18));
}

/* Card Top Image Thumbnail */
.tool-card-thumb {
  position: relative;
  width: 100%;
  height: 155px;
  overflow: hidden;
  background: #0f172a;
}

.tool-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.tool-card:hover .tool-card-thumb img {
  transform: scale(1.08);
}

/* Floating Badge on Top of Image */
.tool-card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
}

/* Card Bottom Banner (Vibrant Gradient Block) */
.tool-card-banner {
  background: var(--card-gradient, linear-gradient(135deg, #3b82f6, #1d4ed8));
  color: #ffffff;
  padding: 1.25rem 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  min-height: 100px;
  box-sizing: border-box;
}

/* Icon inside colorful banner */
.tool-card-icon-wrap {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.45rem;
  color: #ffffff;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card:hover .tool-card-icon-wrap {
  transform: scale(1.18) translateY(-2px);
}

.tool-card-icon-wrap svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* Tool Title */
.tool-card-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* Tool Subtitle / Micro Description */
.tool-card-subtext {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-top: 0.35rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 95%;
}

/* Tool Action Launch Pill */
.tool-card-btn-action {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.85rem;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.tool-card:hover .tool-card-btn-action {
  background: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.action-arrow {
  display: inline-block;
  font-size: 0.82rem;
  transition: transform 0.25s ease;
  font-weight: 900;
}

.tool-card:hover .action-arrow {
  transform: translateX(3px);
}

/* ==========================================================================
   MODAL STYLES (Cash Tally & In-Browser Utilities)
   ========================================================================== */

.tool-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tool-modal-backdrop.active {
  display: flex;
}

.tool-modal-box {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  overflow: hidden;
  animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
  0% { opacity: 0; transform: scale(0.94) translateY(15px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tool-modal-header {
  padding: 1.1rem 1.4rem;
  background: var(--bg-card-subtle);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tool-modal-body {
  padding: 1.4rem;
  max-height: 80vh;
  overflow-y: auto;
}

.form-group-modal {
  margin-bottom: 0.85rem;
}

.form-group-modal label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
}

.form-group-modal input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-light);
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  font-weight: 700;
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.form-group-modal input:focus {
  background: var(--bg-input-focus);
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--border-focus);
}

.modal-result-box {
  margin-top: 1.1rem;
  padding: 1rem 1.25rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  color: var(--text-main);
  display: none;
}

/* ==========================================================================
   FULL-WIDTH HOMEPAGE ARTICLES, FEATURES & FAQ ACCORDIONS
   ========================================================================== */

.home-content-section {
  width: 100%;
  padding: 0 clamp(1rem, 3vw, 3rem);
  margin-bottom: 3.5rem;
}

.home-article-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, #6366f1, #06b6d4, #10b981, #f59e0b, #ec4899) 1;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.08);
  margin-bottom: 2rem;
  position: relative;
}

[data-theme="dark"] .home-article-card {
  background: rgba(19, 29, 49, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.35);
}

.legal-alert.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(217, 119, 6, 0.08));
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  border-left: 5px solid #f59e0b;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.1);
}

[data-theme="dark"] .legal-alert.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.12));
  border-color: rgba(245, 158, 11, 0.45);
}

.home-section-title {
  font-size: clamp(1.3rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.3px;
}

.home-section-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

.features-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
  margin: 1.35rem 0;
}

.feature-box {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.88));
  border: 1.5px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.feature-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

.feature-box:nth-child(2)::before {
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}

.feature-box:nth-child(3)::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.feature-box:hover {
  transform: translateY(-5px);
  border-color: #6366f1;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.15);
}

[data-theme="dark"] .feature-box {
  background: rgba(17, 24, 39, 0.85);
  border-color: rgba(255, 255, 255, 0.08);
}

.feature-box-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.15));
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.feature-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.feature-box p {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   DUAL PROCESSING ENGINE ARCHITECTURE SHOWCASE (SaaS Grade)
   ========================================================================== */

.engine-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.engine-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.engine-card-local {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08), rgba(6, 182, 212, 0.04));
  border: 1.5px solid rgba(16, 185, 129, 0.28);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.engine-card-cloud {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.04));
  border: 1.5px solid rgba(99, 102, 241, 0.28);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

[data-theme="dark"] .engine-card-local {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.12), rgba(6, 182, 212, 0.06));
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .engine-card-cloud {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.06));
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.engine-card:hover {
  transform: translateY(-4px);
}

.engine-card-local:hover {
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.2);
  border-color: #10b981;
}

.engine-card-cloud:hover {
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}

.engine-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.engine-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  display: inline-block;
}

.engine-badge-local {
  background: rgba(16, 185, 129, 0.18);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .engine-badge-local {
  color: #34d399;
}

.engine-badge-cloud {
  background: rgba(99, 102, 241, 0.18);
  color: #4f46e5;
  border: 1px solid rgba(99, 102, 241, 0.35);
}

[data-theme="dark"] .engine-badge-cloud {
  color: #a5b4fc;
}

.engine-pulse-status {
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.engine-pulse-status.active {
  color: #10b981;
}

.engine-pulse-status.cloud {
  color: #6366f1;
}

.engine-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.engine-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.engine-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.engine-feature-pill {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.engine-powered-tools {
  background: rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .engine-powered-tools {
  background: rgba(0, 0, 0, 0.25);
}

.engine-tools-heading {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.engine-tool-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.engine-tool-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   CURRENCY NOTES SHOWCASE PILLS (Cash Tally Section)
   ========================================================================== */

.currency-pills-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
  margin: 1.35rem 0 1.65rem;
}

.currency-pill {
  padding: 0.85rem 0.9rem;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
  border: 1.5px solid transparent;
}

.currency-pill:hover {
  transform: translateY(-4px) scale(1.03);
}

.currency-symbol {
  font-size: 0.95rem;
  font-weight: 800;
  opacity: 0.85;
}

.currency-val {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.currency-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 0.3rem;
  opacity: 0.9;
}

/* Individual Note Colors matching RBI notes */
.currency-pill.note-500 {
  background: linear-gradient(135deg, #475569, #334155);
  color: #ffffff;
  border-color: #64748b;
  box-shadow: 0 4px 16px rgba(71, 85, 105, 0.35);
}

.currency-pill.note-200 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

.currency-pill.note-100 {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  border-color: #a78bfa;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
}

.currency-pill.note-50 {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.currency-pill.note-20 {
  background: linear-gradient(135deg, #84cc16, #65a30d);
  color: #ffffff;
  border-color: #a3e635;
  box-shadow: 0 4px 16px rgba(132, 204, 22, 0.4);
}

.currency-pill.note-10 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #ffffff;
  border-color: #d97706;
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.4);
}

/* FAQ Accordion with Vibrant Accents */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  margin-top: 1.35rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .faq-item {
  background: rgba(17, 24, 39, 0.8);
  border-color: rgba(255, 255, 255, 0.08);
}

.faq-item[open] {
  border-color: #6366f1;
  border-left: 5px solid #6366f1;
  background: var(--bg-surface);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.15);
}

.faq-question {
  padding: 1.1rem 1.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 800;
  color: #6366f1;
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.35rem 1.25rem 1.35rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.85rem;
}

.faq-answer a {
  color: var(--brand-primary);
  font-weight: 700;
  text-decoration: underline;
}

.quick-links-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
}

.quick-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(6, 182, 212, 0.08));
  border: 1.5px solid rgba(99, 102, 241, 0.22);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
  transition: all 0.25s ease;
}

.quick-link-pill:hover {
  background: linear-gradient(135deg, #6366f1, #3b82f6);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

/* ==========================================================================
   FULL-WIDTH ANIMATED FOOTER (DARK THEME WITH GLOW)
   ========================================================================== */

#site-footer {
  position: relative;
  background-color: #0b0f19;
  color: #e2e8f0;
  padding: 3.5rem clamp(1rem, 3vw, 3rem) 2rem;
  overflow: hidden;
  margin-top: auto;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, #6366f1, #06b6d4, #10b981, #f59e0b, #ec4899, #8b5cf6) 1;
  width: 100%;
}

.footer-glow-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 10%, rgba(37, 99, 235, 0.15), transparent 45%),
              radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.12), transparent 45%),
              radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.08), transparent 60%);
  animation: footerGlowPulse 10s ease-in-out infinite alternate;
}

@keyframes footerGlowPulse {
  0% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
  100% { opacity: 0.7; transform: scale(0.98); }
}

.footer-container {
  width: 100%;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr;
  gap: 2.25rem;
  margin-bottom: 2.5rem;
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-bio {
  font-size: 0.86rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.business-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.business-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 0.45rem;
}

.business-info-row:last-child {
  margin-bottom: 0;
}

.business-info-row strong {
  color: #ffffff;
}

.business-info-icon {
  font-size: 0.95rem;
  color: var(--brand-cyan);
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--brand-primary-light);
  border-radius: var(--radius-pill);
}

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

.footer-link {
  font-size: 0.84rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon-btn.whatsapp:hover {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

.social-icon-btn.phone:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.social-icon-btn.maps:hover {
  background: #ea4335;
  color: #ffffff;
  border-color: #ea4335;
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 16px rgba(234, 67, 53, 0.4);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-legal-links a {
  color: #94a3b8;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   CONTENT & LEGAL PAGES FLUID STYLES
   ========================================================================== */

.content-page-wrapper {
  width: 100%;
  padding: 2rem clamp(1rem, 3vw, 3rem) 3.5rem;
  flex: 1;
}

.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-xs);
  width: 100%;
}

.content-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.content-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.6rem;
}

.content-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.legal-section {
  margin-bottom: 2rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.legal-section p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0.85rem;
}

/* Alert Boxes & Callouts */
.legal-alert {
  background: var(--bg-card-subtle);
  border-left: 4px solid var(--brand-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.1rem 1.35rem;
  margin: 1.25rem 0;
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.legal-alert.warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: var(--text-main);
}

.legal-alert.info {
  border-left-color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-main);
}

.legal-alert.success {
  border-left-color: var(--brand-green);
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-main);
}

/* Knowledge Base & Guides Grid */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  width: 100%;
  margin: 1.5rem 0 3rem;
}

.guide-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-xs);
}

.guide-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary-light);
  box-shadow: var(--shadow-md);
}

.guide-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.guide-category-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-primary);
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.guide-read-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.guide-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}

.guide-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (FULL SCREEN ADAPTIVE)
   ========================================================================== */

@media (max-width: 1140px) {
  .nav-links, .nav-center {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 992px) {
  .app-sidebar {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    height: calc(100vh - var(--header-height));
    z-index: 1500;
    transition: left var(--transition-normal);
  }

  .app-sidebar.mobile-open {
    left: 0;
    width: 280px;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

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

  .hero-section {
    padding: 2rem 1rem 1rem;
  }

  .category-filter-list {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 580px) {
  .tools-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }

  .brand-title {
    font-size: 1.05rem;
  }

  .brand-tagline {
    display: none;
  }

  .btn-nav-whatsapp span:last-child {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 0.5rem;
    gap: 0.4rem;
  }

  .nav-actions {
    gap: 0.35rem;
  }

  .brand-logo {
    gap: 0.45rem;
  }

  .brand-icon-wrap {
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }

  .brand-title {
    font-size: 0.95rem;
  }

  .btn-theme-toggle, .mobile-nav-toggle {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .btn-nav-whatsapp {
    padding: 0.4rem 0.55rem;
  }

  .search-filter-wrapper {
    padding: 0.75rem 0.65rem;
  }
}

.site-footer {
  overflow: hidden;
  max-width: 100%;
}

/* ==========================================================================
   GLOBAL EXTERNAL DRAG & DROP OVERLAY (ALL TOOLS)
   ========================================================================== */
.global-drag-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 3px dashed var(--brand-primary, #2563eb);
  margin: 12px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.2s;
}

[data-theme="dark"] .global-drag-overlay {
  background: rgba(11, 15, 25, 0.7);
  border-color: #60a5fa;
}

.global-drag-overlay.active {
  opacity: 1;
  visibility: visible;
}

.global-drag-overlay-box {
  background: var(--bg-card, #ffffff);
  color: var(--text-main, #0f172a);
  padding: 32px 48px;
  border-radius: 20px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
  border: 2px solid var(--border-light, #e2e8f0);
  transform: scale(0.92);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 90%;
  pointer-events: none;
}

.global-drag-overlay.active .global-drag-overlay-box {
  transform: scale(1);
}

.global-drag-overlay-icon {
  font-size: 52px;
  line-height: 1;
  margin-bottom: 14px;
  animation: floatBounce 1.5s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.global-drag-overlay-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main, #0f172a);
  margin-bottom: 6px;
}

.global-drag-overlay-desc {
  font-size: 0.95rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}

.global-drag-overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-primary, #2563eb);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

/* Tool drop zone drag-over highlight helper */
.upload-zone.drag-active,
.upload.card.drag-active,
.dropzone.drag,
.drop-zone.drag-over {
  border-color: var(--brand-primary, #2563eb) !important;
  background: rgba(37, 99, 235, 0.06) !important;
  transform: scale(1.01) !important;
}



