/**
 * EMAAR APPLICANT & RESEARCHER PORTAL - Luxury Client Interface
 * Theme: Clean White Frosted Glassmorphism with High Opacity
 * Currency: Indian Rupee (₹)
 * Mobile-First Executive UX
 */

/* ==========================================================================
   0. LOCAL FONTS DEFINITIONS (@font-face)
   ========================================================================== */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/PlusJakartaSans-Variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Outfit';
  src: url('../fonts/Outfit-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Optima';
  src: url('../fonts/optima.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces & Frosted Opacities */
  --bg-base: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-header: rgba(255, 255, 255, 0.88);
  --bg-surface: rgba(248, 250, 252, 0.72);
  --bg-surface-subtle: rgba(241, 245, 249, 0.65);
  --bg-input: rgba(255, 255, 255, 0.95);

  /* Luxury Accents */
  --color-gold: #9a7322;
  --color-gold-light: #b88d36;
  --color-gold-dark: #785816;
  --color-gold-bg: rgba(184, 141, 54, 0.08);
  --color-gold-glow: rgba(184, 141, 54, 0.18);

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Status */
  --color-success: #059669;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #d97706;
  --color-warning-bg: rgba(245, 158, 11, 0.1);
  --color-danger: #dc2626;
  --color-danger-bg: rgba(239, 68, 68, 0.1);
  --color-info: #0284c7;
  --color-info-bg: rgba(14, 165, 233, 0.1);

  /* Glass Borders */
  --border-glass: rgba(255, 255, 255, 0.95);
  --border-subtle: rgba(226, 232, 240, 0.85);
  --border-gold: rgba(184, 141, 54, 0.28);

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 16px 36px -4px rgba(15, 23, 42, 0.08), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
  --shadow-glass: 0 8px 30px -4px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.95);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Optima', Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: 
    radial-gradient(circle at 10% 12%, rgba(219, 234, 254, 0.45) 0%, transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(254, 243, 199, 0.5) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(241, 245, 249, 0.75) 0%, transparent 55%),
    var(--bg-base);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: block;
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Base Wrapper */
.applicant-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  position: relative;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  .applicant-wrapper {
    padding-bottom: 0;
  }
}

/* ==========================================================================
   1. NAVIGATION HEADER (Frosted Glass Acrylic)
   ========================================================================== */
.applicant-header {
  position: sticky;
  top: 0;
  z-index: 500;
  height: 64px;
  background: var(--bg-header);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  box-shadow: 0 1px 8px rgba(15, 23, 42, 0.03);
}

.header-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.header-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0);
}

.header-brand-badge {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.65rem;
  line-height: 1.2;
}

/* Desktop Nav Links */
.header-nav-menu {
  display: none;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 992px) {
  .header-nav-menu {
    display: flex;
  }
}

.header-nav-item {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 600;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.header-nav-item:hover {
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.04);
}

.header-nav-item.active {
  color: var(--color-gold);
  background: var(--color-gold-bg);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.header-user-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.75rem 0.25rem 0.35rem;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
}

.header-user-pill:hover {
  background: #ffffff;
  border-color: var(--border-gold);
  box-shadow: 0 2px 8px rgba(184, 141, 54, 0.12);
}

.user-avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff;
  font-weight: 800;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(184, 141, 54, 0.25);
}

.header-user-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
}

.user-meta-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: capitalize;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.user-meta-balance {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.header-logout-btn {
  min-height: 32px;
  padding: 0.25rem 0.6rem;
  font-size: 0.70rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 480px) {
  .header-actions {
    gap: 0.35rem;
  }
  .header-user-pill {
    padding: 0.2rem 0.55rem 0.2rem 0.25rem;
    gap: 0.4rem;
  }
  .user-avatar-dot {
    width: 26px;
    height: 26px;
    font-size: 0.70rem;
  }
  .user-meta-name {
    font-size: 0.68rem;
  }
  .user-meta-balance {
    font-size: 0.72rem;
  }
  .header-logout-btn {
    min-height: 30px;
    padding: 0.25rem 0.4rem;
  }
  .header-logout-btn .logout-text {
    display: none;
  }
}

.mobile-menu-trigger {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  cursor: pointer;
}

@media (min-width: 992px) {
  .mobile-menu-trigger {
    display: none;
  }
}

/* ==========================================================================
   2. MOBILE BOTTOM NAVIGATION DOCK (Native App Feel)
   ========================================================================== */
.mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 500;
  padding: 0 0.5rem;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.04);
}

