/* Base Reset & Variables */
:root {
  --bg-color: #080c14;
  --surface-color: rgba(17, 24, 39, 0.6);
  --border-color: rgba(255, 255, 255, 0.08);
  
  --primary-gradient: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  --primary-color: #22c55e;
  --accent-color: #16a34a;
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --danger-color: #ef4444;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  
  --font-main: 'Inter', sans-serif;
  --font-logo: 'Outfit', sans-serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Helpers & Utilities */
.hidden {
  display: none !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: var(--transition-fast);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.45);
}
.btn-primary:disabled {
  background: #374151 !important;
  color: #9ca3af !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger-color);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: var(--danger-color);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 4px;
}

/* Card layout */
.card {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-main);
  padding: 24px;
}

/* Input Fields */
.input-group {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.input-group input,
.input-group select,
.input-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 14px;
  transition: var(--transition-fast);
}
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.08);
}

/* Logo Design */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  font-size: 24px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-text {
  font-family: var(--font-logo);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 1. LOGIN SCREEN STYLING */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #090d16;
}

.login-bg-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
  animation: floatOrb 22s ease-in-out infinite alternate;
  pointer-events: none;
}

.bg-blob.blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.35) 0%, rgba(34, 197, 94, 0.08) 60%, transparent 80%);
  top: -120px;
  left: -100px;
  animation-duration: 20s;
}

.bg-blob.blob-2 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.3) 0%, rgba(34, 197, 94, 0.12) 60%, transparent 80%);
  bottom: -140px;
  right: -100px;
  animation-duration: 24s;
  animation-delay: -5s;
}

.bg-blob.blob-3 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.25) 0%, rgba(22, 163, 74, 0.06) 60%, transparent 80%);
  top: 40%;
  left: 65%;
  transform: translate(-50%, -50%);
  animation-duration: 22s;
  animation-delay: -10s;
}

.bg-blob.blob-4 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.28) 0%, rgba(34, 197, 94, 0.05) 60%, transparent 80%);
  top: -60px;
  right: 8%;
  animation-duration: 21s;
  animation-delay: -3s;
}

.bg-blob.blob-5 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.28) 0%, rgba(22, 163, 74, 0.06) 60%, transparent 80%);
  bottom: -80px;
  left: 8%;
  animation-duration: 26s;
  animation-delay: -8s;
}

.bg-blob.blob-6 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.25) 0%, rgba(22, 163, 74, 0.05) 60%, transparent 80%);
  top: 45%;
  left: 12%;
  animation-duration: 23s;
  animation-delay: -14s;
}

.bg-blob.blob-7 {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.08) 60%, transparent 80%);
  top: -80px;
  left: 45%;
  animation-duration: 25s;
  animation-delay: -6s;
}

.bg-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(34, 197, 94, 0.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(34, 197, 94, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.85) 0%, transparent 85%);
  opacity: 0.8;
  animation: gridPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 10px #22c55e, 0 0 20px #16a34a;
  opacity: 0;
  animation: floatParticle 8s linear infinite;
}

.p1  { width: 4px; height: 4px; left: 8%;  animation-delay: 0s;   animation-duration: 7s; }
.p2  { width: 6px; height: 6px; left: 18%; animation-delay: 1.5s; animation-duration: 9s; }
.p3  { width: 3px; height: 3px; left: 28%; animation-delay: 3s;   animation-duration: 6.5s; }
.p4  { width: 5px; height: 5px; left: 38%; animation-delay: 0.8s; animation-duration: 8s; }
.p5  { width: 4px; height: 4px; left: 48%; animation-delay: 2.2s; animation-duration: 10s; }
.p6  { width: 7px; height: 7px; left: 58%; animation-delay: 4s;   animation-duration: 7.5s; }
.p7  { width: 3px; height: 3px; left: 68%; animation-delay: 5s;   animation-duration: 9.5s; }
.p8  { width: 5px; height: 5px; left: 78%; animation-delay: 4.2s; animation-duration: 8.5s; }
.p9  { width: 4px; height: 4px; left: 88%; animation-delay: 6.1s; animation-duration: 7s; }
.p10 { width: 6px; height: 6px; left: 94%; animation-delay: 2.8s; animation-duration: 11s; }
.p11 { width: 5px; height: 5px; left: 12%; animation-delay: 3.5s; animation-duration: 8.2s; }
.p12 { width: 4px; height: 4px; left: 22%; animation-delay: 0.4s; animation-duration: 6.8s; }
.p13 { width: 6px; height: 6px; left: 32%; animation-delay: 4.8s; animation-duration: 10.2s; }
.p14 { width: 3px; height: 3px; left: 42%; animation-delay: 1.9s; animation-duration: 7.8s; }
.p15 { width: 5px; height: 5px; left: 54%; animation-delay: 5.5s; animation-duration: 9.1s; }
.p16 { width: 4px; height: 4px; left: 64%; animation-delay: 2.7s; animation-duration: 8.7s; }
.p17 { width: 7px; height: 7px; left: 74%; animation-delay: 0.2s; animation-duration: 11.5s; }
.p18 { width: 3px; height: 3px; left: 84%; animation-delay: 3.9s; animation-duration: 6.3s; }
.p19 { width: 5px; height: 5px; left: 91%; animation-delay: 1.1s; animation-duration: 9.8s; }
.p20 { width: 4px; height: 4px; left: 5%;  animation-delay: 4.4s; animation-duration: 7.6s; }

@keyframes floatParticle {
  0% {
    bottom: -20px;
    opacity: 0;
    transform: translateX(0) scale(0.6);
  }
  20% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.85;
  }
  100% {
    bottom: 105%;
    opacity: 0;
    transform: translateX(60px) scale(1.2);
  }
}

