@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&display=swap');

/* ==========================================================================
   TapTex Core Design System — Luxury Dark Glassmorphism Standard
   (Apple / Linear / 21st.dev Design Language)
   ========================================================================== */

:root {
  /* Canvas Backgrounds */
  --bg-primary: #08090d;
  --bg-canvas-from: #0b0d13;
  --canvas-dark-to: #050608;
  --bg-card: rgba(16, 18, 24, 0.72);
  --bg-card-solid: #111319;
  --bg-panel: rgba(14, 16, 22, 0.85);
  --bg-input: rgba(255, 255, 255, 0.04);
  --bg-input-focus: rgba(255, 255, 255, 0.07);

  /* Gold Luxury Accent Spectrum */
  --gold-accent: #c9a227;
  --gold-hover: #e5be3f;
  --gold-dim: #8b6e16;
  --gold-glow: rgba(201, 162, 39, 0.25);
  --gold-hairline: rgba(201, 162, 39, 0.35);

  --accent-gradient: linear-gradient(135deg, #c9a227 0%, #e5be3f 45%, #c9a227 70%, #8b6e16 100%);
  --accent-gradient-90: linear-gradient(90deg, #c9a227 0%, #e5be3f 45%, #c9a227 70%, #8b6e16 100%);

  /* Text Typography */
  --text-primary: #f4f5f8;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --text-dark: #050608;

  /* Borders & Glass Dividers */
  --border-gold: var(--gold-accent);
  --border-dim: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-focus: rgba(201, 162, 39, 0.5);

  /* Status Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Glassmorphism Tokens */
  --glass-surface: rgba(255, 255, 255, 0.03);
  --glass-surface-hover: rgba(255, 255, 255, 0.05);
  --glass-blur: blur(16px);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* Typography Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout Containers */
  --max-width-profile: 480px;
  --max-width-admin: 1200px;
  --max-width-content: 1100px;

  /* Segmented Theme Switcher */
  --toggle-bg: rgba(255, 255, 255, 0.05);
  --toggle-border: rgba(255, 255, 255, 0.1);
  --toggle-active-bg: rgba(255, 255, 255, 0.12);
  --toggle-active-text: #f4f5f8;
  --toggle-inactive-text: #9ca3af;
}

[data-theme="light"] {
  --bg-primary: #f8f9fc;
  --bg-canvas-from: #ffffff;
  --canvas-dark-to: #f0f2f5;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-solid: #ffffff;
  --bg-panel: #ffffff;
  --bg-input: #f1f3f7;
  --bg-input-focus: #e8ebf0;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dark: #ffffff;

  --border-dim: rgba(15, 23, 42, 0.1);
  --border-subtle: rgba(15, 23, 42, 0.05);
  --glass-border: rgba(15, 23, 42, 0.08);

  --toggle-bg: #e2e8f0;
  --toggle-border: #cbd5e1;
  --toggle-active-bg: #ffffff;
  --toggle-active-text: #0f172a;
  --toggle-inactive-text: #64748b;

  --ink: #f8f9fc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  background-image: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.04) 0%, transparent 65%),
                    linear-gradient(180deg, var(--bg-canvas-from, #0b0d13) 0%, var(--canvas-dark-to, #050608) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 100vw;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="light"] body {
  background-image: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, 0.06) 0%, transparent 65%),
                    linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
}

a {
  color: var(--gold-accent);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  padding: 24px;
  margin: 0 auto;
}

.workspace-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px;
}

.admin-wrapper {
  width: 100%;
  max-width: var(--max-width-admin);
  margin: 32px auto;
  padding: 0 24px;
  flex-grow: 1;
}

/* ==========================================================================
   Glassmorphic Surface Panels & Cards
   ========================================================================== */

.card,
.panel,
.stat-card,
.login-card,
.message-card,
.prospect-card,
.pricing-card,
.testimonial-card,
.table-card {
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

[data-theme="light"] .card,
[data-theme="light"] .panel,
[data-theme="light"] .stat-card,
[data-theme="light"] .login-card,
[data-theme="light"] .message-card,
[data-theme="light"] .prospect-card,
[data-theme="light"] .pricing-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .table-card {
  background-color: var(--bg-card);
  border-color: var(--border-dim);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
}

.card {
  padding: 28px;
  margin-bottom: 28px;
}

.panel {
  padding: 32px;
  margin-bottom: 24px;
}

/* ==========================================================================
   Buttons & Interactive Tactile Elements
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.btn-primary {
  background: var(--gold-accent);
  background-image: var(--accent-gradient);
  background-size: 150% 150%;
  color: #08090c;
  border: none;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.06);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.45);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.25);
}

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

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-dim);
}

.btn-ghost:hover {
  background-color: rgba(255, 255, 255, 0.04);
  border-color: var(--gold-accent);
  color: var(--gold-accent);
}

.btn-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: var(--gold-accent, #c9a227);
  color: #050608;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 4px 18px rgba(201, 162, 39, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.btn-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.45);
  filter: brightness(1.05);
}

.btn-glow:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 10px rgba(201, 162, 39, 0.25);
}

/* ==========================================================================
   Form Controls & Floating/Refined Inputs
   ========================================================================== */

.form-group {
  margin-bottom: 20px;
}

.form-group label,
.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-control,
.text-input,
.input-field {
  width: 100%;
  padding: 13px 16px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-dim);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.text-input:focus,
.input-field:focus {
  border-color: var(--gold-accent);
  background-color: var(--bg-input-focus);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  font-size: 0.92rem;
  color: var(--text-primary);
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-accent);
  cursor: pointer;
  border-radius: 4px;
}

.form-error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.form-highlight-box {
  background-color: rgba(201, 162, 39, 0.04);
  border: 1px solid var(--gold-hairline);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
}

.form-highlight-box label.box-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-accent);
  margin-bottom: 14px;
  display: block;
  font-weight: 600;
}