@media (min-width: 992px) {
  .mobile-bottom-dock {
    max-width: 680px;
    margin: 0 auto;
    border-radius: 16px 16px 0 0;
    border: 1px solid var(--border-glass);
    border-bottom: none;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }
}

.dock-item-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 600;
  gap: 0.15rem;
  flex: 1;
  padding: 0.35rem 0;
  transition: all 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.dock-item-btn svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.dock-item-btn.active {
  color: var(--color-gold);
  font-weight: 700;
}

.dock-item-btn.active svg {
  stroke-width: 2.2;
}

/* ==========================================================================
   3. MAIN CONTENT CONTAINER
   ========================================================================== */
.applicant-main {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 1rem 0.85rem 75px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .applicant-main {
    padding: 1.75rem 1.5rem 80px;
  }
}

/* Sections */
.portal-tab-section {
  display: none;
}

.portal-tab-section.active {
  display: block;
}

/* Cards & Acrylic Glass */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 1.25rem 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 768px) {
  .glass-panel {
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-xl);
  }
}

/* Top Balance & Hero Overview Card */
.applicant-hero-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(254, 243, 199, 0.4) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-glass);
  padding: 1.35rem 1rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .applicant-hero-card {
    padding: 2rem 1.75rem;
    border-radius: var(--radius-xl);
  }
}

.hero-profile-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-avatar-large {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(184, 141, 54, 0.25);
  flex-shrink: 0;
}

.hero-user-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-meta-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.2rem;
  flex-wrap: wrap;
}

.badge-pill {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-pill.gold {
  background: var(--color-gold-bg);
  color: var(--color-gold);
  border: 1px solid var(--border-gold);
}

.badge-pill.success {
  background: var(--color-success-bg);
  color: var(--color-success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-pill.info {
  background: var(--color-info-bg);
  color: var(--color-info);
  border: 1px solid rgba(14, 165, 233, 0.25);
}

/* Hero Balance Grid */
.hero-balance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}

@media (min-width: 640px) {
  .hero-balance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hero-balance-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  min-width: 0;
  overflow: hidden;
}

.hero-balance-label {
  font-size: 0.60rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
  word-break: break-word;
}

.hero-balance-val {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  word-break: break-word;
}

.hero-balance-val.gold {
  color: var(--color-gold);
}

.hero-balance-val.success {
  color: var(--color-success);
}

/* Hero Actions Row */
.hero-action-buttons {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .hero-action-buttons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.btn-app {
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  line-height: 1.2;
  box-sizing: border-box;
}

.btn-app.gold {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  color: #fff;
  box-shadow: 0 4px 14px rgba(184, 141, 54, 0.25);
}

.btn-app.gold:hover {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  transform: translateY(-1px);
}

.btn-app.outline-gold {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-gold);
  color: var(--color-gold);
}

.btn-app.outline-gold:hover {
  background: #fff;
  border-color: var(--color-gold);
}

.btn-app.primary {
  background: var(--text-primary);
  color: #fff;
}

.btn-app.primary:hover {
  background: #1e293b;
}

.btn-app.secondary {
  background: rgba(241, 245, 249, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-app.secondary:hover {
  background: #fff;
  color: var(--text-primary);
}

.btn-app.success {
  background: var(--color-success);
  color: #fff;
}

/* ==========================================================================
   4. SHIPPING / TASK ALLOCATION ENGINE
   ========================================================================== */
.task-header-box {
  margin-bottom: 1.25rem;
}

.task-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-gold);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}

.task-title-large {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  word-break: break-word;
}

@media (min-width: 768px) {
  .task-title-large {
    font-size: 1.85rem;
  }
}

.task-stats-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem;
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.7);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .task-stats-banner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.task-stat-col {
  min-width: 0;
  overflow: hidden;
}

.task-stat-title {
  font-size: 0.60rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.task-stat-data {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

/* Real Estate / Logistics Carousel Items */
.task-units-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.task-unit-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  text-align: center;
}

.task-unit-number {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-gold);
}

.task-unit-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-top: 0.2rem;
}