/* Floating Game-Themed Vector Icons */
.floating-game-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.game-icon {
  position: absolute;
  opacity: 0.22;
  filter: drop-shadow(0 0 14px rgba(34, 197, 94, 0.6));
  animation: floatGameIcon 14s ease-in-out infinite alternate;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.gi-1 { width: 72px; height: 72px; top: 12%; left: 8%;  animation-duration: 16s; }
.gi-2 { width: 64px; height: 64px; top: 16%; right: 10%; animation-duration: 18s; animation-delay: -4s; }
.gi-3 { width: 68px; height: 68px; bottom: 16%; left: 12%; animation-duration: 15s; animation-delay: -8s; }
.gi-4 { width: 62px; height: 62px; bottom: 18%; right: 12%; animation-duration: 17s; animation-delay: -2s; }
.gi-5 { width: 56px; height: 56px; top: 48%; left: 5%;  animation-duration: 20s; animation-delay: -12s; }
.gi-6 { width: 60px; height: 60px; top: 50%; right: 6%; animation-duration: 19s; animation-delay: -6s; }

@keyframes floatGameIcon {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-22px) rotate(10deg) scale(1.08);
  }
  100% {
    transform: translateY(18px) rotate(-8deg) scale(0.92);
  }
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(90px, 60px) scale(1.18);
  }
  100% {
    transform: translate(-70px, 110px) scale(0.88);
  }
}

@keyframes gridPulse {
  0% {
    opacity: 0.45;
  }
  100% {
    opacity: 0.9;
  }
}

.login-card-glow-backdrop {
  position: absolute;
  inset: -15px;
  background: radial-gradient(circle at center, rgba(22, 163, 74, 0.45) 0%, rgba(34, 197, 94, 0.2) 45%, transparent 75%);
  filter: blur(35px);
  border-radius: 40px;
  pointer-events: none;
  z-index: 1;
  animation: cardPulseGlow 4s ease-in-out infinite alternate;
}

@keyframes cardPulseGlow {
  0% {
    opacity: 0.65;
    transform: scale(0.97);
  }
  100% {
    opacity: 1;
    transform: scale(1.04);
  }
}
/* cleaned duplicate .login-card */
/* cleaned duplicate .login-header */

/* 2. DASHBOARD FRAMEWORK */
.dashboard-wrapper {
  display: flex;
  width: 100vw;
  height: 100vh;
}

/* Sidebar Styling */
.sidebar {
  width: 280px;
  background: rgba(10, 15, 28, 0.9);
  border-right: 1px solid var(--border-color);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-header {
  margin-bottom: 32px;
  padding-left: 10px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}
.user-profile .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: var(--font-logo);
  color: white;
}
.profile-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.profile-email {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.profile-role {
  font-size: 11px;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
  letter-spacing: 0.5px;
}

.sidebar-nav {
  flex-grow: 1;
}
.sidebar-nav ul {
  list-style: none;
}
.sidebar-nav li {
  margin-bottom: 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}
.nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}
.nav-btn.active {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* Main Content Styling */
.main-content {
  flex-grow: 1;
  padding: 40px;
  overflow-y: auto;
  background: radial-gradient(circle at 80% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 35%);
}

.content-section {
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeIn 0.3s ease;
}

.section-header {
  margin-bottom: 30px;
}
.section-header h1 {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 4px;
}
.section-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* INBOX VIEW LAYOUT */
.inbox-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  flex-grow: 1;
  height: calc(100vh - 170px);
}

.email-list-container {
  display: flex;
  flex-direction: column;
  padding: 0 !important;
  overflow: hidden;
}

.list-search {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
}
.list-search input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
}
.list-search input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.email-list {
  overflow-y: auto;
  flex-grow: 1;
}

.email-item {
  padding: 18px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.email-item:hover {
  background: rgba(255, 255, 255, 0.02);
}
.email-item.active {
  background: rgba(99, 102, 241, 0.08);
  border-left: 3px solid var(--primary-color);
}

.email-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.email-item-sender {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}
.email-item-date {
  font-size: 11px;
  color: var(--text-muted);
}
.email-item-subject {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.email-item-alias {
  font-size: 11px;
  color: var(--accent-color);
  background: rgba(34, 197, 94, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  align-self: flex-start;
  font-weight: 500;
}

.unread-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: inline-block;
}

/* Email Reader Styling */
.email-reader-container {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.reader-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  color: var(--text-muted);
  gap: 16px;
}
.reader-empty-icon {
  font-size: 48px;
}

.reader-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reader-subject {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
}
.reader-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.reader-sender-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.reader-sender-email {
  font-weight: 600;
}
.reader-receiver-alias {
  color: var(--text-secondary);
}
.reader-date-info {
  color: var(--text-muted);
}

.reader-body {
  flex-grow: 1;
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.email-body-iframe {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  display: block;
}

.email-body-iframe.html-body {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
}

/* ADMIN PANEL VIEWS */
.admin-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  align-items: start;
}

.admin-form-card h2 {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.table-card h2 {
  font-family: var(--font-logo);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 20px;
}

.table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

th, td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--border-color);
}

th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  font-weight: 600;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-admin {
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary-color);
}
.badge-user {
  background: rgba(156, 163, 175, 0.15);
  color: var(--text-secondary);
}
.badge-active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success-color);
}

/* OVERLAYS & TOASTS */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: white;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  z-index: 10000;
  animation: slideUp 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toast.success {
  border-left: 4px solid var(--success-color);
}
.toast.error {
  border-left: 4px solid var(--danger-color);
}

/* ANIMATIONS */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* PASSWORD INPUT WRAPPER */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-input-wrapper input {
  width: 100%;
  padding-right: 40px !important;
}
.btn-toggle-visibility {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}
.btn-toggle-visibility:hover {
  color: var(--text-primary);
}

/* AUTOCOMPLETE DROPDOWN */
.autocomplete-container {
  position: relative;
}
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
}
.autocomplete-dropdown div {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #202124;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
}
.autocomplete-dropdown div:hover {
  background: #f1f3f4;
  color: #16a34a;
}
.autocomplete-dropdown.hidden {
  display: none;
}

/* MODAL STYLING */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-content {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  animation: slideUp 0.3s ease;
  color: #202124;
}
/* Specific modal desktop widths */
#review-promo-modal .modal-content { max-width: 500px; }
#create-user-modal .modal-content { max-width: 600px; }
#edit-user-modal .modal-content { max-width: 600px; }
#user-logs-modal .modal-content { max-width: 650px; }
#delete-password-modal .modal-content { max-width: 400px; }
#claim-gift-modal .modal-content { max-width: 480px; }

