/* ═══════════════════════════════════════════════════════════════
   Authentication & Admin Panel Styles
   Premium glassmorphism design matching the existing portal theme
   ═══════════════════════════════════════════════════════════════ */

/* ── Auth Screen ── */
.auth-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2147483645;
  background: #0f172a;
  display: block; /* Changed from flex to block for full page layout */
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  animation: authFadeIn 0.5s ease;
}

/* ── Background Video Container ── */
.auth-video-bg-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.auth-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
}

.auth-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.05) 0%, rgba(15, 23, 42, 0.1) 45%, rgba(15, 23, 42, 0.25) 100%);
  pointer-events: none;
}

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

/* ═══════════════════════════════════════════════════════════════
   Background & Backdrop Config
   ═══════════════════════════════════════════════════════════════ */

/* Mobile responsiveness adjustments for auth container */
@media (max-width: 900px) {
  .auth-container {
    max-width: 90%;
  }
}


.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

/* ── Auth Card ── */
.auth-card {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: authCardSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes authCardSlide {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Logo Section ── */
.auth-logo-section {
  text-align: center;
  margin-bottom: 1.75rem;
}

.auth-logo-ring {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #cbd5e1 100%);
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2), inset 0 4px 6px rgba(255, 255, 255, 0.9);
  animation: logo3DShimmer 4s infinite alternate ease-in-out;
}

.auth-logo-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.4) 100%);
  pointer-events: none;
}

@keyframes logo3DShimmer {
  0% { transform: translateY(0); box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.2), inset 0 4px 6px rgba(255, 255, 255, 0.9); }
  100% { transform: translateY(-4px); box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.25), inset 0 6px 10px rgba(255, 255, 255, 1); }
}

.auth-logo-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1) inset;
}

.auth-main-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0A1128;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.auth-main-subtitle {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
}

/* ── Auth Tabs ── */
.auth-tabs {
  display: flex;
  gap: 0.35rem;
  background: #F8FAFC;
  border-radius: 0.85rem;
  padding: 0.3rem;
  margin-bottom: 1.5rem;
  border: 1px solid #E2E8F0;
}

.auth-tab {
  flex: 1;
  padding: 0.7rem 0.5rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: #64748B;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.auth-tab:hover {
  color: #0F172A;
  background: #F1F5F9;
}

.auth-tab.active {
  background: #1D4ED8;
  color: white;
  box-shadow: 0 2px 10px rgba(29, 78, 216, 0.2);
}

/* ── Form Panel ── */
.auth-form-panel {
  display: none;
  animation: panelSlideIn 0.3s ease;
}

.auth-form-panel.active {
  display: block;
}

@keyframes panelSlideIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Form Elements ── */
.auth-form-group {
  margin-bottom: 1rem;
}

.auth-label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 0.4rem;
}

.auth-label-icon {
  font-size: 0.85rem;
}

.auth-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #FFFFFF;
  border: 2px solid #E2E8F0;
  border-radius: 0.75rem;
  color: #0F172A;
  font-size: 0.92rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
  box-sizing: border-box;
  font-family: inherit;
}

.auth-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.auth-input:focus {
  border-color: #1D4ED8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
  background: #F8FAFC;
}

.auth-input-wrapper {
  position: relative;
}

.auth-input-wrapper .auth-input {
  padding-right: 3rem;
}

.auth-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  padding: 4px;
}

.auth-toggle-pw:hover {
  opacity: 1;
}

/* ── Error / Success Messages ── */
.auth-error-msg {
  min-height: 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

.auth-success-msg {
  min-height: 1.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 0.5rem;
  transition: all 0.2s;
}

/* ── Submit Button ── */
.auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  border-radius: 0.85rem;
  background: #1D4ED8;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  background: #2563EB;
  box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

.auth-submit-btn:active {
  transform: translateY(0);
}

.auth-register-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 10px 25px -3px rgba(59, 130, 246, 0.5);
}

.auth-register-btn:hover {
  box-shadow: 0 14px 30px -3px rgba(59, 130, 246, 0.6);
}

/* ── Social Media Channels Bar ── */
.auth-social-section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #E2E8F0;
  text-align: center;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.auth-social-divider span {
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.03em;
  background: #F8FAFC;
  padding: 0.25rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  display: inline-block;
}

.auth-social-icons {
  display: flex;
  gap: 0.65rem;
  justify-content: center;
  align-items: stretch;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: none;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 25px -4px rgba(0, 0, 0, 0.6);
}

/* WhatsApp Theme */
.social-icon-btn.whatsapp:hover {
  transform: translateY(-4px) scale(1.1);
}
.whatsapp-circle {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.45);
}

/* Instagram Theme */
.social-icon-btn.instagram:hover {
  transform: translateY(-4px) scale(1.1);
}
.instagram-circle {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.45);
}

