/* ============================================
   ACTGRAM V2 - DESIGN SYSTEM
   Premium Light Theme | DM Sans | Tabler Icons
   ============================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;0,9..40,800;1,9..40,400;1,9..40,500&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================ */
:root {
  /* Primary Colors - Premium Royal Indigo & Blue */
  --royal-blue: #4F46E5;
  --royal-blue-light: rgba(79, 70, 229, 0.06);
  --royal-blue-mid: #6366F1;
  --royal-blue-dark: #3730A3;
  --royal-blue-hover: #4338CA;

  /* Secondary Colors - Premium Deep Violet & Lavender */
  --soft-violet: #7C3AED;
  --soft-violet-light: rgba(124, 58, 237, 0.08);
  --soft-violet-mid: #8B5CF6;
  --soft-violet-dark: #6D28D9;

  /* Status Colors - High-Trust Safe Casting Emerald Teal & Coral Red */
  --emerald: #10B981;
  --emerald-light: rgba(16, 185, 129, 0.08);
  --emerald-mid: #34D399;
  --amber: #F59E0B;
  --amber-light: rgba(245, 158, 11, 0.08);
  --amber-mid: #FBBF24;
  --soft-red: #EF4444;
  --soft-red-light: rgba(239, 68, 68, 0.08);
  --soft-red-mid: #F87171;

  /* Neutrals - Clean Silky White & Soft Pearl Gray */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --surface: rgba(255, 255, 255, 0.85);
  --surface-2: #F1F5F9;
  --border: rgba(79, 70, 229, 0.08);
  --border-light: rgba(79, 70, 229, 0.04);

  /* Text - Obsidian Charcoal & Elegant Mist */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-disabled: #94A3B8;

  /* Gradients - Premium Electric Indigo & Royal Sapphire */
  --gradient-primary: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  --gradient-premium: linear-gradient(135deg, #4F46E5 0%, #C026D3 50%, #EC4899 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-amber: linear-gradient(135deg, #FBBF24 0%, #F59E0B 100%);
  --gradient-hero: linear-gradient(135deg, #EEF2FF 0%, #F5F3FF 45%, #E6F4EA 100%);
  --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);

  /* Shadows - Delicate Ambient Glows */
  --shadow-xs: 0 1px 2px rgba(79, 70, 229, 0.03);
  --shadow-sm: 0 4px 12px rgba(79, 70, 229, 0.04);
  --shadow-md: 0 8px 24px rgba(79, 70, 229, 0.06);
  --shadow-lg: 0 16px 36px rgba(79, 70, 229, 0.08);
  --shadow-xl: 0 24px 60px rgba(79, 70, 229, 0.12);
  --shadow-blue: 0 8px 20px rgba(59, 130, 246, 0.15);
  --shadow-violet: 0 8px 20px rgba(124, 58, 237, 0.15);

  /* Typography Scale - outfit for heads, Jakarta for text */
  --font-family: 'Plus Jakarta Sans', 'Outfit', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 28px;
  --text-4xl: 34px;
  --text-5xl: 42px;

  /* 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;

  /* Border Radius */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-spring: 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Z-Index */
  --z-base: 1;
  --z-elevated: 10;
  --z-overlay: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-max: 9999;

  /* App Shell */
  --nav-height: 64px;
  --tab-bar-height: 72px;
  --header-height: 56px;
  --app-max-width: 430px;
}

/* ============================================
   CSS RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--off-white);
  line-height: 1.5;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App Container */
#app {
  max-width: var(--app-max-width);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  color: var(--royal-blue);
  text-decoration: none;
  cursor: pointer;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Text */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-blue { color: var(--royal-blue); }
.text-violet { color: var(--soft-violet); }
.text-emerald { color: var(--emerald); }
.text-amber { color: var(--amber); }
.text-red { color: var(--soft-red); }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

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

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.flex-wrap { flex-wrap: wrap; }

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

/* Spacing */
.p-1 { padding: var(--space-1); }
.p-2 { padding: var(--space-2); }
.p-3 { padding: var(--space-3); }
.p-4 { padding: var(--space-4); }
.p-5 { padding: var(--space-5); }
.p-6 { padding: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }

.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

/* Backgrounds */
.bg-white { background: var(--white); }
.bg-surface { background: var(--surface); }
.bg-off-white { background: var(--off-white); }
.bg-blue { background: var(--royal-blue); }
.bg-gradient { background: var(--gradient-primary); }

/* Borders */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.border { border: 1px solid var(--border); }
.border-blue { border: 1px solid var(--royal-blue-light); }

/* Shadow */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* Display */
.hidden { display: none !important; }
.block { display: block; }
.inline-flex { display: inline-flex; }

/* Overflow */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* Other */
.cursor-pointer { cursor: pointer; }
.pointer-events-none { pointer-events: none; }
.select-none { user-select: none; }
.transition { transition: all var(--transition-base); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================
   BADGE COMPONENT
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-blue { background: var(--royal-blue-light); color: var(--royal-blue); }
.badge-violet { background: var(--soft-violet-light); color: var(--soft-violet); }
.badge-emerald { background: var(--emerald-light); color: var(--emerald); }
.badge-amber { background: var(--amber-light); color: var(--amber); }
.badge-red { background: var(--soft-red-light); color: var(--soft-red); }
.badge-gray { background: var(--surface); color: var(--text-secondary); }

/* ============================================
   AVATAR COMPONENT
   ============================================ */
.avatar {
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.avatar-xs { width: 28px; height: 28px; }
.avatar-sm { width: 36px; height: 36px; }
.avatar-md { width: 44px; height: 44px; }
.avatar-lg { width: 56px; height: 56px; }
.avatar-xl { width: 72px; height: 72px; }
.avatar-2xl { width: 96px; height: 96px; }
.avatar-3xl { width: 120px; height: 120px; }

.avatar-ring { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--royal-blue); }
.avatar-ring-gradient { box-shadow: 0 0 0 2px var(--white); outline: 2px solid; outline-offset: 2px; outline-color: var(--royal-blue); }

/* Story ring */
.story-ring {
  padding: 2px;
  background: linear-gradient(135deg, #1E40AF, #7C3AED);
  border-radius: var(--radius-full);
}

.story-ring-inner {
  padding: 2px;
  background: var(--white);
  border-radius: var(--radius-full);
  overflow: hidden;
}

/* ============================================
   CHIP / TAG COMPONENT
   ============================================ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  white-space: nowrap;
}

.chip:hover { border-color: var(--royal-blue); color: var(--royal-blue); }
.chip.active { background: var(--royal-blue-light); border-color: var(--royal-blue); color: var(--royal-blue); }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: var(--border-light);
  width: 100%;
}

.divider-thick {
  height: 8px;
  background: var(--surface);
  width: 100%;
}

/* ============================================
   SCROLLBAR STYLES
   ============================================ */
::-webkit-scrollbar {
  width: 0px;
  height: 0px;
}

/* ============================================
   SCREEN TRANSITIONS
   ============================================ */
.screen {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  transition: transform var(--transition-base), opacity var(--transition-base);
  will-change: transform;
}

.screen.entering {
  animation: slideInRight 250ms ease forwards;
}

.screen.exiting {
  animation: slideOutLeft 250ms ease forwards;
}

.screen.entering-back {
  animation: slideInLeft 250ms ease forwards;
}

.screen.exiting-back {
  animation: slideOutRight 250ms ease forwards;
}

.screen.fade-entering {
  animation: fadeIn 300ms ease forwards;
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to { transform: translateX(-30%); opacity: 0.5; }
}

@keyframes slideInLeft {
  from { transform: translateX(-30%); opacity: 0.5; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes slideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.15); }
  50% { transform: scale(1); }
  75% { transform: scale(1.1); }
}

@keyframes confetti {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ============================================
   INPUT STYLES
   ============================================ */
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--white);
  outline: none;
  transition: all var(--transition-fast);
  appearance: none;
}

.input:focus {
  border-color: var(--royal-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.10);
}

.input::placeholder { color: var(--text-muted); }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.input-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.input-icon-left {
  position: relative;
}

.input-icon-left .input {
  padding-left: 44px;
}

.input-icon-left .icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 18px;
  height: 18px;
}

