@tailwind base;
@tailwind components;
@tailwind utilities;

/* ============================================
   CSS VARIABLES (from design system)
   ============================================ */
:root {
  /* Brand Colors */
  --color-gse-lime: #C4FF00;
  --color-gse-cyan: #00E5FF;
  --color-gse-blue: #3D52D5;
  --color-gse-red: #e0552e;

  /* Base Colors */
  --color-black: #191716;
  --color-white: #FFFFFF;
  --color-charcoal: #2F333C;
  --color-off-white: #FAFAFA;

  /* Base Scale */
  --color-base-100: #2F333C;
  --color-base-200: #8F9CBD;
  --color-base-300: #6B7280;
  --color-base-400: #9CA3AF;

  /* Border Colors */
  --color-border-light: #EAEAEA;
  --color-border-dark: #3A3E49;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Courier, monospace;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Shadows */
  --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

@layer base {
  html,
  body {
    scroll-behavior: smooth;
  }

  [x-cloak] { display: none !important; }
}

@layer components {
  .serif {
    font-family: var(--font-serif);
  }

  .font-mono-ds {
    font-family: var(--font-mono);
  }

  .font-sans-ds {
    font-family: var(--font-sans);
  }

  /* ============================================
     STAT CARDS (from design system)
     ============================================ */
  .stat-card {
    padding: var(--space-6);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
  }

  .stat-card:hover {
    border-color: var(--color-base-300);
  }

  .stat-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
  }

  .stat-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-base-300);
  }

  .stat-card-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-off-white);
    border-radius: 8px;
    color: var(--color-base-200);
  }

  .stat-card-icon svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    fill: none;
    stroke: currentColor;
  }

  .stat-card-value {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.1;
    margin-bottom: var(--space-2);
  }

  .stat-card-trend {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
  }

  .stat-card-trend.up {
    color: var(--color-gse-blue);
  }

  .stat-card-trend.down {
    color: var(--color-gse-red);
  }

  .stat-card-trend svg {
    width: 14px;
    height: 14px;
  }

  /* Stat Card Variants */
  .stat-card-dark {
    background: var(--color-black);
    border: none;
  }

  .stat-card-dark .stat-card-label {
    color: var(--color-base-400);
  }

  .stat-card-dark .stat-card-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
  }

  .stat-card-dark .stat-card-value {
    color: var(--color-white);
  }

  .stat-card-dark .stat-card-trend {
    color: var(--color-base-400);
  }

  .stat-card-dark .stat-card-trend.up {
    color: var(--color-gse-lime);
  }

  .stat-card-accent {
    background: var(--color-gse-lime);
    border: none;
  }

  .stat-card-accent .stat-card-label {
    color: var(--color-charcoal);
  }

  .stat-card-accent .stat-card-icon {
    background: rgba(0, 0, 0, 0.1);
    color: var(--color-black);
  }

  .stat-card-accent .stat-card-value {
    color: var(--color-black);
  }

  .stat-card-accent .stat-card-trend,
  .stat-card-accent .stat-card-trend.up,
  .stat-card-accent .stat-card-trend.down {
    color: var(--color-black);
  }

  /* Warning Variant - for pending/attention items */
  .stat-card-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
  }

  .stat-card-warning .stat-card-label {
    color: #92400E;
  }

  .stat-card-warning .stat-card-icon {
    background: rgba(245, 158, 11, 0.15);
    color: #D97706;
  }

  .stat-card-warning .stat-card-value {
    color: #92400E;
  }

  .stat-card-warning .stat-card-trend {
    color: #B45309;
  }

  .stat-card-warning .stat-card-trend.up {
    color: #D97706;
  }

  /* ============================================
     PANELS (from design system)
     ============================================ */
  .panel {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
  }

  .panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
  }

  .panel-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-base-100);
  }

  .panel-link {
    font-size: 13px;
    color: var(--color-gse-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .panel-link:hover {
    text-decoration: underline;
  }

  .panel-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .panel-body {
    padding: var(--space-6);
  }

  .panel-body-flush {
    padding: 0;
  }

  /* ============================================
     CARDS (from design system)
     ============================================ */
  .card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    padding: var(--space-6);
  }

  .card-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-2);
  }

  .card-description {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
    margin-bottom: var(--space-4);
  }

  .card-link {
    font-size: 13px;
    color: var(--color-gse-blue);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
  }

  .card-link:hover {
    text-decoration: underline;
  }

  .card-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* ============================================
     EVENT LIST (from design system)
     ============================================ */
  .event-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .event-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition-fast);
  }

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

  .event-item:hover {
    background: var(--color-off-white);
  }

  .event-date {
    width: 48px;
    height: 48px;
    background: var(--color-off-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .event-date-day {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
  }

  .event-date-month {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-200);
  }

  .event-info {
    flex: 1;
  }

  .event-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-black);
  }

  .event-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
  }

  .event-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .event-badge.active {
    background: rgba(196, 255, 0, 0.2);
    color: #6B8F00;
  }

  .event-badge.scheduled {
    background: rgba(0, 229, 255, 0.15);
    color: #0099AA;
  }

  .event-badge.completed {
    background: rgba(61, 82, 213, 0.1);
    color: #3D52D5;
  }

  /* ============================================
     NOTIFICATION LIST (from design system)
     ============================================ */
  .notification-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .notification-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
  }

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

  .notification-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-gse-lime);
    flex-shrink: 0;
    margin-top: 6px;
  }

  .notification-dot.read {
    background: var(--color-border-light);
  }

  /* Contextual notification visual: naim / actor avatar or venue logo,
     with the unread state as a lime dot pinned to the corner. */
  .notification-visual {
    position: relative;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
  }

  .notification-visual-img,
  .notification-visual-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    object-fit: cover;
  }

  .notification-visual-placeholder {
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-base-300);
  }

  .notification-visual-placeholder svg {
    width: 14px;
    height: 14px;
  }

  .notification-visual--lg {
    width: 48px;
    height: 48px;
  }

  .notification-visual--lg .notification-visual-placeholder {
    font-size: 14px;
  }

  .notification-visual-unread {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--color-gse-lime);
    box-shadow: 0 0 0 2px var(--color-white);
  }

  .notification-content {
    flex: 1;
  }

  .notification-text {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
    color: var(--color-black);
  }

  .notification-text strong {
    font-weight: 600;
  }

  .notification-time {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
  }

  /* Full Notification List (for notifications index page) */
  .notification-list-full {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .notification-item-full {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
    transition: background-color var(--transition-fast);
  }

  .notification-item-full:last-child {
    border-bottom: none;
  }

  .notification-item-full:hover {
    background: var(--color-off-white);
  }

  .notification-item-full.unread {
    background: rgba(196, 255, 0, 0.05);
    border-left: 3px solid var(--color-gse-lime);
  }

  .notification-item-full.unread:hover {
    background: rgba(196, 255, 0, 0.1);
  }

  .notification-indicator {
    display: flex;
    align-items: flex-start;
    padding-top: var(--space-2);
  }

  .notification-avatar {
    flex-shrink: 0;
  }

  .notification-avatar-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }

  .notification-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-gse-lime);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .notification-body {
    flex: 1;
    min-width: 0;
  }

  .notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-1);
    flex-wrap: wrap;
  }

  .notification-actor {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .notification-time {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
  }

  .notification-time svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .notification-message {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
    line-height: 1.5;
    margin-bottom: var(--space-2);
  }

  .notification-link {
    color: var(--color-gse-blue);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .notification-link:hover {
    color: var(--color-black);
    text-decoration: underline;
  }

  .notification-quote {
    margin: var(--space-3) 0;
    padding: var(--space-3) var(--space-4);
    background: var(--color-off-white);
    border-left: 3px solid var(--color-gse-lime);
    border-radius: 0 4px 4px 0;
    font-family: var(--font-sans);
    font-size: 13px;
    font-style: italic;
    color: var(--color-base-200);
    line-height: 1.5;
  }

  .notification-actions {
    margin-top: var(--space-3);
  }

  .notification-type {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: var(--space-1);
  }

  /* ============================================
     CAMPAIGN ITEM (from design system)
     ============================================ */
  .campaign-item {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
  }

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

  .campaign-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2);
  }

  .campaign-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .campaign-type {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--color-off-white);
    color: var(--color-base-300);
  }

  .campaign-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
    margin-bottom: var(--space-3);
  }

  .campaign-meta {
    display: flex;
    gap: var(--space-4);
    font-size: 12px;
    color: var(--color-base-300);
  }

  .campaign-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .campaign-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* ============================================
     PERFORMANCE / PROGRESS BARS (from design system)
     ============================================ */
  .perf-item {
    margin-bottom: var(--space-5);
  }

  .perf-item:last-child {
    margin-bottom: 0;
  }

  .perf-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2);
  }

  .perf-label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
  }

  .perf-value {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
  }

  .perf-bar,
  .progress {
    height: 6px;
    background: var(--color-off-white);
    overflow: hidden;
  }

  .perf-bar-fill,
  .progress-bar {
    height: 100%;
    transition: width 0.5s ease;
  }

  .perf-bar-fill.lime {
    background: linear-gradient(90deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  }

  .perf-bar-fill.cyan {
    background: var(--color-gse-cyan);
  }

  .perf-bar-fill.blue {
    background: var(--color-gse-blue);
  }

  /* Quick Stats */
  .quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
  }

  .quick-stat {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-off-white);
    border-radius: 8px;
  }

  .quick-stat-value {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--color-black);
  }

  .quick-stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-200);
    text-transform: uppercase;
    letter-spacing: 0.02em;
  }

  /* ============================================
     BUTTONS (from design system)
     ============================================ */

  /* Base Button */
  .btn {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
  }

  .btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* Primary Button - Black with lime icon, sweep animation */
  .btn-primary {
    background: var(--color-black);
    color: var(--color-white);
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .btn-primary .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-gse-lime);
    color: var(--color-black);
    position: relative;
    overflow: hidden;
    z-index: 1;
  }

  .btn-primary .btn-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-gse-cyan);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
  }

  .btn-primary .btn-icon svg {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
  }

  .btn-primary .btn-text {
    padding: 0 var(--space-6);
    transition: color 0.4s ease;
  }

  .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 48px;
    right: 0;
    bottom: 0;
    background: var(--color-gse-lime);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
  }

  .btn-primary:hover::after {
    transform: translateX(0);
  }

  .btn-primary:hover .btn-icon::before {
    transform: translateX(0);
  }

  .btn-primary:hover .btn-icon svg {
    transform: none;
  }

  .btn-primary:hover .btn-text {
    color: var(--color-black);
    position: relative;
    z-index: 1;
  }

  /* Simple Primary Button (no icon structure) */
  .btn-primary-simple {
    background: var(--color-black);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 0;
    gap: 8px;
    justify-content: center;
  }

  .btn-primary-simple:hover {
    background: var(--color-charcoal);
  }

  /* Secondary Button */
  .btn-secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-border-light);
    padding: var(--space-3) var(--space-6);
    height: 48px;
    gap: 8px;
    justify-content: center;
  }

  .btn-secondary:hover {
    background: var(--color-off-white);
    border-color: var(--color-base-300);
  }

  /* Secondary Button with Icon */
  .btn-secondary-icon {
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-border-light);
    padding: 0;
    overflow: hidden;
    position: relative;
  }

  .btn-secondary-icon .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--color-off-white);
    color: var(--color-base-200);
    border-right: 1px solid var(--color-border-light);
    transition: all var(--transition-fast);
  }

  .btn-secondary-icon .btn-text {
    padding: 0 var(--space-6);
  }

  .btn-secondary-icon:hover {
    border-color: var(--color-base-300);
  }

  .btn-secondary-icon:hover .btn-icon {
    background: var(--color-gse-lime);
    color: var(--color-black);
    border-color: var(--color-gse-lime);
  }

  /* Secondary Icon Only Button */
  .btn-secondary-icon-only {
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-border-light);
    padding: 0;
    overflow: visible;
    position: relative;
  }

  .btn-secondary-icon-only .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
  }
  .btn-secondary-icon-only:hover {
    border-color: var(--color-base-300);
  }
  .btn-secondary-icon-only:hover .btn-icon {
    background: var(--color-gse-lime);
    color: var(--color-black);
    border-color: var(--color-gse-lime);
  }
  .btn-secondary-icon-only:hover .btn-icon svg {
    transform: none;
  }

  /* Ghost Button */
  .btn-ghost {
    background: transparent;
    color: var(--color-black);
    padding: var(--space-3) 0;
    position: relative;
  }

  .btn-ghost::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gse-lime);
    transition: width var(--transition-base);
  }

  .btn-ghost:hover::after {
    width: 100%;
  }

  /* Danger Button */
  .btn-danger {
    background: var(--color-gse-red);
    color: var(--color-white);
    padding: 12px 24px;
    border: none;
  }

  .btn-danger:hover {
    background: #c4472a;
  }

  /* Button Sizes */
  .btn-xs .btn-icon {
    width: 24px;
    height: 24px;
  }

  .btn-xs .btn-text {
    padding: 0 var(--space-4);
    font-size: 12px;
  }

  .btn-xs::after {
    left: 24px;
  }

  .btn-xs.btn-primary-simple,
  .btn-xs.btn-secondary,
  .btn-xs.btn-danger {
    padding: 8px 16px;
    font-size: 12px;
    height: 24px;
  }

  .btn-sm .btn-icon {
    width: 40px;
    height: 40px;
  }

  .btn-sm .btn-text {
    padding: 0 var(--space-4);
    font-size: 12px;
  }

  .btn-sm::after {
    left: 40px;
  }

  .btn-sm.btn-primary-simple,
  .btn-sm.btn-secondary,
  .btn-sm.btn-danger {
    padding: 8px 16px;
    font-size: 12px;
    height: 40px;
  }

  .btn-lg .btn-icon {
    width: 56px;
    height: 56px;
  }

  .btn-lg .btn-text {
    padding: 0 var(--space-8);
    font-size: 14px;
  }

  .btn-lg::after {
    left: 56px;
  }

  .btn-lg.btn-primary-simple,
  .btn-lg.btn-secondary,
  .btn-lg.btn-danger {
    padding: 16px 32px;
    font-size: 14px;
    height: 56px;
  }



  /* Primary Button - Icon Right variant */
  .btn-primary.icon-right {
    display: flex;
    flex-direction: row;
  }

  .btn-primary.icon-right .btn-text {
    order: 1;
  }

  .btn-primary.icon-right .btn-icon {
    order: 2;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
  }

  .btn-primary.icon-right::after {
    left: 0;
    right: 48px;
    transform: translateX(-100%);
  }

  .btn-primary.icon-right:hover::after {
    transform: translateX(0);
  }

  .btn-primary.icon-right .btn-icon::before {
    transform: translateX(100%);
  }

  .btn-primary.icon-right:hover .btn-icon::before {
    transform: translateX(0);
  }

  /* Icon Right size adjustments */
  .btn-primary.btn-sm.icon-right::after {
    right: 40px;
  }

  .btn-primary.btn-lg.icon-right::after {
    right: 56px;
  }

  /* Secondary with Icon - Icon Right variant */
  .btn-secondary-icon.icon-right {
    display: flex;
    flex-direction: row;
  }

  .btn-secondary-icon.icon-right .btn-text {
    order: 1;
  }

  .btn-secondary-icon.icon-right .btn-icon {
    order: 2;
    border-left: 1px solid var(--color-border-light);
    border-right: none;
  }

  /* Button Groups */
  .btn-group {
    display: inline-flex;
    align-items: stretch;
  }

  .btn-group-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    white-space: nowrap;
  }

  /* Primary group buttons */
  .btn-group-item.primary {
    background: var(--color-black);
    color: var(--color-white);
  }

  .btn-group-item.primary:hover {
    background: var(--color-charcoal);
  }

  .btn-group-item.primary:first-child {
    border-radius: 8px 0 0 8px;
  }

  .btn-group-item.primary:last-child {
    border-radius: 0 8px 8px 0;
  }

  .btn-group-item.primary:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  /* Secondary/outline group buttons */
  .btn-group-item.secondary {
    background: var(--color-white);
    color: var(--color-black);
    border: 1px solid var(--color-border-light);
    margin-left: -1px;
  }

  .btn-group-item.secondary:first-child {
    margin-left: 0;
    border-radius: 8px 0 0 8px;
  }

  .btn-group-item.secondary:last-child {
    border-radius: 0 8px 8px 0;
  }

  .btn-group-item.secondary:hover {
    background: var(--color-off-white);
    border-color: var(--color-base-300);
    z-index: 1;
  }

  .btn-group-item.secondary.active {
    background: var(--color-black);
    color: var(--color-white);
    border-color: var(--color-black);
    z-index: 2;
  }

  /* Icon-only button in group */
  .btn-group-item.icon-only {
    padding: 10px 12px;
  }

  .btn-group-item.icon-only svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* Button Group Sizes */
  .btn-group-sm .btn-group-item {
    padding: 8px 14px;
    font-size: 12px;
  }

  .btn-group-lg .btn-group-item {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Segmented Control Style */
  .btn-group-segmented {
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    padding: 4px;
    border-radius: 10px;
    gap: 2px;
  }

  .btn-group-segmented .btn-group-item {
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--color-base-200);
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
  }

  .btn-group-segmented .btn-group-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-black);
  }

  .btn-group-segmented .btn-group-item.active {
    background: var(--color-white);
    color: var(--color-black);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  /* Split Button (Button with dropdown) */
  .btn-group-split {
    display: inline-flex;
    align-items: stretch;
    position: relative;
  }

  .btn-group-split .btn-group-item:first-child {
    border-radius: 8px 0 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
  }

  .btn-group-split .split-toggle {
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
  }

  .btn-group-split .split-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform var(--transition-fast);
  }

  .btn-group-split.open .split-toggle svg {
    transform: rotate(180deg);
  }

  /* Split Button Dropdown */
  .split-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 160px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 100;
    overflow: hidden;
  }

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

  .split-dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast);
  }

  .split-dropdown-item:hover {
    background: var(--color-off-white);
  }

    /* Button Text Color */
    .btn-text-blue {
      color: var(--color-blue);
    }
    .btn-text-blue:hover {
      color: var(--color-blue-dark);
    }

  /* ============================================
     TOP HEADER (from design system)
     ============================================ */
  .top-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    padding: var(--space-4) var(--space-8);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
  }

  .top-header-left h1 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--color-black);
  }

  .top-header-left p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
  }

  .top-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-border-light);
    background: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
  }

  .header-icon-btn:hover {
    background: var(--color-off-white);
    border-color: var(--color-base-300);
  }

  .header-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-base-300);
    stroke-width: 2;
    fill: none;
  }

  .header-icon-btn .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: var(--color-gse-red);
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* ============================================
     PAGE CONTENT (from design system)
     ============================================ */
  .page-content {
    padding: var(--space-8);
    background: var(--color-off-white);
    min-height: calc(100vh - 120px);
  }

  /* Stats Grid */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

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

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

  /* Content Grid */
  .content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  @media (max-width: 1024px) {
    .content-grid {
      grid-template-columns: 1fr;
    }
  }

  .content-grid-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  @media (max-width: 1024px) {
    .content-grid-half {
      grid-template-columns: 1fr;
    }
  }

  /* ============================================
     SIDEBAR NAVIGATION (from design system)
     ============================================ */
  .sidebar {
    width: 280px;
    background: var(--color-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: width 0.25s ease;
  }

  .sidebar-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border-dark);
  }

  .sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    margin-bottom: var(--space-3);
  }

  .sidebar-logo-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--color-gse-lime);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-black);
  }

  .sidebar-logo-icon svg {
    width: 20px;
    height: 20px;
  }

  .sidebar-logo-text {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 500;
    color: var(--color-white);
  }

  .sidebar-logo-img {
    height: 24px;
    width: auto;
  }

  /* Logo SVG styling for dark sidebar */
  .sidebar-logo .gse-logo-svg {
    color: var(--color-white);
  }

  .sidebar-logo .gse-logo-svg .gse-word {
    fill: var(--color-white);
  }

  /* Text-based logo for dark sidebar */
  .sidebar-logo .rf-nav-logo {
    font-size: 20px;
    gap: 5px;
  }

  .sidebar-logo .rf-logo-word {
    color: var(--color-white);
  }

  .sidebar-logo .rf-logo-word::after {
    background: transparent;
    height: 6px;
  }

  .sidebar-logo .rf-logo-word[data-color="lime"]::after {
    background: var(--color-gse-lime);
  }

  .sidebar-logo .rf-logo-word[data-color="cyan"]::after {
    background: var(--color-gse-cyan);
  }

  .sidebar-logo .rf-logo-word[data-color="blue"]::after {
    background: var(--color-gse-blue);
  }

  .sidebar-logo:hover .rf-logo-word::after {
    height: 100%;
    bottom: 0;
  }

  .sidebar-logo:hover .rf-logo-word[data-color="lime"],
  .sidebar-logo:hover .rf-logo-word[data-color="cyan"] {
    color: var(--color-black);
  }

  .sidebar-logo:hover .rf-logo-word[data-color="blue"] {
    color: var(--color-white);
  }

  /* Adjust hover colors for dark background */
  .sidebar-logo .gse-logo-svg:hover .gse-word-game {
    fill: var(--color-black);
  }

  .sidebar-logo .gse-logo-svg:hover .gse-word-set {
    fill: var(--color-black);
  }

  .sidebar-logo .gse-logo-svg:hover .gse-word-engage {
    fill: var(--color-white);
  }

  /* Sidebar Navigation */
  .sidebar-nav {
    flex: 1;
    padding: var(--space-4);
    overflow-y: auto;
  }

  .sidebar-section {
    margin-bottom: var(--space-6);
  }

  .sidebar-section-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9CA3AF;
    padding: 0 var(--space-3);
    margin-bottom: var(--space-2);
  }

  .sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .sidebar-item {
    margin-bottom: 2px;
    position: relative;
  }

  .sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 8px;
    text-decoration: none;
    color: #A0AEC0;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
  }

  .sidebar-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
  }

  .sidebar-link.active {
    background: rgba(196, 255, 0, 0.1);
    color: var(--color-gse-lime);
  }

  .sidebar-link-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar-link-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
  }

  .sidebar-link-text {
    flex: 1;
  }

  .sidebar-badge {
    padding: 2px 8px;
    background: var(--color-gse-red);
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
  }

  .sidebar-badge.badge-lime {
    background: var(--color-gse-lime);
    color: var(--color-black);
  }

  /* Main Content Offset for Sidebar */
  .main-content {
    flex: 1;
    margin-left: 280px;
  }

  @media (max-width: 1024px) {
    .main-content {
      margin-left: 0;
    }
  }

  /* ============================================
     SIDEBAR CLUB SWITCHER (from design system)
     ============================================ */
  .sidebar-club-wrapper {
    position: relative;
  }

  .sidebar-club {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
  }

  .sidebar-club:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .sidebar-club-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--color-gse-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-white);
    flex-shrink: 0;
    overflow: hidden;
  }

  .sidebar-club-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sidebar-club-info {
    flex: 1;
    min-width: 0;
  }

  .sidebar-club-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .sidebar-club-type {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-gse-lime);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .sidebar-club-switch {
    width: 16px;
    height: 16px;
    stroke: var(--color-base-300);
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
    margin-left: auto;
    transition: transform var(--transition-fast);
  }

  .sidebar-club-wrapper.open .sidebar-club-switch {
    transform: rotate(180deg);
  }

  .sidebar-club-wrapper.open .sidebar-club {
    background: rgba(255, 255, 255, 0.08);
  }

  /* Club Dropdown */
  .sidebar-club-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }

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

  .sidebar-club-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 6px;
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
  }

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

  .sidebar-club-dropdown-item.active {
    background: rgba(196, 255, 0, 0.1);
  }

  .sidebar-club-dropdown-item .sidebar-club-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 11px;
  }

  .sidebar-club-dropdown-item.active .sidebar-club-name {
    color: var(--color-gse-lime);
  }

  .sidebar-club-dropdown-divider {
    height: 1px;
    background: var(--color-border-dark);
    margin: var(--space-2) 0;
  }

  .sidebar-club-dropdown-action {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-base-200);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all var(--transition-fast);
    text-decoration: none;
  }

  .sidebar-club-dropdown-action:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
  }

  .sidebar-club-dropdown-action svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* ============================================
     SIDEBAR SUBMENU (from design system)
     ============================================ */
  .sidebar-chevron {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
    margin-left: auto;
  }

  .sidebar-chevron svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .sidebar-submenu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
  }

  .sidebar-submenu {
    display: none;
    padding-left: var(--space-8);
    margin-top: 2px;
    list-style: none;
  }

  .sidebar-submenu-toggle:checked + label + .sidebar-submenu,
  .sidebar-submenu-toggle:checked ~ .sidebar-submenu {
    display: block;
  }

  .sidebar-submenu-toggle:checked + label .sidebar-chevron,
  .sidebar-submenu-toggle:checked ~ .sidebar-link .sidebar-chevron {
    transform: rotate(180deg);
  }

  .sidebar-submenu .sidebar-link {
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }

  .sidebar-submenu .sidebar-item {
    margin-bottom: 0;
  }

  /* ============================================
     SIDEBAR FOOTER / USER PROFILE (from design system)
     ============================================ */
  .sidebar-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border-dark);
  }

  .sidebar-user-wrapper {
    position: relative;
  }

  .sidebar-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

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

  .sidebar-user-wrapper.open .sidebar-user {
    background: rgba(255, 255, 255, 0.08);
  }

  .sidebar-user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gse-lime), var(--color-gse-cyan));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    flex-shrink: 0;
    overflow: hidden;
  }

  .sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .sidebar-user-info {
    flex: 1;
    min-width: 0;
  }

  .sidebar-user-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-white);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sidebar-user-role {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
    display: block;
  }

  .sidebar-user-dots {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 4px;
    transition: background var(--transition-fast);
  }

  .sidebar-user-dots svg {
    width: 16px;
    height: 16px;
    fill: var(--color-base-300);
  }

  .sidebar-user:hover .sidebar-user-dots {
    background: rgba(255, 255, 255, 0.1);
  }

  .sidebar-user-wrapper.open .sidebar-user-dots svg {
    fill: var(--color-white);
  }

  /* User Dropdown */
  .sidebar-user-dropdown {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-charcoal);
    border: 1px solid var(--color-border-dark);
    border-radius: 8px;
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition-fast);
    z-index: 100;
    box-shadow: var(--shadow-lg);
  }

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

  .sidebar-user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: 6px;
    cursor: pointer;
    color: var(--color-base-200);
    font-family: var(--font-sans);
    font-size: 13px;
    transition: all var(--transition-fast);
    text-decoration: none;
  }

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

  .sidebar-user-dropdown-item svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
  }

  .sidebar-user-dropdown-divider {
    height: 1px;
    background: var(--color-border-dark);
    margin: var(--space-2) 0;
  }

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

  .sidebar-user-dropdown-item.danger:hover {
    background: rgba(224, 85, 46, 0.1);
    color: var(--color-gse-red);
  }

  /* ============================================
     BILLING & SUBSCRIPTION COMPONENTS
     ============================================ */

  /* Billing Card */
  .billing-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    margin-bottom: var(--space-6);
  }

  .billing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
  }

  .billing-card-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
  }

  .billing-card-title svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-base-300);
  }

  .billing-card-action {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-gse-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .billing-card-action:hover {
    color: var(--color-black);
  }

  .billing-card-action svg {
    width: 14px;
    height: 14px;
  }

  .billing-card-body {
    padding: var(--space-5);
  }

  /* Payment Method */
  .payment-method {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .payment-method-icon {
    width: 48px;
    height: 32px;
    background: var(--color-base-100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .payment-method-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--color-base-300);
  }

  .payment-method-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .payment-method-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
  }

  .payment-method-detail {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-base-300);
  }

  /* Billing Info Grid */
  .billing-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

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

  .billing-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .billing-info-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
  }

  .billing-info-value {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
  }

  /* Data Table */
  .data-table-wrapper {
    overflow-x: auto;
  }

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

  .data-table thead {
    background: var(--color-off-white);
  }

  .data-table th {
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
  }

  .data-table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
  }

  .data-table tbody tr:hover {
    background: var(--color-off-white);
  }

  .data-table-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .data-table-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
  }

  .data-table-amount {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .data-table-action {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-gse-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .data-table-action:hover {
    color: var(--color-black);
  }

  .data-table-action svg {
    width: 14px;
    height: 14px;
  }

  /* Status Badge */
  .status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .status-badge.success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
  }

  .status-badge.warning {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
  }

  .status-badge.danger {
    background: rgba(224, 85, 46, 0.1);
    color: var(--color-gse-red);
  }

  .status-badge.default {
    background: var(--color-off-white);
    color: var(--color-base-300);
  }

  /* Empty State */
  .empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
  }

  .empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--color-gse-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .empty-state-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-black);
  }

  .empty-state-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-2);
  }

  .empty-state-text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  /* Panel Filter */
  .panel-filter {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-black);
    background: var(--color-white);
    cursor: pointer;
  }

  .panel-filter:focus {
    outline: none;
    border-color: var(--color-gse-blue);
  }

  /* Billing Tabs */
  .billing-tabs {
    display: flex;
    gap: var(--space-1);
    border-bottom: 2px solid var(--color-border);
    margin-bottom: var(--space-6);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .billing-tab {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .billing-tab:hover {
    color: var(--color-text);
  }

  .billing-tab.active {
    color: var(--color-text);
    border-bottom-color: var(--color-gse-lime);
    background: var(--color-gse-lime);
    border-radius: 6px 6px 0 0;
  }

  .billing-tab-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  /* Plan Hero */
  .plan-hero {
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
    border-radius: 16px;
    padding: var(--space-8);
    margin-bottom: var(--space-6);
    color: var(--color-white);
  }

  .plan-hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-6);
  }

  .plan-hero-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(196, 255, 0, 0.2);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gse-lime);
    margin-bottom: var(--space-2);
  }

  .plan-hero-name {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 600;
    margin: 0 0 var(--space-2) 0;
  }

  .plan-hero-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
  }

  .plan-hero-amount {
    font-family: var(--font-sans);
    font-size: 28px;
    font-weight: 700;
  }

  .plan-hero-period {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-200);
  }

  .plan-hero-usage {
    margin-bottom: var(--space-6);
  }

  .plan-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
  }

  .plan-usage-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-200);
  }

  .plan-usage-count {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
  }

  .plan-usage-count strong {
    color: var(--color-white);
  }

  .plan-usage-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
  }

  .plan-usage-fill {
    height: 100%;
    border-radius: 4px;
    transition: width var(--transition-base);
  }

  .plan-usage-fill.success {
    background: var(--color-gse-lime);
  }

  .plan-usage-fill.warning {
    background: #eab308;
  }

  .plan-usage-fill.danger {
    background: var(--color-gse-red);
  }

  .plan-usage-warning {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    font-family: var(--font-sans);
    font-size: 13px;
    color: #eab308;
  }

  .plan-usage-warning svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .plan-hero-meta {
    display: flex;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
  }

  .plan-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
  }

  .plan-meta-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-base-300);
  }

  .plan-meta-item strong {
    color: var(--color-white);
  }

  .plan-hero-actions {
    display: flex;
    gap: var(--space-3);
  }

  /* Plans Grid */
  .plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-6);
  }

  .plans-grid.plans-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  @media (max-width: 1280px) {
    .plans-grid.plans-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

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

  @media (max-width: 640px) {
    .plans-grid,
    .plans-grid.plans-grid-4 {
      grid-template-columns: 1fr;
    }
  }

  .plan-card {
    position: relative;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all var(--transition-fast);
  }

  .plan-card:hover {
    border-color: var(--color-base-300);
  }

  .plan-card.featured {
    border-color: var(--color-gse-lime);
    box-shadow: 0 4px 20px rgba(196, 255, 0, 0.15);
  }

  .plan-card-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    background: var(--color-gse-lime);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-black);
  }

  .plan-card-header {
    margin-bottom: var(--space-4);
  }

  .plan-card-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 var(--space-2) 0;
  }

  .plan-card-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
  }

  .plan-card-amount {
    font-family: var(--font-sans);
    font-size: 32px;
    font-weight: 700;
    color: var(--color-black);
  }

  .plan-card-period {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-300);
  }

  .plan-card-desc {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    margin-bottom: var(--space-4);
    line-height: 1.5;
  }

  .plan-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
  }

  .plan-card-features li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) 0;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-black);
  }

  .plan-card-features svg {
    width: 16px;
    height: 16px;
    stroke: #16a34a;
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
  }

  .plan-card-btn {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-gse-lime);
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .plan-card-btn:hover {
    background: var(--color-gse-lime);
  }

  .plan-card-btn.current {
    background: var(--color-off-white);
    border-color: var(--color-border-light);
    color: var(--color-base-300);
    cursor: not-allowed;
  }

  .plan-card.featured .plan-card-btn {
    background: var(--color-gse-lime);
  }

  .plan-card.featured .plan-card-btn:hover {
    background: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
  }

  .plans-note {
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .plans-note a {
    color: var(--color-gse-blue);
    text-decoration: none;
  }

  .plans-note a:hover {
    text-decoration: underline;
  }

  /* Panel Danger Zone */
  .panel.panel-danger {
    border-color: rgba(224, 85, 46, 0.3);
  }

  .panel.panel-danger .panel-header {
    background: rgba(224, 85, 46, 0.05);
  }

  .panel.panel-danger .panel-title {
    color: var(--color-gse-red);
  }

  .danger-zone-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-300);
    margin-bottom: var(--space-4);
    line-height: 1.6;
  }

  .btn-danger-outline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    border: 2px solid var(--color-gse-red);
    border-radius: 8px;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-gse-red);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .btn-danger-outline:hover {
    background: var(--color-gse-red);
    color: var(--color-white);
  }

  /* Panel Subtitle */
  .panel-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  /* Billing Columns Layout */
  .billing-columns {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .billing-column-main {
    flex: 1;
    min-width: 0;
  }

  .billing-column-side {
    width: 320px;
    flex-shrink: 0;
  }

  .billing-column-side .billing-card {
    margin-bottom: var(--space-4);
  }

  .billing-column-side .billing-card:last-child {
    margin-bottom: 0;
  }

  @media (max-width: 1024px) {
    .billing-columns {
      flex-direction: column;
    }

    .billing-column-side {
      width: 100%;
    }
  }

  /* Billing Info List */
  .billing-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  /* Quick Links */
  .quick-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .quick-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    margin: 0 calc(-1 * var(--space-3));
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
    text-decoration: none;
    transition: background var(--transition-fast);
  }

  .quick-link:hover {
    background: var(--color-off-white);
  }

  .quick-link svg {
    width: 18px;
    height: 18px;
    stroke: var(--color-base-300);
    flex-shrink: 0;
  }

  .quick-link:hover svg {
    stroke: var(--color-gse-blue);
  }

  /* ============================================
     VENUE EARNINGS PAGE COMPONENTS
     ============================================ */

  /* Payout Banner */
  .payout-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
    border-radius: 12px;
    margin-bottom: var(--space-6);
    color: var(--color-white);
  }

  .payout-banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .payout-banner-icon {
    width: 48px;
    height: 48px;
    background: rgba(196, 255, 0, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .payout-banner-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-gse-lime);
  }

  .payout-banner-title {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 var(--space-1) 0;
  }

  .payout-banner-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-200);
    margin: 0;
  }

  .payout-banner-subtitle strong {
    color: var(--color-gse-lime);
  }

  .payout-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(196, 255, 0, 0.15);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gse-lime);
  }

  @media (max-width: 768px) {
    .payout-banner {
      flex-direction: column;
      gap: var(--space-4);
      text-align: center;
    }

    .payout-banner-content {
      flex-direction: column;
    }
  }

  /* Venue Cell in Table */
  .venue-cell {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .venue-avatar {
    width: 36px;
    height: 36px;
    background: var(--color-gse-lime);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    flex-shrink: 0;
  }

  .venue-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .venue-name-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .venue-name-link:hover {
    color: var(--color-gse-blue);
  }

  .venue-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
  }

  .venue-rating .star-icon {
    width: 12px;
    height: 12px;
    fill: #eab308;
  }

  /* Category Badge */
  .category-badge {
    display: inline-block;
    padding: 4px 10px;
    background: var(--color-off-white);
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-base-300);
  }

  /* Table Text Helpers */
  .text-success {
    color: #16a34a !important;
  }

  .text-muted {
    color: var(--color-base-300);
  }

  .date-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .font-medium {
    font-weight: 500;
  }

  .text-right {
    text-align: right;
  }

  /* Table Footer Row */
  .data-table tfoot .totals-row {
    background: var(--color-off-white);
  }

  .data-table tfoot .totals-row td {
    padding: var(--space-4);
    border-top: 2px solid var(--color-border-light);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
  }

  /* Filter Form */
  .filter-form {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .form-input-sm {
    padding: var(--space-2) var(--space-3);
    font-size: 13px;
    min-width: 150px;
  }

  /* Info Panel */
  .panel.panel-info {
    border-color: rgba(61, 82, 213, 0.2);
    background: rgba(61, 82, 213, 0.02);
  }

  .panel.panel-info .panel-header {
    background: transparent;
    border-bottom-color: rgba(61, 82, 213, 0.1);
  }

  /* Info Grid */
  .info-grid {
    display: grid;
    gap: var(--space-6);
  }

  .info-grid.info-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .info-card {
    text-align: center;
    padding: var(--space-4);
  }

  .info-card-number {
    width: 32px;
    height: 32px;
    margin: 0 auto var(--space-3);
    background: var(--color-gse-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-black);
  }

  .info-card-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 var(--space-2) 0;
  }

  .info-card-text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    line-height: 1.5;
    margin: 0;
  }

  .info-card-text strong {
    color: var(--color-black);
    font-weight: 600;
  }

  /* Stats Grid 4 */
  .stats-grid.stats-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  @media (max-width: 1200px) {
    .stats-grid.stats-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
  }

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

  /* Empty State Button */
  .empty-state .btn {
    margin-top: var(--space-4);
  }

  /* ============================================
     CREW PAGE COMPONENTS
     ============================================ */

  /* Crew Columns Layout */
  .crew-columns {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
    margin-top: var(--space-6);
  }

  .crew-column-main {
    flex: 1;
    min-width: 0;
  }

  .crew-column-side {
    width: 320px;
    flex-shrink: 0;
  }

  .crew-column-side .billing-card {
    margin-bottom: var(--space-4);
  }

  .crew-column-side .billing-card:last-child {
    margin-bottom: 0;
  }

  @media (max-width: 1024px) {
    .crew-columns {
      flex-direction: column;
    }

    .crew-column-side {
      width: 100%;
    }
  }

  /* Crew List */
  .crew-list {
    display: flex;
    flex-direction: column;
  }

  .crew-member {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--transition-fast);
  }

  .crew-member:last-child {
    border-bottom: none;
  }

  .crew-member:hover {
    background: var(--color-off-white);
  }

  .crew-member-info {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .crew-member-avatar {
    position: relative;
    width: 48px;
    height: 48px;
  }

  .crew-member-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .crew-member-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--color-white);
  }

  .crew-member-status.online {
    background: #22c55e;
  }

  .crew-member-status.away {
    background: #eab308;
  }

  .crew-member-status.offline {
    background: var(--color-base-300);
  }

  .crew-member-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .crew-member-name {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .crew-member-meta {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .crew-member-email {
    color: var(--color-base-300);
  }

  .crew-member-activity {
    color: var(--color-base-400);
  }

  .crew-member-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    opacity: 0;
    transition: opacity var(--transition-fast);
  }

  .crew-member:hover .crew-member-actions {
    opacity: 1;
  }

  /* Role Badge */
  .role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .role-badge.owner {
    background: rgba(147, 51, 234, 0.1);
    color: #9333ea;
  }

  .role-badge.crew {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }

  /* Invitation List */
  .invitation-list {
    display: flex;
    flex-direction: column;
  }

  .invitation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
    background: rgba(234, 179, 8, 0.05);
  }

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

  .invitation-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .invitation-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(234, 179, 8, 0.15);
    border-radius: 50%;
  }

  .invitation-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ca8a04;
  }

  .invitation-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .invitation-email {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
  }

  .invitation-sent {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .invitation-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  /* Panel Header Variants */
  .panel-header-accent-warning {
    background: rgba(234, 179, 8, 0.1);
    border-bottom-color: rgba(234, 179, 8, 0.2);
  }

  /* Button Small Variant */
  .btn.btn-small {
    padding: var(--space-2) var(--space-3);
    font-size: 12px;
  }

  .btn.btn-small .btn-icon {
    width: 14px;
    height: 14px;
  }

  .btn.btn-small .btn-icon svg {
    width: 14px;
    height: 14px;
  }

  /* Stats Grid Variants */
  .stats-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-6);
  }

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

  /* ============================================
     CLUB INFORMATION PAGE COMPONENTS
     ============================================ */

  /* Info Columns Layout */
  .info-columns {
    display: flex;
    gap: var(--space-6);
    align-items: flex-start;
  }

  .info-column-main {
    flex: 1;
    min-width: 0;
  }

  .info-column-side {
    width: 320px;
    flex-shrink: 0;
  }

  .info-column-side .billing-card {
    margin-bottom: var(--space-4);
  }

  .info-column-side .billing-card:last-child {
    margin-bottom: 0;
  }

  @media (max-width: 1024px) {
    .info-columns {
      flex-direction: column;
    }

    .info-column-side {
      width: 100%;
    }
  }

  /* Info Grid */
  .info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

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

  .info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
  }

  .info-item-full {
    grid-column: 1 / -1;
  }

  .info-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
  }

  .info-value {
    font-family: var(--font-sans);
    font-size: 15px;
    color: var(--color-black);
  }

  .info-value.info-link {
    color: var(--color-gse-blue);
    text-decoration: none;
  }

  .info-value.info-link:hover {
    text-decoration: underline;
  }

  .info-value.info-empty {
    color: var(--color-base-400);
  }

  .info-value.info-mono {
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .info-divider {
    height: 1px;
    background: var(--color-border-light);
    margin: var(--space-5) 0;
  }

  /* Mini Crew List */
  .mini-crew-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .mini-crew-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .mini-crew-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--color-border-light);
  }

  .mini-crew-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-base-400);
    flex-shrink: 0;
  }

  .mini-crew-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .mini-crew-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
  }

  .mini-crew-role {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
  }

  .mini-crew-more {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    text-align: center;
    padding-top: var(--space-2);
    border-top: 1px solid var(--color-border-light);
  }

  .mini-empty {
    text-align: center;
    padding: var(--space-4);
  }

  .mini-empty p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  /* Form Section */
  .form-section {
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-5);
  }

  .form-section-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-4);
  }

  /* Form Error Box */
  .form-error-box {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(224, 85, 46, 0.05);
    border: 1px solid rgba(224, 85, 46, 0.2);
    border-radius: 8px;
    margin-bottom: var(--space-5);
  }

  .form-error-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--color-gse-red);
  }

  .form-error-icon svg {
    width: 100%;
    height: 100%;
  }

  .form-error-content h4 {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-gse-red);
    margin-bottom: var(--space-2);
  }

  .form-error-content ul {
    list-style: disc;
    padding-left: var(--space-4);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-gse-red);
  }

  .form-error-content li {
    margin-bottom: 2px;
  }

  /* Form Autocomplete */
  .form-autocomplete {
    position: relative;
  }

  .form-suggestions {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 4px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    max-height: 240px;
    overflow-y: auto;
  }

  .form-suggestions.hidden {
    display: none;
  }

  /* ============================================
     EVENTS PAGE COMPONENTS
     ============================================ */

  /* Events Grid - Three Column Layout */
  .events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

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

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

  /* Panel Header Variants */
  .panel-header-accent-red {
    background: var(--color-gse-red);
    border-bottom: none;
  }

  .panel-header-accent-cyan {
    background: var(--color-gse-cyan);
    border-bottom: none;
  }

  .panel-header-accent-lime {
    background: var(--color-gse-lime);
    border-bottom: none;
  }

  .panel-title-light {
    color: var(--color-white);
  }

  .panel-header-accent-lime .panel-title-light {
    color: var(--color-black);
  }

  .panel-header-accent-cyan .panel-title-light {
    color: var(--color-black);
  }

  /* Panel Badge */
  .panel-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-radius: 12px;
  }

  .panel-badge-dark {
    background: var(--color-black);
    color: var(--color-white);
  }

  .panel-header-accent-lime .panel-badge {
    background: rgba(0, 0, 0, 0.15);
    color: var(--color-black);
  }

  .panel-header-accent-cyan .panel-badge {
    background: rgba(0, 0, 0, 0.15);
    color: var(--color-black);
  }

  /* Panel Empty State */
  .panel-empty {
    padding: var(--space-10) var(--space-6);
    text-align: center;
  }

  .panel-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--color-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .panel-empty-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-base-300);
    stroke-width: 1.5;
    fill: none;
  }

  .panel-empty-text {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-base-300);
    margin-bottom: var(--space-2);
  }

  .panel-empty-hint {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-400);
  }

  /* Panel Actions */
  .panel-actions {
    display: flex;
    gap: var(--space-2);
  }

  /* Event Item Variations */
  .event-item-link {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    width: 100%;
    text-decoration: none;
    color: inherit;
  }

  .event-item-past {
    opacity: 0.6;
  }

  .event-item-past:hover {
    opacity: 1;
  }

  /* Event Badge Status Variations */
  .event-badge-ongoing {
    background: rgba(255, 193, 7, 0.2);
    color: #B8860B;
  }

  .event-badge-completed {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-base-300);
  }

  /* Stats Grid for Months */
  .stats-grid-months {
    grid-template-columns: 1fr 1fr repeat(3, 1fr);
  }

  @media (max-width: 1200px) {
    .stats-grid-months {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (max-width: 768px) {
    .stats-grid-months {
      grid-template-columns: repeat(2, 1fr);
    }
  }

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

  .stat-card-wide {
    grid-column: span 1;
  }

  .stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .stat-card-link:hover {
    text-decoration: none;
  }

  .stat-card:has(.stat-card-link):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .stat-card-dark:has(.stat-card-link):hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }

  .stat-card-accent:has(.stat-card-link):hover {
    box-shadow: 0 4px 16px rgba(196, 255, 0, 0.3);
  }

  /* Month Navigation */
  .month-navigation {
    margin-bottom: var(--space-6);
  }

  .month-navigation-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-4) var(--space-6);
  }

  .month-navigation-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
  }

  .month-navigation-btn:hover {
    background: var(--color-white);
    border-color: var(--color-base-300);
  }

  .month-navigation-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-base-300);
    stroke-width: 2;
    fill: none;
  }

  .month-navigation-title {
    text-align: center;
    min-width: 200px;
  }

  .month-navigation-month {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
    display: block;
    line-height: 1.2;
  }

  .month-navigation-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-base-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Page Back Link */
  .page-back-link {
    margin-bottom: var(--space-6);
  }

  .back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-base-300);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .back-link:hover {
    color: var(--color-black);
  }

  .back-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* ============================================
     CALENDAR TIMELINE COMPONENTS
     ============================================ */

  /* Calendar Layout — sidebar + timeline */
  .calendar-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }

  @media (max-width: 1024px) {
    .calendar-layout {
      grid-template-columns: 1fr;
    }
  }

  /* Sidebar */
  .calendar-sidebar {
    order: 2;
  }

  @media (max-width: 1024px) {
    .calendar-sidebar {
      order: -1;
    }
  }

  .calendar-sidebar-inner {
    position: sticky;
    top: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  /* Month Navigation */
  .calendar-month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
  }

  .calendar-month-nav-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-light);
    background: var(--color-off-white);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    color: var(--color-base-300);
  }

  .calendar-month-nav-btn:hover {
    background: var(--color-white);
    border-color: var(--color-base-300);
    color: var(--color-black);
  }

  .calendar-month-nav-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .calendar-month-center {
    text-align: center;
  }

  .calendar-month-label {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    display: block;
    line-height: 1.2;
  }

  .calendar-month-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* Type Summary */
  .calendar-type-summary {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }

  .calendar-type-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .calendar-type-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .calendar-type-dot--match {
    background: var(--color-gse-red);
  }

  .calendar-type-dot--event {
    background: var(--color-gse-cyan);
  }

  .calendar-type-dot--system {
    background: var(--color-base-300);
  }

  .calendar-type-label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    flex: 1;
  }

  .calendar-type-count {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-black);
  }

  /* Month Browse List */
  .calendar-month-list {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    overflow: hidden;
  }

  .calendar-month-list-header {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-base-300);
    padding: var(--space-3) var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
  }

  .calendar-month-link {
    display: flex;
    align-items: center;
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    color: inherit;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--color-border-light);
  }

  .calendar-month-link:last-child {
    border-bottom: none;
  }

  .calendar-month-link:hover {
    background: var(--color-off-white);
  }

  .calendar-month-link-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
    flex: 1;
  }

  .calendar-month-link-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-base-300);
    margin-right: var(--space-2);
  }

  .calendar-month-link-chevron {
    width: 14px;
    height: 14px;
    stroke: var(--color-base-400);
    stroke-width: 2;
    fill: none;
  }

  /* Timeline Main */
  .calendar-timeline {
    order: 1;
    min-width: 0;
  }

  /* Date Group */
  .calendar-date-group {
    margin-bottom: var(--space-5);
  }

  .calendar-date-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-left: var(--space-3);
    border-left: 3px solid var(--color-base-200);
  }

  .calendar-date-group--today .calendar-date-header {
    border-left-color: var(--color-gse-lime);
  }

  .calendar-date-label {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .calendar-date-sublabel {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
  }

  /* Event Card */
  .calendar-event-card {
    display: block;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-left: 3px solid var(--color-base-200);
    margin-bottom: var(--space-3);
    color: inherit;
    transition: all var(--transition-fast);
  }

  .calendar-event-card-link {
    display: block;
    padding: var(--space-4) var(--space-5);
    text-decoration: none;
    color: inherit;
  }

  .calendar-event-card:hover {
    border-color: var(--color-base-200);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
  }

  .calendar-event-card--match {
    border-left-color: var(--color-gse-red);
  }

  .calendar-event-card--event {
    border-left-color: var(--color-gse-cyan);
  }

  .calendar-event-card--system {
    border-left-color: var(--color-base-300);
  }

  .calendar-event-card--past {
    opacity: 0.6;
  }

  .calendar-event-card--past:hover {
    opacity: 0.9;
  }

  .calendar-event-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .calendar-event-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .calendar-event-card-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-event-card-location {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .calendar-event-card-location svg {
    width: 13px;
    height: 13px;
    stroke: var(--color-base-400);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
  }

  .calendar-event-card-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
  }

  .calendar-event-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .calendar-event-card-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
  }

  .calendar-event-card-icon--match {
    background: rgba(224, 85, 46, 0.1);
    color: var(--color-gse-red);
  }

  .calendar-event-card-icon--event {
    background: rgba(0, 229, 255, 0.1);
    color: var(--color-gse-cyan);
  }

  .calendar-event-card-icon--system {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-base-300);
  }

  .calendar-event-card-image {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    overflow: hidden;
  }

  .calendar-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .calendar-event-card-badge-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .calendar-event-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
  }

  .calendar-event-card-time {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-base-300);
  }

  .calendar-event-card-time svg {
    width: 13px;
    height: 13px;
    stroke: var(--color-base-400);
    stroke-width: 1.5;
    fill: none;
    flex-shrink: 0;
  }

  .calendar-event-card-status {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 2px 8px;
  }

  .calendar-event-card-status--upcoming {
    background: rgba(0, 102, 255, 0.08);
    color: var(--color-gse-blue);
  }

  .calendar-event-card-status--ongoing {
    background: rgba(255, 193, 7, 0.15);
    color: #B8860B;
  }

  .calendar-event-card-status--past {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-base-300);
  }

  /* Linked Campaigns */
  .calendar-event-card-campaigns {
    padding: 0 var(--space-5) var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .calendar-campaign-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    text-decoration: none;
    transition: all var(--transition-fast);
  }

  .calendar-campaign-link:hover {
    background: var(--color-white);
    border-color: var(--color-base-200);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }

  .calendar-campaign-link-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--color-base-300);
  }

  .calendar-campaign-link-name {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .calendar-campaign-link-type {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-base-300);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
  }

  .calendar-campaign-link-status {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 1px 6px;
    flex-shrink: 0;
  }

  .calendar-campaign-link-status--active {
    background: rgba(196, 255, 0, 0.15);
    color: #4a5c00;
  }

  .calendar-campaign-link-status--draft {
    background: rgba(107, 114, 128, 0.1);
    color: var(--color-base-300);
  }

  .calendar-campaign-link-status--completed {
    background: rgba(0, 102, 255, 0.08);
    color: var(--color-gse-blue);
  }

  /* Empty State */
  .calendar-empty-timeline {
    text-align: center;
    padding: var(--space-16) var(--space-6);
  }

  .calendar-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .calendar-empty-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-base-300);
    stroke-width: 1.5;
    fill: none;
  }

  .calendar-empty-text {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-base-300);
    margin-bottom: var(--space-2);
  }

  .calendar-empty-hint {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-400);
  }

  /* Form Container */
  .form-container {
    max-width: 640px;
  }

  /* Event Form Container - Centered */
  .event-form-container {
    max-width: 720px;
    margin: 0 auto;
  }

  /* Detail Grid for Event Show Page */
  .detail-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  .detail-row {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  @media (min-width: 640px) {
    .detail-row {
      flex-direction: row;
      align-items: flex-start;
      gap: var(--space-6);
    }
  }

  .detail-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-base-300);
    min-width: 120px;
    flex-shrink: 0;
    padding-top: 2px;
  }

  .detail-value {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
    flex: 1;
  }

  .detail-value-mono {
    font-family: var(--font-mono);
    font-size: 13px;
  }

  .detail-datetime {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .datetime-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .datetime-item svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-base-300);
    stroke-width: 2;
    fill: none;
  }

  /* Notes List */
  .notes-list {
    max-height: 400px;
    overflow-y: auto;
  }

  /* ============================================
     FORM COMPONENTS (from design system)
     ============================================ */

  /* Form Stacked Layout */
  .form-stacked {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  /* Form Group */
  .form-group {
    display: flex;
    flex-direction: column;
  }

  /* Form Row (side-by-side fields) */
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

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

  /* Form Label */
  .form-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-base-300);
    margin-bottom: var(--space-2);
  }

  .form-label.required::after {
    content: '*';
    color: var(--color-gse-red);
    margin-left: var(--space-1);
  }

  /* Form Input */
  .form-input {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
    outline: none;
  }

  .form-input::placeholder {
    color: var(--color-base-400);
  }

  .form-input:focus {
    border-color: var(--color-gse-blue);
    box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1);
  }

  .form-input:hover:not(:focus) {
    border-color: var(--color-base-300);
  }

  .form-input-error,
  .form-input.form-input-error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }

  .form-field-error {
    background: #FEF2F2;
    color: #EF4444;
    padding: var(--space-3);
    border-radius: 6px;
    margin-top: var(--space-3);
    font-size: 14px;
  }

  .form-input-datetime {
    font-family: var(--font-mono);
    font-size: 13px;
  }

  /* Form Textarea */
  .form-textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
    outline: none;
    resize: vertical;
    min-height: 100px;
  }

  .form-textarea::placeholder {
    color: var(--color-base-400);
  }

  .form-textarea:focus {
    border-color: var(--color-gse-blue);
    box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1);
  }

  /* Form Select */
  .form-select {
    width: 100%;
    padding: 12px 40px 12px 16px;
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
  }

  .form-select:focus {
    border-color: var(--color-gse-blue);
    box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1);
  }

  .form-select:hover:not(:focus) {
    border-color: var(--color-base-300);
  }

  /* Form Stack */
  .form-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
  }

  /* Form Grid */
  .form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 768px) {
    .form-grid,
    .form-grid-3 {
      grid-template-columns: 1fr;
    }
  }

  /* Form Hint */
  .form-hint {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    margin-top: var(--space-1);
  }

  /* Form Actions */
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-4);
  }

  /* Multi-Step Form Progress */
  .step-progress {
    margin-bottom: var(--space-6);
  }

  .step-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
  }

  .step-progress-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
  }

  .step-progress-count {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-gse-blue);
  }

  .step-progress-bar {
    height: 4px;
    background: var(--color-off-white);
    border-radius: 2px;
    overflow: hidden;
  }

  .step-progress-fill {
    height: 100%;
    background: var(--color-gse-lime);
    transition: width 0.3s ease;
  }

  /* Campaign Type Card Selection */
  .campaign-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  @media (max-width: 768px) {
    .campaign-type-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

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

  .campaign-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-5);
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .campaign-type-card:hover {
    border-color: var(--color-base-300);
    transform: translateY(-2px);
  }

  .campaign-type-card.selected {
    border-color: var(--color-gse-lime);
    background: rgba(196, 255, 0, 0.05);
    box-shadow: 0 0 0 3px rgba(196, 255, 0, 0.2);
  }

  .campaign-type-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-3);
    color: var(--color-base-200);
  }

  .campaign-type-card.selected .campaign-type-card-icon {
    color: var(--color-gse-lime);
  }

  .campaign-type-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    stroke-width: 1.5;
    fill: none;
  }

  .campaign-type-card-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-1);
  }

  .campaign-type-card-description {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    text-align: center;
    line-height: 1.4;
  }

  /* Form Step Sections */
  .form-step {
    display: none;
  }

  .form-step.active {
    display: block;
  }

  .form-step-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-5);
  }

  /* Form Section Divider */
  .form-section {
    margin-bottom: var(--space-6);
  }

  .form-section:last-child {
    margin-bottom: 0;
  }

  /* Form Alert Banner */
  .form-alert {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
    border-radius: 8px;
    margin-bottom: var(--space-4);
  }

  .form-alert-warning {
    background: rgba(255, 170, 51, 0.15);
    border: 1px solid rgba(255, 170, 51, 0.3);
  }

  .form-alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #CC8800;
  }

  .form-alert-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .form-alert-content {
    flex: 1;
  }

  .form-alert-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #996600;
    margin-bottom: var(--space-1);
  }

  .form-alert-text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: #885500;
    line-height: 1.5;
  }

  /* Form Navigation Buttons */
  .form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-5);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-6);
  }

  .form-actions-right {
    display: flex;
    gap: var(--space-3);
  }

  /* Campaign Type Header (shown after selection) */
  .campaign-type-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(196, 255, 0, 0.1);
    border: 1px solid rgba(196, 255, 0, 0.3);
    border-radius: 8px;
    margin-bottom: var(--space-5);
  }

  .campaign-type-header-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
  }

  .campaign-type-header-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #6B8F00;
  }

  /* Form Helper Text */
  .form-helper {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-400);
    margin-top: var(--space-2);
  }

  /* Form Errors */
  .form-errors {
    padding: var(--space-4);
    background: rgba(224, 85, 46, 0.1);
    border: 1px solid var(--color-gse-red);
    border-radius: 8px;
    margin-bottom: var(--space-4);
  }

  .form-errors-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gse-red);
    margin-bottom: var(--space-3);
  }

  .form-errors-header svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
  }

  .form-errors-list {
    list-style: disc;
    padding-left: var(--space-6);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-gse-red);
  }

  .form-errors-list li {
    margin-bottom: var(--space-1);
  }

  .form-errors-list li:last-child {
    margin-bottom: 0;
  }

  /* Radio Card Group */
  .radio-card-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .radio-card-group-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  @media (max-width: 640px) {
    .radio-card-group,
    .radio-card-group-3 {
      grid-template-columns: 1fr;
    }
  }

  .radio-card {
    position: relative;
  }

  .radio-card-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .radio-card-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-fast);
    height: 100%;
    position: relative;
  }

  .radio-card-label:hover {
    background: var(--color-off-white);
    border-color: var(--color-base-300);
  }

  .radio-card-input:checked + .radio-card-label {
    border-color: var(--color-gse-blue);
    background: rgba(61, 82, 213, 0.05);
    box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1);
  }

  .radio-card-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-off-white);
    border-radius: 8px;
    margin-bottom: var(--space-3);
    color: var(--color-base-400);
    transition: all var(--transition-fast);
  }

  .radio-card-icon-wrap svg {
    width: 20px;
    height: 20px;
  }

  .radio-card-input:checked + .radio-card-label .radio-card-icon-wrap {
    background: rgba(61, 82, 213, 0.1);
    color: var(--color-gse-blue);
  }

  .radio-card-content {
    flex: 1;
  }

  .radio-card-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    display: block;
    margin-bottom: var(--space-1);
  }

  .radio-card-description {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    display: block;
    line-height: 1.5;
  }

  .radio-card-check {
    width: 20px;
    height: 20px;
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    color: var(--color-gse-blue);
    opacity: 0;
    transition: opacity var(--transition-fast);
  }

  .radio-card-check svg {
    width: 20px;
    height: 20px;
  }

  .radio-card-input:checked + .radio-card-label .radio-card-check {
    opacity: 1;
  }

  /* Form Section (grouped fields with header) */
  .form-section {
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-5);
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
    background: var(--color-off-white);
  }

  .form-section-header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
  }

  .form-section-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 8px;
    color: var(--color-gse-blue);
    flex-shrink: 0;
  }

  .form-section-icon svg {
    width: 20px;
    height: 20px;
  }

  .form-section-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0;
  }

  .form-section-description {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    margin: 2px 0 0;
  }

  /* Toggle row: label + switch side by side */
  .form-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-light);
  }

  .form-toggle-info {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Toggle switch */
  .form-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
  }

  .form-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
  }

  .form-switch-slider {
    position: absolute;
    inset: 0;
    background: var(--color-border-light);
    border-radius: 24px;
    transition: background 0.2s ease;
  }

  .form-switch-slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  }

  .form-switch-input:checked + .form-switch-slider {
    background: var(--color-gse-blue);
  }

  .form-switch-input:checked + .form-switch-slider::before {
    transform: translateX(20px);
  }

  .form-switch-input:focus-visible + .form-switch-slider {
    outline: 2px solid var(--color-gse-blue);
    outline-offset: 2px;
  }

  /* Survey Builder */
  .survey-question-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-4);
    margin-bottom: var(--space-3);
  }

  .survey-question-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-3);
  }

  .survey-question-number {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
  }

  .survey-question-header-right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .survey-question-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-base-300);
    border-radius: 4px;
    transition: all var(--transition-fast);
  }

  .survey-question-remove:hover {
    background: #FEF2F2;
    color: #EF4444;
  }

  .survey-question-remove svg {
    width: 16px;
    height: 16px;
  }

  .survey-question-footer {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
  }

  .survey-description-input {
    flex: 1;
    max-width: 300px;
  }

  .survey-option-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
  }

  .survey-option-row .form-input {
    flex: 1;
  }

  .survey-option-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-base-300);
    border-radius: 4px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
  }

  .survey-option-remove:hover {
    color: #EF4444;
  }

  .survey-option-remove svg {
    width: 14px;
    height: 14px;
  }

  .survey-add-option-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gse-blue);
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-1) 0;
    margin-top: var(--space-1);
    transition: color var(--transition-fast);
  }

  .survey-add-option-btn:hover {
    color: var(--color-black);
  }

  .survey-add-option-btn svg {
    width: 14px;
    height: 14px;
  }

  .survey-add-question-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px dashed var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    width: 100%;
    justify-content: center;
    transition: all var(--transition-fast);
  }

  .survey-add-question-btn:hover:not(:disabled) {
    border-color: var(--color-gse-blue);
    color: var(--color-gse-blue);
  }

  .survey-add-question-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .survey-add-question-btn svg {
    width: 16px;
    height: 16px;
  }

  .survey-builder-counter {
    text-align: center;
    margin-bottom: var(--space-3);
  }

  /* Survey Prediction Cards (campaign show page) */
  .survey-prediction-card,
  .survey-prediction-resolved {
    padding: var(--space-4);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    margin-bottom: var(--space-3);
  }

  .survey-prediction-resolved {
    background: var(--color-off-white);
  }

  .survey-prediction-question {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
  }

  .survey-prediction-question strong {
    font-size: 15px;
  }

  .survey-prediction-answer {
    margin-top: var(--space-2);
    font-size: 14px;
    color: var(--color-base-300);
  }

  .survey-prediction-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: 4px;
    flex-shrink: 0;
  }

  .survey-prediction-badge--pending {
    background: #FEF3C7;
    color: #92400E;
  }

  .survey-prediction-badge--resolved {
    background: #D1FAE5;
    color: #065F46;
  }

  .survey-correct-answer {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 6px;
  }

  .survey-correct-answer .form-label {
    margin-bottom: var(--space-1);
  }

  .survey-correct-answer .form-helper {
    margin-top: var(--space-1);
  }

  .survey-save-template {
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
  }

  /* ============================================
     NAIM AI INSIGHT CARDS
     ============================================ */
  .naim-section {
    margin-bottom: var(--space-6);
  }

  .naim-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-4);
  }

  .naim-section-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .naim-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
  }

  .naim-section-sub {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
    margin: 2px 0 0;
  }

  .naim-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  /* AI look: a brand-gradient ring (painted on border-box under a white
     padding-box), a faint cyan wash in the top-right corner, and a second
     hairline frame inset 4px from the edge. Severity lives on the inner
     frame instead of the old left border.

     The ring angle is a variable so it can be animated. It is deliberately
     STATIC here: the dashboard renders one of these per insight, and a dozen
     cards each repainting their border every frame is not what you want behind
     a working screen. The marketing module opts in — see .naim-module .naim-card
     in gse.css, which registers --naim-ring-angle and rotates it. Unset, the
     fallback keeps the original 135deg exactly. */
  .naim-card {
    position: relative;
    border: 5px solid transparent;
    border-radius: 12px;
    background:
      radial-gradient(140% 90% at 100% 0%, rgba(0, 229, 255, 0.08), transparent 55%) padding-box,
      linear-gradient(var(--color-white), var(--color-white)) padding-box,
      linear-gradient(var(--naim-ring-angle, 135deg), rgba(0, 229, 255, 0.55), rgba(0, 102, 255, 0.30) 45%, rgba(196, 255, 0, 0.65)) border-box;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
  }

  /* Inner hairline sits 4px inside the 5px gradient frame */
  .naim-card::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(0, 102, 255, 0.10);
    border-radius: 5px;
    pointer-events: none;
  }

  .naim-card:hover {
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.10);
    transform: translateY(-1px);
  }

  /* Severity accent — tint of the inner frame */
  .naim-card--info::before { border-color: rgba(0, 102, 255, 0.18); }
  .naim-card--suggestion::before { border-color: rgba(0, 229, 255, 0.30); }
  .naim-card--warning::before { border-color: rgba(245, 158, 11, 0.30); }
  .naim-card--urgent::before { border-color: rgba(224, 85, 46, 0.35); }

  /* Gradient sparkle in the card header */
  .naim-card-spark {
    margin-left: auto;
    font-size: 13px;
    line-height: 1;
    background: linear-gradient(120deg, var(--color-gse-cyan), var(--color-gse-blue));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .naim-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
  }

  .naim-card-severity {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .naim-card-severity svg {
    width: 18px;
    height: 18px;
  }

  .naim-card--info .naim-card-severity { color: var(--color-gse-blue); }
  .naim-card--suggestion .naim-card-severity { color: var(--color-gse-cyan); }
  .naim-card--warning .naim-card-severity { color: #F59E0B; }
  .naim-card--urgent .naim-card-severity { color: var(--color-gse-red); }

  .naim-card-type {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
  }

  .naim-card-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 var(--space-2);
    line-height: 1.4;
  }

  .naim-card-body {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-base-300);
    margin: 0;
    flex: 1;
  }

  .naim-card-actions {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
  }

  .naim-action-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gse-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .naim-action-link:hover {
    color: var(--color-black);
  }

  .naim-action-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
  }

  .naim-action-link:hover svg {
    transform: translateX(2px);
  }

  /* Empty card placeholder — plain and quiet, no gradient ring or inner frame */
  .naim-card--empty {
    background: var(--color-off-white);
    border: 1px dashed var(--color-border-light);
  }

  .naim-card--empty::before {
    content: none;
  }

  .naim-card-empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 100%;
    min-height: 120px;
    color: var(--color-base-300);
    font-family: var(--font-sans);
    font-size: 13px;
    text-align: center;
  }

  .naim-card-empty-content svg {
    width: 24px;
    height: 24px;
  }

  /* Campaign creation nudge */
  .naim-nudge {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
    margin-bottom: var(--space-5);
  }

  .naim-nudge-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .naim-nudge-text {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-base-100);
  }

  .naim-nudge-text strong {
    color: var(--color-black);
  }

  .naim-nudge-dismiss {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-base-300);
    padding: 2px;
  }

  .naim-nudge-dismiss:hover {
    color: var(--color-black);
  }

  .naim-nudge-dismiss svg {
    width: 14px;
    height: 14px;
  }

  /* naim Locked State (Local plan) */
  .naim-locked {
    position: relative;
  }

  .naim-locked-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    opacity: 0.45;
    filter: blur(1px);
    pointer-events: none;
    user-select: none;
  }

  .naim-locked-card {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  .naim-locked-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--color-off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-base-300);
    margin-bottom: var(--space-1);
  }

  .naim-locked-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .naim-locked-card-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .naim-locked-card-text {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    line-height: 1.4;
  }

  .naim-locked-cta {
    text-align: center;
    margin-top: var(--space-4);
  }

  .naim-locked-cta p {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-300);
    margin: 0 0 var(--space-3);
  }

  .naim-locked-cta strong {
    color: var(--color-black);
  }

  @media (max-width: 768px) {
    .naim-locked-cards {
      grid-template-columns: 1fr;
    }
  }

  /* naim Header Popover */
  .naim-header-btn {
    position: relative;
  }

  .badge-naim {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--color-gse-cyan);
    color: var(--color-black);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .naim-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 200;
    overflow: hidden;
  }

  .naim-popover-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border-light);
  }

  .naim-popover-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-black);
  }

  .naim-popover-count {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-base-300);
    background: var(--color-off-white);
    border-radius: 10px;
    padding: 2px 8px;
  }

  .naim-popover-list {
    max-height: 320px;
    overflow-y: auto;
  }

  .naim-popover-item {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    border-left: 3px solid transparent;
  }

  .naim-popover-item:last-child {
    border-bottom: none;
  }

  .naim-popover-item--info { border-left-color: var(--color-gse-blue); }
  .naim-popover-item--suggestion { border-left-color: var(--color-gse-cyan); }
  .naim-popover-item--warning { border-left-color: #F59E0B; }
  .naim-popover-item--urgent { border-left-color: var(--color-gse-red); }

  .naim-popover-item-severity {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
  }

  .naim-popover-item-severity svg {
    width: 16px;
    height: 16px;
  }

  .naim-popover-item--info .naim-popover-item-severity { color: var(--color-gse-blue); }
  .naim-popover-item--suggestion .naim-popover-item-severity { color: var(--color-gse-cyan); }
  .naim-popover-item--warning .naim-popover-item-severity { color: #F59E0B; }
  .naim-popover-item--urgent .naim-popover-item-severity { color: var(--color-gse-red); }

  .naim-popover-item-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .naim-popover-item-title {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
    line-height: 1.3;
  }

  .naim-popover-item-body {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    line-height: 1.4;
  }

  .naim-popover-empty {
    padding: 24px 16px;
    text-align: center;
  }

  .naim-popover-empty p {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    line-height: 1.5;
    margin: 0;
  }

  .naim-popover-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--color-border-light);
    background: var(--color-off-white);
  }

  .naim-popover-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-gse-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .naim-popover-footer-link:hover {
    color: var(--color-black);
  }

  .naim-popover-footer-link svg {
    width: 12px;
    height: 12px;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .naim-popover {
      width: calc(100vw - 32px);
      right: -60px;
    }

    .naim-cards {
      grid-template-columns: 1fr;
    }

    .naim-card--empty {
      display: none;
    }
  }

  .form-select-sm {
    height: 32px;
    padding: var(--space-1) var(--space-3);
    font-size: 12px;
  }

  .form-input-sm {
    height: 32px;
    padding: var(--space-1) var(--space-3);
    font-size: 13px;
  }

  .form-switch-row {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
  }

  .form-switch-label {
    font-size: 13px;
    color: var(--color-base-300);
    user-select: none;
  }

  /* ============================================
     DATA TABLE
     ============================================ */
  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-sans);
    font-size: 13px;
  }

  .data-table thead th {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-base-300);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    text-align: left;
    white-space: nowrap;
  }

  .data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-base-100);
    vertical-align: middle;
  }

  .data-table tbody tr:hover {
    background: var(--color-off-white);
  }

  .data-table tfoot td {
    padding: 14px 16px;
    font-weight: 600;
    background: var(--color-off-white);
  }

  .data-table .text-right {
    text-align: right;
  }

  .data-table-amount {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
  }

  .data-table-text {
    color: var(--color-base-300);
  }

  .data-table-date {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
  }

  .text-success {
    color: #059669;
  }

  .text-muted {
    color: var(--color-base-400);
  }

  /* Venue cell in table */
  .venue-cell {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .venue-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--color-off-white);
    border: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    color: var(--color-base-300);
    flex-shrink: 0;
  }

  .venue-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .venue-name-link {
    font-weight: 500;
    color: var(--color-black);
    text-decoration: none;
  }

  .venue-name-link:hover {
    color: var(--color-gse-blue);
    text-decoration: underline;
  }

  .venue-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 11px;
    color: #D97706;
  }

  .star-icon {
    width: 12px;
    height: 12px;
  }

  .category-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--color-off-white);
    color: var(--color-base-300);
  }

  /* Filter form */
  .filter-form {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }

  .form-input-sm {
    height: 32px;
    padding: var(--space-1) var(--space-3);
    font-size: 13px;
  }

  /* Payout Banner */
  .payout-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-5) var(--space-6);
    background: var(--color-black);
    border-radius: 8px;
    margin-bottom: var(--space-6);
  }

  .payout-banner-content {
    display: flex;
    align-items: center;
    gap: var(--space-4);
  }

  .payout-banner-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(196, 255, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gse-lime);
    flex-shrink: 0;
  }

  .payout-banner-icon svg {
    width: 20px;
    height: 20px;
  }

  .payout-banner-title {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-white);
    margin: 0 0 2px;
  }

  .payout-banner-subtitle {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    margin: 0;
  }

  .payout-banner-subtitle strong {
    color: var(--color-white);
  }

  .payout-status-badge {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 12px;
    border-radius: 4px;
    background: rgba(196, 255, 0, 0.15);
    color: var(--color-gse-lime);
  }

  @media (max-width: 768px) {
    .payout-banner {
      flex-direction: column;
      gap: var(--space-4);
      text-align: center;
    }

    .payout-banner-content {
      flex-direction: column;
    }
  }

  /* Info Cards Grid (How It Works) */
  .info-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }

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

  .info-card {
    text-align: center;
    padding: var(--space-4);
  }

  .info-card-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-gse-lime);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
  }

  .info-card-title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    margin: 0 0 var(--space-2);
  }

  .info-card-text {
    font-family: var(--font-sans);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-base-300);
    margin: 0;
  }

  /* Empty State */
  .empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
  }

  .empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-4);
    color: var(--color-base-400);
  }

  .empty-state-icon svg {
    width: 48px;
    height: 48px;
  }

  .empty-state-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-base-100);
    margin: 0 0 var(--space-2);
  }

  .empty-state-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-300);
    margin: 0 0 var(--space-6);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
  }

  /* Panel Info variant */
  .panel-info {
    border-color: rgba(61, 82, 213, 0.15);
  }

  .panel-info .panel-title {
    color: var(--color-gse-blue);
  }

  /* Responsive table */
  @media (max-width: 1024px) {
    .data-table {
      display: block;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
    }
  }

  /* Image Dropzone */
  .image-dropzone {
    border: 2px dashed var(--color-border-light);
    border-radius: 8px;
    padding: var(--space-6);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-white);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-dropzone:hover {
    border-color: var(--color-gse-blue);
    background: rgba(61, 82, 213, 0.02);
  }

  .image-dropzone--active {
    border-color: var(--color-gse-blue);
    background: rgba(61, 82, 213, 0.05);
    box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1);
  }

  .image-dropzone-preview {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-dropzone-preview-img {
    max-width: 240px;
    max-height: 240px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
  }

  .image-dropzone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
  }

  .image-dropzone-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-base-300);
  }

  .image-dropzone-icon svg {
    width: 32px;
    height: 32px;
  }

  .image-dropzone-text {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-400);
    margin: 0;
  }

  .image-dropzone-browse {
    color: var(--color-gse-blue);
    font-weight: 600;
  }

  .image-dropzone-hint {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    margin: 0;
  }

  .image-dropzone-filename {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-gse-blue);
    margin-top: var(--space-2);
  }

  .image-dropzone-error {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-gse-red);
    margin-top: var(--space-2);
  }

  /* Location Mode Selector */
  .location-mode-group {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
  }

  @media (max-width: 480px) {
    .location-mode-group {
      flex-direction: column;
    }
  }

  .location-mode-option {
    flex: 1;
    cursor: pointer;
  }

  .location-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .location-mode-card {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--color-white);
    border: 2px solid var(--color-border-light);
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-base-400);
  }

  .location-mode-card svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .location-mode-card:hover {
    border-color: var(--color-base-300);
    background: var(--color-off-white);
  }

  .location-mode-option input:checked + .location-mode-card {
    border-color: var(--color-gse-blue);
    background: rgba(61, 82, 213, 0.05);
    color: var(--color-gse-blue);
    box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1);
  }

  /* Location Search */
  .location-search-spinner {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-base-300);
    animation: spin 1s linear infinite;
  }

  .location-search-spinner svg {
    width: 18px;
    height: 18px;
  }

  @keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
  }

  .location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
  }

  .location-search-result {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
    transition: background var(--transition-fast);
    font-family: var(--font-sans);
  }

  .location-search-result:hover {
    background: var(--color-off-white);
  }

  .location-search-result + .location-search-result {
    border-top: 1px solid var(--color-border-light);
  }

  .location-search-result-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61, 82, 213, 0.08);
    border-radius: 6px;
    color: var(--color-gse-blue);
    flex-shrink: 0;
    margin-top: 2px;
  }

  .location-search-result-icon svg {
    width: 16px;
    height: 16px;
  }

  .location-search-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .location-search-result-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
  }

  .location-search-result-address {
    font-size: 12px;
    color: var(--color-base-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .location-search-empty {
    padding: var(--space-4);
    text-align: center;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  /* Location Preview */
  .location-preview {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    margin-top: var(--space-3);
  }

  .location-preview-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 255, 0, 0.15);
    border-radius: 8px;
    color: var(--color-gse-dark);
    flex-shrink: 0;
  }

  .location-preview-icon svg {
    width: 18px;
    height: 18px;
  }

  .location-preview-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .location-preview-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .location-preview-address {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-400);
  }

  .location-preview-coords {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
  }

  /* Online / No Location Notice */
  .location-online-notice {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-400);
  }

  .location-online-notice svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--color-base-300);
  }

  /* Form Actions */
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    margin-top: var(--space-2);
  }

  /* ============================================
     BADGES (from design system)
     ============================================ */
  .badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
  }

  .badge-gray {
    background: var(--color-off-white);
    color: var(--color-base-300);
  }

  .badge-lime {
    background: rgba(196, 255, 0, 0.2);
    color: #6B8F00;
  }

  .badge-cyan {
    background: rgba(0, 229, 255, 0.15);
    color: #0099AA;
  }

  .badge-blue {
    background: rgba(61, 82, 213, 0.1);
    color: #3D52D5;
  }

  .badge-red {
    background: rgba(224, 85, 46, 0.1);
    color: var(--color-gse-red);
  }

  .badge-orange {
    background: rgba(249, 115, 22, 0.15);
    color: #C2410C;
  }

  .badge-yellow {
    background: rgba(234, 179, 8, 0.15);
    color: #A16207;
  }

  .badge-brown {
    background: rgba(146, 64, 14, 0.1);
    color: #78350F;
  }

  .badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #6D28D9;
  }

  .badge-pink {
    background: rgba(236, 72, 153, 0.15);
    color: #BE185D;
  }

  /* ============================================
     TABLES (from design system)
     ============================================ */
  .table-container {
    overflow-x: auto;
  }

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

  .table thead {
    background: var(--color-off-white);
  }

  .table th {
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-base-300);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
  }

  .table td {
    padding: var(--space-4);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-black);
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
  }

  .table tbody tr {
    transition: background var(--transition-fast);
  }

  .table tbody tr:hover {
    background: var(--color-off-white);
  }

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

  /* ============================================
     ACTION BUTTONS (from design system)
     ============================================ */
  .action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .action-btn:hover {
    background: var(--color-off-white);
    border-color: var(--color-base-300);
  }

  .action-btn svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-base-300);
    stroke-width: 2;
    fill: none;
  }

  .action-btn:hover svg {
    stroke: var(--color-black);
  }

  .action-btn-lime:hover {
    border-color: var(--color-gse-lime);
    background: rgba(196, 255, 0, 0.1);
  }

  .action-btn-lime:hover svg {
    stroke: #6B8F00;
  }

  .action-btn-blue:hover {
    border-color: var(--color-gse-blue);
    background: rgba(61, 82, 213, 0.1);
  }

  .action-btn-blue:hover svg {
    stroke: var(--color-gse-blue);
  }

  .action-btn-cyan:hover {
    border-color: var(--color-gse-cyan);
    background: rgba(0, 229, 255, 0.1);
  }

  .action-btn-cyan:hover svg {
    stroke: #0099AA;
  }

  .action-btn-red:hover {
    border-color: var(--color-gse-red);
    background: rgba(224, 85, 46, 0.1);
  }

  .action-btn-red:hover svg {
    stroke: var(--color-gse-red);
  }

  /* Action Button Group */
  .action-btn-group {
    display: flex;
    gap: var(--space-2);
  }

  /* ============================================
     FILTER BAR (from design system)
     ============================================ */
  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-5);
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    margin-bottom: var(--space-6);
  }

  .filter-bar .form-input {
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 6px;
  }

  .filter-item {
    flex: 1;
    min-width: 180px;
  }

  .filter-actions {
    display: flex;
    gap: var(--space-3);
    align-items: flex-end;
  }

  .filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .filter-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-200);
    white-space: nowrap;
  }

  .filter-hint {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  /* Status Indicators */
  .status-indicator {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-sans);
    font-size: 13px;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .status-active .status-dot {
    background: var(--color-gse-lime);
  }

  .status-active {
    color: var(--color-black);
  }

  .status-recent .status-dot {
    background: var(--color-gse-cyan);
  }

  .status-recent {
    color: var(--color-black);
  }

  .status-inactive .status-dot {
    background: var(--color-base-300);
  }

  .status-inactive {
    color: var(--color-base-300);
  }

  .status-pending .status-dot {
    background: var(--color-gse-yellow);
  }

  .status-pending {
    color: var(--color-black);
  }

  /* Table Cell Components */
  .table-cell-user {
    display: flex;
    align-items: center;
    gap: var(--space-3);
  }

  .table-cell-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-gse-lime);
    flex-shrink: 0;
  }

  .table-cell-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-gse-lime);
    color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
  }

  .table-cell-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .table-cell-name {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .table-cell-meta {
    font-family: var(--font-sans);
    font-size: 12px;
    color: var(--color-base-300);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
  }

  .table-cell-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-black);
    display: block;
  }

  .table-cell-date + .table-cell-meta {
    margin-top: 2px;
  }

  .table-cell-stacked {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .table-action-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-gse-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .table-action-link:hover {
    color: var(--color-black);
  }

  .table-action-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .table-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    color: var(--color-base-300);
    transition: all var(--transition-fast);
  }

  .table-action-icon:hover {
    background: var(--color-off-white);
    color: var(--color-gse-blue);
  }

  .table-action-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  /* Compact Action Buttons for Tables */
  .action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    border-radius: 6px !important;
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    transition: all var(--transition-fast) !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    position: static !important;
    overflow: visible !important;
  }

  .action-btn::before,
  .action-btn::after {
    display: none !important;
    content: none !important;
  }

  .action-btn svg {
    width: 14px !important;
    height: 14px !important;
    stroke: currentColor !important;
    stroke-width: 2 !important;
    fill: none !important;
    flex-shrink: 0 !important;
  }

  /* Primary Action - Approve */
  .action-btn.action-btn-success {
    background: rgba(22, 163, 74, 0.1) !important;
    color: #16a34a !important;
    border: 1px solid rgba(22, 163, 74, 0.2) !important;
  }

  .action-btn.action-btn-success:hover {
    background: #16a34a !important;
    color: var(--color-white) !important;
    border-color: #16a34a !important;
  }

  /* Secondary Action - Review */
  .action-btn.action-btn-secondary {
    background: var(--color-white) !important;
    color: var(--color-base-300) !important;
    border: 1px solid var(--color-border-light) !important;
  }

  .action-btn.action-btn-secondary:hover {
    background: var(--color-off-white) !important;
    color: var(--color-black) !important;
    border-color: var(--color-base-300) !important;
  }

  /* Danger Action - Reject */
  .action-btn.action-btn-danger {
    background: rgba(224, 85, 46, 0.1) !important;
    color: var(--color-gse-red) !important;
    border: 1px solid rgba(224, 85, 46, 0.2) !important;
  }

  .action-btn.action-btn-danger:hover {
    background: var(--color-gse-red) !important;
    color: var(--color-white) !important;
    border-color: var(--color-gse-red) !important;
  }

  /* Action Button Group */
  .action-btn-group {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
  }

  /* Fix for button_to forms inside action group */
  .action-btn-group form {
    display: inline-flex !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .action-btn-group form .action-btn {
    margin: 0 !important;
  }

  /* Icon-Only Action Buttons */
  .action-icon-group {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

  .action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--color-off-white);
    color: var(--color-base-300);
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
  }

  .action-icon svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .action-icon:hover {
    background: var(--color-base-100);
    color: var(--color-white);
  }

  /* Success variant */
  .action-icon.action-icon-success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
  }

  .action-icon.action-icon-success:hover {
    background: #16a34a;
    color: var(--color-white);
  }

  /* Danger variant */
  .action-icon.action-icon-danger {
    background: rgba(224, 85, 46, 0.1);
    color: var(--color-gse-red);
  }

  .action-icon.action-icon-danger:hover {
    background: var(--color-gse-red);
    color: var(--color-white);
  }

  /* ============================================
     REPORTS PAGE COMPONENTS
     ============================================ */

  /* Reports Two Column Layout */
  .reports-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
  }

  @media (max-width: 1024px) {
    .reports-columns {
      grid-template-columns: 1fr;
    }
  }

  /* Category Breakdown */
  .category-breakdown {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }

  .category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }

  .category-info {
    flex-shrink: 0;
  }

  .category-stats {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex: 1;
    justify-content: flex-end;
  }

  .category-count {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
    min-width: 24px;
    text-align: right;
  }

  .category-bar {
    width: 80px;
    height: 6px;
    background: var(--color-off-white);
    border-radius: 3px;
    overflow: hidden;
  }

  .category-bar-fill {
    height: 100%;
    background: var(--color-gse-blue);
    border-radius: 3px;
    transition: width var(--transition-base);
  }

  .category-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .category-summary strong {
    color: var(--color-black);
    font-weight: 600;
  }

  .category-summary .separator {
    color: var(--color-border-light);
  }

  /* Engagement Hero */
  .engagement-hero {
    text-align: center;
    padding: var(--space-6) 0;
  }

  .engagement-hero-value {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    color: var(--color-gse-blue);
    line-height: 1;
  }

  .engagement-hero-label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
    margin-top: var(--space-2);
  }

  /* Engagement Metrics */
  .engagement-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-4);
  }

  .engagement-metric {
    text-align: center;
    padding: var(--space-4);
    background: var(--color-off-white);
    border-radius: 8px;
  }

  .engagement-metric-value {
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 600;
    color: var(--color-black);
  }

  .engagement-metric-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
    margin-top: var(--space-1);
  }

  /* Contribution Progress */
  .contribution-progress {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
  }

  .contribution-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-2);
  }

  .contribution-progress-label {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .contribution-progress-value {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .contribution-progress-bar {
    height: 8px;
    background: var(--color-off-white);
    border-radius: 4px;
    overflow: hidden;
  }

  .contribution-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gse-blue), var(--color-gse-lime));
    border-radius: 4px;
    transition: width var(--transition-base);
  }

  .contribution-progress-target {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-base-300);
    text-align: right;
    margin-top: var(--space-1);
  }

  /* Reports Actions */
  .reports-actions {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-8);
  }

  @media (max-width: 640px) {
    .reports-actions {
      flex-direction: column;
    }

    .reports-actions .btn {
      width: 100%;
      justify-content: center;
    }
  }

  /* Venue Table Styles */
  .table-cell-venue-icon {
    width: 40px;
    height: 40px;
    background: var(--color-gse-lime);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .table-cell-venue-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-black);
    stroke-width: 2;
    fill: none;
  }

  .venue-rating {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
  }

  .venue-rating-star {
    width: 14px;
    height: 14px;
    fill: #FBBF24;
    stroke: #FBBF24;
  }

  .venue-rating-value {
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-black);
  }

  .venue-status-open {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #059669;
    margin-left: var(--space-2);
  }

  .venue-status-closed {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #DC2626;
    margin-left: var(--space-2);
  }

  .table-cell-stats {
    display: flex;
    flex-direction: column;
  }

  .table-cell-stat-value {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-black);
  }

  .table-cell-stat-label {
    font-family: var(--font-sans);
    font-size: 11px;
    color: var(--color-base-300);
    text-transform: lowercase;
  }

  /* Table Pagination */
  .table-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--color-border-light);
    background: var(--color-off-white);
  }

  .table-pagination-info {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--color-base-300);
  }

  .table-pagination-info strong {
    font-weight: 600;
    color: var(--color-black);
  }

  .table-pagination-nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .table-pagination-nav .pagy.nav {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }

  .table-pagination-nav .pagy.nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 var(--space-2);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--color-border-light);
    background: var(--color-white);
    color: var(--color-base-200);
    text-decoration: none;
    transition: all var(--transition-fast);
  }

  .table-pagination-nav .pagy.nav a:hover:not([aria-disabled="true"]) {
    background: var(--color-off-white);
    border-color: var(--color-base-300);
    color: var(--color-black);
  }

  .table-pagination-nav .pagy.nav a.current {
    background: var(--color-black);
    border-color: var(--color-black);
    color: var(--color-white);
  }

  .table-pagination-nav .pagy.nav a[aria-disabled="true"]:not(.current) {
    opacity: 0.4;
    cursor: not-allowed;
  }

  .table-pagination-nav .pagy.nav a.gap {
    border-color: transparent;
    background: transparent;
  }

  /* ============================================
     EMPTY STATE (from design system)
     ============================================ */
  .empty-state {
    text-align: center;
    padding: var(--space-12) var(--space-6);
  }

  .empty-state-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-4);
    background: var(--color-off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .empty-state-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-base-300);
    stroke-width: 1.5;
    fill: none;
  }

  .empty-state-icon-success {
    background: #D1FAE5;
  }

  .empty-state-icon-success svg {
    stroke: #059669;
  }

  .empty-state-icon-warning {
    background: #FEF3C7;
  }

  .empty-state-icon-warning svg {
    stroke: #D97706;
  }

  .empty-state-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-2);
  }

  .empty-state-description {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-300);
    margin-bottom: var(--space-6);
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  /* ============================================
     PAGE HEADER (from design system)
     ============================================ */
  .page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    gap: var(--space-4);
  }

  @media (max-width: 640px) {
    .page-header {
      flex-direction: column;
    }
  }

  .page-header-content {
    flex: 1;
  }

  .page-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: var(--space-1);
  }

  .page-subtitle {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-base-200);
  }

  .page-header-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
  }

  .page-header-links {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-3);
  }

  .page-header-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-base-300);
    text-decoration: none;
    transition: color var(--transition-fast);
  }

  .page-header-link:hover {
    color: var(--color-black);
  }

  .page-header-link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }
}