/* Twitter / X Theme */
.social-icon-btn.twitter:hover {
  transform: translateY(-4px) scale(1.1);
}
.twitter-circle {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.social-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.social-icon-btn:hover .social-icon-circle {
  transform: scale(1.12) rotate(6deg);
}

.social-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.social-platform {
  font-size: 0.72rem;
  font-weight: 700;
  color: #0F172A;
}

.social-handle {
  font-size: 0.62rem;
  color: #64748B;
  margin-top: 0.15rem;
  font-family: system-ui, sans-serif;
  letter-spacing: -0.01em;
}

@media (max-width: 420px) {
  .auth-social-icons {
    gap: 0.4rem;
  }
  .social-icon-btn {
    padding: 0.55rem 0.25rem;
  }
  .social-icon-circle {
    width: 32px;
    height: 32px;
  }
  .social-platform {
    font-size: 0.68rem;
  }
  .social-handle {
    font-size: 0.58rem;
  }
}

/* ── Auth Footer ── */
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #4b5563;
}

/* ═══════════════════════════════════════
   User Profile Bar (in navbar)
   ═══════════════════════════════════════ */

.user-profile-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.user-profile-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
  flex-shrink: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.user-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #94a3b8;
}

.user-role-badge.admin {
  color: #f59e0b;
}

.user-profile-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ═══════════════════════════════════════
   Admin Panel Styles
   ═══════════════════════════════════════ */

.admin-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.admin-header-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.admin-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.admin-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.admin-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.admin-back-btn {
  border-color: var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
}

/* ── Admin Stats Grid ── */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.admin-stat-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 0.65rem auto;
}

.admin-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.admin-stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Admin Tabs ── */
.admin-tabs {
  display: flex;
  gap: 0.35rem;
  background: var(--bg-card);
  border-radius: 0.85rem;
  padding: 0.35rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

.admin-tab {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.admin-tab:hover {
  background: rgba(124, 58, 237, 0.08);
  color: var(--text-main);
}

.admin-tab.active {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(124, 58, 237, 0.1));
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

/* ── Admin Tab Panel ── */
.admin-tab-panel {
  display: none;
  animation: adminPanelFade 0.3s ease;
}

.admin-tab-panel.active {
  display: block;
}

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

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.admin-section-header h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0;
}

.admin-count-badge {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* ── Admin Table ── */
.admin-table-wrapper {
  overflow-x: auto;
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: var(--card-shadow);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table thead {
  background: rgba(124, 58, 237, 0.08);
}

.admin-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

.admin-table tbody tr:hover {
  background: rgba(124, 58, 237, 0.04);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-email-cell {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: #38bdf8;
}

.admin-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.admin-status-badge.active {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.admin-status-badge.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.admin-code-inline {
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  background: rgba(15, 23, 42, 0.4);
  padding: 0.15rem 0.4rem;
  border-radius: 0.35rem;
  color: #94a3b8;
}

.admin-actions-cell {
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
}

.admin-action-btn {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-action-btn:hover {
  background: rgba(124, 58, 237, 0.2);
  border-color: rgba(124, 58, 237, 0.4);
  transform: scale(1.1);
}

/* ── Admin Codes Grid ── */
.admin-codes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}

.admin-code-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.85rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.admin-code-card.available {
  border-color: rgba(16, 185, 129, 0.25);
}

.admin-code-card.available:hover {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.1);
}

.admin-code-card.used {
  border-color: rgba(239, 68, 68, 0.2);
  opacity: 0.7;
}

.admin-code-value {
  font-family: 'Courier New', monospace;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.admin-code-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.admin-code-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.25rem;
}

/* ── Empty State ── */
.admin-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--bg-card);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
}

.admin-empty-state.small {
  padding: 1.5rem 1rem;
}

.admin-empty-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.admin-empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Admin Sub-heading ── */
.admin-sub-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

/* ── Generate Form ── */
.admin-generate-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--card-shadow);
}