.modal-content label {
  color: #5f6368 !important;
  font-weight: 600;
  font-size: 11px;
}
.modal-content input, .modal-content select {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  color: #202124 !important;
}
.modal-content input::placeholder {
  color: #9ca3af !important;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 12px;
}
.modal-header h2 {
  font-family: var(--font-logo);
  font-size: 18px;
  font-weight: 600;
  color: #202124;
  margin: 0;
}
.modal-close {
  background: transparent;
  border: none;
  color: #5f6368;
  font-size: 24px;
  cursor: pointer;
}
.modal-close:hover {
  color: #202124;
}

/* ACTIONS BUTTONS IN TABLES */
.btn-icon {
  background: transparent;
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.btn-icon-edit {
  color: #fbbf24; /* yellow */
}
.btn-icon-edit:hover {
  background: rgba(251, 191, 36, 0.15);
}
.btn-icon-delete {
  color: #ef4444; /* red */
}
.btn-icon-delete:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* LOGS FILTER BAR */
.logs-filter-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}
.logs-filter-container .search-box {
  position: relative;
  flex: 1;
  min-width: 250px;
}
.logs-filter-container .search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 13px;
}
.logs-filter-container .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}
.checkbox-container input {
  cursor: pointer;
}

/* GROUPED LOG CARDS */
.logs-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.log-group-card {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.log-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #f8f9fa;
  cursor: pointer;
  user-select: none;
  flex-wrap: wrap;
  gap: 12px;
}
.log-group-header:hover {
  background: #f1f3f4;
}
.log-group-user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.log-group-icon {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.log-group-email {
  font-weight: 600;
  font-size: 14px;
  color: #202124;
}
.log-group-badges-row {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.log-group-actions-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}
.btn-log-action {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  color: #3c4043;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
  font-weight: 600;
}
.btn-log-action:hover {
  background: #f1f3f4;
  color: #1a73e8;
  border-color: #1a73e8;
}
.log-group-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.log-badge {
  color: #1a73e8;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.log-group-toggle {
  font-size: 12px;
  color: #5f6368;
}
.log-group-details {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background: #ffffff;
}
.log-group-details.open {
  max-height: 1000px;
  padding: 18px 20px;
  overflow-y: auto;
}
.log-step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.log-step-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}
.log-step-item:hover {
  background: #f1f3f4;
}
.log-step-item.auth-step {
  background: rgba(26, 115, 232, 0.04);
  border-left: 3px solid #1a73e8;
}
.log-step-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.log-step-icon-indicator {
  font-size: 14px;
  color: #5f6368;
  background: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.log-step-details-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.log-step-action-text {
  font-weight: 500;
  font-size: 13px;
  color: #202124;
}
.log-step-subtext {
  font-size: 11px;
  color: #5f6368;
}
.log-step-time {
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
}

/* Responsive Rules */
@media (max-width: 1200px) {
  .inbox-layout {
    grid-template-columns: 100%;
    height: auto;
  }
  .email-list-container {
    height: 350px;
  }
  .email-reader-container {
    min-height: 400px;
  }
  .admin-grid {
    grid-template-columns: 100%;
  }
}

/* Gmail replica Light Theme overrides for the dashboard */
.dashboard-wrapper {
  --bg-color: #f6f8fc;
  --surface-color: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  
  --primary-color: #22c55e;
  --accent-color: #16a34a;
  
  --text-primary: #202124;
  --text-secondary: #3c4043;
  --text-muted: #5f6368;
  
  --shadow-main: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  
  background-color: var(--bg-color);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

/* Header bar */
.gmail-header {
  height: 64px;
  background-color: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  padding: 0 20px;
  justify-content: space-between;
  z-index: 10;
}

.gmail-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 236px;
  flex-shrink: 0;
}

.gmail-header .header-center {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-grow: 1;
  max-width: 1100px;
  margin: 0;
}

.gmail-header .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Dynamic pills in the top header */
.account-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f1f3f4;
  padding: 4px 8px;
  border-radius: 24px;
  transition: all 0.2s ease;
  width: auto;
  max-width: 100%;
  justify-content: flex-start;
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: #3c4043;
  font-weight: 500;
  border-right: 1px solid rgba(0,0,0,0.12);
  padding-right: 6px;
}

.meta-pill:last-of-type, .meta-pill.game-pill {
  border-right: none;
  padding-right: 0;
}

.meta-pill .pill-label {
  color: #5f6368;
  white-space: nowrap;
}

.meta-pill .pill-value {
  color: #16a34a;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.06);
  padding: 1px 6px;
  border-radius: 12px;
  font-family: monospace;
}

.meta-pill.game-pill .pill-value {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.06);
  white-space: nowrap;
}

.pill-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  font-size: 12px;
  line-height: 1;
  border-radius: 50%;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #5f6368;
}

.pill-copy-btn:hover {
  background-color: rgba(0,0,0,0.06);
}

.meta-pill-btn {
  background: #22c55e;
  color: #ffffff;
  border: none;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3);
}

.meta-pill-btn:hover {
  background-color: #b01f17;
}

/* Dashboard Body layout split */
.gmail-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  background-color: #ffffff;
}

.gmail-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #ffffff;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(0,0,0,0.08);
}

.gmail-sidebar .sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gmail-sidebar .sidebar-nav li {
  margin-bottom: 4px;
}

.gmail-sidebar .nav-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: 0 20px 20px 0;
  border: none;
  background: transparent;
  color: #202124;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.gmail-sidebar .nav-btn:hover {
  background-color: #f1f3f4;
}

.gmail-sidebar .nav-btn.active {
  background-color: #fce8e6;
  color: #c04b37;
  font-weight: 700;
}

.gmail-sidebar .refund-policy-nav-btn.active {
  background-color: rgba(239, 68, 68, 0.12) !important;
  color: #dc2626 !important;
  font-weight: 700 !important;
}

.gmail-sidebar .refund-policy-nav-btn:hover {
  background-color: rgba(239, 68, 68, 0.06);
}

.refund-policy-card h3 {
  color: #000000 !important;
}

.gmail-sidebar .lifetime-guarantee-nav-btn.active {
  background-color: rgba(37, 99, 235, 0.12) !important;
  color: #2563eb !important;
  font-weight: 700 !important;
}

.gmail-sidebar .lifetime-guarantee-nav-btn:hover {
  background-color: rgba(37, 99, 235, 0.06);
}

