/* ==========================================================================
   NEWTRIP LTD — CUSTOMER PORTAL DESIGN SYSTEM
   Brand Colors: Dark Blue (#060e1e), Teal (#048581), Yellow (#ffb800), Orange (#ff6b35)
   ========================================================================== */

:root {
  --primary: #048581;
  --primary-light: #06a49f;
  --primary-dark: #045e5a;
  --primary-glow: rgba(4, 133, 129, 0.45);

  --secondary: #ffb800;
  --secondary-light: #ffd15c;
  --secondary-dark: #e09f00;
  --secondary-glow: rgba(255, 184, 0, 0.35);

  --accent-orange: #ff6b35;
  --accent-orange-light: #ff8c42;
  --accent-emerald: #10b981;
  --accent-danger: #ef4444;

  --bg-dark: #060e1e;
  --bg-surface: #0a1730;
  --bg-card: rgba(10, 23, 48, 0.82);
  --glass-bg: rgba(6, 14, 30, 0.82);
  --glass-border: rgba(4, 133, 129, 0.28);

  --text-white: #ffffff;
  --text-light: #e2edfb;
  --text-muted: #93a7c6;
  --text-dim: #62779a;

  --border-light: rgba(255, 255, 255, 0.09);
  --border-focus: rgba(4, 133, 129, 0.55);

  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --tr-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-med: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 30px rgba(4, 133, 129, 0.15);
  --sidebar-w: 260px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(4, 133, 129, 0.3);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(4, 133, 129, 0.5);
}

/* ==========================================================================
   LOGIN / REGISTER SCREEN
   ========================================================================== */

.portal-login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
}

.portal-login-screen::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 20%, rgba(4, 133, 129, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(255, 184, 0, 0.05) 0%, transparent 50%);
  animation: bgShift 20s ease-in-out infinite alternate;
}

@keyframes bgShift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-5%, -3%) rotate(3deg); }
}

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

.login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: cardEnter 0.6s var(--tr-med) both;
}

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

.login-logo {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo img {
  height: 48px;
  width: auto;
}

.login-title {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: var(--font-main);
  font-size: 14px;
  transition: all var(--tr-fast);
  outline: none;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(4, 133, 129, 0.06);
  box-shadow: 0 0 0 3px rgba(4, 133, 129, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  letter-spacing: 0.02em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(4, 133, 129, 0.35);
}

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

.btn-google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #3c4043;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-google-signin:hover {
  background: #f8f9fa;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
}

.btn-google-signin svg {
  width: 20px;
  height: 20px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

.switch-auth-link {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  margin-top: 20px;
  transition: color var(--tr-fast);
}

.switch-auth-link:hover {
  color: var(--primary-light);
}

.switch-auth-link strong {
  color: var(--primary-light);
}

.login-back-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.login-back-links a {
  color: var(--text-dim);
  font-size: 12px;
  text-decoration: none;
  transition: color var(--tr-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-back-links a:hover {
  color: var(--primary-light);
}

/* ==========================================================================
   DASHBOARD LAYOUT
   ========================================================================== */

.portal-app {
  display: none;
  min-height: 100vh;
}

.portal-app.active {
  display: flex;
  flex-direction: column;
}

/* ---- HEADER ---- */

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-brand {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
}

.header-brand span {
  color: var(--primary-light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 18px;
  cursor: pointer;
  padding: 8px 10px;
  transition: all var(--tr-fast);
}

.mobile-menu-btn:hover {
  border-color: var(--primary);
  color: var(--primary-light);
}

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

.user-dropdown {
  position: relative;
}

.user-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-light);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.user-dropdown-btn:hover {
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.07);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: white;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 6px;
  min-width: 180px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--tr-fast);
  box-shadow: var(--shadow-card);
}

.user-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-light);
  text-decoration: none;
  font-size: 13px;
  border-radius: 6px;
  transition: all var(--tr-fast);
}

.user-dropdown-menu a:hover {
  background: rgba(4, 133, 129, 0.12);
  color: var(--primary-light);
}

.user-dropdown-menu a.danger:hover {
  background: rgba(239, 68, 68, 0.12);
  color: var(--accent-danger);
}