textarea.input {
  resize: none;
  min-height: 100px;
}

/* Select */
select.input {
  cursor: pointer;
  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='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

/* ============================================
   BUTTON STYLES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

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

.btn-primary {
  background: var(--royal-blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover { background: var(--royal-blue-hover); }

.btn-gradient {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.btn-gradient:hover { opacity: 0.92; }

.btn-violet {
  background: var(--soft-violet);
  color: var(--white);
  box-shadow: var(--shadow-violet);
}

.btn-outline {
  background: var(--white);
  color: var(--royal-blue);
  border: 1.5px solid var(--royal-blue);
}

.btn-outline:hover { background: var(--royal-blue-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover { background: var(--surface); }

.btn-danger {
  background: var(--soft-red);
  color: var(--white);
}

.btn-success {
  background: var(--emerald);
  color: var(--white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.btn-xl {
  padding: 18px 36px;
  font-size: var(--text-xl);
  border-radius: var(--radius-lg);
}

.btn-full { width: 100%; }

.btn-icon {
  padding: 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-icon:hover { background: var(--border); }
.btn-icon:active { transform: scale(0.93); }

/* Ripple effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s, opacity 0.4s;
  opacity: 0;
}

.btn:active::after {
  width: 200px;
  height: 200px;
  opacity: 0;
}

/* ============================================
   CARD STYLES
   ============================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:active { transform: scale(0.98); }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

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

.card-body { padding: var(--space-5); }
.card-footer {
  padding: var(--space-3) var(--space-5);
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ============================================
   APP BAR / HEADER
   ============================================ */
.app-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-elevated);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 var(--space-4);
  gap: var(--space-3);
}