.lifetime-guarantee-card h3 {
  color: #000000 !important;
}

/* Card Switch Checked Colors */
#edit-user-preparing:checked + .switch-slider {
  background-color: #22c55e !important;
}

#edit-user-claim-status:checked + .switch-slider {
  background-color: #10b981 !important;
}

#edit-user-refund-policy-status:checked + .switch-slider {
  background-color: #ef4444 !important;
}

#edit-user-lifetime-guarantee-status:checked + .switch-slider {
  background-color: #2563eb !important;
}

.gmail-sidebar .nav-btn.active .nav-icon {
  filter: none;
}

.gmail-sidebar .nav-label {
  margin-left: 12px;
  white-space: nowrap;
}

.gmail-sidebar .nav-badge {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #5f6368;
}

.gmail-sidebar .nav-btn.active .nav-badge {
  color: #c04b37;
}

.btn-signout-gmail {
  width: calc(100% - 24px);
  margin: 12px 12px;
  padding: 13px 22px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-logo);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.btn-signout-gmail:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.55);
  transform: translateY(-1.5px);
}

.btn-signout-gmail:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

/* Main content adjustments */
.main-content {
  flex: 1;
  background-color: #ffffff;
  padding: 0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.content-section {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px 16px;
  -webkit-overflow-scrolling: touch;
}

#section-inbox {
  overflow: hidden;
  padding: 0;
}

/* Custom styles for tables in light theme */
.card {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.08) !important;
  color: #202124 !important;
  box-shadow: none !important;
}

th {
  background: #f8f9fa !important;
  color: #5f6368 !important;
  border-bottom: 1px solid rgba(0,0,0,0.08) !important;
}

td {
  border-bottom: 1px solid rgba(0,0,0,0.06) !important;
  color: #202124 !important;
}

tr:hover {
  background: rgba(0,0,0,0.02) !important;
}

input, select, textarea {
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.15) !important;
  color: #202124 !important;
}

input:focus, select:focus, textarea:focus {
  border-color: #1a73e8 !important;
  box-shadow: 0 0 0 2px rgba(26,115,232,0.15) !important;
}

/* Inbox page splits */
.inbox-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  height: 100%;
  overflow: hidden;
}

.email-list-container {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.email-list-toolbar {
  height: 48px;
}

.email-list {
  overflow-y: auto;
  flex-grow: 1;
  background: #ffffff;
}

/* Email item row overrides */
.email-item {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  cursor: pointer;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid transparent;
  transition: all 0.1s ease;
}

.email-item:hover {
  background-color: #f8f9fa !important;
  box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0, 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  z-index: 1;
}

.email-item.active {
  background-color: #f5f8ff !important;
  border-left: 3px solid #1a73e8;
}

.email-item.unread {
  background-color: #ffffff;
  font-weight: 700;
}

.email-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-item-sender {
  font-weight: 500;
  font-size: 13px;
  color: #202124;
}

.email-item.unread .email-item-sender {
  font-weight: 700;
}

.email-item-date {
  font-size: 11px;
  color: #5f6368;
}

.email-item-subject {
  font-size: 13px;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.email-item.unread .email-item-subject {
  font-weight: 700;
}

.email-item-snippet {
  font-size: 12px;
  color: #5f6368;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Email detail view */
.email-reader-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding: 24px 32px;
  overflow-y: auto;
}

.reader-header {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.reader-subject {
  font-size: 22px;
  font-weight: 400;
  color: #202124;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
}

.reader-sender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sender-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sender-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e3e4e6;
  color: #202124;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
}

.sender-details {
  display: flex;
  flex-direction: column;
}

.sender-name {
  font-weight: 600;
  font-size: 14px;
  color: #202124;
}

.sender-email {
  font-size: 12px;
  color: #5f6368;
}

.reader-time {
  font-size: 12px;
  color: #5f6368;
}

.reader-body {
  font-size: 14px;
  line-height: 1.6;
  color: #3c4043;
  margin-bottom: 30px;
  white-space: pre-wrap;
}

/* Attachments */
.attachments-section {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 20px;
}

.attachments-title {
  font-size: 13px;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 12px;
}

.attachments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.attachment-card {
  width: 180px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
  background: #f8f9fa;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}

.attachment-card:hover {
  box-shadow: 0 1px 3px 0 rgba(60,64,67,0.3);
}

.attachment-preview {
  height: 90px;
  background: #e8eaed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #5f6368;
}

.attachment-info {
  padding: 8px 12px;
  background: #ffffff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.attachment-name {
  font-size: 12px;
  font-weight: 600;
  color: #3c4043;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-size {
  font-size: 11px;
  color: #5f6368;
}

/* Instructions Dialog */
.instructions-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.instructions-dialog {
  background: #ffffff;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  overflow: hidden;
}

.instructions-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.instructions-header h3 {
  margin: 0;
  font-size: 18px;
  color: #202124;
}

.instructions-body {
  padding: 24px;
  font-size: 14px;
  line-height: 1.6;
  color: #3c4043;
}

.instructions-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  justify-content: flex-end;
}

.nav-svg-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: inline-block;
  vertical-align: middle;
}

.toolbar-svg-icon {
  width: 20px;
  height: 20px;
  fill: #5f6368;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-svg-icon {
  width: 18px;
  height: 18px;
  fill: #5f6368;
}

.mobile-only, .mobile-only-btn {
  display: none !important;
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
  .mobile-only {
    display: flex !important;
  }
  .mobile-only-btn {
    display: flex !important;
  }
  
  /* Layout adjustments */
  .dashboard-wrapper {
    flex-direction: column;
    overflow: hidden;
  }
  
  .gmail-body {
    flex-direction: row;
    flex: 1;
    min-height: 0;
    position: relative;
    overflow: hidden;
  }
  
  /* Header reorganization */
  .gmail-header {
    flex-direction: column;
    height: auto;
    padding: 12px 16px;
    gap: 12px;
    align-items: stretch;
    border-bottom: 1px solid rgba(0,0,0,0.08);
  }
  
  .gmail-header .header-left {
    display: flex !important;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  
  .header-right {
    display: none !important;
  }
  
  /* Account metadata card styling on mobile */
  .account-meta-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    border-radius: 12px;
    padding: 12px 16px;
    gap: 8px;
    box-sizing: border-box;
  }
  
  .meta-pill {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding-bottom: 8px;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }
  
  .meta-pill:last-of-type, .meta-pill.game-pill {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .meta-pill-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 4px;
    height: 36px;
    border-radius: 18px;
  }

  /* Sidebar Drawer styling */
  .gmail-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    height: 100vh;
    width: 260px;
    z-index: 10000;
    background: #ffffff;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.15);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .gmail-sidebar.drawer-open {
    left: 0;
  }

  /* Collapsible inbox grid */
  .inbox-layout:not(.hidden) {
    display: block !important;
    position: relative;
    height: 100%;
    width: 100%;
    overflow: hidden;
  }
  
  .email-list-container {
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
  }
  
  .email-reader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 15;
    background: #ffffff;
    display: none;
    box-sizing: border-box;
  }
  
  /* Toggle selected email reader state */
  .inbox-layout.reader-active .email-reader-container {
    display: flex;
    flex-direction: column;
  }
  
  .inbox-layout.reader-active .email-list-container {
    display: none !important;
  }
  
  .email-list-toolbar {
    padding: 8px 12px !important;
    gap: 8px;
  }
  
  .email-list-toolbar > div:first-child {
    gap: 8px !important;
  }
  
  .toolbar-search {
    width: 130px !important;
  }
  
  /* Modal responsive constraints */
  .modal-content {
    width: 90% !important;
    max-width: 90% !important;
    padding: 16px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
  
  .modal-content form > div {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .email-list, .email-reader-container, .content-section, .logs-card-list {
    -webkit-overflow-scrolling: touch !important;
  }
  
  /* User Split-Inbox Columns Mobile Tab Switching */
  .user-split-inbox {
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }
  
  .mobile-tabs-container {
    display: flex !important;
  }
  
  #btn-tab-back-to-steam {
    display: inline-flex !important;
  }
  
  .user-split-inbox .split-column {
    width: 100% !important;
    flex: 1 !important;
    height: 100% !important;
    border-right: none !important;
    padding-bottom: 0 !important;
  }
  
  /* Initial default mobile display tab states */
  #split-column-steam {
    display: flex !important;
  }
  #split-column-mail {
    display: none !important;
  }

  /* Spacing and typography adjustments */
  .section-header {
    margin-bottom: 20px !important;
  }
  .section-header h1 {
    font-size: 22px !important;
  }
  .content-section {
    padding: 16px 12px !important;
  }
}