.admin-generate-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-generate-controls {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.admin-gen-result {
  margin-top: 1.25rem;
}

.admin-gen-success h4 {
  color: #4ade80;
  font-size: 1rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   Responsive Adjustments
   ═══════════════════════════════════════ */

@media (max-width: 768px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.25rem;
  }

  .auth-main-title {
    font-size: 1.15rem;
  }

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

  .admin-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .admin-header-info {
    flex-direction: column;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }

  .admin-tab {
    font-size: 0.78rem;
    padding: 0.6rem 0.5rem;
  }

  .admin-table {
    font-size: 0.78rem;
  }

  .admin-table th,
  .admin-table td {
    padding: 0.6rem 0.65rem;
  }

  .user-profile-bar {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .user-details {
    display: none;
  }

  .admin-codes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .auth-screen {
    padding: 0.75rem 0.5rem;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .auth-container {
    max-width: 420px;
    width: 100%;
    margin: auto 0;
  }

  .auth-card {
    padding: 1.25rem 1rem;
    border-radius: 1.25rem;
  }

  .auth-logo-section {
    margin-bottom: 0.85rem;
  }

  .auth-logo-ring {
    width: 60px;
    height: 60px;
    margin: 0 auto 0.5rem auto;
  }

  .auth-logo-badge {
    width: 20px;
    height: 20px;
    font-size: 0.65rem;
    bottom: -3px;
    right: -3px;
  }

  .auth-main-title {
    font-size: 1.15rem;
    line-height: 1.2;
    margin: 0;
  }

  .auth-main-subtitle {
    font-size: 0.75rem;
    margin-top: 0.2rem;
  }

  .auth-tabs {
    margin-bottom: 0.85rem;
    gap: 0.35rem;
  }

  .auth-tab {
    padding: 0.45rem 0.5rem;
    font-size: 0.82rem;
  }

  .auth-form-group {
    margin-bottom: 0.75rem;
  }

  .auth-label {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }

  .auth-input {
    padding: 0.58rem 0.75rem;
    font-size: 0.88rem;
    border-radius: 0.65rem;
  }

  .auth-submit-btn {
    padding: 0.68rem 1rem;
    font-size: 0.92rem;
    margin-top: 0.25rem;
    border-radius: 0.75rem;
  }

  .auth-social-section {
    margin-top: 1rem;
    padding-top: 0.85rem;
  }

  .auth-social-divider {
    margin-bottom: 0.6rem;
  }

  .auth-social-divider span {
    font-size: 0.66rem;
    padding: 0.2rem 0.65rem;
  }

  .auth-social-icons {
    gap: 0.45rem;
  }

  .social-icon-btn {
    padding: 0.5rem 0.2rem;
    border-radius: 0.75rem;
  }

  .social-icon-circle {
    width: 34px;
    height: 34px;
  }

  .social-icon-circle svg {
    width: 17px;
    height: 17px;
  }

  .social-platform {
    font-size: 0.68rem;
  }

  .social-handle {
    font-size: 0.58rem;
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .auth-footer {
    margin-top: 0.75rem;
    font-size: 0.65rem;
    gap: 0.15rem;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .admin-stat-value {
    font-size: 1.4rem;
  }

  .admin-generate-controls {
    flex-direction: column;
  }
}

/* ═══════════════════════════════════════════════════════════════
   New Unified Full-Page Layout Styles
   ═══════════════════════════════════════════════════════════════ */

/* -- Typography & Variables -- */
:root {
  --primary-blue: #1D4ED8;
  --secondary-blue: #3B82F6;
  --text-dark: #1E293B;
  --text-gray: #64748B;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
}

/* -- Top Bar -- */
.top-bar {
  background-color: var(--text-dark);
  color: #f1f5f9;
  font-size: 0.85rem;
  padding: 0.4rem 0;
  width: 100%;
}
.top-bar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-socials {
  display: flex;
  gap: 1rem;
}
.top-bar-socials a {
  color: #cbd5e1;
  transition: color 0.3s;
  display: flex;
  align-items: center;
}
.top-bar-socials a:hover {
  color: var(--white);
}
.top-bar-contact {
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* -- Navbar -- */
.site-navbar {
  position: relative;
  width: 100%;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
  z-index: 1000;
  box-shadow: none;
  padding: 1.25rem 2rem 0.5rem 2rem;
  overflow: visible;
  box-sizing: border-box;
}

.site-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.08);
  font-weight: 800;
  color: #0f2b66;
  font-size: 0.92rem;
}

.navbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.navbar-logo {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  object-fit: cover;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.navbar-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-search {
  background: var(--bg-light);
  border: 1px solid #E2E8F0;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 300px;
}
.navbar-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
}
.navbar-lang {
  color: var(--text-gray);
  font-weight: 600;
  font-size: 0.9rem;
}
.navbar-left {
  display: flex;
  gap: 1rem;
}
.navbar-btn-outline {
  border: 1px solid var(--text-gray);
  background: transparent;
  color: var(--text-dark);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
}
.navbar-btn-filled {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(29, 78, 216, 0.2);
}

/* -- Main Content Container (Anchored in the Blue Left Area on Desktop) -- */
.site-content {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem max(2rem, 4vw);
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Aligned squarely into the clean blue zone on desktop */
}

/* ── Unified 3D 360° Flip Glass Card Scene ── */
.flip-card-3d-scene {
  perspective: 1400px;
  width: 100%;
  max-width: 530px;
  margin: 1.5rem 0 2rem 0; /* Anchored in desktop blue area */
  box-sizing: border-box;
}

.flip-card-3d-flipper {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.25, 1, 0.35, 1), min-height 0.35s ease;
  box-sizing: border-box;
}

.flip-card-3d-flipper.is-flipped {
  transform: rotateY(180deg);
}

/* Common Transparent Glassmorphic Face Styling ("Ultra Clear Frosted Glass") */
.flip-card-3d-face {
  width: 100%;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0.22) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: 
    0 25px 50px -12px rgba(15, 23, 42, 0.22),
    0 10px 20px -5px rgba(29, 78, 216, 0.15),
    inset 0 2px 2px rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(255, 255, 255, 0.25),
    inset 0 0 20px rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  box-sizing: border-box;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
}

/* FACE 1: FRONT (Coming Soon Card) */
.flip-face-front {
  position: relative;
  z-index: 2;
  padding: 2.2rem 1.8rem 2rem;
  text-align: center;
  transform: rotateY(0deg);
}

/* FACE 2: BACK (Portal Login & Register Card - Transparent Glassy) */
.flip-face-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  padding: 1.8rem 1.85rem 2rem;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
}

.flip-card-3d-flipper.is-flipped .flip-face-front {
  pointer-events: none;
}

.flip-card-3d-flipper.is-flipped .flip-face-back {
  pointer-events: all;
  z-index: 3;
}

/* Legacy alias if needed */
.coming-soon-glass-card {
  width: 100%;
  box-sizing: border-box;
}



@keyframes floatCard3D {
  0% {
    transform: translateY(0px) perspective(900px) rotateX(1.5deg) rotateY(-1deg);
    box-shadow: 
      0 20px 45px -10px rgba(15, 23, 42, 0.18),
      0 8px 18px -4px rgba(29, 78, 216, 0.1),
      inset 0 2px 2px rgba(255, 255, 255, 0.95),
      inset 0 0 20px rgba(255, 255, 255, 0.25);
  }
  100% {
    transform: translateY(-8px) perspective(900px) rotateX(-1deg) rotateY(1deg);
    box-shadow: 
      0 30px 60px -15px rgba(15, 23, 42, 0.25),
      0 12px 25px -6px rgba(29, 78, 216, 0.18),
      inset 0 2px 2px rgba(255, 255, 255, 0.95),
      inset 0 0 25px rgba(255, 255, 255, 0.35);
  }
}
.coming-soon-book-wrapper {
  margin: 0 auto 1.25rem auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 800px;
}

.coming-soon-book-img {
  width: 100px;
  height: 142px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 
    0 16px 32px -4px rgba(15, 23, 42, 0.35),
    0 6px 12px -2px rgba(88, 28, 135, 0.25),
    inset 0 1px 2px rgba(255, 255, 255, 0.7);
  transform: rotateY(-8deg) rotateX(4deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  cursor: pointer;
  background: #2e1065;
}

.coming-soon-book-img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.08) translateY(-4px);
  box-shadow: 
    0 24px 44px -6px rgba(15, 23, 42, 0.45),
    0 12px 18px -3px rgba(88, 28, 135, 0.35);
}