/* ==========================================================================
   Authentication & Login Views (Centered Luxury Card)
   ========================================================================== */

.login-card {
  max-width: 420px;
  margin: 80px auto;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-dim);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient-90);
}

.login-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.login-subtitle {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
}

/* ==========================================================================
   Public Profile Card View
   ========================================================================== */

.profile-wrapper {
  max-width: var(--max-width-profile);
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 16px;
}

.profile-card {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 44px 28px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(201, 162, 39, 0.08);
  position: relative;
  overflow: hidden;
}

.profile-avatar-container {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent-gradient);
  padding: 3px;
  margin: 0 auto 24px auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}

.profile-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-primary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-accent);
  font-size: 2.5rem;
  font-family: var(--font-serif);
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.profile-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-accent);
  margin-bottom: 4px;
  font-weight: 600;
}

.profile-company {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.profile-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
}

.profile-divider::before,
.profile-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-hairline), transparent);
}

.profile-divider span {
  padding: 0 14px;
  font-size: 0.75rem;
  color: var(--gold-accent);
}

.profile-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.profile-link-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-dim);
  border-radius: 10px;
  color: var(--text-primary);
  min-height: 52px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-link-item:hover {
  border-color: var(--gold-accent);
  background-color: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
  color: var(--text-primary);
}

.profile-link-item:active {
  transform: translateX(1px) scale(0.98);
}

.profile-footer {
  margin-top: 36px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.profile-footer a {
  color: var(--text-secondary);
}

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

/* ==========================================================================
   Prospect & "Get Your Own Card" Card
   ========================================================================== */

.prospect-wrapper {
  max-width: 460px;
  margin: 50px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 16px;
}

.prospect-card {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--gold-hairline);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(201, 162, 39, 0.06);
}

.prospect-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient-90);
}

.prospect-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.prospect-description {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 24px;
  line-height: 1.5;
}

/* ==========================================================================
   Admin & Owner Dashboard Layouts
   ========================================================================== */

.admin-navbar,
.top-nav {
  background-color: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-dim);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 16px;
  max-width: 100vw;
}

.admin-logo,
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.admin-logo span,
.nav-brand span {
  color: var(--gold-accent);
}