/* Your custom styles below */

.tribute-container {
  position: absolute;
  top: 0;
  left: 0;
  height: auto;
  max-height: 300px;
  max-width: 500px;
  overflow: auto;
  display: block;
  z-index: 999999;
}
.tribute-container ul {
  margin: 0;
  margin-top: 2px;
  padding: 0;
  list-style: none;
  @apply bg-gray-100;
}
.tribute-container li {
  @apply p-2;
  cursor: pointer;
  @apply text-sm;
}
.tribute-container li.highlight {
  @apply bg-indigo-500;
  @apply text-white;
}
.tribute-container li span {
  @apply font-bold;
}
.tribute-container li.no-match {
  cursor: default;
}
.tribute-container .menu-highlighted {
  @apply font-bold;
}

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/

@layer components {
  .button-as-link {
    @apply bg-transparent border-0 cursor-pointer w-full text-left;
    
    &:focus {
      @apply outline-none;
    }
  }
}

div.mainNavOption span.raquo {
  @apply -rotate-90;
}

div.mainNavOption:has([type="checkbox"]:checked) label {
  @apply text-white;
}
div.mainNavOption:has([type="checkbox"]:checked) span.raquo {
  @apply rotate-0;
  @apply text-white;
}

/* ============================================
   SIDEBAR SUBMENU TOGGLE (High Specificity Override)
   These rules are outside @layer for highest specificity
   ============================================ */