/* Preparing Order Alert Banner */
.preparing-banner {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(22, 163, 74, 0.1) 100%);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px 0 rgba(34, 197, 94, 0.05);
  animation: pulseGlow 3s infinite ease-in-out;
}

.preparing-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.preparing-banner-icon {
  font-size: 24px;
  animation: spinSlow 4s infinite linear;
  display: inline-block;
}

.preparing-banner-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.preparing-banner-title {
  font-family: var(--font-logo);
  font-size: 14px;
  font-weight: 700;
  color: #22c55e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.preparing-banner-desc {
  font-size: 13px;
  color: var(--text-primary);
  font-weight: 500;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 4px 20px 0 rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px 0 rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.4);
  }
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
  100% { transform: rotate(360deg); }
}

/* Custom Toggle Switch Container */
.modal-content label.switch-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background: rgba(34, 197, 94, 0.05) !important;
  border: 1px solid rgba(34, 197, 94, 0.25) !important;
  border-radius: 14px !important;
  margin-bottom: 20px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  user-select: none !important;
  transition: all 0.3s ease !important;
  flex-direction: row !important;
  text-transform: none !important;
  font-weight: normal !important;
}

.modal-content label.switch-container:hover {
  border-color: rgba(34, 197, 94, 0.4) !important;
  background: rgba(34, 197, 94, 0.08) !important;
}

.switch-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.switch-clock-icon {
  width: 18px;
  height: 18px;
  fill: #22c55e;
}

.switch-label-text {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #22c55e !important;
  font-family: var(--font-logo) !important;
  text-transform: none !important;
}

/* Toggle Switch Slider */
.switch-wrapper {
  position: relative;
  width: 46px;
  height: 24px;
}

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

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #2d3748;
  transition: .3s;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #94a3b8;
  transition: .3s;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.switch-checkbox:checked + .switch-slider {
  background-color: #22c55e;
}

.switch-checkbox:checked + .switch-slider:before {
  transform: translateX(22px);
  background-color: #0f172a;
}

/* Intermediate screen widths responsive styles */
@media (max-width: 1200px) and (min-width: 769px) {
  .meta-pill .pill-label {
    display: none !important;
  }
  .gmail-header .header-center {
    margin: 0 10px !important;
    max-width: none !important;
  }
  .account-meta-row {
    gap: 8px !important;
    padding: 5px 12px !important;
  }
}

/* Sidebar Claim Gift Button */
.claim-gift-sidebar-btn {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #f59e0b 100%) !important;
  color: #ffffff !important;
  animation: giftPulse 2s infinite ease-in-out;
  border: none;
}

.claim-gift-sidebar-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 15px rgba(22, 163, 74, 0.4) !important;
  background: linear-gradient(135deg, #22c55e 0%, #f59e0b 100%) !important;
}

@keyframes giftPulse {
  0%, 100% {
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.2), 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3), 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

/* Extra Small Screens (Phones) */
@media (max-width: 480px) {
  .login-card {
    padding: 24px 16px !important;
    margin: 16px !important;
    max-width: calc(100% - 32px) !important;
  }
  .section-header h1 {
    font-size: 20px !important;
  }
  .card {
    padding: 16px 12px !important;
  }
  .table-wrapper {
    margin: 0 -12px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
}

/* --- LUCKY WHEEL STYLES --- */
#wheel-banner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: radial-gradient(circle at 50% 50%, rgba(22, 163, 74, 0.05) 0%, transparent 70%), radial-gradient(circle at 50% 50%, #151a30 0%, #0d1020 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 0 32px;
  margin: 40px 24px 24px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: visible;
  gap: 20px;
  height: 200px;
}

#wheel-banner-container::before {
  display: none !important;
}

/* Left Promo Styling */
.wheel-promo-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  max-width: 32%;
  position: relative;
}