.app-bar-title {
  flex: 1;
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.app-bar-logo {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   BOTTOM TAB BAR
   ============================================ */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--app-max-width);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-light);
  height: var(--tab-bar-height);
  display: flex;
  align-items: center;
  z-index: var(--z-overlay);
  padding: 0 var(--space-2);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--text-muted);
  position: relative;
}

.tab-item:active { transform: scale(0.92); }

.tab-item.active { color: var(--royal-blue); }

.tab-item svg { width: 24px; height: 24px; }

.tab-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tab-indicator {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--royal-blue);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.tab-item.active .tab-indicator { opacity: 1; }

/* FAB Tab */
.tab-fab {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-blue);
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-spring);
  margin-bottom: 8px;
}

.tab-fab:active { transform: scale(0.93); }

/* ============================================
   BOTTOM SHEET
   ============================================ */
.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
  z-index: var(--z-modal);
  display: flex;
  align-items: flex-end;
  animation: fadeIn 200ms ease;
}

.bottom-sheet {
  width: 100%;
  max-width: var(--app-max-width);
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  animation: slideUp 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding-bottom: env(safe-area-inset-bottom, 20px);
  max-height: 92vh;
  overflow-y: auto;
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  margin: 12px auto 0;
}

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

.bottom-sheet-title {
  font-size: var(--text-lg);
  font-weight: 700;
}

/* ============================================
   MODAL OVERLAY
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  animation: fadeIn 200ms ease;
}

.modal {
  width: 100%;
  max-width: 360px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  animation: popIn 300ms cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.modal-header {
  padding: var(--space-6) var(--space-6) var(--space-4);
  text-align: center;
}

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

.modal-footer {
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast-container {
  position: fixed;
  top: var(--space-5);
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
  width: calc(100% - 32px);
  max-width: 380px;
}

.toast {
  background: var(--text-primary);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-xl);
  animation: slideDown 300ms ease;
  pointer-events: all;
}

.toast-success { background: var(--emerald); }
.toast-error { background: var(--soft-red); }
.toast-warning { background: var(--amber); color: var(--text-primary); }
.toast-info { background: var(--royal-blue); }

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ============================================
   PROGRESS BAR
   ============================================ */
.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--surface);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  transition: width var(--transition-slow);
}

/* Step indicator */
.step-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--border);
  transition: all var(--transition-base);
}

.step-dot.active {
  width: 24px;
  background: var(--royal-blue);
}

/* ============================================
   VERIFICATION BADGE
   ============================================ */
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--royal-blue);
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.verified-badge svg {
  width: 10px;
  height: 10px;
  color: white;
}

/* ============================================
   STAT ITEM
   ============================================ */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================
   HEAT SCORE WIDGET
   ============================================ */
.heat-score {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--amber-light);
  border-radius: var(--radius-full);
}

.heat-score-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--amber);
}

/* ============================================
   MATCH SCORE RING
   ============================================ */
.match-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(var(--emerald) var(--pct, 0%), var(--emerald-light) 0%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.match-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  background: var(--white);
  border-radius: 50%;
}

.match-ring-value {
  position: relative;
  z-index: 1;
  font-size: var(--text-xs);
  font-weight: 800;
  color: var(--emerald);
}

/* ============================================
   SWIPE CARD
   ============================================ */
.swipe-card-stack {
  position: relative;
  width: 100%;
  height: 480px;
  user-select: none;
}

.swipe-card {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-lg);
}

.swipe-card:active { cursor: grabbing; }

.swipe-card:nth-child(2) {
  transform: scale(0.95) translateY(12px);
  z-index: 0;
}

.swipe-card:nth-child(3) {
  transform: scale(0.90) translateY(24px);
  z-index: -1;
}

.swipe-card:first-child { z-index: 10; }

/* Like/Nope labels */
.swipe-label {
  position: absolute;
  top: 40px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 2px;
  border: 4px solid;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  opacity: 0;
  transition: opacity 0.1s;
  transform: rotate(-10deg);
}

.swipe-label-like {
  left: 20px;
  color: var(--emerald);
  border-color: var(--emerald);
  transform: rotate(-10deg);
}

.swipe-label-nope {
  right: 20px;
  color: var(--soft-red);
  border-color: var(--soft-red);
  transform: rotate(10deg);
}

/* ============================================
   STORY PROGRESS
   ============================================ */
.story-progress {
  display: flex;
  gap: 3px;
  padding: 12px 16px;
}

.story-progress-bar {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: var(--white);
  width: 0%;
  transition: width linear;
}

.story-progress-fill.complete { width: 100%; }
.story-progress-fill.active { animation: storyProgress 5s linear forwards; }

