/* Split-screen authentication design inspired by modern login patterns */

:root {
  /* Default theme variables */
  /* Brand Colors */
  --color-primary: #5F29FF;
  --color-primary-dark: #4D21CC;
  --color-primary-light: #AA8DFF;
  --color-primary-lighter: #EFEAFC;
  --color-primary-lightest: #F8F6FF;

  /* Secondary Colors */
  --color-secondary: #D6DCFF;
  --color-secondary-dark: #899CFF;
  --color-secondary-light: #E8EDFF;

  /* Accent Colors */
  --color-accent-success: #8CFFCF;
  --color-accent-success-light: #F1FFF9;
  --color-accent-error: #FF8686;
  --color-accent-error-light: #FFDFDF;
  --color-accent-warning: #e5a016;
  --color-accent-warning-light: #FFFFE6;
  --color-accent-purple: #faecff;
  --color-accent-blue: #e6f5fa;
  --color-accent-yellow: #fef8e8;
  --color-accent-orange: #fef6e8;
  --color-accent-red: #fdeceb;
  --color-accent-green: #e3e9e5;
  --color-accent-grey: #cccccc;
  --color-accent-dark: #333333;
  --color-accent-light: #f2f2f2;

  /* Text Colors */
  --color-text-primary: #0D065B;
  --color-text-secondary: #5F29FF;
  --color-text-tertiary: #6C6C6C;
  --color-text-light: #FFFFFF;
  --color-text-light-muted: rgba(255, 255, 255, 0.8);

  /* Background Colors */
  --color-bg-primary: linear-gradient(to bottom right, #EFEAFC, #D6DCFF, #EFEAFC);
  --color-bg-secondary: #FFFFFF;
  --color-bg-tertiary: #EFEAFC;
  --color-bg-primary-translucent: rgba(255, 255, 255, 0.8);
  --color-bg-hover: rgba(239, 234, 252, 0.5);

  /* UI Element Colors */
  --color-border: #E5E7EB;
  --color-shadow: rgba(0, 0, 0, 0.1);

  /* Animation Timing */
  --transition-slow: 0.5s ease;
  --transition-medium: 0.3s ease;
  --transition-fast: 0.15s ease;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Font Sizes */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 5rem;

  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  /* Component Specific */
  --navbar-height: 64px;
  --footer-height: 80px;
  --avatar-size-sm: 36px;
  --avatar-size-md: 52px;
  --avatar-size-lg: 56px;

  /* Layout variables - default to left-aligned */
  --content-width: 100%;
  --content-max-width: 1200px;
  --primary-alignment: left;
  --secondary-alignment: left;

  /* Gradients and Enhanced Colors */
  --color-gradient-primary: linear-gradient(to bottom right, #EFEAFC, #D6DCFF, #EFEAFC);
  --color-gradient-secondary: linear-gradient(to right, #EFEAFC, #EFEAFC);
  --color-gradient-tertiary: linear-gradient(135deg, #4D21CC, #5F29FF);
  --color-primary-darkest: #0D065B;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-focus: 0 0 0 3px rgba(95, 41, 255, 0.2);
  --blur-sm: 8px;
  --max-width-md: 28rem;
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0D065B;
  background: #F8F5FF;
}

/* ==========================================================================
     Techtok Site Header (Exact 1:1 match with homepage techtok.me)
     ========================================================================== */
.header,
.auth-site-header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(95, 41, 255, 0.08);
  padding-top: var(--spacing-lg, 1.5rem);
  padding-bottom: var(--spacing-lg, 1.5rem);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  z-index: 100;
}

.header-content,
.auth-header-inner {
  max-width: 90%;
  margin: 0 auto;
  padding-left: var(--spacing-xs, 0.25rem);
  padding-right: var(--spacing-xs, 0.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo,
.auth-header-logo {
  display: flex;
  align-items: center;
}

.header-logo-link,
.auth-header-logo {
  color: var(--color-primary, #5F29FF);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color var(--transition-medium, 0.3s ease);
}

.header-logo-link:hover,
.auth-header-logo:hover {
  color: var(--color-primary-dark, #4D21CC);
}

.header-logo-img,
.footer-logo-image,
.auth-header-logo img {
  max-height: 40px;
  height: 2rem;
  width: auto;
  display: block;
}

.header-nav,
.auth-header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link,
.auth-nav-link {
  color: var(--color-primary, #5F29FF);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}

.nav-link:hover,
.auth-nav-link:hover {
  opacity: 1;
}

.nav-link::after,
.auth-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary, #5F29FF);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.auth-nav-link:hover::after,
.auth-nav-link.active::after {
  width: 100%;
}

.header-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 0.75rem;
}

/* Shown in place of Inloggen/Registreren once the visitor is signed in.
   The name is truncated, never wrapped - wrapping would grow the header
   or shove the Account button around. */
.header-welcome {
  display: inline-flex;
  align-items: baseline;
  font-size: 0.9rem;
  color: var(--color-text-secondary, #4a5568);
  white-space: nowrap;
  min-width: 0;
  flex-shrink: 1;
  overflow: hidden;
}

.header-welcome strong {
  color: var(--color-primary, #5F29FF);
  margin-left: 4px;
  display: inline-block;
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

.header-auth-group .login-button,
.header-auth-group .login-btn-secondary {
  flex-shrink: 0;
}

.login-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  min-height: 42px;
  background-color: #F3EFFE;
  color: var(--color-primary, #5F29FF) !important;
  border: 1.5px solid rgba(95, 41, 255, 0.22);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  opacity: 1 !important;
  box-sizing: border-box;
}

.login-btn-secondary::after {
  display: none !important;
  content: none !important;
}

.login-btn-secondary:hover {
  background-color: #E8E0FE;
  border-color: var(--color-primary, #5F29FF);
  color: var(--color-primary, #5F29FF) !important;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.login-btn-secondary:active,
.login-btn-secondary.active {
  background-color: #E0D5FD;
  border-color: var(--color-primary, #5F29FF);
}

.login-button,
.auth-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  min-height: 42px;
  background-color: var(--color-primary, #5F29FF);
  color: #FFFFFF !important;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  opacity: 1 !important;
  box-sizing: border-box;
}

.login-button::after,
.auth-nav-btn::after {
  display: none !important;
  content: none !important;
}

.login-button:hover,
.auth-nav-btn:hover {
  background-color: var(--color-primary-light, #8552FF);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

.login-icon,
.auth-nav-btn i,
.auth-nav-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.login-icon,
.auth-nav-btn i,
.auth-nav-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-mobile-link.login-button,
.auth-drawer-btn {
  background-color: var(--color-primary, #5F29FF) !important;
  color: var(--color-text-light, #FFFFFF) !important;
  font-weight: var(--font-weight-medium, 500) !important;
  margin-top: 0.5rem;
  border-radius: var(--radius-lg, 0.75rem) !important;
}

.auth-drawer-btn i,
.auth-drawer-btn svg {
  color: #FFFFFF !important;
}

/* ==========================================================================
     Exact Homepage Mobile Menu Styles (src/css/mobile-menu.css)
     ========================================================================== */
.mobile-menu-button {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-primary, #5F29FF);
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.mobile-menu-button i,
.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.nav-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80%;
  max-width: 20rem;
  background-color: white;
  z-index: 101;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
}

.nav-sidebar.open {
  transform: translateX(0);
}

.nav-sidebar-header {
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.nav-sidebar-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #333;
}

.nav-sidebar-close {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}

.nav-sidebar-close i,
.nav-sidebar-close svg {
  width: 24px;
  height: 24px;
}

.nav-sidebar-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-mobile-link {
  width: 100%;
  padding: 0.875rem 1rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #333;
  text-decoration: none;
  transition: background-color 0.2s;
  font-weight: 500;
  font-size: 1rem;
  box-sizing: border-box;
}

.nav-mobile-link:hover {
  background-color: #f5f5f5;
}

.nav-mobile-link i,
.nav-mobile-link svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary, #5F29FF);
}

.nav-mobile-link.login-button {
  background-color: var(--color-primary, #5F29FF);
  color: white !important;
  font-weight: var(--font-weight-medium, 500);
  margin-top: 0.5rem;
  border-radius: var(--radius-lg, 0.75rem);
}

.nav-mobile-link.nav-mobile-welcome {
  font-weight: 700;
  color: var(--color-text-primary, #0D065B);
  cursor: default;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-mobile-link.nav-mobile-welcome:hover {
  background-color: transparent;
}

.nav-mobile-link.login-button i,
.nav-mobile-link.login-button svg {
  color: white !important;
}

.nav-mobile-link.login-button:hover {
  background-color: var(--color-primary-light, #8552FF) !important;
}

/* Page Wrapper & Full-Width Split Layout */
.auth-page-wrapper {
  min-height: calc(100vh - 72px);
  width: 100%;
  display: flex;
  padding: 0;
  margin: 0;
  background: #FFFFFF;
  box-sizing: border-box;
}

.auth-main-card {
  width: 100%;
  max-width: 100%;
  background: #FFFFFF;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: flex;
  min-height: calc(100vh - 72px);
}

/* Left side - Welcome Hero (Background fills left half, content bounded) */
.auth-left-hero {
  flex: 1.15;
  background: radial-gradient(circle at 15% 15%, rgba(250, 255, 5, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 92, 122, 0.15) 0%, transparent 45%),
    linear-gradient(155deg, #5F29FF 0%, #38119C 100%);
  padding: 64px 56px;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.auth-left-hero-inner {
  max-width: 520px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* Right Form Section (Background fills right half, content bounded) */
.auth-right-form {
  flex: 1;
  background: #FFFFFF;
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

/* Legacy aliases for backwards compatibility */
.auth-welcome-side {
  flex: 1.15;
  background: radial-gradient(circle at 15% 15%, rgba(250, 255, 5, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(255, 92, 122, 0.14) 0%, transparent 45%),
    linear-gradient(155deg, #5F29FF 0%, #38119C 100%);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Decorative geometric shapes */
.auth-decoration {
  position: absolute;
  border-radius: 50px;
  opacity: 0.25;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

.auth-decoration:nth-child(1) {
  width: 120px;
  height: 200px;
  background: linear-gradient(135deg, #ff6b9d, #ffa07a);
  top: 15%;
  left: 10%;
  transform: rotate(-25deg);
  animation-delay: 0s;
}

.auth-decoration:nth-child(2) {
  width: 80px;
  height: 150px;
  background: linear-gradient(135deg, #ffa07a, #ffd700);
  top: 50%;
  left: 15%;
  transform: rotate(15deg);
  animation-delay: 1s;
}

.auth-decoration:nth-child(3) {
  width: 100px;
  height: 180px;
  background: linear-gradient(135deg, #ff6b9d, #c084fc);
  bottom: 20%;
  left: 20%;
  transform: rotate(-15deg);
  animation-delay: 2s;
}

.auth-decoration:nth-child(4) {
  width: 150px;
  height: 80px;
  background: linear-gradient(135deg, #ffa07a, #ff6b9d);
  top: 30%;
  right: 15%;
  transform: rotate(45deg);
  animation-delay: 1.5s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) rotate(var(--rotate, 0deg));
  }

  50% {
    transform: translateY(-20px) rotate(var(--rotate, 0deg));
  }
}

/* Welcome content styling */
.auth-welcome-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 520px;
}

/* Clean Tagline / Kicker */
.auth-kicker,
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
  background: none;
  border: none;
  padding: 0;
}

.auth-kicker i,
.auth-kicker svg,
.auth-brand-badge i,
.auth-brand-badge svg {
  width: 15px;
  height: 15px;
  color: #FAFF05;
}

.auth-welcome-title,
.auth-hero-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.auth-welcome-text,
.auth-hero-text {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* Pricing Feature Card - High Focus */
.auth-price-highlight,
.auth-price-card {
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 18px;
  color: #FFFFFF;
}

.auth-price-tag,
.auth-price-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.auth-price-tag strong,
.auth-price-amount {
  font-size: 30px;
  font-weight: 800;
  color: #FAFF05;
  letter-spacing: -0.5px;
  line-height: 1;
}

.auth-price-term {
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  opacity: 0.95;
}

.auth-price-detail,
.auth-price-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  margin: 0;
}

/* Mobile In-Form Price & Trial Summary (Desktop: Hidden, Mobile: Visible) */
.auth-mobile-price-card {
  display: none;
}

/* Clean Hero Pricing & Value Pills (High-Converting & Desirable) */
.auth-price-badge-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.auth-hero-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 7px 16px;
  color: #FFFFFF;
}

.auth-hero-price-pill .price-val {
  font-size: 24px;
  font-weight: 800;
  color: #FAFF05;
  letter-spacing: -0.5px;
  line-height: 1;
}

.auth-hero-price-pill .price-lbl {
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0.95;
}

.auth-trial-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(250, 255, 5, 0.18);
  color: #FAFF05;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 9999px;
}

.auth-trial-tag i,
.auth-trial-tag svg {
  width: 14px;
  height: 14px;
}

.auth-value-bullets {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 14px;
  color: #FFFFFF;
  line-height: 1.35;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-bullet-item:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(3px);
}

.auth-bullet-item i,
.auth-bullet-item svg {
  width: 17px;
  height: 17px;
  color: #8CFFCF;
  flex-shrink: 0;
}

.auth-bullet-item strong {
  color: #FFFFFF;
  font-weight: 700;
}

.auth-hero-trust-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  line-height: 1.4;
}

/* Scannable Hero Highlights (Login / Brand value) */
.auth-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-highlight-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-highlight-row:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(3px);
}

.auth-highlight-icon {
  width: 40px;
  height: 40px;
  background: rgba(250, 255, 5, 0.16);
  border: 1px solid rgba(250, 255, 5, 0.35);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FAFF05;
  flex-shrink: 0;
}

.auth-highlight-icon i,
.auth-highlight-icon svg {
  width: 20px;
  height: 20px;
}

.auth-highlight-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-highlight-content strong {
  font-size: 15.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
}

.auth-highlight-content span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.3;
}

/* Shaded Perk / Feature Cards - Clean & Focused without Icon Clutter */
.auth-features-list,
.auth-perk-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-feature-item,
.auth-perk-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.auth-feature-item:hover,
.auth-perk-item:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(3px);
}

.auth-feature-title,
.auth-perk-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.auth-feature-desc,
.auth-perk-sub {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.auth-price-term {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.auth-price-desc {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

/* Pricing & Trust note below submit button */
.auth-pricing-note,
.auth-trust-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #4C466D;
  text-align: center;
  background: #F4F1FA;
  padding: 9px 14px;
  border-radius: 12px;
  border: 1px solid #EAE4F5;
  line-height: 1.35;
}

.auth-pricing-note i,
.auth-pricing-note svg,
.auth-trust-note i,
.auth-trust-note svg {
  width: 16px;
  height: 16px;
  color: #10B981;
  flex-shrink: 0;
}

.auth-pricing-note strong {
  color: #0D065B;
  font-weight: 700;
}

/* Micro-footer right below reassurance */
.auth-legal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 8px;
  row-gap: 4px;
  margin-top: 14px;
  font-size: 12.5px;
  color: #8E8A9F;
  text-align: center;
}

.auth-legal-footer a {
  color: var(--color-primary, #5f29ff);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.auth-legal-footer a:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.auth-legal-footer span {
  white-space: nowrap;
}

.auth-legal-footer span.divider-dot {
  opacity: 0.4;
}

/* Right side - Form section */
.auth-form-side {
  flex: 1;
  background: #FDFBFF;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

/* Sticky Quick-switch Tabs */
.auth-tabs {
  display: flex;
  background: #EFEAFC;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 24px;
  gap: 4px;
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: 0 4px 12px rgba(13, 6, 91, 0.05);
  border: 1px solid rgba(95, 41, 255, 0.08);
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-primary, #5F29FF);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.auth-tab.active {
  background: white;
  color: #0D065B;
  box-shadow: 0 2px 8px rgba(13, 6, 91, 0.08);
}

.auth-tab:not(.active):hover {
  background: rgba(255, 255, 255, 0.6);
}

/* Context Banner (e.g. from PlayQuest) */
.auth-context-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #EEF2FF, #E0E7FF);
  border: 1.5px solid #C7D2FE;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 20px;
  color: #3730A3;
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 500;
}

.auth-context-banner i,
.auth-context-banner svg {
  width: 20px;
  height: 20px;
  color: #4F46E5;
  flex-shrink: 0;
}

.auth-form-header {
  text-align: left;
  margin-bottom: 24px;
}

.auth-form-title {
  font-size: 28px;
  font-weight: 800;
  color: #0D065B;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-form-subtitle {
  font-size: 14.5px;
  color: #6C6C6C;
  line-height: 1.4;
}

/* Form styling with icons */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.auth-form-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #0D065B;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: #8E8A9F;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  max-width: 100%;
  padding: 13px 44px 13px 44px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-size: 16px;
  /* 16px prevents iOS Safari from auto-zooming & stretching the viewport on focus */
  line-height: 1.4;
  color: #0D065B;
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.auth-input:focus {
  border-color: var(--color-primary, #5F29FF);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(95, 41, 255, 0.14);
  outline: none;
}

.auth-input::placeholder {
  color: #A0A5BA;
  font-size: 14.5px;
}

/* Password Toggle */
.auth-pwd-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #8E8A9F;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-pwd-toggle:hover {
  color: var(--color-primary, #5F29FF);
  background: #F1EDFE;
}

.auth-pwd-toggle i,
.auth-pwd-toggle svg {
  width: 18px;
  height: 18px;
}

/* Form extras (remember me, forgot password) */
.auth-form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -4px;
}

.auth-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-checkbox {
  width: 17px;
  height: 17px;
  cursor: pointer;
  accent-color: var(--color-primary, #5F29FF);
}

.auth-checkbox-label {
  font-size: 13.5px;
  color: #555;
  cursor: pointer;
}

.auth-forgot-link {
  font-size: 13.5px;
  color: var(--color-primary, #5F29FF);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--color-primary-light, #8552FF);
  text-decoration: underline;
}

/* Submit button */
.auth-submit-btn {
  width: 100%;
  padding: 15px 20px;
  background: var(--color-primary, #5F29FF);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  background-color: var(--color-primary-light, #8552FF);
}

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

/* Divider and alternate action */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}

.auth-divider-text {
  font-size: 13px;
  color: #9CA3AF;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-alternate {
  text-align: center;
}

.auth-alternate-text {
  font-size: 14px;
  color: #6C6C6C;
  margin-bottom: 12px;
}

.auth-alternate-link {
  display: inline-block;
  padding: 12px 32px;
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-alternate-link:hover {
  background: #f5f0ff;
  transform: translateY(-2px);
}

/* Message/Alert styling */
.auth-message {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-message-success {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.auth-message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

.auth-message a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  margin-left: auto;
}

/* Back link styling */
.auth-back-link {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.auth-back-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Top-right user menu pill in portal hero header */
.portal-user-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  padding: 6px 16px;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.portal-user-badge a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.portal-user-badge a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.portal-user-badge .divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.4);
}

/* Responsive design for mobile & tablet */
@media (max-width: 1024px) {

  .header,
  .auth-site-header {
    padding-top: 0.875rem !important;
    padding-bottom: 0.875rem !important;
  }

  .header-logo-img,
  .footer-logo-image,
  .auth-header-logo img {
    height: 1.75rem !important;
    max-height: 32px !important;
  }

  .header-nav,
  .auth-header-nav {
    display: none !important;
  }

  .mobile-menu-button,
  .auth-mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: var(--color-primary, #5F29FF);
  }

  .auth-page-wrapper {
    padding: 0;
    min-height: auto;
    background: #5F29FF;
  }

  .auth-main-card {
    flex-direction: column;
    background: transparent;
    min-height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-left-hero {
    padding: 28px 20px 22px;
    text-align: center;
    align-items: center;
    background: transparent;
  }

  .auth-left-hero-inner {
    max-width: 100%;
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .auth-kicker,
  .auth-brand-badge,
  .auth-hero-badge {
    align-self: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.92;
  }

  .auth-hero-title,
  .auth-welcome-title {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.25;
    text-align: center;
    max-width: 340px;
    letter-spacing: -0.02em;
  }

  .auth-hero-text,
  .auth-welcome-text {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 0;
    max-width: 320px;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
  }

  .auth-perk-list,
  .auth-features-list,
  .auth-price-card,
  .auth-price-highlight,
  .auth-price-badge-row,
  .auth-value-bullets,
  .auth-highlights-list,
  .auth-hero-trust-note {
    display: none !important;
    /* Keep mobile top hero ultra clean and form upfront */
  }

  .auth-highlight-row {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.09);
  }

  .auth-highlight-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
    background: rgba(250, 255, 5, 0.15);
    border: 1px solid rgba(250, 255, 5, 0.3);
  }

  .auth-highlight-icon i,
  .auth-highlight-icon svg {
    width: 17px;
    height: 17px;
  }

  .auth-highlight-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .auth-highlight-content strong {
    font-size: 13.5px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.25;
  }

  .auth-highlight-content span {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.3;
  }

  .auth-right-form {
    padding: 28px 20px 48px;
    width: 100%;
    align-items: center;
    background: #FFFFFF;
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -12px 36px rgba(13, 6, 91, 0.12);
    box-sizing: border-box;
  }

  .auth-form-container {
    max-width: 440px;
    width: 100%;
  }

  /* Mobile Price Card inside form */
  .auth-mobile-price-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #F7F4FF;
    border: 1px solid rgba(95, 41, 255, 0.16);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    text-align: left;
  }

  .auth-mobile-price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .auth-mobile-price-amount {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #0D065B;
  }

  .auth-mobile-price-amount strong {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary, #5F29FF);
    letter-spacing: -0.5px;
  }

  .auth-mobile-price-period {
    font-size: 12px;
    font-weight: 600;
    color: #4B4580;
  }

  .auth-mobile-price-badge {
    background: var(--color-primary, #5F29FF);
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .auth-mobile-price-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #2D147A;
    font-weight: 500;
    line-height: 1.35;
  }

  .auth-mobile-price-details span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-wrap: pretty;
  }

  .auth-mobile-price-details i,
  .auth-mobile-price-details svg {
    width: 13px;
    height: 13px;
    color: #10B981;
    stroke-width: 2.5;
    flex-shrink: 0;
  }

  .auth-tabs {
    position: sticky;
    top: 16px;
    z-index: 20;
    box-shadow: 0 4px 16px rgba(13, 6, 91, 0.08);
    background: rgba(239, 234, 252, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .auth-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .auth-page-wrapper {
    padding: 10px 8px 30px;
  }

  .auth-left-hero {
    padding: 20px 16px 16px;
  }

  .auth-right-form {
    padding: 20px 16px 32px;
  }

  .auth-hero-title {
    font-size: 1.5em;
  }

  .auth-form-title {
    font-size: 22px;
  }

  .auth-form-extras {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }
}

/* Portal page styles for logged-in dashboard */
.portal-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f0ff, #faf5ff);
}

.portal-logo {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0.95;
}

.portal-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.portal-nav {
  display: flex;
  gap: 12px;
  margin: -40px 0 40px;
  background: white;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
  flex-wrap: wrap;
}

.portal-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.portal-nav-link svg {
  width: 20px;
  height: 20px;
}

.portal-nav-link:hover {
  background: #f5f0ff;
  color: var(--color-primary);
}

.portal-nav-link-active {
  background: var(--color-primary);
  color: white;
}

.portal-nav-link-active:hover {
  color: var(--color-primary-dark);
}

/* Admin statistics cards */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.admin-stat-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
}

.admin-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.admin-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-stat-icon svg {
  width: 28px;
  height: 28px;
  color: white;
  stroke-width: 2;
}

.admin-stat-icon-total {
  background: linear-gradient(135deg, #5F29FF, #8552FF);
}

.admin-stat-icon-pending {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.admin-stat-icon-active {
  background: linear-gradient(135deg, #10b981, #34d399);
}

.admin-stat-icon-campaign {
  background: linear-gradient(135deg, #4f46e5, #818cf8);
}

.admin-stat-icon-expired {
  background: linear-gradient(135deg, #ef4444, #f87171);
}

.admin-stat-content {
  flex: 1;
}

.admin-stat-value {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.admin-stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

/* Admin table container */
.admin-table-container {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.admin-table-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.admin-table-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.admin-table-subtitle {
  font-size: 16px;
  color: #666;
}

.admin-table-wrapper {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table thead {
  background: #fafafa;
}

.admin-table th {
  padding: 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid #e5e5e5;
}

.admin-table td {
  padding: 20px 16px;
  border-bottom: 1px solid #f0f0f0;
  font-size: 15px;
  color: #333;
}

.admin-table tbody tr {
  transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
  background: #fafafa;
}

/* User cell with avatar */
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.admin-user-name {
  font-weight: 600;
  color: #1a1a1a;
}

/* Status badges */
.admin-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.admin-status-pending_payment {
  background: #fef3c7;
  color: #92400e;
}

.admin-status-active {
  background: #d1fae5;
  color: #065f46;
}

.admin-status-expired {
  background: #fee2e2;
  color: #991b1b;
}

.admin-status-cancelled {
  background: #e5e5e5;
  color: #404040;
}

/* Date cell */
.admin-date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-date-end {
  font-size: 13px;
  color: #888;
}

.admin-no-data {
  color: #ccc;
  font-size: 18px;
}

/* Admin toggle button */
.admin-toggle-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  border: 2px solid #e5e5e5;
  background: white;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-toggle-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.admin-toggle-active {
  background: var(--color-primary);
  color: white;
  border-color: transparent;
}

.admin-toggle-active:hover {
  color: var(--color-primary-dark);
}

/* Admin action form and select */
.admin-action-form {
  display: inline-block;
}

.admin-select {
  padding: 8px 16px;
  border: 2px solid #e5e5e5;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
}

.admin-select:hover {
  border-color: var(--color-primary);
}

.admin-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(95, 41, 255, 0.1);
}

/* Profile message styling */
.profile-message {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 32px;
  font-size: 15px;
  font-weight: 600;
  animation: slideIn 0.3s ease;
}

.profile-message-success {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.profile-message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

/* Responsive admin styles */
@media (max-width: 968px) {
  .portal-content {
    padding: 0 30px 60px;
  }

  .portal-nav {
    margin: -30px 0 30px;
  }

  .admin-stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .admin-table-container {
    padding: 24px;
  }

  .admin-table-wrapper {
    overflow-x: scroll;
  }

  .admin-table {
    min-width: 800px;
  }
}

@media (max-width: 480px) {
  .portal-content {
    padding: 0 20px 40px;
  }

  .portal-nav {
    flex-direction: column;
    margin: -30px 0 30px;
  }

  .portal-nav-link {
    width: 100%;
    justify-content: flex-start;
  }

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

  .admin-table-container {
    padding: 20px;
  }

  .admin-stat-card {
    padding: 20px;
  }

  .admin-stat-value {
    font-size: 28px;
  }
}

/* Welcome content styling */
.auth-welcome-content {
  position: relative;
  z-index: 10;
  color: white;
  max-width: 500px;
}

/* Added logo styling */
.auth-logo {
  width: 180px;
  height: auto;
  margin-bottom: 24px;
  opacity: 0.95;
}

.auth-welcome-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.auth-welcome-text {
  font-size: 18px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 30px;
}

.auth-welcome-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  opacity: 0.9;
}

.auth-feature-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right side - Form section */
.auth-form-side {
  flex: 1;
  background: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-form-title {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.auth-form-subtitle {
  font-size: 16px;
  color: #666;
  line-height: 1.5;
}

/* Form styling with icons */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #999;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  color: #1a1a1a;
  background: #fafafa;
  transition: all 0.3s ease;
  outline: none;
}

.auth-input:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(95, 41, 255, 0.1);
}

.auth-input::placeholder {
  color: #999;
}

/* Form extras (remember me, forgot password) */
.auth-form-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: -8px;
}

.auth-checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.auth-checkbox-label {
  font-size: 14px;
  color: #666;
  cursor: pointer;
}

.auth-forgot-link {
  font-size: 14px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.auth-forgot-link:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

/* Submit button with gradient */
.auth-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
}

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

/* Divider and alternate action */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
}

.auth-divider-line {
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

.auth-divider-text {
  font-size: 14px;
  color: #999;
}

.auth-alternate {
  text-align: center;
}

.auth-alternate-text {
  font-size: 15px;
  color: #666;
  margin-bottom: 12px;
}

.auth-alternate-link {
  display: inline-block;
  padding: 12px 32px;
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-alternate-link:hover {
  background: #f5f0ff;
  transform: translateY(-2px);
}

/* Message/Alert styling */
.auth-message {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-message-success {
  background: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.auth-message-error {
  background: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

.auth-message a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  margin-left: auto;
}

/* Back link styling */
.auth-back-link {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.auth-back-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Responsive design for mobile */
@media (max-width: 968px) {
  .auth-split-container {
    flex-direction: column;
  }

  .auth-welcome-side {
    min-height: 40vh;
    padding: 40px 30px;
  }

  .auth-welcome-title {
    font-size: 36px;
  }

  .auth-welcome-text {
    font-size: 16px;
  }

  .auth-form-side {
    padding: 40px 30px;
  }

  .auth-back-link {
    top: 20px;
    right: 20px;
  }

  .auth-decoration {
    display: none;
  }
}

@media (max-width: 480px) {

  .auth-welcome-side,
  .auth-form-side {
    padding: 30px 20px;
  }

  .auth-form-title {
    font-size: 28px;
  }

  .auth-form-extras {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* Modern dashboard styles for index.php */

/* Dashboard container */
.portal-dashboard {
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f0ff 0%, #faf5ff 100%);
}

/* Hero section with Techtok signature brand gradient */
.portal-hero {
  background: linear-gradient(135deg, #0D065B 0%, #200E6E 45%, #4C1D95 75%, #5F29FF 100%);
  padding: 88px 32px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 3px solid rgba(255, 230, 0, 0.2);
}

.portal-hero-content {
  position: relative;
  z-index: 10;
  max-width: 840px;
  margin: 16px auto 0;
  color: white;
}

.portal-hero-logo {
  width: 170px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  opacity: 1;
}

.portal-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.portal-hero-subtitle {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 32px;
  line-height: 1.5;
  color: #E2E8F0;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.portal-hero-user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.portal-hero-greeting {
  font-size: 16px;
  color: #F1F5F9;
}

.portal-hero-greeting strong {
  font-weight: 700;
  color: #FFE600;
}

.portal-hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.portal-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Same yellow as the Missies game buttons (#FAFF05), but flat like every
   button outside the game: no shadow, no 3D edge, no press-down (#417). */
.portal-hero-btn-primary {
  background: #FAFF05;
  color: #0D065B;
}

.portal-hero-btn-primary:hover {
  transform: translateY(-2px);
}

.portal-hero-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

.portal-hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.portal-btn-icon {
  width: 18px;
  height: 18px;
}

/* Subtle organic background ambient glow */
.portal-decoration {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
  pointer-events: none;
}

.portal-decoration:nth-child(1) {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #FFE600 0%, transparent 70%);
  top: -120px;
  right: -60px;
}

.portal-decoration:nth-child(2) {
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, #FF6B9E 0%, transparent 70%);
  bottom: -100px;
  left: -60px;
}

.portal-decoration:nth-child(3) {
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, #00D4FF 0%, transparent 70%);
  top: 15%;
  left: 20%;
}

.portal-decoration:nth-child(4) {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, #5F29FF 0%, transparent 70%);
  bottom: 20%;
  right: 25%;
}

/* Main content area */
.portal-main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px;
}

/* Feature cards */
.portal-feature-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 32px;
}

.portal-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.portal-feature-card-large {
  padding: 48px;
  text-align: center;
}

.portal-feature-icon-wrapper {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.portal-feature-card:not(.portal-feature-card-large) .portal-feature-icon-wrapper {
  margin: 0 0 20px 0;
}

.portal-feature-icon-purple {
  background: var(--color-primary);
}

.portal-feature-icon-pink {
  background: linear-gradient(135deg, #ec4899, #f472b6);
}

.portal-feature-icon-orange {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.portal-feature-icon {
  width: 32px;
  height: 32px;
  color: white;
  stroke-width: 2;
}

.portal-feature-title {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.portal-feature-card:not(.portal-feature-card-large) .portal-feature-title {
  font-size: 22px;
}

.portal-feature-text {
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.portal-feature-text-secondary {
  font-size: 16px;
  color: #888;
  line-height: 1.6;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #f0f0f0;
}

.portal-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 24px;
  background: var(--color-primary);
  color: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(95, 41, 255, 0.3);
}

.portal-feature-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(95, 41, 255, 0.4);
}

.portal-link-arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.portal-feature-link:hover .portal-link-arrow {
  transform: translateX(4px);
}

/* Cards grid layout */
.portal-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Responsive design */
@media (max-width: 968px) {
  .portal-dashboard {
    min-height: 100vh;
    background: linear-gradient(135deg, #f5f0ff, #faf5ff);
  }

  .portal-hero {
    padding: 80px 24px 70px;
  }

  .portal-hero-content {
    margin-top: 24px;
  }

  .portal-hero-title {
    font-size: 42px;
  }

  .portal-hero-subtitle {
    font-size: 18px;
  }

  .portal-main-content {
    padding: 40px 30px;
  }

  .portal-cards-grid {
    grid-template-columns: 1fr;
  }

  .portal-decoration {
    display: none;
  }
}

@media (max-width: 480px) {
  .portal-hero {
    padding: 70px 16px 60px;
  }

  .portal-hero-content {
    margin-top: 36px;
  }

  .portal-hero-title {
    font-size: 32px;
  }

  .portal-hero-subtitle {
    font-size: 16px;
  }

  .portal-hero-logo {
    width: 150px;
  }

  .portal-logo {
    width: 130px;
  }

  .portal-main-content {
    padding: 30px 20px;
  }

  .portal-feature-card,
  .portal-feature-card-large {
    padding: 24px;
  }

  .portal-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .portal-hero-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Profile page styles */
.profile-container {
  min-height: 100vh;
  background: #F8FAFC;
}

.profile-hero {
  background: linear-gradient(135deg, #0D065B 0%, #200E6E 45%, #4C1D95 75%, #5F29FF 100%);
  padding: 88px 32px 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 3px solid rgba(255, 230, 0, 0.2);
}

.profile-hero-content {
  position: relative;
  z-index: 10;
  max-width: 840px;
  margin: 16px auto 0;
  color: white;
}

.profile-hero-logo {
  width: 170px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  opacity: 1;
}

.profile-hero-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.profile-hero-subtitle {
  font-size: 17px;
  opacity: 0.95;
  line-height: 1.5;
  color: #E2E8F0;
}

.profile-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.profile-back-link:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #FFE600;
  transform: translateY(-1px);
  border-color: rgba(255, 230, 0, 0.5);
}

.profile-form-section {
  max-width: 800px;
  margin: -40px auto 0;
  padding: 0 40px 80px;
  position: relative;
  z-index: 10;
}

.profile-form-container {
  background: white;
  border-radius: 20px;
  padding: 48px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-card {
  padding: 32px;
  background: #fafafa;
  border-radius: 16px;
  border: 2px solid #f0f0f0;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e5e5;
}

.profile-card-icon {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  stroke-width: 2;
}

.profile-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.profile-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.profile-form-group:last-child {
  margin-bottom: 0;
}

.profile-form-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.profile-form-hint {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
  font-style: italic;
}

.profile-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
}

.profile-divider-line {
  flex: 1;
  height: 1px;
  background: #d0d0d0;
}

.profile-divider-text {
  font-size: 13px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Collapsed-by-default "change password" disclosure, so the optional
   fields don't read as required (native <details>, no JS). */
.profile-pw-toggle {
  margin-top: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

/* Kill the default disclosure triangle in every engine */
.profile-pw-toggle > summary {
  list-style: none;
}
.profile-pw-toggle > summary::-webkit-details-marker,
.profile-pw-toggle > summary::marker {
  display: none;
  content: "";
}

.profile-pw-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #334155;
  user-select: none;
}

.profile-pw-summary i,
.profile-pw-summary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #64748b;
}

.profile-pw-optional {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 999px;
}

.profile-pw-chevron {
  margin-left: auto;
  transition: transform 0.2s ease;
}

.profile-pw-toggle[open] .profile-pw-chevron {
  transform: rotate(180deg);
}

.profile-pw-body {
  padding: 4px 16px 16px;
}

.profile-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.profile-submit-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-submit-btn:hover {
  transform: translateY(-2px);
}

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

.profile-cancel-btn {
  padding: 16px 32px;
  background: white;
  color: #666;
  border: 2px solid #e5e5e5;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-cancel-btn:hover {
  background: #fafafa;
  border-color: #d0d0d0;
  transform: translateY(-2px);
}

@media (max-width: 968px) {
  .profile-hero {
    padding: 50px 30px;
  }

  .profile-hero-title {
    font-size: 36px;
  }

  .profile-form-section {
    padding: 0 30px 60px;
  }

  .profile-form-container {
    padding: 32px;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-back-link {
    top: 20px;
    left: 20px;
  }
}

@media (max-width: 480px) {
  .profile-hero {
    padding: 40px 20px;
  }

  .profile-hero-title {
    font-size: 28px;
  }

  .profile-hero-logo {
    width: 120px;
  }

  .profile-form-section {
    padding: 0 20px 40px;
    margin-top: -30px;
  }

  .profile-form-container {
    padding: 24px;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-cancel-btn {
    width: 100%;
  }

  .profile-back-link {
    position: static;
    margin-bottom: 20px;
    display: inline-flex;
  }

  .profile-hero-content {
    margin-top: 20px;
  }
}

/* Pending payment message styling */
.portal-pending-payment {
  border: 3px solid #f97316;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
}

.portal-pending-payment .portal-feature-icon-wrapper {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.portal-contact-link {
  color: #f97316;
  font-weight: 700;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.portal-contact-link:hover {
  color: #ea580c;
}

.portal-pending-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 2px solid #fed7aa;
}

.portal-pending-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #666;
}

.portal-pending-info-item strong {
  color: #1a1a1a;
  font-weight: 700;
  min-width: 120px;
}

.portal-status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.portal-status-pending {
  background: #fef3c7;
  color: #92400e;
  border: 2px solid #fbbf24;
}

@media (max-width: 480px) {
  .portal-pending-info {
    padding: 20px;
  }

  .portal-pending-info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .portal-pending-info-item strong {
    min-width: auto;
  }
}

/* Top-right user menu pill in portal hero header */
.portal-hero {
  position: relative !important;
}

.portal-user-badge {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  background: rgba(255, 255, 255, 0.22) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 30px !important;
  padding: 6px 16px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 100 !important;
}

.portal-user-badge a,
.portal-user-badge a:visited,
.portal-user-badge a:link {
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.portal-user-badge a:hover {
  color: #FFE600 !important;
  opacity: 1 !important;
  transform: translateY(-1px) !important;
}

.portal-user-badge .divider {
  width: 1px !important;
  height: 14px !important;
  background: rgba(255, 255, 255, 0.5) !important;
  display: inline-block !important;
}

/* Top-left back link pill in portal hero header */
.portal-back-badge {
  position: absolute !important;
  top: 24px !important;
  left: 24px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  border-radius: 30px !important;
  padding: 6px 16px !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  z-index: 100 !important;
  transition: all 0.2s ease !important;
}

.portal-back-badge:hover {
  background: rgba(255, 255, 255, 0.3) !important;
  color: #FFE600 !important;
  transform: translateY(-1px) !important;
  border-color: rgba(255, 230, 0, 0.5) !important;
}

@media (max-width: 600px) {
  .portal-back-badge {
    top: 16px !important;
    left: 16px !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }

  .portal-user-badge {
    top: 16px !important;
    right: 16px !important;
    padding: 5px 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Top-left pill group (Home + Dashboard) on pages like profile.php that
   show two pills side by side. flex-wrap plus a max-width that reserves
   space for the top-right user badge keeps the second pill from either
   overlapping the badge on the right or the hero content beneath it on
   narrow screens. */
.portal-hero-topleft {
  position: absolute !important;
  top: 24px !important;
  left: 24px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  z-index: 100 !important;
  max-width: calc(100% - 160px) !important;
}

.portal-back-badge-inline {
  position: static !important;
}

@media (max-width: 600px) {
  .portal-hero-topleft {
    top: 16px !important;
    left: 16px !important;
    max-width: calc(100% - 130px) !important;
  }
}
/* #499: the white logo is now its own file (techtok-logo-white.png, white
   letters with yellow, mint and coral swirls). If that file isn't on the
   server yet, the <img> falls back to the old logo and this class makes it
   all-white again, like before. */
.logo-was-white {
  filter: brightness(0) invert(1);
}