.gift-icon-wrapper {
  font-size: 32px;
  color: #ffffff !important;
  background: rgba(22, 163, 74, 0.25);
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 197, 94, 0.4);
  animation: giftWobble 2.5s infinite ease-in-out;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-icon-wrapper i {
  color: #ffffff !important;
  font-size: 32px !important;
}

.promo-text-group h2 {
  font-family: var(--font-logo);
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.promo-text-group p {
  font-size: 13.5px;
  line-height: 1.5;
  color: #94a3b8;
  margin: 0;
}

.promo-text-group .highlight {
  color: #22c55e;
  font-weight: 700;
}

/* Subheader "Have you submitted your store review?" highlighted in orange */
.promo-text-group h3 {
  color: #22c55e !important; /* Orange highlight */
}

/* Curved pointing guide arrow adjusted closer to the wheel canvas */
.curved-arrow {
  position: absolute;
  right: -38px;
  top: 60%;
  transform: translateY(-50%) rotate(10deg);
  width: 55px;
  height: 55px;
  opacity: 0.85;
}

.arrow-svg {
  width: 100%;
  height: 100%;
}

/* Middle Spinner Styling */
.wheel-spinner-center {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wheel-outer-lights {
  width: 382px !important;
  height: 382px !important;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe17d 0%, #d4af37 60%, #8c6d13 100%);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), inset 0 2px 4px rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 3px solid #332700;
  transform: translateY(-55px) !important;
}

.wheel-pointer {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.wheel-canvas-container {
  width: 370px !important;
  height: 370px !important;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  background: #0f172a;
}

#wheel-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

#btn-wheel-spin-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 86px !important;
  height: 86px !important;
  border-radius: 50%;
  background: radial-gradient(circle, #ffe17d 0%, #d4af37 60%, #8c6d13 100%);
  border: 3px solid #ffffff;
  color: #1e1b4b;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 2px 2px rgba(255,255,255,0.6);
  z-index: 5;
  outline: none;
  font-family: var(--font-logo);
  transition: all 0.15s ease;
}

#btn-wheel-spin-center:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 6px 15px rgba(22, 163, 74, 0.4), inset 0 2px 2px rgba(255,255,255,0.6);
}

/* Outer golden bulbs animation */
@keyframes flashBulbs {
  0%, 100% {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 35px rgba(212, 175, 55, 0.7);
  }
}

.wheel-outer-lights {
  animation: flashBulbs 1.5s infinite ease-in-out;
}

/* Right Panel Styling */
.wheel-panel-right {
  flex: 1;
  max-width: 32%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.wheel-panel-state {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.wheel-panel-state h3 {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.wheel-panel-state p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.btn-wheel-action {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 24px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.3);
  font-family: var(--font-logo);
  width: fit-content;
}

.btn-wheel-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.5);
  background: linear-gradient(135deg, #22c55e 0%, #f59e0b 100%);
}

.btn-wheel-action:active {
  transform: translateY(0);
}

/* Order ID Input Form State */
.wheel-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#wheel-order-id-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 13.5px;
  outline: none;
  box-sizing: border-box;
  text-transform: uppercase;
  transition: border-color 0.2s;
}

#wheel-order-id-input:focus {
  border-color: #22c55e;
}

.wheel-btn-row {
  display: flex;
  gap: 10px;
}

.btn-wheel-submit-btn {
  flex: 1;
  background: #22c55e;
  border: none;
  color: white;
  padding: 10px;
  font-weight: 700;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-logo);
  transition: background-color 0.15s;
}

.btn-wheel-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-wheel-submit-btn:not(:disabled):hover {
  background: #16a34a;
}

.btn-wheel-cancel-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-wheel-cancel-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

/* Checking Loader State */
.checking-loader-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}

.spinner-circle {
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  flex-shrink: 0;
}

.checking-text-group h3 {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  margin: 0 !important;
}

.checking-text-group p {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin: 2px 0 0 0 !important;
}

.btn-wheel-reveal-btn {
  background: #3b82f6;
  border: none;
  color: white;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-logo);
  width: fit-content;
  margin-top: 8px;
  transition: all 0.15s;
}

.btn-wheel-reveal-btn:not(:disabled) {
  background: #10b981;
}

/* Success View / Center Banner Layout */
#wheel-banner-container.success-active {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  height: auto;
  min-height: 200px;
  padding: 28px 32px;
  overflow: hidden;
  margin: 20px 24px 24px 24px;
}

#wheel-banner-container.success-active .wheel-promo-left,
#wheel-banner-container.success-active .wheel-spinner-center,
#wheel-banner-container.success-active .wheel-panel-right {
  display: none !important;
}

.wheel-panel-state-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 500px;
}

.success-icon {
  font-size: 32px;
  margin-bottom: 8px;
  animation: bounce 2s infinite;
}

.wheel-panel-state-success h2 {
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 800;
  color: #10b981;
  margin: 0 0 6px 0;
  line-height: 1.3;
  text-align: center;
  width: 100%;
}

.wheel-panel-state-success p {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 12px 0;
  text-align: center;
  width: 100%;
}

.claimed-key-container {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px dashed rgba(16, 185, 129, 0.3);
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.claimed-key-container code {
  font-family: monospace;
  font-size: 15px;
  color: #10b981;
  font-weight: 700;
  letter-spacing: 1px;
}

.claimed-key-container button {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #10b981;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-logo);
}

.claimed-key-container button:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #ffffff;
}

/* Animations */
@keyframes giftWobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg) scale(1.05); }
  75% { transform: rotate(8deg) scale(1.05); }
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  #wheel-banner-container {
    flex-direction: column;
    padding: 30px 24px;
    gap: 24px;
  }
  
  .wheel-promo-left {
    max-width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .curved-arrow {
    display: none;
  }
  
  .wheel-panel-right {
    max-width: 100%;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  
  .wheel-panel-state {
    align-items: center;
  }
  
  .wheel-input-group {
    width: 100%;
    max-width: 320px;
  }
}

@media (max-width: 480px) {
  #wheel-banner-container {
    margin: 12px 16px;
    padding: 24px 16px;
  }
  
  .promo-text-group h2 {
    font-size: 19px;
  }
  
  .wheel-outer-lights {
    width: 200px;
    height: 200px;
  }
  
  .wheel-canvas-container {
    width: 188px;
    height: 188px;
  }
}