.coming-soon-badge-3d {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1.2rem;
  background: linear-gradient(135deg, rgba(224, 242, 254, 0.75) 0%, rgba(186, 230, 253, 0.4) 100%);
  color: #0284c7;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 4px 12px rgba(2, 132, 199, 0.16),
    inset 0 1px 1px #ffffff,
    inset 0 -1px 2px rgba(2, 132, 199, 0.15);
  margin-bottom: 1.1rem;
  backdrop-filter: blur(8px);
}

.coming-soon-title-3d {
  font-size: 3.4rem;
  font-weight: 950;
  letter-spacing: -0.5px;
  line-height: 1.05;
  margin: 0 0 0.85rem 0;
  color: #0f2b66;
  text-shadow: 
    0 1px 0 #93c5fd,
    0 2px 0 #60a5fa,
    0 3px 0 #3b82f6,
    0 4px 0 #1d4ed8,
    0 5px 0 #1e3a8a,
    0 8px 16px rgba(15, 23, 42, 0.25),
    0 15px 30px rgba(37, 99, 235, 0.25);
}

.coming-soon-sub-3d {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9);
}

.coming-soon-desc-3d {
  font-size: 0.92rem;
  color: #475569;
  max-width: 460px;
  margin: 0 auto 1.8rem auto;
  line-height: 1.6;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);
}

.coming-soon-btn-3d {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(180deg, #3b82f6 0%, #1d4ed8 55%, #1e40af 100%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 3.5px solid #0f2b66;
  border-radius: 9999px;
  box-shadow: 
    0 8px 20px rgba(29, 78, 216, 0.4),
    inset 0 2px 2px rgba(255, 255, 255, 0.65),
    inset 0 -2px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.coming-soon-btn-3d:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 55%, #1d4ed8 100%);
  box-shadow: 
    0 12px 26px rgba(29, 78, 216, 0.5),
    inset 0 2px 2px rgba(255, 255, 255, 0.85);
}

.coming-soon-btn-3d:active {
  transform: translateY(2px);
  border-bottom-width: 1.5px;
  box-shadow: 0 4px 10px rgba(29, 78, 216, 0.35);
}

/* ═══════════════════════════════════════════════════════════════
   360° Separate Dimensional Action Icons Dock (360 Degree View)
   ═══════════════════════════════════════════════════════════════ */
.icons-360-container {
  margin-top: 1.5rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.icons-360-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #1e3a8a;
  background: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  margin-bottom: 0.95rem;
  backdrop-filter: blur(8px);
}

.icons-360-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 8px #2563eb;
  animation: pulseDot360 2s infinite ease-in-out;
}

@keyframes pulseDot360 {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* 360 Grid: 3 Distinct Separate Floating Cards */
.icons-360-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  width: 100%;
  box-sizing: border-box;
}

/* Individual 360° Action Glass Card */
.icon-360-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0.5rem 0.9rem;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 249, 255, 0.5) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.35rem;
  box-shadow: 
    0 10px 24px -6px rgba(15, 23, 42, 0.09),
    0 4px 10px -2px rgba(29, 78, 216, 0.08),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px) saturate(190%);
  -webkit-backdrop-filter: blur(16px) saturate(190%);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  overflow: hidden;
}