.btn-logout {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-danger);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.35);
}

/* ---- SIDEBAR ---- */

.portal-sidebar {
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-right: 1px solid var(--glass-border);
  padding: 20px 12px;
  overflow-y: auto;
  z-index: 90;
  transition: transform var(--tr-med);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr-fast);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.sidebar-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  transition: height var(--tr-fast);
}

.sidebar-nav-item:hover {
  color: var(--text-light);
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-nav-item.active {
  color: var(--primary-light);
  background: rgba(4, 133, 129, 0.1);
  border-color: rgba(4, 133, 129, 0.15);
}

.sidebar-nav-item.active::before {
  height: 60%;
}

.sidebar-nav-item i {
  width: 20px;
  text-align: center;
  font-size: 15px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 20px 16px 8px;
}

/* ---- MAIN CONTENT ---- */

.portal-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  margin-top: var(--header-h);
  padding: 28px;
  min-height: calc(100vh - var(--header-h));
}

/* ---- WELCOME SECTION ---- */

.welcome-section {
  margin-bottom: 28px;
  animation: fadeUp 0.5s var(--tr-med) both;
}

.welcome-section h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
}

.welcome-section h1 span {
  background: linear-gradient(135deg, var(--secondary), var(--accent-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.welcome-section p {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- STAT CARDS ---- */

.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
  animation: fadeUp 0.55s var(--tr-med) both;
}

.stat-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--tr-fast);
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
  opacity: 0;
  transition: opacity var(--tr-fast);
}

.stat-card:hover {
  border-color: var(--glass-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.stat-card:hover::after {
  opacity: 1;
}

.stat-card-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}

.stat-card-icon.teal {
  background: rgba(4, 133, 129, 0.15);
  color: var(--primary-light);
}

.stat-card-icon.gold {
  background: rgba(255, 184, 0, 0.15);
  color: var(--secondary);
}

.stat-card-icon.orange {
  background: rgba(255, 107, 53, 0.15);
  color: var(--accent-orange);
}

.stat-card-icon.emerald {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.stat-card-value {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 2px;
}

.stat-card-label {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- SECTION PANELS ---- */

.portal-section {
  display: none;
  animation: fadeUp 0.4s var(--tr-med) both;
}

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

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

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title i {
  color: var(--primary-light);
  font-size: 18px;
}

/* ---- BOOKING CARDS ---- */

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.booking-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--tr-fast);
}

.booking-card:hover {
  border-color: var(--glass-border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.booking-card-banner {
  height: 120px;
  background: linear-gradient(135deg, rgba(4, 133, 129, 0.3), rgba(255, 184, 0, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.booking-card-banner i {
  font-size: 40px;
  color: rgba(255, 255, 255, 0.6);
}

.booking-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-confirmed {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-pending {
  background: rgba(255, 184, 0, 0.2);
  color: var(--secondary-light);
  border: 1px solid rgba(255, 184, 0, 0.3);
}

.badge-processing {
  background: rgba(4, 133, 129, 0.2);
  color: var(--primary-light);
  border: 1px solid rgba(4, 133, 129, 0.3);
}

.badge-cancelled {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-open {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-closed {
  background: rgba(107, 114, 128, 0.2);
  color: #9ca3af;
  border: 1px solid rgba(107, 114, 128, 0.3);
}

.booking-card-body {
  padding: 16px;
}

.booking-card-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.booking-card-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.booking-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.booking-detail i {
  width: 16px;
  text-align: center;
  color: var(--primary-light);
  font-size: 12px;
}

.booking-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.booking-price {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

.booking-ref {
  font-size: 12px;
  color: var(--text-dim);
}

/* ---- INQUIRIES TABLE ---- */

.table-container {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

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

.data-table thead {
  background: rgba(4, 133, 129, 0.08);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--text-light);
  border-top: 1px solid var(--border-light);
  white-space: nowrap;
}

.data-table tbody tr {
  transition: background var(--tr-fast);
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* ---- VISA CARDS ---- */

.visa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.visa-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--tr-fast);
}

.visa-card:hover {
  border-color: var(--glass-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.visa-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.visa-country {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visa-country-flag {
  font-size: 28px;
}

.visa-country-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}

.visa-country-type {
  font-size: 12px;
  color: var(--text-muted);
}

.visa-progress-section {
  margin-bottom: 16px;
}

.visa-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.visa-progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.visa-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 1s var(--tr-med);
}

.visa-progress-fill.gold {
  background: linear-gradient(90deg, var(--secondary), var(--secondary-light));
}

.visa-progress-fill.complete {
  background: linear-gradient(90deg, var(--accent-emerald), #34d399);
}

.visa-card-meta {
  display: flex;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.visa-meta-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.visa-meta-item i {
  color: var(--primary-light);
  font-size: 11px;
}

/* ---- SUPPORT TICKETS ---- */

.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-item {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all var(--tr-fast);
}

.ticket-item:hover {
  border-color: var(--glass-border);
  background: rgba(10, 23, 48, 0.95);
}

.ticket-info {
  flex: 1;
  min-width: 0;
}

.ticket-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 4px;
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--text-dim);
}

.ticket-meta i {
  margin-right: 4px;
  color: var(--text-dim);
}

.ticket-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-new-ticket {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-new-ticket:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(4, 133, 129, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--tr-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--glass-border);
}

/* ---- PROFILE SETTINGS ---- */

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.profile-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.profile-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-card-title i {
  color: var(--primary-light);
}

.profile-avatar-section {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 24px;
}

.profile-avatar-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin: 0 auto 12px;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}

.profile-email {
  font-size: 13px;
  color: var(--text-muted);
}

.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tr-fast);
  margin-top: 8px;
}

.btn-save:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(4, 133, 129, 0.3);
}

/* ---- MODAL ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: var(--glass-bg);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  animation: modalIn 0.35s var(--tr-med) both;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}

.modal-close {
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr-fast);
}

.modal-close:hover {
  border-color: var(--accent-danger);
  color: var(--accent-danger);
  background: rgba(239, 68, 68, 0.1);
}

textarea.form-input {
  min-height: 100px;
  resize: vertical;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2393a7c6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ---- TOAST ---- */

.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  animation: toastIn 0.35s var(--tr-med) both;
  font-size: 13px;
  color: var(--text-light);
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--accent-emerald); }
.toast.success i { color: var(--accent-emerald); }
.toast.error { border-left: 3px solid var(--accent-danger); }
.toast.error i { color: var(--accent-danger); }
.toast.info { border-left: 3px solid var(--primary); }
.toast.info i { color: var(--primary-light); }

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

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

/* ---- FOOTER ---- */

.portal-footer {
  margin-top: auto;
  padding: 20px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.portal-footer p {
  font-size: 12px;
  color: var(--text-dim);
}

.portal-footer-links {
  display: flex;
  gap: 20px;
}

.portal-footer-links a {
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--tr-fast);
}

.portal-footer-links a:hover {
  color: var(--primary-light);
}

/* ---- EMPTY STATE ---- */

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-dim);
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-dim);
  opacity: 0.5;
}

.empty-state h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 14px;
}

/* ---- SIDEBAR OVERLAY (mobile) ---- */

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 85;
}

.sidebar-overlay.active {
  display: block;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .stat-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .portal-sidebar {
    transform: translateX(-100%);
  z-index: 95;
  top: 0;
    padding-top: calc(var(--header-h) + 20px);
  width: 280px;
  background: var(--bg-dark);
    border-right: 1px solid var(--glass-border);
  }

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

  .portal-main {
    margin-left: 0;
    padding: 20px 16px;
  }

  .stat-cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .bookings-grid {
    grid-template-columns: 1fr;
  }

  .visa-grid {
    grid-template-columns: 1fr;
  }

  .welcome-section h1 {
    font-size: 22px;
  }

  .ticket-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .ticket-right {
    width: 100%;
    justify-content: flex-end;
  }

  .header-brand {
    display: none;
  }

  .login-card {
    padding: 32px 24px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .portal-footer {
    padding: 16px;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stat-cards-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card-value {
    font-size: 24px;
  }

  .header-right .btn-logout span {
    display: none;
  }

  .login-title {
    font-size: 22px;
  }

  .modal-card {
    padding: 20px;
  }
}