/* Task CTA Action Card */
.task-action-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(219, 234, 254, 0.35) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1rem;
  text-align: center;
}

.btn-ship-large {
  min-height: 48px;
  width: 100%;
  max-width: 360px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-ship-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   5. MODALS & SLIDE-UP SHEETS
   ========================================================================== */
.app-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 0;
}

@media (min-width: 640px) {
  .app-modal-backdrop {
    align-items: center;
    padding: 1.5rem;
  }
}

.app-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.app-modal-dialog {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid var(--border-glass);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@media (min-width: 640px) {
  .app-modal-dialog {
    border-radius: 20px;
    transform: translateY(20px);
  }
}

.app-modal-backdrop.active .app-modal-dialog {
  transform: translateY(0);
}

.app-modal-header {
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-modal-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.app-modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}

.app-modal-body {
  padding: 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.app-modal-footer {
  padding: 0.85rem 1.35rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  background: rgba(248, 250, 252, 0.8);
}

/* Form Controls */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  height: 42px;
  background: var(--bg-input);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0 0.85rem;
  font-size: 0.84rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  border-color: var(--color-gold-light);
  box-shadow: 0 0 0 3px var(--color-gold-glow);
}

/* ==========================================================================
   6. TABLES & LISTINGS
   ========================================================================== */
.table-responsive-clean {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.clean-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.clean-table th {
  background: rgba(241, 245, 249, 0.85);
  padding: 0.75rem 0.85rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.clean-table td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  color: var(--text-primary);
  white-space: nowrap;
}

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

/* ==========================================================================
   7. TOAST NOTIFICATIONS
   ========================================================================== */
.app-toast {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  white-space: nowrap;
  max-width: 90vw;
  text-overflow: ellipsis;
  overflow: hidden;
}

@media (min-width: 992px) {
  .app-toast {
    bottom: 2rem;
  }
}

.app-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.app-toast.success {
  background: rgba(5, 150, 105, 0.96);
}

.app-toast.error {
  background: rgba(220, 38, 38, 0.96);
}

/* ==========================================================================
   8. GUEST LOGIN & REGISTRATION (STRICT SINGLE VIEWPORT - ZERO SCROLL)
   ========================================================================== */
body.applicant-guest-body {
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  margin: 0;
  box-sizing: border-box;
}

.applicant-guest-container {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-sizing: border-box;
}

.applicant-guest-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 1.5rem 1.35rem;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(226, 232, 240, 0.85);
  box-sizing: border-box;
  text-align: center;
}

.applicant-guest-brand {
  margin-bottom: 1.15rem;
}

.applicant-guest-logo {
  height: 24px;
  width: auto;
  filter: brightness(0);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.applicant-guest-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.applicant-auth-tabs {
  display: flex;
  background: rgba(241, 245, 249, 0.85);
  padding: 3px;
  border-radius: 9px;
  margin-bottom: 1.15rem;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.auth-tab-btn {
  flex: 1;
  padding: 7px 10px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--color-gold);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

.applicant-guest-card .form-group {
  margin-bottom: 0.85rem;
  text-align: left;
}

.applicant-guest-card .form-label {
  display: block;
  font-size: 0.70rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}

.applicant-guest-card .form-control {
  width: 100%;
  height: 38px;
  font-size: 0.82rem;
  border-radius: 8px;
  padding: 0 0.75rem;
  border: 1px solid rgba(203, 213, 225, 0.85);
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-primary);
  font-family: var(--font-sans);
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.applicant-guest-card .form-control:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(184, 141, 54, 0.12);
  outline: none;
  background: #ffffff;
}

.applicant-guest-card .btn-submit-auth {
  width: 100%;
  height: 42px;
  min-height: 42px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.4rem;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(184, 141, 54, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Compact register inputs */
#paneAuthRegister .form-group {
  margin-bottom: 0.5rem;
}

#paneAuthRegister .form-control {
  height: 34px;
  font-size: 0.78rem;
}

#paneAuthRegister .form-label {
  font-size: 0.66rem;
  margin-bottom: 0.15rem;
}

body.applicant-guest-body .app-toast {
  bottom: 1.5rem;
}