.sidebar-submenu-toggle {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.sidebar-submenu {
  display: none !important;
  padding-left: var(--space-8);
  margin-top: 2px;
  list-style: none;
}

/* Multiple selector approaches for maximum compatibility */
.sidebar-submenu-toggle:checked + label + .sidebar-submenu {
  display: block !important;
}

.sidebar-submenu-toggle:checked ~ .sidebar-submenu {
  display: block !important;
}

/* :has() selector approach - most reliable */
.sidebar-item:has(.sidebar-submenu-toggle:checked) > .sidebar-submenu {
  display: block !important;
}

.sidebar-submenu-toggle:checked + label .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-submenu-toggle:checked ~ .sidebar-link .sidebar-chevron {
  transform: rotate(180deg);
}

.sidebar-item:has(.sidebar-submenu-toggle:checked) .sidebar-chevron {
  transform: rotate(180deg);
}

/* Sidebar Link Wrapper - separates main link from chevron toggle */
.sidebar-link-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.sidebar-link-wrapper .sidebar-link {
  flex: 1;
  min-width: 0;
}

.sidebar-chevron-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: var(--space-1);
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--color-base-300);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.sidebar-chevron-btn:hover {
  background: var(--color-off-white);
  color: var(--color-black);
}

.sidebar-chevron-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--transition-fast);
}