@keyframes storyProgress {
  from { width: 0%; }
  to { width: 100%; }
}

/* ============================================
   CHART STYLES
   ============================================ */
.chart-container {
  position: relative;
  width: 100%;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
}

.bar-chart-bar {
  flex: 1;
  background: var(--royal-blue-light);
  border-radius: 4px 4px 0 0;
  transition: height 0.6s ease;
  position: relative;
  cursor: pointer;
}

.bar-chart-bar.active { background: var(--royal-blue); }
.bar-chart-bar:hover { background: var(--royal-blue); }

/* ============================================
   NOTIFICATION DOT
   ============================================ */
.notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background: var(--soft-red);
  border-radius: 50%;
  border: 2px solid var(--white);
}

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--soft-red);
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
  padding: 0 4px;
}

/* ============================================
   PAGE CONTENT
   ============================================ */
.page-content {
  padding: 0;
  padding-bottom: calc(var(--tab-bar-height) + 20px);
}

.section {
  padding: var(--space-5) var(--space-4);
}

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

.section-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.section-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--royal-blue);
  cursor: pointer;
}

/* ============================================
   HORIZONTAL SCROLL
   ============================================ */
.scroll-x {
  display: flex;
  overflow-x: auto;
  gap: var(--space-3);
  padding: 0 var(--space-4);
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.scroll-x > * { scroll-snap-align: start; }

/* ============================================
   COUNTDOWN TIMER
   ============================================ */
.countdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--soft-red);
  line-height: 1;
  min-width: 32px;
  text-align: center;
}

.countdown-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-sep {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--soft-red);
  margin-bottom: 14px;
}

/* ============================================
   VOICE WAVE
   ============================================ */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 40px;
}

.voice-bar {
  width: 3px;
  border-radius: var(--radius-full);
  background: var(--royal-blue);
  animation: voiceWave 0.8s ease infinite;
}

.voice-bar:nth-child(2) { animation-delay: 0.1s; }
.voice-bar:nth-child(3) { animation-delay: 0.2s; }
.voice-bar:nth-child(4) { animation-delay: 0.3s; }
.voice-bar:nth-child(5) { animation-delay: 0.4s; }
.voice-bar:nth-child(6) { animation-delay: 0.3s; }
.voice-bar:nth-child(7) { animation-delay: 0.2s; }
.voice-bar:nth-child(8) { animation-delay: 0.1s; }

@keyframes voiceWave {
  0%, 100% { height: 8px; }
  50% { height: 32px; }
}

/* ============================================
   LIST ITEM
   ============================================ */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.list-item:active { background: var(--surface); }
.list-item:last-child { border-bottom: none; }

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  text-align: center;
  gap: var(--space-4);
}

.empty-state-icon {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.empty-state-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.empty-state-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 240px;
  line-height: 1.6;
}

/* ============================================
   SAFETY ELEMENTS
   ============================================ */
.safety-banner {
  background: linear-gradient(135deg, var(--soft-red-light), var(--amber-light));
  border: 1px solid var(--soft-red-light);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.emergency-btn {
  background: var(--soft-red);
  color: var(--white);
  border-radius: var(--radius-full);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
  animation: emergencyPulse 2s infinite;
}

@keyframes emergencyPulse {
  0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(220, 38, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  transition: var(--transition-fast);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider { background: var(--royal-blue); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ============================================
   RATING STARS
   ============================================ */
.stars {
  display: flex;
  gap: 2px;
  color: var(--amber);
}

.stars svg { width: 16px; height: 16px; }

/* ============================================
   MEDIA CARD
   ============================================ */
.media-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}

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

.media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}

/* ============================================
   CHAT BUBBLE
   ============================================ */
.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: var(--text-base);
  line-height: 1.5;
  position: relative;
}

.chat-bubble-sent {
  background: var(--royal-blue);
  color: var(--white);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.chat-bubble-received {
  background: var(--surface);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.chat-time {
  font-size: 10px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 4px;
}

.chat-time-sent { color: rgba(255,255,255,0.7); }

/* ============================================
   LEADERBOARD
   ============================================ */
.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border-light);
}

.rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  flex-shrink: 0;
}