.icon-360-card:hover {
  transform: translateY(-5px) perspective(600px) rotateX(4deg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 249, 255, 0.75) 100%);
  border-color: #ffffff;
  box-shadow: 
    0 18px 36px -8px rgba(15, 23, 42, 0.18),
    0 8px 18px -4px rgba(29, 78, 216, 0.16),
    inset 0 2px 2px rgba(255, 255, 255, 1);
}

.icon-360-card:active {
  transform: translateY(-1px) scale(0.97);
}

/* Specific Card Glow Borders */
.icon-360-card.card-signin:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 16px 32px -6px rgba(37, 99, 235, 0.32), inset 0 2px 2px #ffffff;
}

.icon-360-card.card-register:hover {
  border-color: rgba(6, 182, 212, 0.7);
  box-shadow: 0 16px 32px -6px rgba(6, 182, 212, 0.32), inset 0 2px 2px #ffffff;
}

.icon-360-card.card-contact:hover {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 16px 32px -6px rgba(16, 185, 129, 0.32), inset 0 2px 2px #ffffff;
}

/* 360° Spherical Orb Components */
.orb-360-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.orb-360 {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

/* 360 Blue Orb (Sign In) */
.orb-360.orb-blue {
  background: radial-gradient(circle at 35% 26%, #93c5fd 0%, #3b82f6 32%, #1d4ed8 70%, #0f2b66 100%);
  box-shadow: 
    0 12px 22px -4px rgba(29, 78, 216, 0.45),
    0 4px 8px rgba(15, 23, 42, 0.18),
    inset 0 3px 4px rgba(255, 255, 255, 0.85),
    inset 0 -5px 10px rgba(15, 43, 102, 0.65);
}

/* 360 Teal Orb (Create Account) */
.orb-360.orb-teal {
  background: radial-gradient(circle at 35% 26%, #a5f3fc 0%, #06b6d4 32%, #0891b2 70%, #164e63 100%);
  box-shadow: 
    0 12px 22px -4px rgba(8, 145, 178, 0.45),
    0 4px 8px rgba(15, 23, 42, 0.18),
    inset 0 3px 4px rgba(255, 255, 255, 0.85),
    inset 0 -5px 10px rgba(22, 78, 99, 0.65);
}

/* 360 Emerald Orb (Contact Us) */
.orb-360.orb-emerald {
  background: radial-gradient(circle at 35% 26%, #a7f3d0 0%, #10b981 32%, #059669 70%, #064e3b 100%);
  box-shadow: 
    0 12px 22px -4px rgba(5, 150, 105, 0.45),
    0 4px 8px rgba(15, 23, 42, 0.18),
    inset 0 3px 4px rgba(255, 255, 255, 0.85),
    inset 0 -5px 10px rgba(6, 78, 59, 0.65);
}

/* 360° Specular Light Reflection (Multi-angle highlight) */
.orb-360 .orb-specular {
  position: absolute;
  top: 6px;
  left: 10px;
  width: 16px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0) 75%);
  transform: rotate(-28deg);
  pointer-events: none;
}

/* 360° Orbiting Ring */
.orb-360 .orb-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.5);
  pointer-events: none;
  animation: orbRingRotate 14s linear infinite;
}

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

/* 3D Elevated Glyph */
.orb-360 .orb-glyph {
  font-size: 1.45rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
  z-index: 2;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 360° Dynamic Spin on Hover */
.icon-360-card:hover .orb-360 {
  transform: rotate(360deg) scale(1.08);
}

.icon-360-card:hover .orb-360 .orb-glyph {
  transform: scale(1.15);
}

/* Typography Inside Separate Cards */
.icon-360-label-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
  margin-bottom: 0.45rem;
}

.icon-360-title {
  font-size: 0.85rem;
  font-weight: 850;
  color: #0f2b66;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
}

.icon-360-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.icon-360-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  color: #1d4ed8;
  background: rgba(224, 242, 254, 0.75);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(186, 230, 253, 0.85);
  transition: all 0.2s ease;
}

.icon-360-card:hover .icon-360-tag {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}

.icon-360-card.card-register .icon-360-tag {
  color: #0891b2;
  background: rgba(207, 250, 254, 0.75);
  border-color: rgba(165, 243, 252, 0.85);
}
.icon-360-card.card-register:hover .icon-360-tag {
  background: #0891b2;
  color: #ffffff;
}

.icon-360-card.card-contact .icon-360-tag {
  color: #059669;
  background: rgba(209, 250, 229, 0.75);
  border-color: rgba(167, 243, 208, 0.85);
}
.icon-360-card.card-contact:hover .icon-360-tag {
  background: #059669;
  color: #ffffff;
}

.icon-360-arrow {
  display: none;
}

/* ── Dedicated 360° Flip Controls & Glass Forms ── */
.flip-trigger-btn {
  width: 100%;
  margin-top: 1rem;
  padding: 0.82rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14) 0%, rgba(6, 182, 212, 0.18) 100%);
  border: 1.5px solid rgba(59, 130, 246, 0.5);
  border-radius: 1rem;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.08), inset 0 1px 1.5px #ffffff;
  backdrop-filter: blur(10px);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.flip-trigger-btn:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.24) 0%, rgba(6, 182, 212, 0.3) 100%);
  border-color: #2563eb;
  color: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(29, 78, 216, 0.2);
}