/* --- USER DASHBOARD SPLIT CARDS STYLES --- */
.user-split-inbox {
  display: flex !important;
  flex: none !important;
  gap: 24px;
  padding: 0 24px 24px 24px !important;
  box-sizing: border-box;
}

.user-split-inbox .split-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: auto;
  border-right: none !important; /* Remove old border division line */
}

.split-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.steam-card {
  border: 1px solid rgba(239, 68, 68, 0.08);
  box-shadow: 0 10px 30px rgba(239, 68, 68, 0.02);
  background: linear-gradient(180deg, #fffcfc 0%, #ffffff 100%);
}

.steam-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(239, 68, 68, 0.04);
}

.mail-card {
  border: 1px solid rgba(2, 132, 199, 0.08);
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.02);
  background: linear-gradient(180deg, #fcfdff 0%, #ffffff 100%);
}

.mail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(2, 132, 199, 0.04);
}

.split-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: absolute;
  top: 20px;
  left: 0;
  padding: 0 24px;
  box-sizing: border-box;
}

.split-card .card-title {
  font-size: 14.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-logo);
  color: #1e293b;
}

.split-card .card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.illustration-wrapper {
  width: 150px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 24px;
  margin-bottom: 12px;
}

.steam-illustration {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12) 0%, rgba(34, 197, 94, 0.01) 70%);
}

.mail-illustration {
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.01) 70%);
}

.large-illustration {
  width: 130px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.06));
}

.credentials-pills {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 340px;
}

.meta-pill {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.15s ease-in-out;
  cursor: pointer;
}

.meta-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.red-pill {
  border: 1px solid rgba(239, 68, 68, 0.12);
  box-shadow: inset 0 1px 2px rgba(239, 68, 68, 0.01), 0 2px 6px rgba(239, 68, 68, 0.01);
  transition: all 0.15s ease-in-out;
}

.red-pill:hover {
  border-color: rgba(239, 68, 68, 0.3) !important;
  background: rgba(239, 68, 68, 0.02) !important;
}

.blue-pill {
  border: 1px solid rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 1px 2px rgba(37, 99, 235, 0.01), 0 2px 6px rgba(37, 99, 235, 0.01);
  transition: all 0.15s ease-in-out;
}

.blue-pill:hover {
  border-color: rgba(37, 99, 235, 0.3) !important;
  background: rgba(37, 99, 235, 0.02) !important;
}

.meta-pill .pill-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.meta-pill .pill-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.meta-pill .pill-label {
  font-weight: 700;
  font-size: 13px;
  color: #475569;
  flex-shrink: 0;
}

.meta-pill .pill-value,
.meta-pill .pill-link {
  font-weight: 600;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 2px;
  flex: 1;
  text-decoration: none;
}

.red-pill .pill-icon {
  color: #ef4444;
}

.red-pill .pill-value,
.red-pill .pill-link {
  color: #ef4444;
}

.blue-pill .pill-icon {
  color: #2563eb;
}

.blue-pill .pill-value,
.blue-pill .pill-link {
  color: #2563eb;
}

.meta-pill .pill-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.15s ease;
  margin-left: 8px;
  flex-shrink: 0;
}

.red-pill .pill-copy-btn {
  color: #ef4444;
}

.red-pill .pill-copy-btn:hover {
  background: rgba(239, 68, 68, 0.06);
}

.blue-pill .pill-copy-btn {
  color: #2563eb;
}

.blue-pill .pill-copy-btn:hover {
  background: rgba(37, 99, 235, 0.06);
}

.meta-pill .copy-svg {
  width: 15px;
  height: 15px;
}

.card-section-title {
  font-size: 19px;
  font-weight: 800;
  margin: 12px 0 6px 0;
  font-family: var(--font-logo);
  letter-spacing: -0.3px;
}

.steam-text {
  color: #e11d48;
}

.mail-text {
  color: #1d4ed8;
}

.card-section-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto 24px auto;
}

.btn-steam-action {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%);
  color: white !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.25);
  border: none;
  cursor: pointer;
}

.btn-steam-action:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}

.btn-steam-action:active {
  transform: translateY(0);
}

.btn-mail-action {
  background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
  color: white !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 24px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
  border: none;
  cursor: pointer;
}

.btn-mail-action:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.35);
}

.btn-mail-action:active {
  transform: translateY(0);
}

.action-icon {
  width: 15px;
  height: 15px;
}

/* Mobile responsive modifications for columns */
@media (max-width: 1024px) {
  .user-split-inbox {
    gap: 16px;
    padding: 0 16px 16px 16px !important;
  }
  
  .split-card {
    padding: 36px 20px 24px 20px;
  }
}

/* Custom checking loader pulse animation matching Screen 1 */
.loader-pulse {
  animation: loaderPulse 2s infinite ease-in-out;
}

@keyframes loaderPulse {
  0% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    transform: scale(0.96);
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Orange border & shake animation for Order ID input box */
.shake-orange {
  animation: shakeOrange 0.5s ease-in-out;
  border-color: #22c55e !important;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4) !important;
}

@keyframes shakeOrange {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}


/* Animated Game Poster Wall Background (Clear Poster Wall + Dark Form Card) */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #041209 !important;
}

.login-card-container {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  position: relative !important;
  z-index: 100 !important;
  max-width: 440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  align-self: center !important;
  background: rgba(6, 24, 14, 0.96) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1.5px solid rgba(34, 197, 94, 0.55) !important;
  border-radius: 20px !important;
  box-shadow: 
    0 25px 65px rgba(0, 0, 0, 0.9), 
    0 0 50px rgba(34, 197, 94, 0.38),
    inset 0 0 35px rgba(22, 163, 74, 0.15) !important;
  animation: fadeIn 0.4s ease;
  text-align: center;
  box-sizing: border-box !important;
  padding: 40px 36px !important;
}

#login-form input[type="text"] {
  background: rgba(5, 12, 8, 0.92) !important;
  color: #f8fafc !important;
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65) !important;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  height: 50px !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  width: 100% !important;
}

#login-form input[type="text"]::placeholder {
  color: #64748b !important;
  font-weight: 400 !important;
}