.sidebar-item:has(.sidebar-submenu-toggle:checked) .sidebar-chevron-btn svg {
  transform: rotate(180deg);
}

/* Show submenu when checkbox is checked - updated for new structure */
.sidebar-item:has(.sidebar-submenu-toggle:checked) .sidebar-submenu {
  display: block !important;
}

/* ============================================
   SEARCH PAGE COMPONENTS
   ============================================ */

/* Search Form */
.search-form {
  width: 100%;
}

.search-form-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-end;
}

.search-form-input {
  flex: 1;
  min-width: 0;
}

.search-form-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .search-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-form-actions {
    justify-content: flex-end;
  }
}

/* Results Info */
.results-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.results-count {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-base-300);
}

.results-count strong {
  font-weight: 600;
  color: var(--color-black);
}

.results-per-page {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.results-per-page-label {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-base-300);
}

.results-per-page-options {
  display: flex;
  gap: var(--space-1);
}

.results-per-page-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  padding: 0 var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-base-300);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.results-per-page-option:hover {
  background: var(--color-off-white);
  border-color: var(--color-base-200);
  color: var(--color-black);
}

.results-per-page-option.active {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

/* Search Tips */
.search-tips {
  margin-top: var(--space-6);
  padding: var(--space-5);
  background: var(--color-off-white);
  border-radius: 8px;
}

.search-tips-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: var(--space-3);
}

