/* ==========================================================================
   STRIPE DESIGN SYSTEM (DESIGN.md Canonical Implementation)
   YMCA Manažér - Financial Infrastructure & Membership Management
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors - DESIGN.md Tokens */
  --primary: #533afd;
  --primary-deep: #4434d4;
  --primary-press: #2e2b8c;
  --primary-soft: #665efd;
  --primary-subdued: #b9b9f9;
  --primary-bg-subdued: rgba(83, 58, 253, 0.08);
  
  --brand-dark-900: #1c1e54;
  --ink: #0d253d;
  --ink-secondary: #273951;
  --ink-mute: #64748d;
  --ink-mute-2: #61718a;
  --on-primary: #ffffff;
  
  --canvas: #ffffff;
  --canvas-soft: #f6f9fc;
  --canvas-cream: #f5e9d4;
  --hairline: #e3e8ee;
  --hairline-input: #a8c3de;
  
  --ruby: #ea2261;
  --magenta: #f96bee;
  --lemon: #9b6829;
  
  --success: #059669;
  --success-light: #ecfdf5;
  --success-border: rgba(5, 150, 105, 0.25);
  
  --warning: #d97706;
  --warning-light: #fffbeb;
  --warning-border: rgba(217, 119, 6, 0.25);
  
  --danger: #dc2626;
  --danger-light: #fef2f2;
  --danger-border: rgba(220, 38, 38, 0.25);

  /* Shadows - DESIGN.md Tokens */
  --shadow-level-1: 0 1px 3px rgba(0, 55, 112, 0.08);
  --shadow-level-2: 0 8px 24px rgba(0, 55, 112, 0.08), 0 2px 6px rgba(0, 55, 112, 0.04);
  --shadow-level-3: 0 16px 36px rgba(0, 55, 112, 0.12);
  --shadow-primary-glow: 0 4px 14px rgba(83, 58, 253, 0.35);
  
  /* Radii Scale - DESIGN.md Tokens */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Typography Core */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  font-feature-settings: "ss01" 1;
  font-weight: 300;
  background-color: var(--canvas-soft);
  color: var(--ink);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Tabular Figures for Money, Dates & Numbers */
.tnum, [data-tnum], .stat-value, .sub-meta, td.numeric, .tabular-nums {
  font-feature-settings: "tnum" 1, "ss01" 1;
  letter-spacing: -0.42px;
}

/* Display Typography Scale (Thin 300 Weight with Negative Tracking) */
.display-xxl {
  font-size: 56px;
  font-weight: 300;
  line-height: 1.03;
  letter-spacing: -1.4px;
}

.display-xl {
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.96px;
}

.display-lg {
  font-size: 32px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.64px;
}

.display-md {
  font-size: 26px;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.26px;
}

.heading-lg {
  font-size: 22px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.22px;
}

.heading-md {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.heading-sm {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0;
}

.micro-cap {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.1px;
  text-transform: uppercase;
}

/* ==================== ATMOSPHERIC GRADIENT MESH ==================== */
.stripe-mesh-backdrop {
  position: relative;
  background-color: #ffffff;
}

.stripe-mesh-backdrop::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 480px;
  background-image: 
    radial-gradient(ellipse 110% 80% at 12% -20%, rgba(245, 233, 212, 0.95) 0%, transparent 65%),
    radial-gradient(ellipse 85% 60% at 88% -15%, rgba(249, 107, 238, 0.28) 0%, transparent 70%),
    radial-gradient(ellipse 95% 75% at 50% -30%, rgba(83, 58, 253, 0.22) 0%, transparent 75%),
    radial-gradient(ellipse 65% 65% at 92% 30%, rgba(234, 34, 97, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 75% 75% at 5% 45%, rgba(155, 104, 41, 0.10) 0%, transparent 70%);
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
}

/* Animated gradient subtle shimmer */
@keyframes meshPulse {
  0% { transform: scale(1) translateY(0); opacity: 0.9; }
  50% { transform: scale(1.02) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 0.9; }
}

.mesh-shimmer {
  animation: meshPulse 12s ease-in-out infinite;
}

/* ==================== NAVIGATION BAR ==================== */
.stripe-nav-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hairline);
  transition: var(--transition);
}

.stripe-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==================== SUPABASE SYNC STATUS BADGE (DESIGN.md) ==================== */
.sync-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.2px;
  cursor: pointer;
  user-select: none;
  transition: var(--transition);
  font-feature-settings: "ss01" 1, "tnum" 1;
  border: 1px solid transparent;
  background-color: var(--canvas);
}

.sync-status-pill:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-level-1);
}

