:root {
    --color-emerald: #173F35;
    --color-emerald-dark: #0d2a24;
    --color-sage: #8FAE5D;
    --color-sand: #F6F3EC;
    --color-gold: #D8C7A1;
}
/* ===== Marquee / Testimonials ===== */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 26s linear infinite;
  gap: 1.5rem;
  will-change: transform;
}

/* ===== Hero Section & Canvas (not in pre-compiled tailwind.css) ===== */
#hero-section {
  min-height: 92vh !important;
  min-height: 92dvh !important;
}
#hero-canvas {
  mix-blend-mode: screen !important;
}

/* Category Grid styling */
#idx-cat-track {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  justify-items: center !important;
}
@media (max-width: 1024px) {
  #idx-cat-track {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  #idx-cat-track {
    grid-template-columns: 1fr !important;
  }
}

.idx-cat-card {
  width: 100% !important;
  max-width: 280px !important;
  aspect-ratio: 3/4 !important;
  height: auto !important;
  border-radius: 1rem !important;
  overflow: hidden !important;
  position: relative !important;
  display: block !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(216, 199, 161, 0.25) !important;
  background-color: #173F35 !important;
  transition: none !important;
}

.idx-cat-card img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: none !important;
}

/* ===== BRAND COLOR GRADIENTS — high-contrast visible bands ===== */
.bg-gradient-nav {
  background: linear-gradient(135deg, #081a15 0%, #173F35 40%, #245e4e 70%, #0d2a24 100%) !important;
}
.bg-gradient-hero {
  background: linear-gradient(180deg, rgba(5, 12, 10, 0.15) 0%, rgba(13, 42, 36, 0.45) 35%, rgba(23, 63, 53, 0.85) 100%) !important;
}
.bg-gradient-stats {
  background: linear-gradient(135deg, #081a15 0%, #173F35 25%, #245e4e 55%, #173F35 75%, #081a15 100%) !important;
}
.bg-gradient-category {
  background: linear-gradient(145deg, #030b09 0%, #0d2a24 25%, #1f5245 50%, #173F35 75%, #050e0b 100%) !important;
}
.bg-gradient-footer {
  background: linear-gradient(180deg, #245e4e 0%, #173F35 25%, #0d2a24 60%, #050e0b 100%) !important;
}
.text-gradient-gold {
  background: linear-gradient(135deg, #F6F3EC 0%, #D8C7A1 45%, #8FAE5D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== NAVBAR — elegant glass with emerald gradation ===== */
#site-header {
  background: linear-gradient(135deg, #081a15 0%, #173F35 40%, #245e4e 70%, #0d2a24 100%) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(216, 199, 161, 0.25);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#site-header.is-scrolled {
  background: linear-gradient(135deg, #050e0b 0%, #0d2a24 40%, #1f5245 70%, #081a15 100%) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.3);
}
#site-header nav { display: flex !important; align-items: center; gap: 2rem; }
#site-header .nav-link {
  color: #F6F3EC !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
  padding: 4px 0;
}
#site-header .nav-link:hover {
  opacity: 1;
  color: #8FAE5D !important;
  transform: translateY(-1px);
}
#site-header .nav-link.is-active {
  opacity: 1;
  color: #FFFFFF !important;
  border-bottom: 2px solid #8FAE5D;
}

/* Mobile Hamburger: Light lines, NO circular ring, NO box background */
#mobile-menu-btn { display: none !important; }
@media (max-width: 1023px) {
  #site-header nav { display: none !important; }
  #mobile-menu-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer !important;
    padding: 8px 6px !important;
    gap: 5.5px !important;
    border-radius: 0 !important;
  }
  #mobile-menu-btn span {
    display: block !important;
    width: 25px !important;
    height: 2.5px !important;
    background-color: #F6F3EC !important;
    border-radius: 9999px !important;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease !important;
  }
  #mobile-menu-btn:hover span {
    background-color: #8FAE5D !important;
  }
  .quote-btn { display: none !important; }
}
/* ===== COUNT-UP ===== */
@keyframes countPop { 0%{transform:scale(0.8)} 60%{transform:scale(1.05)} 100%{transform:scale(1)} }
.anim-counter { display: inline-block; font-variant-numeric: tabular-nums; }

/* ===== PER-LETTER HEADING ANIMATION ===== */
.anim-char {
  display: inline-block;
  will-change: transform, opacity, filter;
  transition: color 0.3s ease;
}

.anim-heading {
  letter-spacing: -0.025em;
  font-feature-settings: "kern" 1;
  transition: color 300ms ease;
}

:root {
    --bg-color: #F8F9FA;
    --text-primary: #1A3022;
    --text-secondary: #64748B;
    --emerald: #1A3022;
    --light-sage: #E8F0EB;
    --gold: #E6C78C;
    --white: #FFFFFF;
    --border-color: #E2E8F0;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    display: flex;
    min-height: 100vh;
}

.main-content {
    margin-left: 260px;
    flex-grow: 1;
    padding: 40px;
    max-width: 1400px;
}

/* Header Section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #EDF2F7;
    padding: 8px 16px;
    border-radius: 4px;
    width: 300px;
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    margin-left: 8px;
    width: 100%;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.header-actions span {
    cursor: pointer;
}

.header-icons {
    display: flex;
    gap: 15px;
    font-size: 1.1rem;
}

.user-thumb {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2D4A39;
    overflow: hidden;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 40px;
}

.welcome-section h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 10px;
}

.welcome-section p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.2fr;
    gap: 24px;
    margin-bottom: 40px;
}

.card {
    background: var(--white);
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-products { background: #E8F0EB; color: #1A3022; }
.icon-inquiries { background: #FEF3C7; color: #D97706; }
.icon-traffic { background: #E0F2FE; color: #0284C7; }

.growth-indicator {
    font-size: 0.8rem;
    font-weight: 600;
}

.growth-positive { color: #10B981; }
.status-pending { color: #D97706; }

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.stat-viz {
    height: 4px;
    background: #EDF2F7;
    border-radius: 2px;
    position: relative;
}

.stat-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: var(--emerald);
    border-radius: 2px;
}

/* Bar Chart Viz */
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 30px;
}