.rank-1 { background: #FFD700; color: #7A5A00; }
.rank-2 { background: #C0C0C0; color: #505050; }
.rank-3 { background: #CD7F32; color: #5A3000; }
.rank-other { background: var(--surface); color: var(--text-secondary); }

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton-text {
  height: 14px;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-full);
}

.skeleton-avatar {
  border-radius: 50%;
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.skeleton-card {
  border-radius: var(--radius-xl);
  background: linear-gradient(90deg, var(--surface) 25%, var(--border-light) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ============================================
   CONFETTI
   ============================================ */
.confetti-piece {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  animation: confetti 3s ease forwards;
  z-index: var(--z-max);
  pointer-events: none;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (min-width: 768px) {
  #app {
    margin: 20px auto;
    min-height: calc(100vh - 40px);
    border-radius: var(--radius-2xl);
  }

  .tab-bar {
    border-radius: 0 0 var(--radius-2xl) var(--radius-2xl);
  }
}

@media (min-width: 1024px) {
  body {
    background: var(--off-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px;
  }

  #app {
    position: sticky;
    top: 24px;
  }
}

/* ============================================
   ACTGRAM V2 - PREMIUM SILK-LIGHT OVERRIDES
   ============================================ */

/* Typography Scaling and Font Weights */
h1, h2, h3, h4, h5, h6, 
[style*="font-weight:800"], 
[style*="font-weight:700"],
[style*="font-weight: 900"],
.font-bold,
.font-extrabold {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif !important;
  letter-spacing: -0.025em !important;
  color: var(--text-primary) !important;
}

body, p, span, div, input, textarea, button, select {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  letter-spacing: -0.01em;
}

/* ============================================
   GLOBAL DARK-TO-LIGHT STYLE CONVERSIONS
   ============================================ */

/* 1. Ensure clean silky white elements for surfaces */
[style*="background:#0C1A15"],
[style*="background: #0C1A15"],
[style*="background:#0c1a15"],
.bg-white {
  background: var(--white) !important;
}

/* 2. Global Page Backgrounds to Pearl Grey */
[style*="background:#040D0A"],
[style*="background: #040D0A"],
[style*="background:#040d0a"],
.bg-off-white,
.bg-surface {
  background: var(--off-white) !important;
}

/* 3. Global Text Primary to Deep Navy Slate */
[style*="color:#FAF8F5"],
[style*="color: #FAF8F5"],
[style*="color:#faf8f5"],
.text-primary {
  color: var(--text-primary) !important;
}

/* 4. Global Text Secondary to Slate Grey */
[style*="color:#CBD5E1"],
[style*="color: #CBD5E1"],
[style*="color:#cbd5e1"],
.text-secondary {
  color: var(--text-secondary) !important;
}

[style*="color:#8E9A96"],
[style*="color: #8E9A96"],
.text-muted {
  color: var(--text-muted) !important;
}

/* ============================================
   GLASSMORPHISM & LAYERS OVERRIDES
   ============================================ */

/* Glassmorphic Sticky Headers */
[style*="position:sticky;top:0"], 
[style*="position: sticky; top: 0"],
[style*="position:sticky; top:0"],
[id*="sticky-header"],
.bottom-sheet-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-bottom: 1.5px solid var(--border) !important;
  color: var(--text-primary) !important;
}

/* Premium Navigation & Tab Bar */
#tab-bar {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border-top: 1.5px solid var(--border) !important;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.04) !important;
}

.tab-item {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
}

.tab-item.active {
  color: var(--royal-blue) !important;
}

.tab-item.active i {
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.15));
}

.tab-fab {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-blue) !important;
  color: white !important;
  transition: var(--transition-spring) !important;
}

.tab-fab:hover {
  transform: translateY(-2px) scale(1.05) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2) !important;
}

/* Modals & Bottom Sheets */
.bottom-sheet-overlay,
.modal-overlay {
  background: rgba(15, 23, 42, 0.4) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

.bottom-sheet, .modal {
  background: var(--white) !important;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: var(--shadow-xl) !important;
}

.bottom-sheet-handle {
  background: rgba(15, 23, 42, 0.1) !important;
}

/* Premium Buttons & Call to Actions */
button[style*="background:linear-gradient"],
button[style*="background: linear-gradient"],
.btn-primary,
[style*="background:#E5A85C"],
[style*="background: #E5A85C"],
[style*="background:#1E40AF"],
[style*="background: #1E40AF"] {
  background: var(--gradient-primary) !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 14px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-blue) !important;
  border: none !important;
}

button[style*="background:linear-gradient"]:hover,
button[style*="background: linear-gradient"]:hover,
[style*="background:#E5A85C"]:hover,
[style*="background: #E5A85C"]:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15) !important;
}

button:active, 
.btn:active,
[onclick]:active {
  transform: scale(0.96) !important;
}

/* Dynamic Card Hover Elevations */
[style*="box-shadow:0 2px 8px rgba(0,0,0,0.05)"],
[style*="box-shadow: 0 2px 8px rgba(0,0,0,0.05)"],
[style*="box-shadow:0 4px 16px rgba(0,0,0,0.08)"],
.swipe-card,
.list-item,
[onclick*="Router.go"] {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

[style*="box-shadow:0 2px 8px rgba(0,0,0,0.05)"]:hover,
[style*="box-shadow: 0 2px 8px rgba(0,0,0,0.05)"]:hover,
[style*="box-shadow:0 4px 16px rgba(0,0,0,0.08)"]:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--shadow-lg) !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* Trust Elements & Verification Shields */
[style*="background:#1E40AF"][style*="border-radius:50%"],
[style*="background: #1E40AF"][style*="border-radius:50%"] {
  background: var(--royal-blue) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
}