.sync-status-pill .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

/* Status: Synced (Emerald Green) */
.sync-status-synced {
  background-color: rgba(5, 150, 105, 0.07);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.25);
}
.sync-status-synced .status-dot {
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

/* Status: Syncing (Primary Indigo) */
.sync-status-syncing {
  background-color: var(--primary-bg-subdued);
  color: var(--primary);
  border-color: rgba(83, 58, 253, 0.25);
}
.sync-status-syncing .status-dot {
  background-color: var(--primary);
  animation: pulseDot 1.4s ease-in-out infinite;
}

/* Status: Pending / Unsaved (Amber / Warning) */
.sync-status-pending {
  background-color: rgba(217, 119, 6, 0.08);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.28);
}
.sync-status-pending .status-dot {
  background-color: #f59e0b;
  animation: pulseDot 0.9s ease-in-out infinite;
}

/* Status: Offline (Slate / Neutral) */
.sync-status-offline {
  background-color: rgba(100, 116, 139, 0.08);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.22);
}
.sync-status-offline .status-dot {
  background-color: #64748d;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(1.3); }
}

.stripe-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  user-select: none;
}

.stripe-brand-logo {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  box-shadow: var(--shadow-primary-glow);
  transition: var(--transition);
}

.stripe-brand:hover .stripe-brand-logo {
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(83, 58, 253, 0.45);
}

.stripe-brand-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ymca-brand-font {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 6px;
  display: inline-block;
  overflow: visible;
}

.ymca-brand-font span {
  color: var(--primary);
}

.brand-sub-title {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.2px;
  color: var(--ink);
}

.stripe-pill-tag {
  background-color: var(--primary-bg-subdued);
  color: var(--primary-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(83, 58, 253, 0.18);
  box-shadow: 0 1px 2px rgba(83, 58, 253, 0.05);
}

/* ==================== BUTTON SYSTEM (DESIGN.md) ==================== */

/* Primary Pill CTA */
.btn-primary-pill, .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background-color: var(--primary);
  color: var(--on-primary);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: 0;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(83, 58, 253, 0.28);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn-primary-pill:hover, .btn-primary:hover {
  background-color: var(--primary-deep);
  box-shadow: 0 4px 16px rgba(83, 58, 253, 0.4);
  transform: translateY(-1px);
}

.btn-primary-pill:active, .btn-primary:active {
  background-color: var(--primary-press);
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(83, 58, 253, 0.2);
}

/* Secondary Button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: var(--canvas);
  color: var(--primary);
  border: 1px solid var(--hairline-input);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.0;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
}

.btn-secondary:hover {
  background-color: var(--canvas-soft);
  border-color: var(--primary);
  color: var(--primary-deep);
  transform: translateY(-1px);
}

.btn-secondary:active {
  transform: translateY(0);
  background-color: rgba(83, 58, 253, 0.05);
}

/* On-Dark Pill Button */
.btn-on-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0.12);
  color: var(--on-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.0;
  cursor: pointer;
  transition: var(--transition);
}

.btn-on-dark:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* Outline Danger Button */
.btn-outline-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: var(--canvas);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline-danger:hover {
  background-color: var(--danger-light);
  border-color: var(--danger);
}

/* Action Pill Variants */
.btn-action-primary {
  padding: 7px 15px;
  background-color: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(83, 58, 253, 0.2);
}

.btn-action-primary:hover {
  background-color: var(--primary-deep);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(83, 58, 253, 0.3);
}

.btn-action-secondary {
  padding: 7px 14px;
  background-color: var(--canvas-soft);
  color: var(--ink-secondary);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 400;
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-action-secondary:hover {
  background-color: var(--canvas);
  border-color: var(--primary-subdued);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-edit-member {
  padding: 7px 12px;
  background-color: var(--canvas);
  color: var(--ink-mute);
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-edit-member:hover {
  background-color: var(--canvas-soft);
  color: var(--ink);
  border-color: var(--hairline-input);
  transform: translateY(-1px);
}

/* ==================== FORMS & INPUTS ==================== */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink-secondary);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hairline-input);
  border-radius: var(--radius-sm);
  background-color: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(83, 58, 253, 0.15);
}

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 38px;
  cursor: pointer;
}

/* ==================== HERO STATS TRACK (DARK & LIGHT CARDS) ==================== */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-level-1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--shadow-level-2);
  border-color: rgba(83, 58, 253, 0.25);
  transform: translateY(-2px);
}

.stat-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-mute);
  margin-bottom: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card-value {
  font-size: 36px;
  font-weight: 300;
  letter-spacing: -0.96px;
  line-height: 1.05;
  color: var(--ink);
  font-feature-settings: "tnum" 1;
}