.flip-icon-spin {
  display: inline-block;
  font-size: 1.15rem;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.flip-trigger-btn:hover .flip-icon-spin {
  transform: rotate(360deg);
}

.flip-badge-360 {
  font-size: 0.68rem;
  font-weight: 900;
  background: #2563eb;
  color: #ffffff;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

/* Flip Back Button on Back Face */
.flip-back-header {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.75rem;
}

.flip-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.95rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  border-radius: 9999px;
  color: #1e3a8a;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
  font-family: inherit;
}

.flip-back-btn:hover {
  background: #ffffff;
  color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.18);
}

.flip-back-btn:hover .flip-icon-spin {
  transform: rotate(-360deg);
}

/* Glass Inputs on Back Face ("Transparent & Glassy") */
.auth-input.glass-input {
  background: rgba(255, 255, 255, 0.72) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), inset 0 1px 1.5px #ffffff !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.auth-input.glass-input:focus {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2), inset 0 1px 1.5px #ffffff !important;
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  padding: 0.75rem;
  border-radius: 0.75rem;
  color: #0f172a;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
  transition: all 0.22s ease;
  font-family: inherit;
}

.auth-google-btn:hover {
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
}

/* ── Site Subscribe & Domain Dock Banner ── */
.site-subscribe-dock {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 1.5rem;
  width: 100%;
  max-width: 530px;
  box-sizing: border-box;
  z-index: 5;
}

.sub-dock-link {
  display: inline-flex;
  align-items: center;
  background: #0f2744;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(15, 39, 68, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.sub-dock-link:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 30px rgba(15, 39, 68, 0.45);
  border-color: rgba(0, 201, 167, 0.6);
}

.sub-dock-link:active {
  transform: translateY(0) scale(0.98);
}

.sub-dock-pill {
  background: linear-gradient(135deg, #00c9a7 0%, #00b497 100%);
  color: #072a24;
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  padding: 0.55rem 1.1rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 4px 12px rgba(0, 201, 167, 0.35);
}

.sub-dock-arrow {
  background: #073831;
  color: #00c9a7;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
}

.sub-dock-url {
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 1.25rem 0.45rem 0.95rem;
  font-family: inherit;
}

/* ── Mobile Top Scene Header (DentSA Logo + View Mode Switcher) ── */
.mobile-scene-header {
  display: none; /* Hidden on desktop screens by default */
  width: 100%;
  max-width: 530px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
  z-index: 10;
}

.mobile-scene-logo-wrap {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mobile-dentsa-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.view-mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 39, 68, 0.85);
  color: #ffffff;
  border: 1.2px solid rgba(255, 255, 255, 0.25);
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  font-family: inherit;
}

.view-mode-toggle-btn:hover {
  background: rgba(15, 39, 68, 0.95);
  border-color: rgba(0, 201, 167, 0.8);
  transform: translateY(-1px);
}

.view-mode-toggle-btn:active {
  transform: scale(0.96);
}

/* ═══════════════════════════════════════════════════════════════
   Responsive Behavior (Mobile & Desktop Full Scene Perfection)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .mobile-scene-header {
    display: flex;
  }

  .site-content {
    align-items: center;
    padding: 1.25rem 1rem 3.5rem 1rem;
  }

  .flip-card-3d-scene {
    margin: 0.5rem auto 1.5rem auto;
    max-width: 480px;
    width: 100%;
  }

  .site-subscribe-dock {
    justify-content: center;
    margin-top: 1rem;
    max-width: 480px;
  }
}

@media (max-width: 640px) {
  .site-content {
    padding: 1rem 0.75rem 2.5rem 0.75rem;
  }

  .mobile-scene-header {
    margin-bottom: 0.75rem;
  }

  .mobile-dentsa-logo {
    height: 42px;
  }

  .view-mode-toggle-btn {
    font-size: 0.72rem;
    padding: 0.42rem 0.75rem;
  }

  .flip-card-3d-scene {
    margin: 0.25rem auto 1.25rem auto;
    max-width: 440px;
  }

  .flip-face-front,
  .flip-face-back {
    padding: 1.4rem 1rem 1.3rem;
    border-radius: 1.6rem;
  }

  .coming-soon-book-wrapper {
    margin-bottom: 0.65rem;
  }

  .coming-soon-book-img {
    width: 82px;
    border-radius: 0.45rem;
  }

  .coming-soon-title-3d {
    font-size: 1.85rem;
    margin-bottom: 0.25rem;
  }

  .coming-soon-sub-3d {
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }

  .coming-soon-desc-3d {
    font-size: 0.75rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
  }

  .icons-360-container {
    margin-top: 0.4rem;
  }

  .icons-360-badge-label {
    font-size: 0.64rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.65rem;
  }

  /* Keep the 3 Action Cards Strictly 3 Columns on Mobile (Matching Screenshot) */
  .icons-360-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
  }

  .icon-360-card {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.65rem 0.2rem 0.55rem !important;
    border-radius: 1rem !important;
  }

  .orb-360-wrapper {
    margin-bottom: 0.3rem;
  }

  .orb-360 {
    width: 40px !important;
    height: 40px !important;
  }

  .orb-360 .orb-glyph {
    font-size: 1.05rem !important;
  }

  .icon-360-label-group {
    align-items: center !important;
    text-align: center !important;
    margin-bottom: 0.3rem !important;
  }

  .icon-360-title {
    font-size: 0.72rem !important;
    line-height: 1.15;
  }

  .icon-360-subtitle {
    font-size: 0.62rem !important;
    margin-top: 0.1rem;
  }

  .icon-360-tag {
    display: inline-block !important;
    font-size: 0.58rem !important;
    padding: 0.16rem 0.45rem !important;
    border-radius: 9999px !important;
    margin-top: 0.15rem;
  }

  .icon-360-arrow {
    display: none !important;
  }

  .flip-trigger-btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.76rem;
    border-radius: 0.85rem;
  }

  .flip-badge-360 {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
  }

  /* Subscribe Dock on Mobile */
  .sub-dock-pill {
    font-size: 0.72rem;
    padding: 0.45rem 0.85rem;
    gap: 0.4rem;
  }

  .sub-dock-arrow {
    width: 17px;
    height: 17px;
    font-size: 0.6rem;
  }

  .sub-dock-url {
    font-size: 0.82rem;
    padding: 0.35rem 0.85rem 0.35rem 0.65rem;
  }
}