.admin-nav-links,
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-header,
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.admin-title,
.page-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.admin-subtitle,
.page-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

/* Stats Metric Cards Grid */
.stats-grid,
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.stat-card,
.metric-card {
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--border-dim);
  border-radius: 12px;
  background-color: var(--bg-card);
  text-decoration: none;
}

.stat-card:hover,
.metric-card:hover {
  border-color: var(--gold-accent);
  transform: translateY(-2px);
}

.stat-num,
.metric-value {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--gold-accent);
  line-height: 1.1;
  margin-bottom: 6px;
}

.stat-label,
.metric-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Horizon Pills */
.horizon-pills {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dim);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.horizon-pill {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.horizon-pill:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.horizon-pill.active {
  background: var(--gold-accent);
  color: #08090c;
}

/* ==========================================================================
   Data Tables & Badges
   ========================================================================== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-dim);
  font-size: 0.9rem;
}

th {
  background-color: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

tbody tr {
  transition: background-color 0.15s ease;
}

tbody tr:hover td {
  background-color: rgba(255, 255, 255, 0.025);
}

/* Badges & Pills */
.pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 20px;
}

.pill-success,
.badge-active {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.pill-warning,
.badge-warning {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pill-danger,
.badge-danger {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.pill-neutral,
.badge-inactive {
  background-color: rgba(156, 163, 175, 0.1);
  color: #9ca3af;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  border: 1px dashed var(--border-dim);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.01);
  max-width: 520px;
  margin: 20px auto;
}

.empty-state-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--gold-accent);
  margin-bottom: 8px;
}

.empty-state-text {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ==========================================================================
   Theme Switcher Segmented Control
   ========================================================================== */

.theme-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--toggle-bg);
  border: 1px solid var(--toggle-border);
  border-radius: 20px;
  padding: 3px;
  gap: 2px;
}

.theme-btn {
  background: transparent;
  border: none;
  color: var(--toggle-inactive-text);
  padding: 5px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
  line-height: 1;
  min-height: 28px;
}

.theme-btn:hover {
  color: var(--text-primary);
}

.theme-btn.active {
  background-color: var(--toggle-active-bg);
  color: var(--toggle-active-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  font-weight: 600;
}

.floating-theme-switcher {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Zero-Scroll Constraints
   ========================================================================== */

/* Tablets & Small Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .admin-wrapper,
  .workspace-container {
    padding: 20px 16px;
  }

  .studio-grid {
    grid-template-columns: 1fr !important;
  }

  .bespoke-container {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Mobile & Small Tablets (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .admin-navbar,
  .top-nav {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-header,
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stats-grid,
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 580px;
  }

  th, td {
    padding: 12px 14px;
    font-size: 0.85rem;
  }

  .floating-theme-switcher {
    bottom: 16px;
    right: 16px;
  }

  .card,
  .panel {
    padding: 20px;
  }

  .login-card,
  .prospect-card {
    padding: 30px 20px;
    margin: 40px auto;
  }
}

/* Mobile Phones (<= 480px) */
@media (max-width: 480px) {
  .stats-grid,
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .stat-num,
  .metric-value {
    font-size: 1.8rem;
  }

  .admin-title,
  .page-title {
    font-size: 1.5rem;
  }

  .login-card,
  .prospect-card {
    padding: 24px 16px;
    margin: 24px auto;
    border-radius: 12px;
  }

  .btn {
    padding: 12px 18px;
    font-size: 0.88rem;
  }

  .theme-btn {
    padding: 4px 8px;
    font-size: 0.72rem;
  }
}

/* Profile Card Absolute Theme Toggler */
.theme-toggler {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 8px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.theme-toggler:hover {
  transform: scale(1.08) rotate(12deg);
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.35);
  color: #fbbf24;
}

html[data-theme="light"] .theme-toggler {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #0f172a;
}

html[data-theme="light"] .theme-toggler:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.2);
  color: #0f172a;
  transform: scale(1.08) rotate(-12deg);
}

.theme-toggler:active {
  transform: scale(0.92);
}

.theme-toggler svg {
  width: 20px;
  height: 20px;
}