/* Inputs, Textareas and Dropdowns */
input, textarea, select {
  background: var(--white) !important;
  color: var(--text-primary) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 12px !important;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--royal-blue) !important;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08) !important;
}

/* General Layout Cleanups */
.screen {
  background: var(--off-white) !important;
}

/* Interactive Pill Toggles */
.toggle-slider {
  box-shadow: inset 0 2px 4px rgba(15,23,42,0.1) !important;
}

/* Verification list borders */
[style*="border:1.5px solid #E2E8F0"],
[style*="border:1px solid #F1F5F9"],
[style*="border-bottom:1px solid #F1F5F9"],
[style*="border: 1px solid var(--border)"],
.divider {
  border-color: var(--border) !important;
}

/* ============================================================
   ACTGRAM PREMIUM JEWEL TONE LIGHT THEME ENGINE — v3
   ============================================================ */

/* 1. Rich Screen Gradients — Premium Lavender-Violet-Fuchsia */
.screen,
[style*="background:#F8FAFC"],
[style*="background: #F8FAFC"],
[style*="background: #f8fafc"],
[style*="background:#f8fafc"] {
  background: linear-gradient(160deg, #EEF2FF 0%, #F5F3FF 50%, #FDF4FF 100%) !important;
}

/* 2. Glassmorphic App Bar Overrides */
div[style*="position:sticky"],
div[style*="position: sticky"] {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(24px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
  border-bottom: 1px solid rgba(91, 80, 240, 0.10) !important;
  box-shadow: 0 4px 20px rgba(91, 80, 240, 0.04) !important;
}

/* 3. Safe Card Uplifts — Only actual content cards, not buttons/inputs/nav */
/* Target only larger content divs with box-shadow that are NOT buttons/controls */
div[style*="box-shadow"][style*="border-radius:20px"],
div[style*="box-shadow"][style*="border-radius: 20px"],
div[style*="box-shadow"][style*="border-radius:18px"],
div[style*="box-shadow"][style*="border-radius: 18px"],
div[style*="box-shadow"][style*="border-radius:24px"],
div[style*="box-shadow"][style*="border-radius: 24px"] {
  box-shadow: 0 8px 28px rgba(91, 80, 240, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  border: 1px solid rgba(91, 80, 240, 0.07) !important;
  transition: transform 240ms ease, box-shadow 240ms ease !important;
}

/* 4. Primary Color Overrides (#1E40AF -> Electric Indigo #5B50F0) */
[style*="background:#1E40AF"],
[style*="background: #1E40AF"],
[style*="background:linear-gradient(135deg,#1E40AF"],
[style*="background: linear-gradient(135deg, #1E40AF"],
[style*="background:linear-gradient(135deg,#1e40af"],
[style*="background: linear-gradient(135deg, #1e40af"] {
  background: linear-gradient(135deg, #5B50F0 0%, #4F46E5 100%) !important;
  box-shadow: 0 8px 24px rgba(91, 80, 240, 0.25) !important;
  border: none !important;
}

[style*="color:#1E40AF"],
[style*="color: #1E40AF"],
[style*="color:#1e40af"],
[style*="color: #1e40af"] {
  color: #5B50F0 !important;
}

[style*="border-color:#1E40AF"],
[style*="border-color: #1E40AF"],
[style*="border-color:#1e40af"],
[style*="border-color: #1e40af"] {
  border-color: #5B50F0 !important;
}

[style*="border: 1.5px solid #1E40AF"],
[style*="border:1.5px solid #1E40AF"],
[style*="border: 2px solid #1E40AF"],
[style*="border:2px solid #1E40AF"],
[style*="border: 1.5px solid #1e40af"],
[style*="border:1.5px solid #1e40af"] {
  border: 1.5px solid #5B50F0 !important;
}

/* Soft light blue background overrides */
[style*="background:#EFF6FF"],
[style*="background: #EFF6FF"],
[style*="background:#eff6ff"],
[style*="background: #eff6ff"],
.badge-blue {
  background: rgba(91, 80, 240, 0.07) !important;
  color: #5B50F0 !important;
  border: 1px solid rgba(91, 80, 240, 0.15) !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

[style*="background:#F5F3FF"],
[style*="background: #F5F3FF"],
.badge-violet {
  background: rgba(139, 92, 246, 0.07) !important;
  color: var(--soft-violet) !important;
  border: 1px solid rgba(139, 92, 246, 0.15) !important;
  font-weight: 700 !important;
}

/* 5. CRITICAL: DARK COLOR ELIMINATION */
/* #0F172A and #1E293B as standalone BACKGROUNDS → Premium Vivid Indigo-Violet */
[style*="background:#0F172A"],
[style*="background: #0F172A"],
[style*="background:#0f172a"],
[style*="background: #0f172a"],
[style*="background:#1E293B"],
[style*="background: #1E293B"],
[style*="background:#1e293b"],
[style*="background: #1e293b"] {
  background: linear-gradient(135deg, #5B50F0 0%, #4F46E5 60%, #7C3AED 100%) !important;
  border: none !important;
  box-shadow: 0 8px 28px rgba(91, 80, 240, 0.30) !important;
}

/* Dark gradient buttons starting with #0F172A */
[style*="background:linear-gradient(135deg,#0F172A"],
[style*="background:linear-gradient(135deg, #0F172A"],
[style*="background: linear-gradient(135deg, #0F172A"],
[style*="background:linear-gradient(135deg,#0f172a"],
[style*="background: linear-gradient(135deg, #0f172a"] {
  background: linear-gradient(135deg, #5B50F0 0%, #4F46E5 100%) !important;
  box-shadow: 0 8px 28px rgba(91, 80, 240, 0.28) !important;
  border: none !important;
}

/* Welcome screen specific dark CTA: #0F172A → #1E293B */
[style*="background:linear-gradient(135deg,#0F172A,#1E293B)"],
[style*="background: linear-gradient(135deg, #0F172A, #1E293B)"],
[style*="background:linear-gradient(135deg,#0f172a,#1e293b)"] {
  background: linear-gradient(135deg, #5B50F0 0%, #4F46E5 60%, #7C3AED 100%) !important;
  box-shadow: 0 10px 32px rgba(91, 80, 240, 0.32) !important;
  border: none !important;
}

/* Profile setup buttons that end in #0F172A */
[style*=",#0F172A)"],
[style*=", #0F172A)"],
[style*=",#0f172a)"],
[style*=", #0f172a)"],
[style*=",#1E293B)"],
[style*=", #1E293B)"],
[style*=",#1e293b)"],
[style*=", #1e293b)"] {
  background: linear-gradient(135deg, #5B50F0 0%, #7C3AED 100%) !important;
  box-shadow: 0 8px 28px rgba(91, 80, 240, 0.28) !important;
  border: none !important;
}

/* 6. Secondary Color Overrides (#7C3AED -> Premium Violet) */
[style*="background:#7C3AED"],
[style*="background: #7C3AED"],
[style*="background:#7c3aed"],
[style*="background: #7c3aed"] {
  background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 100%) !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.22) !important;
}
[style*="color:#7C3AED"],
[style*="color: #7C3AED"],
[style*="color:#7c3aed"],
[style*="color: #7c3aed"] {
  color: var(--soft-violet) !important;
}

/* 7. Status Colors (Green, Amber, Red) */
[style*="background:#059669"],
[style*="background: #059669"] {
  background: var(--gradient-success) !important;
}
[style*="color:#059669"],
[style*="color: #059669"] {
  color: var(--emerald) !important;
}
[style*="background:#ECFDF5"],
[style*="background: #ECFDF5"] {
  background: var(--emerald-light) !important;
}

[style*="background:#D97706"],
[style*="background: #D97706"] {
  background: var(--gradient-amber) !important;
}
[style*="color:#D97706"],
[style*="color: #D97706"] {
  color: var(--amber) !important;
}
[style*="background:#FEF3C7"],
[style*="background: #FEF3C7"] {
  background: var(--amber-light) !important;
}

[style*="background:#DC2626"],
[style*="background: #DC2626"] {
  background: var(--soft-red) !important;
}
[style*="color:#DC2626"],
[style*="color: #DC2626"] {
  color: var(--soft-red) !important;
}
[style*="background:#FEF2F2"],
[style*="background: #FEF2F2"] {
  background: var(--soft-red-light) !important;
}

/* 8. Premium Button Styling */
.btn-primary {
  background: linear-gradient(135deg, #5B50F0 0%, #4F46E5 100%) !important;
  color: var(--white) !important;
  border: none !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  box-shadow: 0 8px 24px rgba(91, 80, 240, 0.28) !important;
  transition: all var(--transition-base) !important;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(91, 80, 240, 0.40) !important;
  filter: brightness(1.05) !important;
}

.btn-primary:active {
  transform: translateY(0) !important;
}

.btn-outline {
  border: 1.5px solid #5B50F0 !important;
  color: #5B50F0 !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  transition: all var(--transition-base) !important;
}

.btn-outline:hover {
  background: rgba(91, 80, 240, 0.06) !important;
  transform: translateY(-1px) !important;
}

/* 9. Card Micro-interactions */
.card-hover,
.swipe-card-draggable,
.list-item {
  box-shadow: 0 8px 24px rgba(91, 80, 240, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02) !important;
  border: 1px solid rgba(91, 80, 240, 0.08) !important;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base) !important;
}

.card-hover:hover,
.list-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 36px rgba(91, 80, 240, 0.12), 0 4px 12px rgba(0, 0, 0, 0.03) !important;
  border-color: rgba(91, 80, 240, 0.20) !important;
}

/* Input Focus Glows */
input:focus, textarea:focus, select:focus {
  border-color: #5B50F0 !important;
  box-shadow: 0 0 0 4px rgba(91, 80, 240, 0.12) !important;
}

/* Tab bar indicator */
.tab-indicator {
  background: linear-gradient(90deg, #5B50F0, #8B5CF6) !important;
  box-shadow: 0 0 10px rgba(91, 80, 240, 0.5) !important;
}

/* Ensure text gradients stay as clip-masked gradients */
[style*="-webkit-background-clip:text"],
[style*="-webkit-background-clip: text"] {
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Video Reels Play Buttons */
div[style*="width:56px"][style*="height:56px"],
div[style*="width: 56px"][style*="height: 56px"] {
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  width: 56px !important;
  height: 56px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

div[style*="width:56px"] i,
div[style*="width: 56px"] i {
  color: #5B50F0 !important;
  font-size: 22px !important;
}

/* App Header Logo Icon (36x36) */
div[style*="width:36px"][style*="height:36px"],
div[style*="width: 36px"][style*="height: 36px"] {
  background: linear-gradient(135deg, #5B50F0, #8B5CF6) !important;
  border-radius: 10px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(91, 80, 240, 0.25) !important;
}

div[style*="width:36px"] i,
div[style*="width: 36px"] i {
  color: white !important;
  font-size: 18px !important;
}

/* 10. 96px Splash logo icon — premium indigo-violet-fuchsia */
div[style*="width:96px"][style*="height:96px"],
div[style*="width: 96px"][style*="height: 96px"] {
  background: linear-gradient(145deg, #5B50F0 0%, #7C3AED 60%, #D946EF 100%) !important;
  box-shadow: 0 20px 60px rgba(91, 80, 240, 0.40), 0 6px 20px rgba(124, 58, 237, 0.30), 0 0 0 8px rgba(91, 80, 240, 0.10) !important;
  border: none !important;
}

/* 11. 68px Logo icons (role selection, onboarding) — upgrade dark to premium */
div[style*="width:68px"][style*="height:68px"],
div[style*="width: 68px"][style*="height: 68px"] {
  background: linear-gradient(135deg, #5B50F0 0%, #8B5CF6 100%) !important;
  box-shadow: 0 12px 36px rgba(91, 80, 240, 0.30) !important;
  border: none !important;
}

/* 12. Screen background overrides for gradient screens */
[style*="background:linear-gradient(170deg,#F0F4FF"],
[style*="background: linear-gradient(170deg, #F0F4FF"],
[style*="background:linear-gradient(170deg,#F8FAFC"],
[style*="background: linear-gradient(170deg, #F8FAFC"],
[style*="background:linear-gradient(165deg,#F8FAFC"],
[style*="background: linear-gradient(165deg, #F8FAFC"],
[style*="background:linear-gradient(160deg,#F8FAFC"],
[style*="background: linear-gradient(160deg, #F8FAFC"] {
  background: linear-gradient(160deg, #EEF2FF 0%, #F5F3FF 50%, #FDF4FF 100%) !important;
}

/* 13. Gradient text — ActGram logo text upgrades */
[style*="background:linear-gradient(135deg,#1E40AF,#7C3AED)"],
[style*="background: linear-gradient(135deg, #1E40AF, #7C3AED)"],
[style*="background:linear-gradient(135deg,#4F46E5,#3B82F6)"],
[style*="background: linear-gradient(135deg, #4F46E5, #3B82F6)"],
[style*="background:linear-gradient(135deg,#4F46E5"] {
  background: linear-gradient(135deg, #5B50F0, #D946EF) !important;
}

/* 14. Premium link and accent colors */
[style*="color:#4F46E5"],
[style*="color: #4F46E5"] {
  color: #5B50F0 !important;
}

/* 15. Spinner color upgrade */
[style*="border-top-color:#4F46E5"],
[style*="border-top-color: #4F46E5"],
[style*="border-top-color:#1E40AF"],
[style*="border-top-color: #1E40AF"] {
  border-top-color: #5B50F0 !important;
}

/* 16. OTP Box styling */
.otp-box.filled {
  border-color: #5B50F0 !important;
  background: rgba(91, 80, 240, 0.06) !important;
}

.otp-box:focus {
  border-color: #5B50F0 !important;
  box-shadow: 0 0 0 4px rgba(91, 80, 240, 0.12) !important;
}

/* 17. Verification list borders */
[style*="border:1.5px solid #E2E8F0"],
[style*="border:1px solid #F1F5F9"],
[style*="border-bottom:1px solid #F1F5F9"],
[style*="border: 1px solid var(--border)"],
.divider {
  border-color: rgba(91, 80, 240, 0.10) !important;
}