.search-tips-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.search-tips-list li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-base-300);
}

.search-tips-list li::before {
  content: "→";
  font-family: var(--font-mono);
  color: var(--color-gse-blue);
}

/* ============================================
   USER REPORTS PAGE COMPONENTS
   ============================================ */

/* Growth Stats */
.growth-stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.growth-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3);
  background: var(--color-off-white);
  border-radius: 8px;
}

.growth-stat-label {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-black);
}

.growth-stat-value {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
}

/* Role Distribution */
.role-distribution {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.role-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.role-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.role-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
}

.role-percentage {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-base-300);
}

.role-bar {
  height: 8px;
  background: var(--color-off-white);
  border-radius: 4px;
  overflow: hidden;
}

.role-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width var(--transition-base);
}

.role-bar-fill.accent {
  background: var(--color-gse-blue);
}

.role-bar-fill.success {
  background: #16a34a;
}

.role-bar-fill.warning {
  background: #F59E0B;
}

/* Chart Placeholder */
.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  margin-top: var(--space-4);
  background: var(--color-off-white);
  border-radius: 8px;
  border: 2px dashed var(--color-border-light);
}

.chart-placeholder svg {
  width: 32px;
  height: 32px;
  stroke: var(--color-base-200);
  stroke-width: 1.5;
  fill: none;
  margin-bottom: var(--space-2);
}

.chart-placeholder span {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-base-300);
}

/* ============================================
   PROFILE PAGE COMPONENTS
   ============================================ */

/* Profile Layout */
.profile-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .profile-layout {
    grid-template-columns: 1fr;
  }
}

/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--color-border-light);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-gse-lime), var(--color-gse-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-black);
}

.profile-name-section {
  flex: 1;
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--color-black);
  margin: 0 0 var(--space-1) 0;
}

.profile-role {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-300);
  margin-bottom: var(--space-1);
}

.profile-club {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gse-blue);
}

/* Profile Info Grid */
.profile-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.profile-info-grid-full {
  grid-column: 1 / -1;
}

.profile-field-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-300);
  margin-bottom: var(--space-1);
}

.profile-field-value {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--color-black);
}

/* Profile Edit Form */
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
}

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

.profile-form-grid-full {
  grid-column: 1 / -1;
}

/* Avatar Upload */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.avatar-upload-preview {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid var(--color-border-light);
  overflow: hidden;
  flex-shrink: 0;
}

.avatar-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload-content {
  flex: 1;
}

.avatar-upload-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-1);
}

.avatar-upload-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-base-300);
  margin-bottom: var(--space-3);
}

.avatar-upload-actions {
  display: flex;
  gap: var(--space-3);
}

/* Security Row */
.security-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.security-row + .security-row {
  border-top: 1px solid var(--color-border-light);
}

.security-info {
  flex: 1;
}

.security-label {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
}

.security-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-base-300);
  margin-top: 2px;
}

/* Stats Sidebar */
.stats-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.stats-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats-list-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-base-300);
}

.stats-list-label svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.stats-list-value {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
}

/* Club Stats Card */
.club-stats-header {
  text-align: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-4);
}

.club-stats-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gse-blue);
}

.club-stats-sport {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-base-300);
  margin-top: 2px;
}

/* Team Member Club Card */
.team-club-card {
  text-align: center;
  padding: var(--space-4);
  background: var(--color-off-white);
  border-radius: 8px;
}

.team-club-name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
}

.team-club-sport {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-base-300);
  margin-top: 2px;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quick-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.quick-action-btn:hover {
  background: var(--color-off-white);
  border-color: var(--color-base-200);
}

.quick-action-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-base-300);
  stroke-width: 2;
  fill: none;
}

.quick-action-btn.primary {
  background: var(--color-gse-blue);
  border-color: var(--color-gse-blue);
  color: var(--color-white);
}

.quick-action-btn.primary:hover {
  background: #0052CC;
  border-color: #0052CC;
}

.quick-action-btn.primary svg {
  stroke: var(--color-white);
}

/* Form Actions */
.profile-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding-top: var(--space-5);
  margin-top: var(--space-5);
  border-top: 1px solid var(--color-border-light);
}

/* Form Error Alert */
.form-error-alert {
  padding: var(--space-4);
  background: rgba(224, 85, 46, 0.1);
  border: 1px solid rgba(224, 85, 46, 0.3);
  border-radius: 8px;
  margin-bottom: var(--space-6);
}

.form-error-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.form-error-header svg {
  width: 20px;
  height: 20px;
  fill: var(--color-gse-red);
  flex-shrink: 0;
}

.form-error-title {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gse-red);
}

.form-error-list {
  list-style: disc;
  padding-left: var(--space-5);
  margin: 0;
}

.form-error-list li {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-gse-red);
  padding: 2px 0;
}

/* Form Hint */
.form-hint {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-base-300);
  margin-top: var(--space-1);
}

/* ============================================
   FAQ PAGE COMPONENTS
   ============================================ */

/* FAQ Layout */
.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-6);
}

@media (max-width: 1024px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
}

.faq-sidebar {
  position: sticky;
  top: var(--space-6);
  align-self: start;
}

@media (max-width: 1024px) {
  .faq-sidebar {
    position: static;
  }
}

.faq-main {
  min-width: 0;
}

/* FAQ Navigation */
.faq-nav {
  display: flex;
  flex-direction: column;
}

.faq-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-base-300);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
}

.faq-nav-item:hover {
  background: var(--color-off-white);
  color: var(--color-black);
}

.faq-nav-item.active {
  background: var(--color-off-white);
  color: var(--color-black);
  border-left-color: var(--color-gse-blue);
}

.faq-nav-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
}

.faq-nav-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-base-200);
}

/* FAQ Help Card */
.faq-help-card {
  text-align: center;
}

.faq-help-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-3);
  background: var(--color-off-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-help-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gse-blue);
  stroke-width: 2;
  fill: none;
}

.faq-help-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: var(--space-2);
}

.faq-help-text {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-base-300);
  margin-bottom: var(--space-4);
}

/* FAQ Category Header */
.faq-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.faq-category-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-black);
}

.faq-category-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-base-300);
}

/* FAQ Group Header */
.faq-group-header {
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.faq-group-header:first-child {
  margin-top: 0;
}

.faq-group-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-300);
}

/* FAQ List & Items */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-base-200);
}

.faq-item.open {
  border-color: var(--color-gse-blue);
}

.faq-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq-item-title {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-black);
  flex: 1;
  padding-right: var(--space-4);
}

.faq-item-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.faq-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-base-300);
  stroke-width: 2;
  fill: none;
}

.faq-item.open .faq-item-icon {
  transform: rotate(180deg);
}

.faq-item.open .faq-item-icon svg {
  stroke: var(--color-gse-blue);
}

/* FAQ Item Content */
.faq-item-content {
  border-top: 1px solid var(--color-border-light);
}

.faq-item-body {
  padding: var(--space-5);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-base-200);
}

.faq-item-body p {
  margin-bottom: var(--space-3);
}

.faq-item-body p:last-child {
  margin-bottom: 0;
}

.faq-item-body h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-black);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.faq-item-body ul,
.faq-item-body ol {
  margin: var(--space-3) 0;
  padding-left: var(--space-5);
}

.faq-item-body li {
  margin-bottom: var(--space-2);
}

.faq-item-body strong {
  font-weight: 600;
  color: var(--color-black);
}

/* ============================================
   TOM SELECT - Dashboard Theme Overrides
   ============================================ */
.ts-wrapper {
  border: none !important;
}

.ts-wrapper .ts-control {
  border: 1px solid var(--color-border-light) !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  min-height: 42px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  background: var(--color-white) !important;
  color: var(--color-black) !important;
  box-shadow: none !important;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.ts-wrapper .ts-control:hover {
  border-color: var(--color-base-200) !important;
}

.ts-wrapper.focus .ts-control {
  border-color: var(--color-gse-blue) !important;
  box-shadow: 0 0 0 3px rgba(61, 82, 213, 0.1) !important;
}

.ts-wrapper .ts-control > input {
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  color: var(--color-black) !important;
}

.ts-wrapper .ts-control > input::placeholder {
  color: var(--color-base-400) !important;
}

.ts-dropdown {
  border: 1px solid var(--color-border-light) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  margin-top: 4px !important;
  font-family: var(--font-sans) !important;
  background: var(--color-white) !important;
  z-index: 50 !important;
}

.ts-dropdown .ts-dropdown-content {
  max-height: 240px !important;
  padding: 4px !important;
}

.ts-dropdown .option {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.9375rem !important;
  color: var(--color-black) !important;
  border-radius: 0.375rem !important;
  cursor: pointer !important;
}

.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: rgba(61, 82, 213, 0.08) !important;
  color: var(--color-gse-blue) !important;
}

.ts-dropdown .no-results {
  padding: 0.75rem !important;
  text-align: center !important;
  color: var(--color-base-400) !important;
  font-size: 0.875rem !important;
}

.ts-wrapper .ts-control .item {
  color: var(--color-black) !important;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  width: 420px;
  max-width: calc(100vw - 3rem);
  border-radius: 0.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: none;
}

.toast-notice {
  background: var(--color-gse-lime);
  box-shadow: 0 8px 24px rgba(196, 255, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast-alert {
  background: var(--color-gse-red);
  box-shadow: 0 8px 24px rgba(224, 85, 46, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
}

.toast-visible {
  animation: toast-slide-in 300ms ease-out forwards;
}

.toast-dismissing {
  animation: toast-fade-out 200ms ease-in forwards;
}

.toast-body {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.toast-notice .toast-title {
  color: var(--color-black);
}

.toast-alert .toast-title {
  color: var(--color-white);
}

.toast-message {
  font-family: 'Inter', var(--font-sans, sans-serif);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0;
}

.toast-notice .toast-message {
  color: #3a4a00;
}

.toast-alert .toast-message {
  color: rgba(255, 255, 255, 0.9);
}

.toast-close {
  flex-shrink: 0;
  padding: 0.375rem;
  margin-top: 0.125rem;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 150ms ease;
}

.toast-notice .toast-close {
  color: #3a4a00;
}

.toast-notice .toast-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

.toast-alert .toast-close {
  color: var(--color-white);
}

.toast-alert .toast-close:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.toast-progress {
  height: 4px;
}

.toast-notice .toast-progress {
  background: rgba(0, 0, 0, 0.1);
}

.toast-alert .toast-progress {
  background: rgba(255, 255, 255, 0.2);
}

.toast-progress-bar {
  height: 100%;
  width: 100%;
  transform-origin: left;
}

.toast-progress-active {
  animation: toast-progress-shrink linear forwards;
}

.toast-progress-notice {
  background: #3a4a00;
}

.toast-progress-alert {
  background: var(--color-white);
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toast-fade-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(50%);
  }
}

@keyframes toast-progress-shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

/* Mobile: full-width toasts */
@media (max-width: 639px) {
  .toast-container {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .toast {
    width: 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   ADMIN DASHBOARD
   ========================================================================== */

/* Action Strip */
.admin-action-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--color-black);
  border-radius: 0;
  margin-bottom: var(--space-6);
}

.admin-action-strip-label {
  display: flex;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: #DC2626;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  white-space: nowrap;
}

.admin-action-strip-items {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-3) var(--space-4);
}

.admin-action-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.admin-action-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-action-item svg {
  opacity: 0.4;
}

.admin-action-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.admin-action-dot-cyan {
  background: var(--color-gse-cyan);
}

.admin-action-dot-orange {
  background: #F59E0B;
}

.admin-action-dot-red {
  background: #EF4444;
}

/* Chart Tooltip */
.admin-chart-tooltip {
  position: fixed;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 10px;
  background: var(--color-black);
  color: var(--color-white);
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-chart-tooltip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-base-300);
}

.admin-chart-tooltip-value {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

/* Chart bars hover effect */
.admin-chart-bar {
  transition: opacity var(--transition-fast);
  cursor: default;
}

.admin-chart-bar:hover {
  opacity: 0.8;
}

/* Health Score Badge */
.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.health-badge-lime {
  background: rgba(196, 255, 0, 0.2);
  color: #4a5c00;
}

.health-badge-yellow {
  background: rgba(234, 179, 8, 0.2);
  color: #854D0E;
}

.health-badge-orange {
  background: rgba(249, 115, 22, 0.2);
  color: #C2410C;
}

.health-badge-red {
  background: rgba(239, 68, 68, 0.2);
  color: #B91C1C;
}

/* Utilization Bar */
.utilization-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.utilization-bar-track {
  flex: 1;
  height: 6px;
  background: var(--color-border-light);
  border-radius: 3px;
  overflow: hidden;
}

.utilization-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width var(--transition-base);
}

.utilization-bar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-base-300);
  min-width: 36px;
  text-align: right;
}

/* ── Ask naim (B3) chat ─────────────────────────────────────────────── */
.naim-ask-question {
  background: #f4f4f5;
  color: #171717;
  font-size: 14px;
  line-height: 1.55;
  padding: 10px 14px;
  border-radius: 10px;
  max-width: 75%;
}

.naim-ask-chip {
  font-size: 12px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 999px;
  color: #525252;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.naim-ask-chip:hover {
  border-color: #171717;
  color: #171717;
}