@media (max-width: 380px) {
  .coming-soon-title-3d {
    font-size: 1.6rem;
  }

  .coming-soon-book-img {
    width: 72px;
  }

  .icons-360-grid {
    gap: 0.3rem;
  }

  .orb-360 {
    width: 35px !important;
    height: 35px !important;
  }

  .orb-360 .orb-glyph {
    font-size: 0.95rem !important;
  }

  .icon-360-title {
    font-size: 0.68rem !important;
  }

  .icon-360-subtitle {
    font-size: 0.58rem !important;
  }

  .icon-360-tag {
    font-size: 0.54rem !important;
    padding: 0.12rem 0.35rem !important;
  }

  .sub-dock-pill {
    font-size: 0.68rem;
    padding: 0.4rem 0.7rem;
  }

  .sub-dock-url {
    font-size: 0.76rem;
  }
}

/* Video Background Position for Mobile Portrait */
@media (max-width: 960px) and (orientation: portrait) {
  .auth-video-bg {
    object-position: 72% 20%;
  }
}

/* Landscape Mode on Mobile: Display the Natural 16:9 Desktop Split */
@media (max-width: 960px) and (orientation: landscape) {
  .site-content {
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem 2rem;
  }
  .mobile-scene-header {
    display: none;
  }
  .flip-card-3d-scene {
    margin: 0 0 1rem 0;
    max-width: 440px;
  }
  .site-subscribe-dock {
    justify-content: flex-start;
    margin-top: 0.5rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Full 16:9 Canvas Scale Mode (.full-canvas-mode)
   Renders the exact 1024px desktop scene scaled to fit phone screen
   ═══════════════════════════════════════════════════════════════ */
.auth-screen.full-canvas-mode {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: 100vw !important;
  height: 100vh !important;
}

.auth-screen.full-canvas-mode .mobile-scene-header {
  position: fixed;
  top: 0.65rem;
  right: 0.65rem;
  left: auto;
  width: auto;
  max-width: none;
  z-index: 10000;
  display: flex;
  margin: 0;
  padding: 0;
}

.auth-screen.full-canvas-mode .mobile-scene-logo-wrap {
  display: none; /* Logo is already visible in the 16:9 canvas */
}

.auth-screen.full-canvas-mode .view-mode-toggle-btn {
  background: rgba(15, 39, 68, 0.92);
  border-color: #00c9a7;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.auth-screen.full-canvas-mode .site-content {
  width: 1024px !important;
  min-width: 1024px !important;
  max-width: 1024px !important;
  transform: scale(calc(100vw / 1024));
  transform-origin: top left;
  align-items: flex-start !important;
  padding: 1.5rem 2rem 4rem 3rem !important;
  margin: 0 !important;
}

.auth-screen.full-canvas-mode .flip-card-3d-scene {
  margin: 1.5rem 0 2rem 0 !important;
  max-width: 530px !important;
}

.auth-screen.full-canvas-mode .icons-360-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

.auth-screen.full-canvas-mode .auth-video-bg {
  object-fit: cover !important;
  object-position: center top !important;
  width: 100% !important;
  height: 100% !important;
}

/* -- Hero Section -- */
.hero-section-full {
  text-align: center;
  margin-top: 4rem;
  margin-bottom: 3rem;
  max-width: 800px;
}
.hero-main-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}
.hero-arabic-sub {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}
.hero-desc {
  color: var(--text-gray);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-search-bar {
  display: flex;
  background: white;
  border-radius: 9999px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  margin-bottom: 1rem;
}
.hero-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
}
.hero-search-icon {
  background: var(--bg-light);
  padding: 0.75rem;
  border-radius: 50%;
}
.hero-search-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.search-pill {
  background: white;
  border: 1px solid #E2E8F0;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--text-dark);
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
}
.cta-primary {
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}
.cta-secondary {
  background: white;
  color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  padding: 0.8rem 2rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
}

/* -- Category Section -- */
.category-section {
  width: 100%;
  margin-bottom: 4rem;
}
.section-title-ar {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.section-title-ar span {
  font-size: 1rem;
  color: var(--text-gray);
  font-weight: 600;
}
.category-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  /* hide scrollbar */
  scrollbar-width: none;
}
.category-carousel::-webkit-scrollbar {
  display: none;
}
.cat-item {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #F1F5F9;
  transition: transform 0.2s;
}
.cat-item:hover {
  transform: translateY(-5px);
}
.cat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.cat-item p {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0;
}

/* -- Courses + Login Grid (In Blue Area on Desktop) -- */
.courses-section {
  width: 100%;
  max-width: 530px;
  margin-bottom: 5rem;
}
.courses-login-grid {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
}

/* Course Card (kept in CSS in case it's used later) */
.course-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
}
.course-card-body {
  padding: 1.5rem;
}
.course-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}
.course-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.course-tags .tag {
  background: #F1F5F9;
  color: var(--text-gray);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.course-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-gray);
  margin-bottom: 0.25rem;
  text-align: center;
}
.course-meta-vals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
}
.course-card-footer {
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
}
.course-card-footer.green { background: #ECFDF5; }
.course-card-footer.blue { background: #EFF6FF; }
.course-card-footer.orange { background: #FFF7ED; }
.course-enroll-btn {
  flex: 1;
  background: var(--primary-blue);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}

/* Embedded Auth Card */
.auth-card-embedded {
  background: rgba(255, 255, 255, 0.98);
  border: 1.5px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 45px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.8);
  border-radius: 1.75rem;
  padding: 2.2rem 1.85rem;
  backdrop-filter: blur(20px);
  width: 100%;
  max-width: 530px;
  margin: 0;
  box-sizing: border-box;
}
.auth-embed-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

@media (max-width: 960px) {
  .courses-section {
    max-width: 500px;
    margin: 0 auto 4rem auto;
  }
  .courses-login-grid {
    justify-content: center;
  }
  .auth-card-embedded {
    margin: 0 auto;
  }
}

/* -- Site Footer -- */
.site-footer {
  width: 100%;
  background-color: var(--text-dark);
  color: #fff;
  padding: 1.5rem 0;
  margin-top: auto;
}
.site-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-socials {
  display: flex;
  gap: 1.5rem;
}
.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.footer-socials a:hover {
  transform: translateY(-4px) scale(1.15) rotate(5deg);
  box-shadow: 0 8px 15px rgba(0,0,0,0.25);
}

@media (max-width: 900px) {
  .hero-main-title { font-size: 2rem; }
  .navbar-center { display: none; }
  .courses-login-grid { grid-template-columns: 1fr; }
  .auth-card-embedded { grid-row: span 1; position: relative; top: 0; }
  
  /* Mobile navbar fixes to prevent overlap */
  .site-navbar .navbar-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
  }
  .site-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════════════
   3D and Glossy Shine Effects
   ═══════════════════════════════════════════════════════════════ */

/* 3D Book Cover */
.book-cover-wrapper {
  position: relative;
  display: inline-block;
  perspective: 1200px;
}
.book-cover-3d {
  width: 250px; /* Made the book smaller */
  max-width: 90%;
  height: auto;
  border-radius: 4px 12px 12px 4px;
  box-shadow: 
    -10px 10px 20px rgba(0,0,0,0.4),
    inset 4px 0 10px rgba(255,255,255,0.7),
    inset -2px 0 5px rgba(0,0,0,0.3);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
  transform-style: preserve-3d;
}
.book-cover-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}


/* Generic Shine Keyframes */
@keyframes shine {
  0% { left: -100%; opacity: 0; }
  10% { opacity: 1; }
  30% { left: 200%; opacity: 0; }
  100% { left: 200%; opacity: 0; }
}

/* 3D Buttons */
.btn-3d {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15), inset 0 2px 4px rgba(255,255,255,0.5);
}
.btn-3d:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2), inset 0 2px 4px rgba(255,255,255,0.8);
}
.btn-3d:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2), inset 0 1px 2px rgba(255,255,255,0.3);
}


/* 3D Logo Navbar */
.auth-logo-3d {
  position: relative;
  border-radius: 50%;
  box-shadow: 0 8px 15px rgba(0,0,0,0.2), inset 0 4px 6px rgba(255,255,255,0.8);
  transition: transform 0.4s ease;
}
.auth-logo-3d:hover {
  transform: scale(1.1) rotate(5deg);
}

/* ── Reset Password Modal Styles ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.auth-modal-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(226, 232, 240, 0.8);
  max-width: 440px;
  width: 100%;
  padding: 2.2rem 2rem;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.auth-modal-overlay.active .auth-modal-card {
  transform: translateY(0) scale(1);
}

.auth-modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
}

.auth-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: scale(1.08);
}

.auth-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-modal-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 0.85rem auto;
  box-shadow: 0 8px 16px rgba(29, 78, 216, 0.15);
}

.auth-modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.35rem 0;
}

.auth-modal-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

