/* ==========================================================================
   RESET & COLOR PALETTE
   ========================================================================== */
:root {
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --primary-purple: #635bff;
  --primary-blue: #00d2ff;
  --gradient-accent: linear-gradient(135deg, #635bff 0%, #00d2ff 100%);
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --input-bg: #f8fafc;
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-sm: 8px;
  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background-color: #7b2cbf;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 20px;
  transition: background-color 0.4s ease;
}

body.profile-view-active {
  background-color: #f1f5f9;
}

/* ==========================================================================
   DESKTOP BACKGROUND ANIMATION ART
   ========================================================================== */
.bg-art-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0628 0%, #2a085c 40%, #00c6ff 100%);
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.bg-art-container.fade-out { opacity: 0; }

.dot-pattern {
  position: absolute;
  width: 300px;
  height: 300px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.25) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  opacity: 0.6;
}

.grid-1 { top: 5%; left: 3%; }
.grid-2 { bottom: 8%; right: 4%; }

.pill-shape {
  position: absolute;
  border-radius: 100px;
  transform: rotate(-35deg);
  animation: floatPill 12s ease-in-out infinite alternate;
}

.pill-1 { width: 600px; height: 120px; background: linear-gradient(90deg, #7928ca, #ff0080); top: -100px; left: -100px; opacity: 0.8; }
.pill-2 { width: 700px; height: 140px; background: linear-gradient(90deg, #0070f3, #00dfd8); bottom: -150px; right: -100px; animation-delay: -3s; }
.pill-3 { width: 450px; height: 90px; background: linear-gradient(90deg, #7928ca, #4338ca); top: 40%; left: -200px; animation-delay: -6s; }
.pill-4 { width: 500px; height: 100px; background: linear-gradient(90deg, #00dfd8, #7928ca); bottom: 20%; right: -150px; animation-delay: -9s; }

.sphere {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff, #8b5cf6);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: floatSphere 8s ease-in-out infinite alternate;
}

.sphere-1 { width: 90px; height: 90px; top: 12%; left: 18%; }
.sphere-2 { width: 130px; height: 130px; bottom: 15%; left: 8%; animation-delay: -2s; }
.sphere-3 { width: 70px; height: 70px; top: 60%; right: 12%; animation-delay: -5s; }

@keyframes floatPill {
  0% { transform: rotate(-35deg) translateY(0px); }
  100% { transform: rotate(-35deg) translateY(40px); }
}

@keyframes floatSphere {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-30px) scale(1.08); }
}

/* ==========================================================================
   MAIN CANVAS & AUTH CARD
   ========================================================================== */
.app-canvas {
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 10;
  margin: auto;
}

.auth-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
  display: flex;
  overflow: hidden;
  min-height: 560px;
  position: relative;
  width: 100%;
}

.hidden { display: none !important; }

.form-container {
  flex: 1.1;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
  background: #ffffff;
  width: 100%;
}

.brand-header { margin-bottom: 12px; }

.brand-logo {
  height: 50px;
  width: auto;
  margin-bottom: 8px;
  object-fit: contain;
}

.brand-intro span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.color-change-text {
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(90deg, #635bff, #00d2ff, #ff0080, #7928ca, #635bff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorShift 6s ease-in-out infinite;
  margin-bottom: 2px;
}

@keyframes colorShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.brand-intro p { color: var(--text-muted); font-size: 0.8rem; }

/* ==========================================================================
   SOCIAL LOGIN BUTTONS (GOOGLE, APPLE, FACEBOOK)
   ========================================================================== */
.social-login-grid { display: flex; gap: 8px; margin-bottom: 6px; }

.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 10px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}

.social-btn:hover, .social-btn:active {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.social-btn.facebook-btn:hover {
  border-color: #1877F2;
  background: #f0f6ff;
}

.social-icon { width: 18px; height: 18px; flex-shrink: 0; }

.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 6px 0 8px;
}

.divider-text::before, .divider-text::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.divider-text span {
  padding: 0 10px;
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ==========================================================================
   PHONE SMS OTP BUTTON STYLING
   ========================================================================== */
.btn-phone-otp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  transition: all 0.25s ease;
}

.btn-phone-otp:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

/* ==========================================================================
   SLIDING TRACK & INPUTS
   ========================================================================== */
.form-viewport { overflow: hidden; width: 100%; }

.form-track {
  display: flex;
  width: 200%;
  transition: transform 0.5s var(--transition-smooth);
}

.auth-card.signup-mode .form-track { transform: translateX(-50%); }

.auth-form {
  width: 50%;
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-form.tight-gap { gap: 4px; }
.input-row { display: flex; gap: 10px; }

.input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

label { font-size: 0.75rem; font-weight: 700; color: var(--text-dark); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
select {
  width: 100%;
  padding: 8px 12px;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-dark);
  outline: none;
  transition: all 0.25s ease;
}

input:focus, select:focus {
  border-color: var(--primary-purple);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}

input:disabled, select:disabled {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

.form-utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  margin-bottom: 2px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.checkbox-container input { display: none; }

.checkmark {
  width: 15px;
  height: 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--input-bg);
  position: relative;
}

.checkbox-container input:checked ~ .checkmark {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 7px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after { display: block; }

.forgot-link { font-size: 0.78rem; color: var(--text-muted); text-decoration: none; font-weight: 600; }
.forgot-link:hover { color: var(--primary-purple); }
.error-text { font-size: 0.72rem; color: #ef4444; display: none; }

/* BUTTONS */
.action-buttons-row { display: flex; gap: 10px; margin-top: 4px; }

.btn {
  position: relative;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
}

.btn-primary {
  background: var(--gradient-accent);
  color: #ffffff;
  box-shadow: 0 8px 16px -4px rgba(99, 91, 255, 0.4);
  flex: 1;
}

.btn-primary:hover, .btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px -4px rgba(99, 91, 255, 0.5);
}

.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
}

.btn-outline:hover, .btn-outline:active {
  background: #f8fafc;
  border-color: var(--text-dark);
}

.btn-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.8s ease;
}

.btn-primary:hover .btn-glow { transform: rotate(30deg) translateX(100%); }

/* RIGHT BANNER ARTWORK */
.banner-container {
  flex: 1.3;
  position: relative;
  background: linear-gradient(135deg, #0d0628 0%, #4338ca 50%, #00d2ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wave-divider {
  position: absolute;
  left: -1px;
  top: 0;
  height: 100%;
  width: 120px;
  z-index: 3;
  pointer-events: none;
}

.banner-art-content {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-pill { position: absolute; border-radius: 100px; transform: rotate(-35deg); }
.pill-inner-1 { width: 450px; height: 90px; background: linear-gradient(90deg, #7928ca, #00dfd8); top: 10%; right: -50px; opacity: 0.8; }
.pill-inner-2 { width: 500px; height: 110px; background: linear-gradient(90deg, #0070f3, #7928ca); bottom: 10%; left: -20px; opacity: 0.9; }

.banner-brand-display {
  z-index: 4;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.banner-logo {
  max-width: 290px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.4));
  animation: floatLogo 4s ease-in-out infinite alternate;
}

@keyframes floatLogo {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-10px) scale(1.04); }
}

/* ==========================================================================
   MULTI-SECTION DASHBOARD & SIDEBAR LAYOUT
   ========================================================================== */
.dashboard-container {
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-color);
  display: flex;
  min-height: 620px;
  width: 100%;
  overflow: hidden;
}

/* LEFT SIDEBAR */
.dashboard-sidebar {
  width: 280px;
  background: #f8fafc;
  border-right: 1px solid var(--border-color);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex-shrink: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-logo { height: 36px; width: auto; object-fit: contain; }

.account-tag {
  padding: 3px 10px;
  background: #e0e7ff;
  color: #4338ca;
  font-size: 0.68rem;
  font-weight: 800;
  border-radius: 12px;
  text-transform: uppercase;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}

.btn-back:hover { background: #f1f5f9; transform: translateX(-2px); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.avatar-circle {
  width: 44px;
  height: 44px;
  background: var(--gradient-accent);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-user-info { overflow: hidden; }
.sidebar-user-info h3 { font-size: 0.88rem; font-weight: 800; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-info p { font-size: 0.75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SIDEBAR MENU BUTTONS */
.sidebar-menu { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
}

.menu-item .menu-icon { width: 18px; height: 18px; color: var(--text-muted); transition: color 0.25s ease; }

.menu-item:hover { background: #ffffff; color: var(--text-dark); }
.menu-item:hover .menu-icon { color: var(--primary-purple); }

.menu-item.active {
  background: #ffffff;
  color: var(--primary-purple);
  box-shadow: 0 4px 12px rgba(99, 91, 255, 0.08);
  border: 1px solid rgba(99, 91, 255, 0.15);
}

.menu-item.active .menu-icon { color: var(--primary-purple); }

.badge-desktop {
  margin-left: auto;
  font-size: 0.65rem;
  padding: 2px 6px;
  background: #e2e8f0;
  color: var(--text-muted);
  border-radius: 6px;
  font-weight: 600;
}

.sidebar-footer { margin-top: auto; }
.btn-logout { width: 100%; padding: 10px; font-size: 0.82rem; }

/* RIGHT CONTENT PANELS */
.dashboard-content {
  flex: 1;
  padding: 36px 40px;
  overflow-y: auto;
  background: #ffffff;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.35s var(--transition-smooth);
}

.tab-panel.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.panel-header h2 { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.panel-header p { font-size: 0.82rem; color: var(--text-muted); }

.profile-details-grid { display: flex; flex-wrap: wrap; gap: 14px; }
.detail-item { flex: 1 1 calc(50% - 7px); display: flex; flex-direction: column; gap: 4px; }
.detail-item.full-width { flex: 1 1 100%; }
.detail-label { font-size: 0.72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.optional-tag { font-weight: 500; text-transform: none; color: #94a3b8; }

.action-buttons-group { width: 100%; display: flex; gap: 10px; margin-top: 8px; }
.action-buttons-group .btn { flex: 1; }

.btn-text {
  background: none;
  border: none;
  color: var(--primary-purple);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

/* LOGIN DEVICES LIST STYLING */
.devices-list { display: flex; flex-direction: column; gap: 12px; }

.device-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.device-card.primary-device {
  border-color: rgba(99, 91, 255, 0.4);
  background: #f0f3ff;
}

.device-details { display: flex; align-items: center; gap: 14px; }
.device-icon-box {
  width: 42px;
  height: 44px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-purple);
}

.device-info h4 { font-size: 0.9rem; font-weight: 800; color: var(--text-dark); display: flex; align-items: center; gap: 8px; }
.badge-primary { font-size: 0.68rem; background: var(--primary-purple); color: #ffffff; padding: 2px 8px; border-radius: 10px; font-weight: 700; }
.device-info p { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

.btn-revoke {
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #ef4444;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-revoke:hover { background: #ef4444; color: #ffffff; border-color: #ef4444; }

/* LINKED APPS GRID */
.linked-apps-grid { display: flex; flex-direction: column; gap: 12px; }

.app-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #ffffff;
}

.app-info { display: flex; align-items: center; gap: 14px; }

.app-icon-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #635bff, #00d2ff);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-icon-badge.ads { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.app-icon-badge.games { background: linear-gradient(135deg, #10b981, #059669); }

.app-info h4 { font-size: 0.92rem; font-weight: 800; color: var(--text-dark); }
.app-info p { font-size: 0.78rem; color: var(--text-muted); }

.status-connected { font-size: 0.75rem; font-weight: 700; color: #16a34a; background: #dcfce7; padding: 4px 10px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 0.78rem; text-decoration: none; }

/* WALLET & PAYMENTS */
.wallet-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: #fffbebf5;
  border: 1px solid #fde68a;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  color: #92400e;
}

.wallet-icon {
  width: 44px;
  height: 44px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wallet-banner h4 { font-size: 0.95rem; font-weight: 800; }
.wallet-banner p { font-size: 0.8rem; margin-top: 2px; }

.payment-section { margin-bottom: 24px; }
.section-title-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section-title-row h3 { font-size: 0.95rem; font-weight: 800; color: var(--text-dark); }
.add-payment-actions { display: flex; gap: 8px; }

.payment-methods-grid { display: flex; gap: 12px; flex-wrap: wrap; }

.saved-payment-card {
  flex: 1 1 calc(50% - 6px);
  min-width: 240px;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payment-card-left { display: flex; align-items: center; gap: 12px; }

.payment-type-badge {
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-purple);
  text-transform: uppercase;
}

.payment-card-info h5 { font-size: 0.88rem; font-weight: 800; color: var(--text-dark); }
.payment-card-info p { font-size: 0.75rem; color: var(--text-muted); }

.card-label-row { display: flex; justify-content: space-between; align-items: center; }
.card-brand-badge { font-size: 0.7rem; font-weight: 800; padding: 2px 8px; background: #e0e7ff; color: #4338ca; border-radius: 6px; text-transform: uppercase; }

/* TRANSACTION HISTORY */
.history-table-wrapper { overflow-x: auto; width: 100%; }

.empty-history-box {
  padding: 32px 20px;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* PASSWORD & PRIVACY */
.password-reset-box { padding: 20px; background: #f8fafc; border-radius: var(--radius-lg); border: 1px solid var(--border-color); }
.password-reset-box p { font-size: 0.85rem; color: var(--text-dark); margin-bottom: 16px; }

.desktop-privacy-container { display: flex; flex-direction: column; gap: 16px; }
.privacy-card { padding: 20px; border: 1px solid var(--border-color); border-radius: var(--radius-lg); background: #ffffff; }
.privacy-card h4 { font-size: 0.95rem; font-weight: 800; color: var(--text-dark); margin-bottom: 6px; }
.privacy-card p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 14px; }
.privacy-card.danger-zone { border-color: #fecaca; background: #fff5f5; }

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: modalPop 0.3s var(--transition-smooth);
}

@keyframes modalPop {
  0% { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.close-modal-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 6px;
}

.close-modal-btn:hover { color: var(--text-dark); }

.btn-danger-text {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger-text:hover { text-decoration: underline; }

/* ==========================================================================
   PURE WHITE SIMPLE MOBILE THEME (MAX-WIDTH: 850px)
   ========================================================================== */
@media (max-width: 850px) {
  body {
    background-color: #ffffff !important;
    padding: 16px 12px;
    align-items: flex-start;
  }

  .bg-art-container, .banner-container { display: none !important; }
  .app-canvas { max-width: 100%; width: 100%; }

  .auth-card {
    min-height: auto;
    border-radius: 0;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff;
  }

  .form-container { padding: 8px 0; background: #ffffff; }
  .brand-header { text-align: center; margin-bottom: 18px; }
  .brand-logo { height: 48px; margin: 0 auto 8px auto; display: block; }
  .color-change-text { font-size: 1.5rem; }

  /* DASHBOARD MOBILE RESPONSIVE */
  .dashboard-container {
    flex-direction: column;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .dashboard-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    gap: 14px;
    background: #ffffff;
  }

  .sidebar-menu {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
  }

  .menu-item {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: 10px 14px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
  }

  .dashboard-content { padding: 20px 0; }
  .social-login-grid { flex-direction: row; gap: 6px; margin-bottom: 8px; }
  .social-btn { min-height: 44px; border-radius: 10px; font-size: 0.8rem; padding: 8px 10px; }

  input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="date"], select {
    min-height: 44px;
    font-size: 16px;
    border-radius: 10px;
    padding: 10px 12px;
  }

  .btn { min-height: 46px; border-radius: 10px; font-size: 0.9rem; }
  .action-buttons-row { flex-direction: column; gap: 8px; margin-top: 6px; }
  .action-buttons-row .btn { width: 100%; }
  .auth-form { padding-right: 0; }
  .input-row, .profile-details-grid { flex-direction: column; gap: 10px; }
  .detail-item, .saved-payment-card { flex: 1 1 100%; }
}