/* Ask naim v3: contained chat card */
.naim-ask-card {
  max-width: 800px;
  margin: 24px auto 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.naim-ask-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eef0f3;
}

.naim-ask-thread {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: min(58vh, 640px);
  min-height: 240px;
}

.naim-ask-thread .naim-nudge {
  max-width: 85%;
  align-self: flex-start;
}

.naim-ask-thread .flex.justify-end {
  align-self: flex-end;
  max-width: 85%;
}

.naim-ask-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 14px;
}

.naim-ask-composer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eef0f3;
  background: #fafbfc;
}

.naim-ask-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.naim-ask-input:focus {
  outline: 2px solid #2B59C3;
  outline-offset: 0;
  border-color: transparent;
}

.naim-ask-send {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #171717;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  transition: background 0.15s ease;
}

.naim-ask-send:hover {
  background: #000;
}

/* ============================================
   Fan Segments — living, rule-based fan groups
   ============================================ */

.segment-form-layout,
.segment-show-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-5);
  max-width: 1040px;
  align-items: start;
}

@media (max-width: 900px) {
  .segment-form-layout,
  .segment-show-layout {
    grid-template-columns: 1fr;
  }
}

.segment-condition-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-2);
  align-items: center;
}

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

.segment-value-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: 100%;
}

.segment-value-wrap input {
  flex: 1;
  min-width: 0;
}

.segment-value-unit {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-base-400);
  white-space: nowrap;
}

.segment-match-type {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.segment-match-option {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  cursor: pointer;
}

.segment-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-5);
}

/* Card chrome: gradient keyline on top, gentle lift on hover — keeps the
   grid scannable without leaning on more text. */
.segment-card {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.segment-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gse-lime), var(--color-gse-cyan));
}

.segment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.segment-card-top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.segment-card-title {
  font-size: 17px;
  margin: 0 0 var(--space-1);
}

.segment-card-title a {
  color: inherit;
  text-decoration: none;
}

.segment-card-title a:hover {
  text-decoration: underline;
}

.segment-card-description {
  font-size: 13px;
  color: var(--color-base-400);
  margin: 0;
}

.segment-card-count {
  text-align: right;
  flex-shrink: 0;
}

.segment-card-count-value {
  display: block;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.segment-card-count-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-400);
  white-space: nowrap;
}

/* Share-of-fanbase bar: the one glanceable visual per card. */
.segment-card-share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.segment-share-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--color-base-150, #ececec);
  overflow: hidden;
}

.segment-share-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--color-gse-lime), var(--color-gse-cyan));
  transition: width 400ms ease;
}

.segment-share-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-400);
  white-space: nowrap;
}

.segment-rule-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.segment-rule-chips .badge {
  text-transform: none;
  letter-spacing: 0;
  font-size: 11px;
}

.segment-match-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  background: color-mix(in srgb, var(--color-gse-cyan) 18%, white);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.segment-more-chip {
  text-decoration: none;
}

.segment-more-chip:hover {
  text-decoration: underline;
}

/* Joined icon button group; the push action is tinted, not solid black,
   so it reads as the accent without dominating every card. */
.segment-btn-group {
  display: inline-flex;
  flex-wrap: wrap;
}

.segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: 9px 14px;
  transition: all var(--transition-fast);
}

.segment-btn + .segment-btn {
  margin-left: -1px;
}

.segment-btn:hover {
  background: #f4f4f4;
  border-color: #c9c9c9;
  position: relative;
  z-index: 1;
}

.segment-btn svg {
  flex: none;
  opacity: 0.65;
}

.segment-btn--push {
  background: color-mix(in srgb, var(--color-gse-lime) 28%, white);
  border-color: color-mix(in srgb, var(--color-gse-lime) 55%, #d4d4d4);
}

.segment-btn--push:hover {
  background: color-mix(in srgb, var(--color-gse-lime) 50%, white);
  border-color: color-mix(in srgb, var(--color-gse-lime) 75%, #c9c9c9);
}

.segment-rule-list {
  margin: 0;
  padding-left: var(--space-4);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.segment-show-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.segment-show-actions .btn,
.segment-show-actions form {
  width: 100%;
}

.segment-show-actions form .btn {
  width: 100%;
}

.segment-window-row {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  font-size: 12px;
  color: var(--color-base-400);
}

.segment-window-row input {
  width: 76px;
  flex: none;
}

.segment-window-row em {
  font-style: normal;
  opacity: 0.7;
}
/* ============================================
   REFOLD-INSPIRED DESIGN SYSTEM FOR GSE
   Based on .design-system/gse-refold-style.html
   ============================================ */

/* ============================================
   DESIGN TOKENS / CSS VARIABLES
   ============================================ */
:root {
  /* Primary Colors */
  --color-black: #191716;
  --color-white: #FFFFFF;
  --color-charcoal: #2F333C;

  /* GSE Brand Accent - Sports Energy Gradient */
  --color-gse-lime: #C4FF00;
  --color-gse-cyan: #00E5FF;
  --color-gse-blue: #3D52D5;
  --color-gse-red: #e0552e;

  /* Neutral Grays */
  --color-base-100: #2F333C;
  --color-base-200: #8F9CBD;
  --color-base-300: #6B7280;
  --color-base-400: #9CA3AF;
  --color-border-light: #EAEAEA;
  --color-border-dark: #3A3E49;
  --color-off-white: #FAFAFA;
  --color-light-gray: #F7F7F9;

  /* Typography */
  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Spacing Scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Transitions */
  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
}

/* ============================================
   BUTTONS
   ============================================ */
.rf-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rf-btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  border: none;
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 48px;
}

.rf-btn-primary .rf-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-gse-lime);
  color: var(--color-black);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.rf-btn-primary .rf-btn-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-gse-cyan);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.rf-btn-primary .rf-btn-icon svg {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.rf-btn-primary .rf-btn-text {
  padding: var(--space-3) var(--space-6);
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.rf-btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 0;
  bottom: 0;
  background: var(--color-gse-lime);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.rf-btn-primary:hover::after {
  transform: translateX(0);
}

.rf-btn-primary:hover .rf-btn-icon::before {
  transform: translateX(0);
}

.rf-btn-primary:hover .rf-btn-icon svg {
  transform: translateX(3px);
}

.rf-btn-primary:hover .rf-btn-text {
  color: var(--color-black);
}

.rf-btn-secondary {
  background: var(--color-white);
  color: var(--color-black);
  border: 1px solid var(--color-border-light);
  padding: var(--space-3) var(--space-6);
  height: 48px;
}

.rf-btn-secondary:hover {
  background: var(--color-off-white);
  border-color: var(--color-base-300);
}

/* Focus States - Accessibility */
.rf-btn:focus-visible {
  outline: 2px solid var(--color-gse-lime);
  outline-offset: 2px;
}

.rf-btn-secondary:focus-visible {
  outline-color: var(--color-gse-blue);
}

/* ============================================
   LOGO
   ============================================ */
.rf-nav-logo {
  font-family: 'DM Serif Display', var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-black);
  display: flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.rf-logo-word {
  position: relative;
  display: inline-block;
  padding: 0 2px;
  z-index: 1;
}

.rf-logo-word::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 2px;
  height: 6px;
  z-index: -1;
  transition: height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  clip-path: polygon(3px 0%, 100% 2px, calc(100% - 2px) 100%, 0% calc(100% - 1px));
}

/* Color variants */
.rf-logo-word[data-color="lime"]::after {
  background: var(--color-gse-lime);
}

.rf-logo-word[data-color="cyan"]::after {
  background: var(--color-gse-cyan);
}

.rf-logo-word[data-color="blue"]::after {
  background: var(--color-gse-blue);
}

/* Hover animation - staggered delay */
.rf-nav-logo:hover .rf-logo-word::after {
  height: 100%;
  bottom: 0;
}

.rf-nav-logo:hover .rf-logo-word[data-color="lime"]::after {
  transition-delay: 0s;
}

.rf-nav-logo:hover .rf-logo-word[data-color="cyan"]::after {
  transition-delay: 0.05s;
}

.rf-nav-logo:hover .rf-logo-word[data-color="blue"]::after {
  transition-delay: 0.1s;
}

/* Text color transitions on hover */
.rf-logo-word {
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.rf-logo-word[data-color="lime"] {
  transition-delay: 0s;
}

.rf-logo-word[data-color="cyan"] {
  transition-delay: 0.05s;
}

.rf-logo-word[data-color="blue"] {
  transition-delay: 0.1s;
}

.rf-nav-logo:hover .rf-logo-word[data-color="lime"],
.rf-nav-logo:hover .rf-logo-word[data-color="cyan"] {
  color: var(--color-black);
}

.rf-nav-logo:hover .rf-logo-word[data-color="blue"] {
  color: var(--color-white);
}

/* ============================================
   BUTTON VARIANTS
   ============================================ */
.rf-btn-full {
  width: 100%;
  justify-content: center;
}

.rf-btn-lime {
  background: var(--color-gse-lime);
  color: var(--color-black);
  border: none;
  padding: var(--space-3) var(--space-6);
  height: 48px;
  overflow: hidden;
  position: relative;
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rf-btn-lime:hover {
  background: var(--color-gse-cyan);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 255, 0, 0.3);
}

.rf-btn-lime .rf-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-gse-lime);
  color: var(--color-black);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.rf-btn-lime .rf-btn-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-gse-cyan);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.rf-btn-lime .rf-btn-icon svg {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.rf-btn-lime .rf-btn-text {
  padding: 0 var(--space-6);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.4s ease;
  position: relative;
  z-index: 1;
}

.rf-btn-lime::after {
  content: '';
  position: absolute;
  top: 0;
  left: 48px;
  right: 0;
  bottom: 0;
  background: var(--color-gse-lime);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.rf-btn-lime:hover::after {
  transform: translateX(0);
}

.rf-btn-lime:hover .rf-btn-icon::before {
  transform: translateX(0);
}

.rf-btn-lime:hover .rf-btn-icon svg {
  transform: translateX(3px);
}

.rf-btn-lime:hover .rf-btn-text {
  color: var(--color-black);
}

.rf-btn-ghost {
  background: transparent;
  color: var(--color-base-100);
  border: 1px solid var(--color-base-300);
  padding: var(--space-3) var(--space-5);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.rf-btn-ghost:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

/* Outline Light Button (for dark backgrounds) */
.rf-btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: var(--space-3) var(--space-6);
  height: 48px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rf-btn-outline-light:hover {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.rf-btn-secondary-light {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.rf-btn-secondary-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
}

.rf-btn-block {
  width: 100%;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.rf-btn-block .rf-btn-icon {
  flex-shrink: 0;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
}

.rf-btn-block:last-child {
  margin-bottom: 0;
}

/* ============================================
   GSE BENTO GRID - Pricing Page
   ============================================ */
.gse-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(200px, auto);
  gap: var(--space-4);
}

.gse-bento-large {
  grid-column: span 8;
  grid-row: span 2;
}

.gse-bento-small {
  grid-column: span 4;
}

.gse-bento-medium {
  grid-column: span 6;
}

.gse-bento-full {
  grid-column: span 12;
}

@media (max-width: 1024px) {
  .gse-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }

  .gse-bento-large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .gse-bento-small {
    grid-column: span 1;
  }

  .gse-bento-medium {
    grid-column: span 2;
  }

  .gse-bento-full {
    grid-column: span 2;
  }
}

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

  .gse-bento-large,
  .gse-bento-small,
  .gse-bento-medium,
  .gse-bento-full {
    grid-column: span 1;
  }
}

/* ========================================
   Coming Soon Page - GSE Design System
   ======================================== */

.coming-soon-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-black);
}

.coming-soon-content {
  text-align: center;
  padding: var(--space-8);
  max-width: 600px;
  width: 100%;
}

/* Coming Soon Logo - White, centered, bigger */
.coming-soon-logo.rf-nav-logo {
  justify-content: center;
  font-size: 3rem;
  margin-bottom: var(--space-10);
  color: var(--color-white);
  position: relative;
  z-index: 10;
}

.coming-soon-logo .rf-logo-word {
  color: var(--color-white);
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sweep animation — same as main site (::after grows behind text) */
/* Text turns dark on lime/cyan sweep, white on blue sweep */
.coming-soon-logo:hover .rf-logo-word[data-color="lime"],
.coming-soon-logo:hover .rf-logo-word[data-color="cyan"] {
  color: var(--color-black);
}

.coming-soon-logo:hover .rf-logo-word[data-color="blue"] {
  color: var(--color-white);
}

/* Vertical Logo - Stacked Words */
.logo-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  margin-bottom: var(--space-12);
}

.logo-word {
  font-family: var(--font-serif);
  font-size: clamp(48px, 12vw, 80px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
  padding: 0 var(--space-2);
  z-index: 1;
  color: var(--color-white);
  transition: color var(--transition-fast);
}

.logo-word::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: 8px;
  height: 12px;
  z-index: -1;
  transition: height var(--transition-base);
  clip-path: polygon(4px 0%, 100% 2px, calc(100% - 3px) 100%, 0% calc(100% - 2px));
}

.logo-word[data-color="lime"]::after {
  background: var(--color-gse-lime);
}

.logo-word[data-color="cyan"]::after {
  background: var(--color-gse-cyan);
}

.logo-word[data-color="blue"]::after {
  background: var(--color-gse-blue);
}

/* Hover animation for vertical logo */
.logo-vertical:hover .logo-word::after {
  height: 90%;
  bottom: 4px;
}

.logo-vertical:hover .logo-word[data-color="lime"]::after {
  transition-delay: 0s;
}

.logo-vertical:hover .logo-word[data-color="cyan"]::after {
  transition-delay: 0.1s;
}

.logo-vertical:hover .logo-word[data-color="blue"]::after {
  transition-delay: 0.2s;
}

/* Text color on hover */
.logo-vertical:hover .logo-word[data-color="lime"],
.logo-vertical:hover .logo-word[data-color="cyan"] {
  color: var(--color-black);
}

/* Newsletter Form */
.newsletter-form {
  max-width: 480px;
  margin: 0 auto var(--space-12);
}

.newsletter-input-group {
  display: flex;
  gap: 0;
  align-items: stretch;
}

/* Dark variant of form input */
.form-input-dark {
  width: 100%;
  height: 48px;
  padding: 0 var(--space-4);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-white);
  background: var(--color-charcoal);
  border: 1px solid var(--color-border-dark);
  border-radius: 0;
  transition: all var(--transition-fast);
}

.form-input-dark:focus {
  outline: none;
  border-color: var(--color-gse-lime);
  box-shadow: 0 0 0 3px rgba(196, 255, 0, 0.2);
}

.form-input-dark::placeholder {
  color: var(--color-base-300);
}

/* Newsletter Success State */
.newsletter-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  background: transparent;
  border: 1px solid var(--color-gse-lime);
  padding: var(--space-4) var(--space-6);
  color: var(--color-gse-lime);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
}

.newsletter-success svg {
  flex-shrink: 0;
}

/* Spinner Animation */
.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Social Links */
.coming-soon-social {
  margin-top: var(--space-12);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-base-300);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--color-gse-lime);
  border-color: var(--color-gse-lime);
  color: var(--color-black);
}

/* Mobile Adjustments */
@media (max-width: 640px) {
  .coming-soon-content {
    padding: var(--space-6);
  }

  .logo-word {
    font-size: clamp(40px, 14vw, 64px);
  }

  .logo-word::after {
    height: 10px;
    bottom: 4px;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-input-group .rf-btn {
    width: 100%;
  }
}

/* ============================================
   STATUS PAGE STYLES
   status.gamesetengage.com
   ============================================ */

.status-page {
  min-height: 100vh;
  background: var(--color-black);
  padding: var(--space-16) var(--space-4);
}

.status-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.status-logo {
  display: flex;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.status-logo .logo-word {
  font-family: var(--font-serif);
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 500;
  display: inline-block;
  position: relative;
  line-height: 1.2;
}

.status-logo .logo-word::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  z-index: -1;
  transition: height var(--transition-fast);
}

.status-logo .logo-word[data-color="lime"] {
  color: var(--color-gse-lime);
}
.status-logo .logo-word[data-color="lime"]::after {
  background: var(--color-gse-lime);
  opacity: 0.3;
}

.status-logo .logo-word[data-color="cyan"] {
  color: var(--color-gse-cyan);
}
.status-logo .logo-word[data-color="cyan"]::after {
  background: var(--color-gse-cyan);
  opacity: 0.3;
}

.status-logo .logo-word[data-color="blue"] {
  color: var(--color-gse-blue);
}
.status-logo .logo-word[data-color="blue"]::after {
  background: var(--color-gse-blue);
  opacity: 0.3;
}

/* Status Banner */
.status-banner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-8);
  border: 1px solid;
}

.status-banner-operational {
  background: rgba(196, 255, 0, 0.1);
  border-color: var(--color-gse-lime);
}

.status-banner-operational .status-banner-icon {
  color: var(--color-gse-lime);
}

.status-banner-degraded {
  background: rgba(255, 193, 7, 0.1);
  border-color: #FFC107;
}

.status-banner-degraded .status-banner-icon {
  color: #FFC107;
}

.status-banner-partial_outage {
  background: rgba(255, 152, 0, 0.1);
  border-color: #FF9800;
}

.status-banner-partial_outage .status-banner-icon {
  color: #FF9800;
}

.status-banner-major_outage {
  background: rgba(244, 67, 54, 0.1);
  border-color: #F44336;
}

.status-banner-major_outage .status-banner-icon {
  color: #F44336;
}

.status-banner-icon {
  flex-shrink: 0;
}

.status-banner-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.status-banner-text strong {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-white);
}

.status-banner-text span {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-base-300);
}

/* Services List */
.status-services {
  margin-bottom: var(--space-12);
}

.status-services-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.status-service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: var(--color-charcoal);
  border: 1px solid var(--color-border-dark);
}

.status-service-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.status-service-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

.status-service-description {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-base-300);
}

.status-service-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-text {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Status colors */
.status-operational .status-dot {
  background: var(--color-gse-lime);
  box-shadow: 0 0 8px var(--color-gse-lime);
}

.status-operational .status-text {
  color: var(--color-gse-lime);
}

.status-degraded .status-dot {
  background: #FFC107;
  box-shadow: 0 0 8px #FFC107;
}

.status-degraded .status-text {
  color: #FFC107;
}

.status-partial_outage .status-dot {
  background: #FF9800;
  box-shadow: 0 0 8px #FF9800;
}

.status-partial_outage .status-text {
  color: #FF9800;
}

.status-major_outage .status-dot {
  background: #F44336;
  box-shadow: 0 0 8px #F44336;
}

.status-major_outage .status-text {
  color: #F44336;
}

/* Incidents Section */
.status-incidents {
  margin-bottom: var(--space-12);
}

.status-no-incidents {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  background: rgba(196, 255, 0, 0.05);
  border: 1px solid var(--color-border-dark);
  color: var(--color-gse-lime);
  font-family: var(--font-sans);
  font-size: 14px;
}

.status-incident {
  padding: var(--space-5);
  background: var(--color-charcoal);
  border: 1px solid var(--color-border-dark);
  margin-bottom: var(--space-3);
}

.status-incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}

.status-incident-title {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

.status-incident-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-base-300);
}

.status-incident-description {
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-base-300);
  line-height: 1.5;
  margin: 0;
}

/* Footer */
.status-footer {
  text-align: center;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-dark);
}

/* Mobile Adjustments for Status Page */
@media (max-width: 640px) {
  .status-page {
    padding: var(--space-8) var(--space-4);
  }

  .status-logo {
    gap: var(--space-2);
  }

  .status-logo .logo-word {
    font-size: clamp(18px, 6vw, 24px);
  }

  .status-banner {
    flex-direction: column;
    text-align: center;
    padding: var(--space-4);
  }

  .status-service {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .status-incident-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-1);
  }
}

/* ============================================
   FEATURE PAGES - Unprefixed Classes
   Following design-system light theme
   ============================================ */

.feature-page {
  background: var(--color-white);
  color: var(--color-base-100);
}

/* Feature Hero Section */
.feature-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-20) var(--space-6);
  background: var(--color-off-white);
}

/* Venues Hero with Background Image */
.feature-hero-venues {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-hero-venues .feature-hero-label {
  color: var(--color-gse-lime);
}

.feature-hero-venues .feature-hero-title {
  color: var(--color-white);
}

.feature-hero-venues .feature-hero-description {
  color: var(--color-base-400);
}

.feature-hero-venues .feature-hero-note {
  color: var(--color-base-400);
}

.feature-hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.feature-hero-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gse-blue);
  margin-bottom: var(--space-4);
}

.feature-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: var(--color-black);
}

.feature-hero-title span {
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-base-200);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

.feature-hero-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.feature-hero-note {
  font-size: 14px;
  color: var(--color-base-300);
}

/* Stats Banner */
.stats-banner {
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  padding: var(--space-8) var(--space-6);
}

.stats-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  text-align: center;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  color: var(--color-black);
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-black);
  opacity: 0.7;
}

/* Feature Sections */
.feature-section {
  padding: var(--space-20) var(--space-6);
  background: var(--color-white);
}

.feature-section-dark {
  background: var(--color-off-white);
}

.feature-section-light {
  background: var(--color-light-gray);
}

.feature-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.feature-section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-12);
}

.feature-section-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gse-blue);
  margin-bottom: var(--space-3);
}

.feature-section-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  margin-bottom: var(--space-4);
  color: var(--color-black);
}

.feature-section-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-base-200);
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

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

.bento-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: var(--space-6);
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.bento-card-large {
  grid-column: span 8;
  grid-row: span 2;
}

.bento-card-medium {
  grid-column: span 4;
}

.bento-card-wide {
  grid-column: span 8;
  flex-direction: row;
  align-items: center;
}