.stat-card-sub {
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  font-weight: 300;
}

/* ==================== MEMBER CARDS GRID ==================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  background-color: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-level-1);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  position: relative;
}

.card:hover {
  box-shadow: var(--shadow-level-2);
  transform: translateY(-2px);
  border-color: rgba(83, 58, 253, 0.28);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.card-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.member-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  color: var(--primary-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.card-title {
  min-width: 0;
}

.card-title h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink);
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.card-meta {
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  font-feature-settings: "tnum" 1;
}

.card-divider {
  display: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-label {
  display: none;
}

.sub-meta {
  font-size: 12px;
  color: var(--ink-secondary);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
  font-feature-settings: "tnum" 1;
}

.sub-empty-state {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-style: italic;
  padding: 4px 0;
}

/* Subscriptions Progress Bar */
.sub-progress-bar-container {
  width: 100%;
  height: 5px;
  background-color: var(--hairline);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-top: 2px;
}

.sub-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-soft) 100%);
  border-radius: var(--radius-pill);
  transition: width 0.4s ease;
}

.sub-progress-bar.warning {
  background: var(--warning);
}

.sub-progress-bar.expired {
  background: var(--danger);
}

/* Entrance Dots Grid for 10-Entrance Passes */
.entrance-tick-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.entrance-dot {
  height: 28px;
  border-radius: 5px;
  background-color: rgba(83, 58, 253, 0.06);
  color: var(--primary);
  border: 1px solid rgba(83, 58, 253, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-feature-settings: "tnum" 1;
  user-select: none;
}

.entrance-dot:hover {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: 0 2px 6px rgba(83, 58, 253, 0.2);
}

.entrance-dot.used {
  background-color: var(--hairline);
  color: var(--ink-mute);
  border-color: transparent;
  text-decoration: line-through;
  opacity: 0.5;
}

/* Card Footer Actions */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

/* ==================== BADGES & TAGS ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.1px;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background-color: currentColor;
}

.badge-active {
  background-color: var(--success-light);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-expired {
  background-color: var(--danger-light);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.badge-none {
  background-color: var(--canvas-soft);
  color: var(--ink-mute);
  border: 1px solid var(--hairline);
}

.badge-type {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

.badge-type-30day {
  background-color: rgba(83, 58, 253, 0.08);
  color: var(--primary);
}

.badge-type-1year {
  background-color: rgba(249, 107, 238, 0.12);
  color: #c026d3;
}

.badge-type-10entrance {
  background-color: rgba(5, 150, 105, 0.1);
  color: var(--success);
}

/* ==================== AUTH / LOGIN VIEW ==================== */
.auth-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.login-card {
  background: var(--canvas);
  padding: 48px 42px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-level-2);
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--hairline);
  text-align: center;
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f5e9d4 0%, #f96bee 30%, #533afd 70%, #ea2261 100%);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.logo-icon {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-deep) 100%);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-primary-glow);
}

.logo-text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink);
  padding-right: 8px;
  display: inline-block;
  overflow: visible;
}

.logo-text span {
  color: var(--primary);
  font-weight: 900;
}

.login-card h2 {
  font-size: 26px;
  margin-bottom: 6px;
  font-weight: 300;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.login-card p {
  color: var(--ink-mute);
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 32px;
}

/* ==================== MEMBER DETAIL PANEL ==================== */
.detail-card {
  background-color: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-level-1);
}

/* History Timeline Items */
.history-timeline {
  position: relative;
  padding-left: 28px;
  margin-left: 10px;
  border-left: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.history-bullet {
  position: absolute;
  left: -37px;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--canvas);
  z-index: 2;
}

/* Floating User Footer Badge */
.stripe-user-badge {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-level-2);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 999;
  transition: var(--transition);
}

.stripe-user-badge:hover {
  box-shadow: var(--shadow-level-3);
  border-color: rgba(83, 58, 253, 0.25);
  transform: translateY(-2px);
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-soft) 100%);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(83, 58, 253, 0.3);
}

/* Animations */
.view-panel {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.view-panel.hidden {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
}

.view-panel.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* Search input with focus glow */
.search-box-wrapper {
  position: relative;
  flex: 1;
}

.search-shortcut-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--canvas-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mute);
  pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stripe-nav-inner {
    padding: 12px 16px;
  }
  
  .display-xxl {
    font-size: 38px;
    letter-spacing: -0.8px;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .stripe-user-badge {
    bottom: 12px;
    left: 12px;
    padding: 8px 12px;
  }
}