#login-form input[type="text"]:focus {
  background: rgba(8, 20, 13, 0.98) !important;
  border-color: #22c55e !important;
  outline: none !important;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.35), inset 0 2px 6px rgba(0, 0, 0, 0.65) !important;
}

#login-form input[type="text"]:-webkit-autofill,
#login-form input[type="text"]:-webkit-autofill:hover,
#login-form input[type="text"]:-webkit-autofill:focus {
  -webkit-text-fill-color: #f8fafc !important;
  -webkit-box-shadow: 0 0 0px 1000px #050c08 inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

#chk-accept-terms {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  background: rgba(5, 12, 8, 0.95) !important;
  border: 1.5px solid rgba(34, 197, 94, 0.5) !important;
  border-radius: 5px !important;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

#chk-accept-terms:checked {
  background: #22c55e !important;
  border-color: #22c55e !important;
}

#chk-accept-terms:checked::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #050c08;
  border-bottom: 2px solid #050c08;
  transform: rotate(-45deg) translate(1px, -1px);
}

#btn-login:disabled {
  background: rgba(5, 12, 8, 0.85) !important;
  color: #64748b !important;
  border: 1px solid rgba(34, 197, 94, 0.2) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
  cursor: not-allowed;
}

#btn-login:not(:disabled) {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: 0 4px 25px rgba(34, 197, 94, 0.6) !important;
  cursor: pointer;
}

.login-footer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: #94a3b8 !important;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
  background: transparent;
  z-index: 10;
}

.login-footer-bar .footer-left,
.login-footer-bar .footer-right {
  color: #94a3b8 !important;
  font-weight: 500 !important;
}

.login-footer-bar a {
  color: #4ade80 !important;
  font-weight: 700 !important;
}

.game-poster-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #030d07;
}

.game-poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: 
    radial-gradient(circle at 50% 50%, rgba(10, 46, 24, 0.35) 0%, rgba(3, 16, 9, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 16, 9, 0.7) 0%, rgba(10, 46, 24, 0.25) 50%, rgba(3, 16, 9, 0.75) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.game-poster-grid {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
  opacity: 0.85;
  filter: brightness(0.95) contrast(1.1);
  overflow: hidden;
}

.game-poster-column {
  flex: 1 1 0%;
  min-width: 0;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.game-poster-track {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  height: max-content;
  flex-shrink: 0;
  animation: scrollDown 40s linear infinite;
  will-change: transform;
}

.col-1 .game-poster-track { animation-duration: 38s; }
.col-2 .game-poster-track { animation-duration: 46s; animation-delay: -6s; }
.col-3 .game-poster-track { animation-duration: 34s; animation-delay: -12s; }
.col-4 .game-poster-track { animation-duration: 42s; animation-delay: -4s; }
.col-5 .game-poster-track { animation-duration: 36s; animation-delay: -14s; }
.col-6 .game-poster-track { animation-duration: 48s; animation-delay: -8s; }
.col-7 .game-poster-track { animation-duration: 44s; animation-delay: -10s; }
.col-8 .game-poster-track { animation-duration: 38s; animation-delay: -3s; }

@keyframes scrollDown {
  0% {
    transform: translateY(-50%);
  }
  100% {
    transform: translateY(0%);
  }
}

.poster-card {
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  aspect-ratio: 2 / 3;
  background: #072112;
}

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

@media (max-width: 1200px) {
  .col-7, .col-8 { display: none; }
}

@media (max-width: 900px) {
  .col-5, .col-6 { display: none; }
}

@media (max-width: 640px) {
  .login-card {
    padding: 28px 20px !important;
  }
  .login-footer-bar {
    padding: 12px 16px;
    font-size: 12px;
  }
  .game-poster-grid {
    gap: 6px;
  }
  .col-4 { display: none; }
}

/* Dashboard UI Enhancements (Reference 1, 2, 3 Matching) */
.gmail-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  height: 64px !important;
  padding: 0 24px !important;
}

.gmail-sidebar {
  background: #ffffff !important;
  border-right: 1px solid #f1f5f9 !important;
  width: 275px !important;
  display: flex !important;
  flex-direction: column !important;
}

.sidebar-nav .nav-btn {
  border-radius: 50px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  margin-bottom: 6px !important;
  transition: all 0.2s ease !important;
  background: transparent !important;
}

.sidebar-nav .nav-btn.active {
  background: #dcfce7 !important;
  color: #16a34a !important;
  font-weight: 700 !important;
}

.sidebar-nav .nav-btn.claim-gift-sidebar-btn {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3) !important;
}

/* User Split Inbox Cards (Reference 2 Styling) */
.user-split-inbox .meta-pill.red-pill {
  background: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.user-split-inbox .meta-pill.red-pill .pill-label {
  color: #e11d48 !important;
  font-weight: 700 !important;
}

.user-split-inbox .meta-pill.red-pill .pill-value {
  color: #be123c !important;
  font-weight: 700 !important;
  background: #ffe4e6 !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
}

.user-split-inbox .meta-pill.red-pill .pill-copy-btn {
  background: #ffe4e6 !important;
  color: #e11d48 !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  border: none !important;
}

.user-split-inbox .meta-pill.blue-pill {
  background: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 14px !important;
  padding: 12px 16px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.user-split-inbox .meta-pill.blue-pill .pill-label {
  color: #1d4ed8 !important;
  font-weight: 700 !important;
}

.user-split-inbox .meta-pill.blue-pill .pill-value {
  color: #2563eb !important;
  font-weight: 700 !important;
  background: #dbeafe !important;
  padding: 4px 12px !important;
  border-radius: 8px !important;
}

.user-split-inbox .meta-pill.blue-pill .pill-copy-btn {
  background: #dbeafe !important;
  color: #2563eb !important;
  border-radius: 8px !important;
  padding: 6px 10px !important;
  border: none !important;
}

/* Copy button FontAwesome icon visibility */
.pill-copy-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  border: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  background: transparent !important;
  padding: 6px !important;
}

.pill-copy-btn i {
  font-size: 14px !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.red-pill .pill-copy-btn {
  background: #ffe4e6 !important;
  border-radius: 8px !important;
}

.blue-pill .pill-copy-btn {
  background: #dbeafe !important;
  border-radius: 8px !important;
}