@media (max-width: 1024px) {
  .bento-card,
  .bento-card-large,
  .bento-card-medium,
  .bento-card-wide {
    grid-column: span 6;
  }

  .bento-card-wide {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .bento-card,
  .bento-card-large,
  .bento-card-medium,
  .bento-card-wide {
    grid-column: span 1;
    grid-row: span 1;
  }
}

.bento-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bento-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-black);
}

.bento-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
}

.bento-card-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-base-200);
}

.bento-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
}

.bento-tag {
  font-size: 12px;
  font-weight: 500;
  padding: var(--space-1) var(--space-2);
  background: var(--color-off-white);
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  color: var(--color-base-200);
}

.bento-card-metric {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.bento-metric-value {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--color-gse-blue);
}

.bento-metric-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-300);
}

.bento-wide-stat {
  margin-left: auto;
  text-align: right;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

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

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

.step-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: var(--space-6);
  position: relative;
}

.step-number {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
}

.step-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-3);
}

.step-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-base-200);
}

/* Feature Split Layout */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

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

.feature-split-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.feature-split-label {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gse-blue);
}

.feature-split-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  color: var(--color-black);
}

.feature-split-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-base-200);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--color-base-100);
}

.feature-list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-gse-blue);
  flex-shrink: 0;
}

.feature-split-visual {
  background: var(--color-off-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  padding: var(--space-8);
}

/* AI Chat Device */
.ai-chat-device {
  background: var(--color-black);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  max-width: 380px;
  margin: 0 auto;
}

.ai-chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-charcoal);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-chat-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--color-gse-lime), var(--color-gse-cyan));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-chat-avatar svg {
  width: 22px;
  height: 22px;
  color: var(--color-black);
}

.ai-chat-title {
  display: flex;
  flex-direction: column;
}

.ai-chat-name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-white);
}

.ai-chat-status {
  font-size: 12px;
  color: var(--color-gse-lime);
}

.ai-chat-body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-height: 280px;
}

.ai-chat-bubble {
  max-width: 85%;
  padding: var(--space-3) var(--space-4);
  border-radius: 16px;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: chatBubbleFadeIn 0.5s ease forwards;
}

.ai-chat-bubble:nth-child(1) { animation-delay: 0.2s; }
.ai-chat-bubble:nth-child(2) { animation-delay: 0.8s; }
.ai-chat-bubble:nth-child(3) { animation-delay: 1.4s; }
.ai-chat-bubble:nth-child(4) { animation-delay: 2.0s; }

@keyframes chatBubbleFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ai-chat-bubble .ai-chat-time {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: var(--space-2);
  text-align: right;
}

.ai-chat-user {
  background: var(--color-gse-blue);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-chat-user p {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.ai-chat-naim {
  background: var(--color-charcoal);
  color: var(--color-white);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-chat-naim-header {
  margin-bottom: var(--space-3);
}

.ai-chat-typing {
  font-size: 12px;
  color: var(--color-gse-lime);
  font-family: var(--font-mono);
}

.ai-campaign-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
}

.ai-campaign-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3);
  background: rgba(196, 255, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gse-lime);
}

.ai-campaign-card-header svg {
  color: var(--color-gse-lime);
}

.ai-campaign-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.ai-campaign-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.ai-campaign-label {
  color: rgba(255, 255, 255, 0.5);
}

.ai-campaign-value {
  color: var(--color-white);
  font-weight: 500;
}

.ai-campaign-card-footer {
  padding: var(--space-2) var(--space-3);
  background: rgba(196, 255, 0, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-campaign-ready {
  font-size: 11px;
  color: var(--color-gse-lime);
  font-weight: 500;
}

/* Pricing Teaser */
.pricing-teaser {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 1024px) {
  .pricing-teaser {
    grid-template-columns: 1fr;
  }
}

.pricing-teaser-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.pricing-teaser-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.pricing-card-header {
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  padding: var(--space-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.pricing-card-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-black);
}

.pricing-card-price {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--color-black);
}

.pricing-card-term {
  font-size: 14px;
  color: var(--color-black);
  opacity: 0.7;
}

.pricing-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.pricing-card-body p {
  font-size: 14px;
  color: var(--color-base-200);
  text-align: center;
}

/* CTA Section */
.cta-section {
  padding: var(--space-20) var(--space-6);
  background: linear-gradient(135deg, var(--color-gse-blue) 0%, #1a2a6c 100%);
  text-align: center;
}

.cta-section-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}

.cta-title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  color: var(--color-white);
}

.cta-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-benefits {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.cta-benefit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 14px;
  color: var(--color-white);
}

.cta-benefit::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-gse-lime);
  border-radius: 50%;
}

.cta-note {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   VENUE ADVANTAGES GRID
   ============================================ */
.venue-advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 1024px) {
  .venue-advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.venue-advantage-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.venue-advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.venue-advantage-card.accent-lime {
  border-top: 4px solid var(--color-gse-lime);
}

.venue-advantage-card.accent-dark {
  background: var(--color-black);
  border-color: var(--color-border-dark);
  border-top: 4px solid var(--color-base-300);
}

.venue-advantage-card.accent-dark .venue-advantage-title,
.venue-advantage-card.accent-dark .venue-advantage-description {
  color: var(--color-white);
}

.venue-advantage-card.accent-dark .venue-advantage-list li {
  color: var(--color-base-400);
}

.venue-advantage-card.accent-cyan {
  border-top: 4px solid var(--color-gse-cyan);
}

.venue-advantage-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-off-white);
  border-radius: 12px;
}

.venue-advantage-card.accent-dark .venue-advantage-icon {
  background: var(--color-charcoal);
}

.venue-advantage-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-base-100);
}

.venue-advantage-card.accent-lime .venue-advantage-icon svg {
  stroke: var(--color-gse-lime);
}

.venue-advantage-card.accent-cyan .venue-advantage-icon svg {
  stroke: var(--color-gse-cyan);
}

.venue-advantage-card.accent-dark .venue-advantage-icon svg {
  stroke: var(--color-gse-lime);
}

.venue-advantage-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-black);
}

.venue-advantage-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-base-300);
}

.venue-advantage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.venue-advantage-list li {
  font-size: 14px;
  color: var(--color-base-300);
  padding-left: var(--space-5);
  position: relative;
}

.venue-advantage-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--color-gse-lime);
  border-radius: 50%;
}

/* ============================================
   REVENUE CALCULATOR
   ============================================ */
.revenue-calculator {
  background: var(--color-charcoal);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
}

.revenue-calculator-header {
  background: var(--color-black);
  padding: var(--space-4) var(--space-6);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gse-lime);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.revenue-calculator-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.revenue-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-dark);
  font-size: 14px;
}

.revenue-row span:first-child {
  color: var(--color-base-400);
}

.revenue-row span:last-child {
  color: var(--color-white);
  font-weight: 500;
}

.revenue-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-4) 0;
  margin-top: var(--space-2);
  border-top: 2px solid var(--color-gse-lime);
}

.revenue-total span:first-child {
  color: var(--color-white);
  font-weight: 500;
}

.revenue-amount {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gse-lime);
}

.revenue-note {
  font-size: 12px;
  color: var(--color-base-400);
  text-align: center;
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-dark);
}

/* ============================================
   STATS GRID LIGHT VARIANT
   ============================================ */
.stats-grid-light {
  background: var(--color-off-white);
  border-radius: 16px;
  padding: var(--space-8);
  margin-bottom: var(--space-12);
}

.stats-grid-light .stat-item {
  text-align: center;
}

.stats-grid-light .stat-number {
  color: var(--color-black);
}

.stats-grid-light .stat-label {
  color: var(--color-base-300);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

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

.testimonial-card {
  background: var(--color-off-white);
  border-radius: 16px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-base-100);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gse-lime);
  color: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-black);
}

.testimonial-role {
  font-size: 14px;
  color: var(--color-base-300);
}

/* ============================================
   VENUE TYPES LIST
   ============================================ */
.venue-types-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.venue-type-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border-light);
}

.venue-type-indicator {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}

.venue-type-indicator.red {
  background: var(--color-gse-red);
}

.venue-type-indicator.blue {
  background: var(--color-gse-blue);
}

.venue-type-indicator.lime {
  background: var(--color-gse-lime);
}

.venue-type-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: var(--space-1);
}

.venue-type-content p {
  font-size: 14px;
  color: var(--color-base-300);
  line-height: 1.5;
}

/* ============================================
   COMING SOON CARD (Feature Card)
   ============================================ */
.coming-soon-card {
  background: var(--color-black);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
}

.coming-soon-card .coming-soon-header {
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  padding: var(--space-4) var(--space-6);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-black);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coming-soon-card .coming-soon-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.coming-soon-card .coming-soon-item {
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border-dark);
}

.coming-soon-card .coming-soon-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.coming-soon-card .coming-soon-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gse-lime);
  margin-bottom: var(--space-1);
}

.coming-soon-card .coming-soon-item p {
  font-size: 14px;
  color: var(--color-base-400);
  line-height: 1.5;
}

.coming-soon-card .coming-soon-footer {
  background: var(--color-charcoal);
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border-dark);
}

.coming-soon-card .coming-soon-footer p {
  font-size: 13px;
  color: var(--color-base-400);
  text-align: center;
}

/* ============================================
   FANS HERO WITH BACKGROUND
   ============================================ */
.feature-hero-fans {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-hero-fans .feature-hero-label {
  color: var(--color-gse-lime);
}

.feature-hero-fans .feature-hero-title {
  color: var(--color-white);
}

.feature-hero-fans .feature-hero-description {
  color: var(--color-base-400);
}

/* ============================================
   FAN BENEFITS GRID
   ============================================ */
.fan-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 1024px) {
  .fan-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.fan-benefit-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fan-benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.fan-benefit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  border-radius: 14px;
}

.fan-benefit-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--color-black);
}

.fan-benefit-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-black);
}

.fan-benefit-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-base-300);
}

/* ============================================
   FEATURE CARDS GRID
   ============================================ */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-12);
}

@media (max-width: 1024px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: 16px;
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-off-white);
  border-radius: 12px;
}

.feature-card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gse-blue);
}

.feature-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
}

.feature-card-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-base-300);
}

/* ============================================
   POINTS DISPLAY (Fans Page)
   ============================================ */
.points-display {
  background: var(--color-charcoal);
  border-radius: 16px;
  padding: var(--space-8);
  border: 1px solid var(--color-border-dark);
  text-align: center;
}

.points-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-400);
  margin-bottom: var(--space-2);
}

.points-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-gse-lime);
  margin-bottom: var(--space-6);
}

.points-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  border-top: 1px solid var(--color-border-dark);
  padding-top: var(--space-6);
}

.points-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-black);
  border-radius: 8px;
}

.points-action-name {
  font-size: 14px;
  color: var(--color-white);
}

.points-action-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gse-lime);
}

/* ============================================
   CLUBS HERO WITH BACKGROUND
   ============================================ */
.feature-hero-clubs {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-hero-clubs .feature-hero-label {
  color: var(--color-gse-lime);
}

.feature-hero-clubs .feature-hero-title {
  color: var(--color-white);
}

.feature-hero-clubs .feature-hero-description {
  color: var(--color-base-400);
}

.feature-hero-clubs .feature-hero-note {
  color: var(--color-base-400);
}

/* ============================================
   BENTO CARDS WITH BACKGROUND IMAGES
   ============================================ */
.bento-with-bg {
  border: none;
}

.bento-with-bg::before {
  display: none;
}

/* ============================================
   NAIM AI PAGE
   ============================================ */

/* Hero for Naim */
.feature-hero-naim {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.feature-hero-naim .feature-hero-label {
  color: var(--color-gse-lime);
}

.feature-hero-naim .feature-hero-title {
  color: var(--color-white);
}

.feature-hero-naim .feature-hero-description {
  color: var(--color-base-400);
}

/* Gradient Section */
.feature-section-gradient {
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  padding: var(--space-20) var(--space-6);
}

/* Naim Traits Grid */
.naim-traits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 900px;
  margin: 0 auto;
}

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

.naim-trait-card {
  text-align: center;
  padding: var(--space-8);
  border: 1px solid var(--color-border-light);
  transition: border-color var(--transition-fast);
}

.naim-trait-card:hover {
  border-color: var(--color-gse-lime);
}

.naim-trait-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.naim-trait-icon svg {
  width: 24px;
  height: 24px;
}

.naim-trait-icon.accent-lime {
  background: var(--color-gse-lime);
  color: var(--color-black);
}

.naim-trait-icon.accent-cyan {
  background: var(--color-gse-cyan);
  color: var(--color-black);
}

.naim-trait-icon.accent-blue {
  background: var(--color-gse-blue);
  color: var(--color-white);
}

.naim-trait-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-2);
}

.naim-trait-card p {
  font-size: 14px;
  color: var(--color-base-200);
  line-height: 1.6;
}

/* Naim Traits Grid V2 - With Gradient Backgrounds and Large Icons */
.naim-traits-grid-v2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .naim-traits-grid-v2 {
    grid-template-columns: 1fr;
  }
}

.naim-trait-card-v2 {
  position: relative;
  padding: var(--space-10) var(--space-8);
  overflow: hidden;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
}

.naim-trait-card-v2.trait-lime {
  background: linear-gradient(135deg, rgba(196, 255, 0, 0.15) 0%, rgba(196, 255, 0, 0.05) 100%);
  border: 1px solid rgba(196, 255, 0, 0.3);
}

.naim-trait-card-v2.trait-cyan {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15) 0%, rgba(0, 229, 255, 0.05) 100%);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.naim-trait-card-v2.trait-blue {
  background: linear-gradient(135deg, rgba(61, 82, 213, 0.15) 0%, rgba(61, 82, 213, 0.05) 100%);
  border: 1px solid rgba(61, 82, 213, 0.3);
}

.naim-trait-bg-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 180px;
  height: 180px;
  opacity: 0.1;
  pointer-events: none;
}

.naim-trait-card-v2.trait-lime .naim-trait-bg-icon {
  color: var(--color-gse-lime);
}

.naim-trait-card-v2.trait-cyan .naim-trait-bg-icon {
  color: var(--color-gse-cyan);
}

.naim-trait-card-v2.trait-blue .naim-trait-bg-icon {
  color: var(--color-gse-blue);
}

.naim-trait-bg-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 0.5;
}

.naim-trait-content {
  position: relative;
  z-index: 1;
}

.naim-trait-card-v2 h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-2);
}

.naim-trait-card-v2 p {
  font-size: 15px;
  color: var(--color-base-200);
  line-height: 1.6;
  margin: 0;
}

/* Naim Capabilities Grid */
.naim-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .naim-capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.naim-capability-card {
  background: var(--color-black);
  padding: var(--space-8);
  transition: transform var(--transition-fast);
}

.naim-capability-card:hover {
  transform: scale(1.02);
}

.naim-capability-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.naim-capability-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.naim-capability-icon svg {
  width: 20px;
  height: 20px;
}

.naim-capability-icon.lime {
  background: var(--color-gse-lime);
  color: var(--color-black);
}

.naim-capability-icon.cyan {
  background: var(--color-gse-cyan);
  color: var(--color-black);
}

.naim-capability-icon.blue {
  background: var(--color-gse-blue);
  color: var(--color-white);
}

.naim-capability-number {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gse-lime);
}

.naim-capability-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.naim-capability-card > p {
  font-size: 14px;
  color: var(--color-base-300);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.naim-capability-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.naim-capability-list li {
  font-size: 13px;
  color: var(--color-base-300);
  padding-left: 20px;
  position: relative;
  margin-bottom: var(--space-2);
}

.naim-capability-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  background: var(--color-gse-lime);
  border-radius: 50%;
}

/* Steps Dark Variant */
.steps-grid-dark {
  max-width: 1000px;
  margin: 0 auto;
  grid-template-columns: repeat(3, 1fr);
}

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

.step-card-dark {
  background: var(--color-charcoal);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.step-card-dark .step-number {
  color: var(--color-gse-lime);
  background: var(--color-black);
}

.step-card-dark .step-title {
  color: var(--color-white);
}

.step-card-dark .step-description {
  color: var(--color-base-400);
}

/* Naim Conversation */
.naim-conversation {
  display: flex;
  justify-content: center;
}

/* Chat insights inside Naim response */
.ai-chat-insights {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  background: rgba(196, 255, 0, 0.1);
  border-radius: 8px;
  padding: var(--space-3);
  margin: var(--space-3) 0;
}

.ai-chat-insight {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
}

.ai-chat-insight-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-gse-lime);
}

.ai-chat-insight-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

/* Naim Roles Grid */
.naim-roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 1000px;
  margin: 0 auto;
}

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

.naim-role-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  padding: var(--space-8);
  transition: all var(--transition-fast);
}

.naim-role-card:hover {
  border-color: var(--color-gse-lime);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.naim-role-icon {
  width: 56px;
  height: 56px;
  background: var(--color-black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.naim-role-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-gse-lime);
}

.naim-role-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-3);
}

.naim-role-card > p {
  font-size: 14px;
  color: var(--color-base-200);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.naim-role-examples {
  list-style: none;
  padding: 0;
  margin: 0;
}

.naim-role-examples li {
  font-size: 13px;
  color: var(--color-base-300);
  font-style: italic;
  margin-bottom: var(--space-2);
}

/* Naim Roles Columns - Clean 3-Column Layout */
.naim-roles-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-12);
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .naim-roles-columns {
    gap: var(--space-8);
  }
}

@media (max-width: 768px) {
  .naim-roles-columns {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

.naim-role-column {
  text-align: center;
}

.naim-role-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.naim-role-icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.naim-role-icon-circle.lime {
  background: linear-gradient(135deg, var(--color-gse-lime) 0%, rgba(196, 255, 0, 0.7) 100%);
  box-shadow: 0 8px 32px rgba(196, 255, 0, 0.3);
}

.naim-role-icon-circle.cyan {
  background: linear-gradient(135deg, var(--color-gse-cyan) 0%, rgba(0, 229, 255, 0.7) 100%);
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.3);
}

.naim-role-icon-circle.blue {
  background: linear-gradient(135deg, var(--color-gse-blue) 0%, rgba(61, 82, 213, 0.7) 100%);
  box-shadow: 0 8px 32px rgba(61, 82, 213, 0.3);
}

.naim-role-icon-circle svg {
  width: 32px;
  height: 32px;
  color: var(--color-black);
}

.naim-role-icon-circle.blue svg {
  color: var(--color-white);
}

.naim-role-header h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--color-black);
  margin: 0;
}

.naim-role-description {
  font-size: 15px;
  color: var(--color-base-200);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.naim-role-prompts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.naim-prompt {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: #191716;
  border: none;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  max-width: 92%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.naim-prompt:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #2F333C;
}

.naim-prompt-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-300);
  margin-bottom: 2px;
  align-self: flex-end;
}

/* Naim FAQ */
.naim-faq-list {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.naim-faq-item {
  border: 1px solid var(--color-border-light);
  transition: border-color var(--transition-fast);
}

.naim-faq-item:hover {
  border-color: var(--color-base-300);
}

.naim-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.naim-faq-trigger span {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-black);
}

.naim-faq-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--color-base-300);
  transition: transform var(--transition-fast);
}

.naim-faq-trigger.active svg {
  transform: rotate(180deg);
}

.naim-faq-content {
  padding: 0 var(--space-5) var(--space-5);
}

.naim-faq-content p {
  font-size: 14px;
  color: var(--color-base-200);
  line-height: 1.7;
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, GDPR, Cookies)
   ============================================ */

.legal-page {
  background: var(--color-white);
}

/* Legal Hero */
.legal-hero {
  background: var(--color-black);
  padding: var(--space-20) var(--space-6);
  text-align: center;
}

.legal-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.legal-hero-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gse-lime);
  margin-bottom: var(--space-4);
}

.legal-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.legal-hero-title span {
  color: var(--color-gse-lime);
}

.legal-hero-description {
  font-size: 18px;
  color: var(--color-base-300);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.legal-hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-base-300);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Legal Navigation - Horizontal Strip */
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 0;
  margin: 0 0 48px;
  border-bottom: 1px solid #EAEAEA;
}

.legal-nav-link {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #9CA3AF;
  text-decoration: none;
  padding: 12px 16px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all 0.15s ease;
}

.legal-nav-link:hover {
  color: #2F333C;
}

.legal-nav-link.active {
  color: #191716;
  border-bottom-color: #C4FF00;
  font-weight: 600;
}

/* Legal Content */
.legal-content {
  padding: 64px 24px;
}

.legal-content-inner {
  max-width: 800px;
  margin: 0 auto;
}

/* Legal Main Content */
.legal-main {
  min-width: 0;
}

.legal-article h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-black);
  margin-top: var(--space-12);
  margin-bottom: var(--space-4);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
}

.legal-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-article h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-black);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

.legal-article p {
  font-size: 15px;
  color: var(--color-base-100);
  line-height: 1.8;
  margin-bottom: var(--space-4);
}

.legal-article ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  list-style-type: disc;
}

.legal-article ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
  list-style-type: decimal;
}

.legal-article li {
  font-size: 15px;
  color: var(--color-base-100);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

.legal-article a {
  color: var(--color-gse-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-article a:hover {
  color: var(--color-black);
}

.legal-article strong {
  color: var(--color-black);
  font-weight: 600;
}

.legal-article blockquote {
  border-left: 3px solid var(--color-gse-lime);
  padding-left: var(--space-5);
  margin: var(--space-6) 0;
  font-style: italic;
  color: var(--color-base-300);
}

.legal-article table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-6) 0;
}

.legal-article th,
.legal-article td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border: 1px solid var(--color-border-light);
  font-size: 14px;
}

.legal-article th {
  background: var(--color-off-white);
  font-weight: 600;
  color: var(--color-black);
}

.legal-article td {
  color: var(--color-base-100);
}

/* (Legacy sidebar styles removed - now using horizontal nav)
  stroke-width: 2;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page {
  background: var(--color-white);
}

.feature-hero-about {
  background: linear-gradient(135deg, var(--color-black) 0%, var(--color-charcoal) 100%);
}

.feature-hero-about .feature-hero-label {
  color: var(--color-gse-lime);
}

.feature-hero-about .feature-hero-title {
  color: var(--color-white);
}

.feature-hero-about .feature-hero-title span {
  color: var(--color-gse-lime);
}

.feature-hero-about .feature-hero-description {
  color: var(--color-base-400);
}

/* About Values Grid */
.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .about-values-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