.bar {
    flex: 1;
    background: #EDF2F7;
    border-radius: 1px;
}

.bar.active {
    background: var(--emerald);
}

/* Admin Actions Card */
.actions-card {
    background: var(--emerald);
    color: var(--white);
    grid-column: span 1;
}

.actions-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.actions-card p {
    font-size: 0.85rem;
    color: #A0AEC0;
    margin-bottom: 24px;
    line-height: 1.5;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    border: none;
    transition: opacity 0.2s;
    text-decoration: none;
    box-sizing: border-box;
}

.btn-gold {
    background: var(--gold);
    color: var(--emerald);
    margin-bottom: 12px;
    font-weight: 600;
}

.btn-outline {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

/* Bottom Grid */
.bottom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
}

.table-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
}

.table-header p {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.view-all {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 0;
    border-bottom: 1px solid #F1F5F9;
    font-size: 0.9rem;
}

.sender-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.bg-ma { background: #D1FAE5; color: #065F46; }
.bg-sl { background: #ECFDF5; color: #065F46; }
.bg-jp { background: #FEF3C7; color: #92400E; }

.date-cell {
    color: var(--text-secondary);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.page-footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Page toolbar (title + actions) */
.page-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-toolbar .btn {
    width: auto;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-responsive table {
    min-width: 520px;
}

.main-content--with-admin-bar {
    padding-bottom: 5rem;
}

/* Premium admin overview */
.admin-overview {
    width: 100% !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.admin-overview .overview-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-bottom: 28px !important;
    padding-bottom: 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.admin-overview .eyebrow,
.admin-overview .metric-label {
    color: #6B7A6F !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
}

.admin-overview .overview-hero h1 {
    max-width: 720px !important;
    margin: 4px 0 4px !important;
    font-family: var(--font-serif) !important;
    font-size: clamp(1.8rem, 3.5vw, 2.4rem) !important;
    font-weight: 500 !important;
    line-height: 1.1 !important;
    color: var(--text-primary) !important;
}

.admin-overview .overview-hero p,
.admin-overview .section-heading p,
.admin-overview .card-heading p,
.admin-overview .metric-note,
.admin-overview .business-snapshot p {
    color: var(--text-secondary) !important;
    line-height: 1.5 !important;
}

.admin-overview .overview-controls {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex: 0 0 auto !important;
}

.admin-overview .overview-controls label {
    color: var(--text-secondary) !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

.admin-overview .overview-controls select {
    height: 38px !important;
    min-width: 132px !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    background: var(--white) !important;
    color: var(--text-primary) !important;
    font: 600 0.85rem var(--font-sans) !important;
    padding: 0 14px !important;
    outline: none !important;
    cursor: pointer !important;
}

.admin-overview .icon-button {
    width: 38px !important;
    height: 38px !important;
    border: 1px solid #CBD5E1 !important;
    border-radius: 6px !important;
    background: var(--white) !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: border-color 0.2s ease, color 0.2s ease !important;
}

.admin-overview .icon-button:hover,
.admin-overview .icon-button:focus-visible {
    border-color: var(--gold) !important;
    color: #946C27 !important;
}

.admin-overview .icon-button.is-loading i {
    animation: overview-spin 0.9s linear infinite !important;
}

.admin-overview .business-grid,
.admin-overview .ga-kpi-grid,
.admin-overview .analytics-two-column,
.admin-overview .operations-grid {
    display: grid !important;
    gap: 20px !important;
}

.admin-overview .business-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-bottom: 28px !important;
}

.admin-overview .ga-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    margin-bottom: 20px !important;
}

.admin-overview .analytics-two-column,
.admin-overview .operations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin-top: 20px !important;
}

.admin-overview .metric-card,
.admin-overview .dashboard-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
    box-sizing: border-box !important;
}

.admin-overview .metric-card {
    min-height: 145px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
}

.metric-topline,
.card-heading,
.section-heading,
.table-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-icon-green { background: #E8F0EB; color: var(--emerald); }
.metric-icon-gold { background: #FBF1DA; color: #B0761F; }
.metric-icon-blue { background: #E6F2F6; color: #276E88; }

.metric-mini-icon {
    color: #8D9B91;
    font-size: 0.9rem;
}

.metric-pill {
    border: 1px solid #DFE6E1;
    border-radius: 999px;
    color: #50725B;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    white-space: nowrap;
}

.metric-pill-warm {
    border-color: #F3DFC0;
    color: #A06B18;
}

.metric-value {
    color: var(--text-primary);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1;
    margin: 10px 0 8px;
}

.metric-note {
    min-height: 1.3em;
    font-size: 0.82rem;
}

.metric-note.is-positive { color: #0F7A4F; }
.metric-note.is-negative { color: #B45309; }

.signal-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #18A05E;
    box-shadow: 0 0 0 5px rgba(24, 160, 94, 0.11);
    margin-top: 4px;
}

.actions-card {
    background: #173F35;
    border-color: #173F35;
    color: var(--white);
}

.actions-card h2 {
    margin: 10px 0 8px;
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.15;
}

.actions-card p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.86rem;
    line-height: 1.5;
}

.action-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.analytics-panel {
    margin-bottom: 28px;
}

.section-heading {
    align-items: flex-end;
    margin-bottom: 16px;
}

.section-heading h2,
.card-heading h3,
.table-header h3 {
    font-family: var(--font-serif);
    font-weight: 500;
}

.section-heading h2 {
    margin-top: 4px;
    font-size: clamp(1.6rem, 3vw, 2rem);
}

.analytics-status {
    min-width: 190px;
    color: #66766C;
    font-size: 0.8rem;
    text-align: right;
}

.analytics-status.is-error {
    color: #A23E2F;
}

.ga-kpi-card {
    min-height: 136px;
    box-shadow: none;
}

.dashboard-card {
    padding: 20px;
}

.chart-card {
    margin-top: 16px;
}

.card-heading {
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-heading h3,
.table-header h3 {
    margin-bottom: 4px;
    font-size: 1.25rem;
}

.card-heading p,
.table-header p {
    font-size: 0.8rem;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.78rem;
    white-space: nowrap;
}

.chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.legend-users { background: #1A3022; }
.legend-sessions { background: #D6AC61; }

.chart-shell {
    position: relative;
    height: 340px;
    min-height: 300px;
}

.device-layout {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.device-chart-shell {
    position: relative;
    height: 210px;
}

.compact-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px dashed #D8DED9;
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
}

.compact-empty[hidden],
canvas[hidden] {
    display: none;
}

.compact-empty i {
    color: #BFA16A;
    font-size: 1.3rem;
}

.compact-empty strong {
    color: var(--text-primary);
    font-size: 0.96rem;
}

.compact-empty span {
    max-width: 360px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.compact-empty-small {
    padding: 12px;
}

.data-list,
.ranked-list,
.legend-list {
    display: grid;
    gap: 10px;
}

.data-table-row,
.rank-row,
.legend-row {
    display: grid;
    gap: 10px;
    align-items: center;
}

.data-table-head,
.data-table-row {
    grid-template-columns: minmax(0, 1fr) 88px 78px;
}

.data-table-head {
    display: grid;
    gap: 10px;
    color: #7A877D;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid #EEF1EE;
}

.data-table-row {
    min-height: 36px;
    color: var(--text-primary);
    font-size: 0.87rem;
    border-bottom: 1px solid #F0F2EF;
    padding-bottom: 10px;
}

.data-table-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.data-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.data-value,
.data-users,
.rank-value {
    font-weight: 700;
    text-align: right;
}

.rank-row {
    grid-template-columns: minmax(0, 1fr) 76px;
}

.rank-label,
.legend-label {
    min-width: 0;
    color: var(--text-primary);
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--text-secondary);
    font-size: 0.76rem;
}

.rank-track {
    grid-column: 1 / -1;
    height: 7px;
    background: #EFF2EE;
    border-radius: 999px;
    overflow: hidden;
}

.rank-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1A3022, #BFA16A);
}

.legend-row {
    grid-template-columns: 10px minmax(0, 1fr) auto;
    color: var(--text-secondary);
    font-size: 0.84rem;
}

.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.inline-error,
.inline-empty {
    border: 1px dashed #D8DED9;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
    padding: 16px;
    text-align: center;
}

.inline-error {
    border-color: #E7BDB5;
    color: #9B3C2E;
}

.retry-button {
    width: auto;
    margin: 12px auto 0;
    padding: 9px 12px;
    border: 1px solid #D9DEDA;
    border-radius: 6px;
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
    font: 700 0.8rem var(--font-sans);
}

.skeleton-line,
[data-skeleton="true"] {
    color: transparent !important;
    border-radius: 6px;
    background: linear-gradient(90deg, #EEF1EE 25%, #F8FAF7 37%, #EEF1EE 63%);
    background-size: 400% 100%;
    animation: overview-skeleton 1.25s ease-in-out infinite;
}

[data-skeleton="true"] {
    display: inline-block;
    min-width: 70px;
    min-height: 1em;
}

.skeleton-line {
    height: 14px;
}

.business-snapshot {
    background: linear-gradient(135deg, #173F35, #1F5346);
    color: var(--white);
}

.business-snapshot .eyebrow,
.business-snapshot p {
    color: rgba(255, 255, 255, 0.68);
}

.business-snapshot strong {
    display: block;
    margin: 10px 0;
    font-size: 2.25rem;
    line-height: 1;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--gold);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
}

.empty-cell {
    color: var(--text-secondary);
    padding: 1.5rem;
    text-align: center;
}

@keyframes overview-skeleton {
    0% { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}

@keyframes overview-spin {
    to { transform: rotate(360deg); }
}

/* Responsive layout */
@media (max-width: 1200px) {
    .admin-overview .business-grid,
    .admin-overview .ga-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

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

    .admin-overview .actions-card {
        grid-column: span 1 !important;
    }

    .bottom-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .admin-overview {
        padding: 1.5rem 1rem;
        padding-top: 3.75rem;
    }

    .overview-hero,
    .section-heading,
    .card-heading,
    .table-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .overview-controls {
        width: 100%;
        flex-wrap: wrap;
    }

    .overview-controls select {
        flex: 1;
        min-width: 160px;
    }

    .welcome-section h2 {
        font-size: 1.75rem;
    }

    .header {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .search-bar {
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
        order: 2;
    }

    .header-actions {
        position: absolute;
        top: 10px;
        right: 15px;
        display: flex;
        gap: 10px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .business-grid,
    .ga-kpi-grid,
    .analytics-two-column,
    .operations-grid {
        grid-template-columns: 1fr;
    }

    .analytics-status {
        min-width: 0;
        text-align: left;
    }

    .chart-legend {
        flex-wrap: wrap;
        white-space: normal;
    }

    .chart-shell {
        height: 300px;
    }

    .device-layout {
        grid-template-columns: 1fr;
    }

    .device-chart-shell {
        height: 190px;
    }

    .actions-card {
        grid-column: span 1;
    }

    .page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 1024px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1.5rem 1rem;
        padding-top: 3.75rem;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .metric-card,
    .dashboard-card {
        padding: 16px;
    }

    .data-table-head {
        display: none;
    }

    .data-table-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .data-value,
    .data-users {
        text-align: left;
    }

    .overview-controls label {
        width: 100%;
    }

    .page-footer {
        margin-top: 36px;
    }
}
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-fade {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.reveal-fade.is-visible {
  opacity: 1;
}