.about-value-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--color-off-white);
  border: 1px solid var(--color-border-light);
}

.about-value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--color-black);
}

.about-value-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-3);
}

.about-value-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-base-200);
}

/* About Story Content */
.about-story-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.about-story-content p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--color-base-200);
  margin-bottom: var(--space-6);
}

.about-story-content p:last-child {
  margin-bottom: 0;
}

/* ============================================
   FEATURE CTA SECTION
   ============================================ */

.feature-cta {
  padding: var(--space-20) var(--space-6);
  background: linear-gradient(135deg, var(--color-gse-blue) 0%, #0044cc 100%);
  text-align: center;
}

.feature-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.feature-cta-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gse-lime);
  margin-bottom: var(--space-4);
}

.feature-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.feature-cta-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
}

.feature-cta-buttons {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   BLOG STYLES
   ============================================ */

/* Blog Index Hero */
.blog-index-hero {
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: var(--space-20) 0 var(--space-16);
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}

@media (min-width: 768px) {
  .blog-index-hero {
    min-height: 450px;
  }
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-8);
}

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

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

/* Blog Card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.blog-card:hover {
  border-color: var(--color-gse-lime);
}

.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.05);
}

.blog-card-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: 14px;
  color: var(--color-base-300);
  line-height: 1.6;
  margin-bottom: var(--space-4);
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: var(--space-4);
  font-size: 12px;
  color: var(--color-base-400);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blog Category Badge */
.blog-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gse-cyan);
  margin-bottom: var(--space-3);
}

/* Featured Post Card */
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  text-decoration: none;
  transition: all var(--transition-fast);
}

@media (min-width: 768px) {
  .blog-featured-card {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-featured-card:hover {
  border-color: var(--color-gse-lime);
}

.blog-featured-image {
  aspect-ratio: 16/9;
  overflow: hidden;
}

@media (min-width: 768px) {
  .blog-featured-image {
    aspect-ratio: auto;
    height: 100%;
  }
}

.blog-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-featured-content {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-white);
  background: var(--color-gse-lime);
  color: var(--color-black);
  padding: var(--space-1) var(--space-3);
  margin-bottom: var(--space-4);
  width: fit-content;
}

.blog-featured-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-black);
  margin-bottom: var(--space-3);
  line-height: 1.2;
}

@media (min-width: 768px) {
  .blog-featured-title {
    font-size: 32px;
  }
}

.blog-featured-subtitle {
  font-size: 18px;
  color: var(--color-base-200);
  margin-bottom: var(--space-4);
}

.blog-featured-excerpt {
  font-size: 16px;
  color: var(--color-base-300);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.blog-featured-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: 13px;
  color: var(--color-base-400);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blog Post Page */
.blog-post-hero {
  background-color: var(--color-black);
  padding: var(--space-16) 0 var(--space-12);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
}

.blog-post-hero-with-cover {
  min-height: 450px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .blog-post-hero-with-cover {
    min-height: 500px;
  }
}

.blog-post-hero-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.blog-post-badges {
  display: flex;
  gap: var(--space-3);
}

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-dark);
}

.blog-post-author {
  display: flex;
  flex-direction: column;
}

.blog-author-name {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--color-white);
}

.blog-author-title {
  font-size: 13px;
  color: var(--color-base-400);
}

.blog-post-info {
  display: flex;
  gap: var(--space-4);
  font-size: 13px;
  color: var(--color-base-400);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Blog Cover Image - Now used as hero background */

/* Blog Post Layout */
.blog-post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
}

@media (min-width: 1024px) {
  .blog-post-layout {
    grid-template-columns: 1fr 320px;
  }
}

/* Blog Post Content (Prose) */
.blog-post-content.prose {
  font-size: 17px;
  line-height: 1.8;
  color: var(--color-base-100);
}

.blog-post-content.prose h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--color-black);
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
}

.blog-post-content.prose h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--color-black);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
}

.blog-post-content.prose p {
  margin-bottom: var(--space-6);
}

.blog-post-content.prose ul,
.blog-post-content.prose ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.blog-post-content.prose li {
  margin-bottom: var(--space-2);
}

.blog-post-content.prose blockquote {
  border-left: 3px solid var(--color-gse-lime);
  background: var(--color-off-white);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-base-400);
  line-height: 1.4;
}

.blog-post-content.prose img {
  display: block;
  max-width: 100%;
  max-height: 600px; /* cap height so long full-page shots don't dominate; click to zoom for full */
  width: auto;
  height: auto;      /* natural aspect ratio — never distorted or letterboxed */
  margin: var(--space-8) auto;
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  cursor: zoom-in;
}

/* Click-to-zoom lightbox for guide screenshots */
.guide-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 12, 16, 0.93);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-8);
  overflow: auto;
  cursor: zoom-out;
  animation: guide-lightbox-in 0.15s ease;
}

@keyframes guide-lightbox-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guide-lightbox img {
  max-width: 1500px;
  width: 100%;
  height: auto;
  margin: auto;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

/* Reserved screenshot slot — shown until a real capture is dropped into the
   guide's pub/ directory. Same authoring syntax as blog images; the Guide
   model swaps a missing image for this labelled placeholder. */
.blog-post-content.prose .guide-shot--reserved {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-8) 0;
}

.blog-post-content.prose .guide-shot__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 16 / 9;
  width: 100%;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background:
    repeating-linear-gradient(
      45deg,
      #f8fafc,
      #f8fafc 12px,
      #f1f5f9 12px,
      #f1f5f9 24px
    );
  color: #94a3b8;
}

.blog-post-content.prose .guide-shot__frame svg {
  width: 40px;
  height: 40px;
  margin: 0;
  background: none;
  aspect-ratio: auto;
}

.blog-post-content.prose .guide-shot__tag {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-post-content.prose .guide-shot__caption {
  font-family: var(--font-mono, "JetBrains Mono", monospace);
  font-size: 12px;
  line-height: 1.5;
  color: #8f9cbd;
  text-align: center;
}

/* ============================================
   GUIDES INDEX — category groups + cards
   (design-system .card aesthetic: hover gradient
   bar, mono label, serif title, clamped summary)
   ============================================ */
.guides-tabs {
  display: inline-flex;
  border: 1px solid var(--color-border-light);
  background: var(--color-white);
  margin-bottom: var(--space-12);
}

.guides-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-base-300);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.guides-tab + .guides-tab {
  border-left: 1px solid var(--color-border-light);
}

.guides-tab:hover {
  color: #191716;
}

.guides-tab.is-active {
  background: #191716;
  color: var(--color-white);
}

.guides-tab svg {
  width: 16px;
  height: 16px;
}

.guides-cat + .guides-cat {
  margin-top: var(--space-20);
}

.guides-cat-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}

.guides-cat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: #191716;
  color: var(--color-gse-lime);
}

.guides-cat-icon svg {
  width: 24px;
  height: 24px;
}

.guides-cat-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  color: #191716;
}

.guides-cat-count {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-base-300);
  margin-top: 4px;
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

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

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

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  overflow: hidden;
  text-decoration: none;
  transition: border-color var(--transition-base),
    transform var(--transition-base), box-shadow var(--transition-base);
}

.guide-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.guide-card:hover {
  border-color: var(--color-base-300);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px -16px rgba(25, 23, 22, 0.25);
}

.guide-card:hover::before {
  opacity: 1;
}

.guide-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--color-off-white);
  color: var(--color-gse-blue);
  margin-bottom: var(--space-4);
  transition: background var(--transition-fast), color var(--transition-fast);
}

.guide-card:hover .guide-card__icon {
  background: var(--color-gse-blue);
  color: var(--color-white);
}

.guide-card__icon svg {
  width: 22px;
  height: 22px;
}

.guide-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gse-blue);
  margin-bottom: var(--space-2);
}

.guide-card__title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.3;
  color: #191716;
  margin-bottom: var(--space-3);
}

.guide-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-base-300);
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.guide-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  padding-top: var(--space-2);
}

.guide-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-gse-blue);
}

.guide-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.guide-card:hover .guide-card__link svg {
  transform: translateX(3px);
}

.guide-card__time {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--color-base-300);
  white-space: nowrap;
}

.blog-post-content.prose a {
  color: #5354cc;
  text-decoration: underline;
  transition: background 0.2s ease;
  padding: 1px 2px;
  margin: -1px -2px;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.blog-post-content.prose a:hover {
  text-decoration: none;
  background: var(--color-gse-lime);
}

.blog-post-content.prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--color-off-white);
  padding: 2px 6px;
  border-radius: 3px;
}

.blog-post-content.prose pre {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-6);
  overflow-x: auto;
  margin: var(--space-8) 0;
}

.blog-post-content.prose pre code {
  background: none;
  padding: 0;
}

.blog-post-content.prose table {
  display: block;
  width: 100%;
  overflow-x: auto;
  margin: var(--space-6) 0;
}
.blog-post-content.prose table thead th {
  font-family: var(--font-mono);
  font-size: 14px;
  text-transform: uppercase;
  background: var(--color-black);
  color: var(--color-white);
  padding: 4px 6px;
}
.blog-post-content.prose table tbody td {
  padding: var(--space-2) var(--space-2);
}
.blog-post-content.prose table tbody tr:nth-child(even) td {
  background: var(--color-off-white);
}


/* Blog Sidebar */
.blog-post-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.blog-sidebar-card {
  background: var(--color-off-white);
  padding: var(--space-6);
}

.blog-sidebar-title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-base-300);
  margin-bottom: var(--space-4);
}

.blog-sidebar-cta {
  background: var(--color-black);
}

.blog-sidebar-cta .blog-sidebar-title {
  color: var(--color-gse-lime);
}

.blog-sidebar-cta p {
  color: var(--color-base-400);
  font-size: 14px;
  margin-bottom: var(--space-4);
}

/* Blog Tags */
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-base-300);
  background: var(--color-white);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border-light);
}

/* Blog Share Buttons */
.blog-share-buttons {
  display: flex;
  gap: var(--space-3);
}

.blog-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  color: var(--color-base-300);
  transition: all var(--transition-fast);
}

.blog-share-btn:hover {
  border-color: var(--color-gse-lime);
  color: var(--color-black);
}

.blog-share-btn.twitter:hover {
  background: #1DA1F2;
  border-color: #1DA1F2;
  color: var(--color-white);
}

.blog-share-btn.linkedin:hover {
  background: #0077B5;
  border-color: #0077B5;
  color: var(--color-white);
}

/* Blog Empty State */
.blog-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--color-base-400);
}

/* ============================================
   3D EBOOK COVER
   ============================================ */
.ebook-3d {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ebook-3d-book {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-18deg);
  transition: transform 0.5s ease;
  width: 100%;
  max-width: 320px;
}

.ebook-3d:hover .ebook-3d-book {
  transform: rotateY(-8deg);
}

/* Front cover (the image) */
.ebook-3d-front {
  position: relative;
  display: block;
  border-radius: 4px 12px 12px 4px;
  overflow: hidden;
  box-shadow:
    6px 6px 18px rgba(0, 0, 0, 0.35),
    2px 2px 6px rgba(0, 0, 0, 0.2);
}

.ebook-3d-front img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 12px 12px 4px;
}

/* Book spine */
.ebook-3d-spine {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 100%;
  transform: rotateY(90deg) translateX(-20px);
  transform-origin: left center;
  background: linear-gradient(
    to right,
    #1a1a1a 0%,
    #2a2a2a 30%,
    #222 50%,
    #1a1a1a 100%
  );
  border-radius: 2px 0 0 2px;
}

/* Page edges (visible on the right side) */
.ebook-3d-pages {
  position: absolute;
  top: 4px;
  right: -2px;
  width: 40px;
  height: calc(100% - 8px);
  transform: rotateY(90deg) translateX(18px);
  transform-origin: right center;
  background: repeating-linear-gradient(
    to right,
    #f5f5f0 0px,
    #e8e8e3 1px,
    #f5f5f0 2px
  );
  border-radius: 0 2px 2px 0;
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, 0.1);
}

/* Back cover (creates depth) */
.ebook-3d-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateZ(-40px);
  background: #1a1a1a;
  border-radius: 4px 12px 12px 4px;
  box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.3);
}

/* Subtle reflection underneath */
.ebook-3d-shadow {
  position: absolute;
  bottom: -30px;
  left: 10%;
  right: 10%;
  height: 30px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
  filter: blur(4px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #191716;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.footer-gradient-bar {
  height: 4px;
  background: linear-gradient(90deg, #C4FF00 0%, #00E5FF 50%, #0066FF 100%);
}

.footer-watermark {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: clamp(120px, 18vw, 280px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.footer-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 0;
}

.footer-brand {
  padding-right: 48px;
}

.footer-brand-name {
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-brand p {

}

.footer-column {
  padding: 0 32px;
  border-left: 1px solid #3A3E49;
}

.footer-column h4 {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9CA3AF;
  margin-bottom: 24px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 0;
}

.footer-links a {
  font-size: 14px;
  color: #9CA3AF;
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.footer-badges {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 48px 0;
  margin-top: 48px;
  border-top: 1px solid #3A3E49;
}

.footer-badges-label {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9CA3AF;
  line-height: 1.4;
}

.footer-badges-icons {
  display: flex;
  gap: 12px;
}

.footer-badge {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #191716;
}

.footer-bottom {
  padding: 16px 0;
  border-top: 1px solid #3A3E49;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9CA3AF;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #9CA3AF;
  transition: color 0.15s ease;
}

.footer-social a:hover {
  color: #fff;
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-column:nth-child(2) {
    border-left: none;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-column {
    border-left: none;
    padding: 0;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-badges {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Feature card
   Ported from .design-system/index.html §Cards, which publishes this exact
   markup as the canonical snippet but was never shipped as a real class —
   nothing in the app could use it. Tokens match the showcase verbatim.

   ONE DELIBERATE DEVIATION: the showcase sets .card-description to
   --color-base-200 (#8F9CBD), which measures 2.74:1 on white and fails AA for
   body text. Shipped at #5A6472 (6.00:1) instead — same blue-grey family.
   The showcase should be updated to match.
   ========================================================================== */

.card {
  position: relative;
  padding: var(--space-8);
  border: 1px solid var(--color-border-light);
  background: var(--color-white);
  transition: all var(--transition-base);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gse-lime) 0%, var(--color-gse-cyan) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  border-color: var(--color-base-300);
  background: var(--color-off-white);
}

.card:hover::before {
  opacity: 1;
}

.card-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gse-blue);
  margin-bottom: var(--space-3);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.card-description {
  font-size: 15px;
  line-height: 1.6;
  color: #5A6472;
  margin-bottom: var(--space-6);
}

.card-description:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card::before {
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   naim module — white ground with an abstract wash across the top.

   The module used to sit on flat gse-blue, where .naim-card lost its identity:
   the card fills white and is defined by a cyan/blue/lime gradient ring, and a
   white block on saturated blue reads as a white block, ring and all. On white
   the ring does the work it was drawn to do.

   Literal colour values on purpose — gse.css is served as a plain stylesheet
   (layouts/application.html.erb), so the @theme tokens at the top of this file
   are not resolvable here.
   --------------------------------------------------------------------------- */
.naim-module {
  position: relative;
  background: #FFFFFF;
}

/* Warm at the right, cooling leftward, and falling away down the page. Four
   overlapping radials rather than a linear sweep so the edge stays organic —
   a straight band across the top reads as a header bar, not a wash. */
.naim-module-wash {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 72%;
  pointer-events: none;
  background:
    radial-gradient(52% 44% at 97% 2%, rgba(224, 85, 46, 0.26), transparent 62%),
    radial-gradient(62% 50% at 78% -2%, rgba(255, 253, 119, 0.85), transparent 64%),
    radial-gradient(50% 42% at 60% 4%, rgba(0, 229, 255, 0.28), transparent 66%),
    radial-gradient(84% 66% at 34% -10%, rgba(61, 82, 213, 0.30), transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 26%, rgba(0, 0, 0, 0.45) 62%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 26%, rgba(0, 0, 0, 0.45) 62%, transparent 100%);
}

/* Marketing treatment for naim's cards, opted into with .naim-cards-marketing
   on the container — used by the homepage module and the /naim insight grid.
   Deliberately NOT on .naim-card itself: the dashboard renders one card per
   insight and must stay still and shadowless.

   The dashboard sits these on grey, so the gradient ring alone separates them.
   On a white ground the cards outside the wash need a resting lift. */
.naim-cards-marketing .naim-card {
  box-shadow: 0 2px 12px rgba(25, 23, 22, 0.06);
}

/* Animated ring.

   A gradient is not an interpolatable value, so the angle is animated instead
   of the background: registering --naim-ring-angle as an <angle> is what makes
   it tween rather than flip between keyframes. .naim-card (application.tailwind.css)
   reads it as linear-gradient(var(--naim-ring-angle, 135deg), …), so this rotates
   the existing cyan→blue→lime ring in place without redeclaring the three
   background layers here — the component stays the single source of the colours.

   Marketing only, and slow on purpose: four cards drifting at 9s reads as the
   ring being alive. The same thing at dashboard density, or much faster, reads
   as a page that will not sit still. */
@property --naim-ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}

@keyframes naim-ring-turn {
  from { --naim-ring-angle: 135deg; }
  to   { --naim-ring-angle: 495deg; }
}

.naim-cards-marketing .naim-card {
  animation: naim-ring-turn 9s linear infinite;
}

/* Offset so the rings are not locked in step — in phase they read as one object
   blinking, out of phase as separate cards each doing their own thing. Runs to
   six because /naim grids six insight types where the homepage stacks four. */
.naim-cards-marketing .naim-card:nth-child(2) { animation-delay: -1.5s; }
.naim-cards-marketing .naim-card:nth-child(3) { animation-delay: -3s; }
.naim-cards-marketing .naim-card:nth-child(4) { animation-delay: -4.5s; }
.naim-cards-marketing .naim-card:nth-child(5) { animation-delay: -6s; }
.naim-cards-marketing .naim-card:nth-child(6) { animation-delay: -7.5s; }

@media (prefers-reduced-motion: reduce) {
  .naim-cards-marketing .naim-card {
    animation: none;
  }
}

/* Ask naim demo (/naim). Prompts are real buttons that swap the exchange in the
   card beside them — see naim_demo_controller.js. */
.naim-prompt {
  font-size: 13px;
  line-height: 1.4;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(25, 23, 22, 0.15);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(25, 23, 22, 0.85);
  text-align: left;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.naim-prompt:hover {
  border-color: rgba(61, 82, 213, 0.45);
  background: #FFFFFF;
}

.naim-prompt.is-active {
  border-color: #3D52D5;
  background: #FFFFFF;
  color: #191716;
  box-shadow: 0 0 0 1px #3D52D5;
  cursor: default;
}

.naim-exchange,
.naim-answer {
  transition: opacity 220ms ease, transform 220ms ease;
}

.naim-exchange.is-swapping,
.naim-answer.is-swapping {
  opacity: 0;
  transform: translateY(6px);
}

/* naim "reading…" state — the answer bubble before the answer lands. */
.naim-answer.is-thinking {
  font-style: italic;
  color: #6B7280;
}

@media (prefers-reduced-motion: reduce) {
  .naim-exchange,
  .naim-answer {
    transition: none;
  }
}

/* Highlighter behind "ai" — as text it was #FFFD77, invisible the moment the
   ground turned white. Sits at 58% so it reads as a marker stroke. */
.naim-ai {
  background: linear-gradient(transparent 58%, rgba(255, 253, 119, 0.9) 58%);
  padding: 0 2px;
}

/* Editorial blog layout (2026-08): narrow centered measure, justified prose,
   sidebar removed (tags/share/CTA live in a post footer), tables and images
   break out of the measure up to a wide band centered on the viewport. */
.blog-editorial {
  max-width: 720px;
  margin-inline: auto;
}

.blog-editorial .blog-post-content.prose p {
  text-align: justify;
  hyphens: auto;
}

/* Breakout band: images and tables escape the measure, centered via
   symmetric negative margins (a transform would leave layout overflow behind
   and hand the page a horizontal scrollbar). */
.blog-editorial .blog-post-content.prose img,
.blog-editorial .blog-post-content.prose table {
  --breakout: min(1100px, calc(100vw - 48px));
  width: var(--breakout);
  max-width: var(--breakout);
  margin-left: calc((100% - var(--breakout)) / 2);
  margin-right: calc((100% - var(--breakout)) / 2);
}

.blog-editorial .blog-post-content.prose img {
  height: auto;
  max-height: none; /* wide editorial photos: the ratio decides the height */
}

/* Real table layout so the forced width reaches the columns (the base style's
   display:block would leave a narrow table floating left inside the band) */
.blog-editorial .blog-post-content.prose table {
  display: table;
  overflow-x: visible;
}

/* Small screens: back to the scrollable block tables of the base style */
@media (max-width: 767px) {
  .blog-editorial .blog-post-content.prose table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    overflow-x: auto;
  }

  .blog-editorial .blog-post-content.prose img {
    width: auto;
    max-width: 100%;
    max-height: 600px;
    margin-inline: auto;
  }

  .blog-editorial .blog-post-content.prose p {
    text-align: left; /* justify at phone widths opens rivers; keep it for the wide measure */
    hyphens: none;
  }
}

.blog-post-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.blog-post-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.blog-post-footer .blog-sidebar-cta {
  max-width: 480px;
  width: 100%;
  margin-inline: auto;
  text-align: center;
}

/* Guides: keep media inside the measure — portrait app screenshots must not be
   stretched to the breakout band; the lightbox already serves the full size. */
.blog-editorial--keep-media .blog-post-content.prose img {
  width: auto;
  max-width: 100%;
  max-height: 600px;
  margin-left: auto;
  margin-right: auto;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
