/* ═══════════════════════════════════════════════════════════════
   Transfrexa — UPS-Style User Dashboard
   Clean corporate design: brown hero banner, horizontal tabs,
   warm beige background, white cards, golden CTA buttons
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --Transfrexa-blue: #0662bb;
  --Transfrexa-blue-dark: #00307a;
  --Transfrexa-blue-deeper: #001d4f;
  --Transfrexa-teal: #00adbc;
  --Transfrexa-teal-light: #33cdd8;
  --Transfrexa-light-blue: #3db5e6;
  --Transfrexa-indigo: #5b8ab5;
  --brown-dark: #3b1f0b;
  --brown-mid: #5a3a1a;
  --brown-light: #6b4423;
  --gold: #dab456;
  --gold-hover: #c9a149;
  --beige-bg: #f5f0eb;
  --white: #ffffff;
  --off-white: #f8fafc;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #3b82f6;
  --info-light: #dbeafe;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow: 0 4px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, .15);
  --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--beige-bg);
  color: var(--gray-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── AUTH PAGES (Login / Signup) ─────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  background: #ffffff;
  padding: 0;
}

/* Auth views */
.auth-view {
  width: 100%;
}

.auth-step {
  display: none;
  text-align: center;
  padding: 3rem 1rem 2rem;
}

.auth-step.active {
  display: block;
  animation: fadeIn .4s ease;
}

/* Logo + Title */
.auth-logo {
  height: 70px;
  display: block;
  margin: 0 auto 1rem;
}

.auth-title {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gray-800);
  margin-bottom: 1.5rem;
}

/* Auth card (centered form area) */
.auth-card {
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

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

.auth-card .form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 500;
  color: var(--gray-600);
  margin-bottom: .3rem;
}

.auth-card .form-group input {
  width: 100%;
  padding: .7rem .85rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 4px;
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: #fff;
  outline: none;
  transition: border-color .2s;
}

.auth-card .form-group input:focus {
  border-color: var(--Transfrexa-blue);
  box-shadow: 0 0 0 2px rgba(6, 98, 187, .1);
}

/* Links */
.auth-link-center {
  display: block;
  text-align: center;
  color: var(--Transfrexa-blue);
  font-size: .85rem;
  margin: .75rem 0;
  text-decoration: none;
  font-weight: 500;
}

.auth-link-center:hover {
  text-decoration: underline;
}

/* Terms text */
.auth-terms {
  font-size: .78rem;
  color: var(--gray-500);
  text-align: center;
  margin: 1rem 0 1.25rem;
  line-height: 1.5;
}

.auth-terms a {
  color: var(--Transfrexa-blue);
  text-decoration: underline;
}

/* Golden CTA button */
.btn-auth-gold {
  background: #ffb500;
  color: var(--gray-900);
  border: none;
  border-radius: 30px;
  padding: .85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, transform .15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

.btn-auth-gold:hover {
  background: #e6a300;
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* Outline back button */
.btn-auth-outline {
  background: transparent;
  color: var(--gray-700);
  border: 1.5px solid var(--gray-300);
  border-radius: 30px;
  padding: .7rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.btn-auth-outline:hover {
  border-color: var(--gray-500);
  background: var(--gray-50);
}

/* Skip button */
.btn-auth-skip {
  background: none;
  border: none;
  color: var(--Transfrexa-blue);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 1rem;
  display: block;
  width: 100%;
  text-align: center;
  padding: .5rem;
  font-family: inherit;
}

.btn-auth-skip:hover {
  text-decoration: underline;
}

/* Auth switch link */
.auth-switch {
  text-align: center;
  font-size: .88rem;
  color: var(--gray-500);
  margin-top: 1.25rem;
}

.auth-switch a {
  color: var(--Transfrexa-blue);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover {
  text-decoration: underline;
}

/* Social icons */
.auth-social {
  margin-top: 2.5rem;
  text-align: center;
}

.auth-social-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.auth-social-icons {
  display: flex;
  justify-content: center;
  gap: .75rem;
}

.social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-600);
  font-size: 1.1rem;
}

.social-circle:hover {
  border-color: var(--Transfrexa-blue);
  color: var(--Transfrexa-blue);
  background: rgba(6, 98, 187, .04);
}

/* Footer links */
.auth-footer-links {
  margin-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: var(--gray-400);
}

.auth-footer-links a {
  color: var(--Transfrexa-blue);
  text-decoration: none;
}

.auth-footer-links a:hover {
  text-decoration: underline;
}

/* User email display (step 2) */
.auth-user-email {
  font-size: .95rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Back link */
.auth-back-link {
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: .85rem;
  cursor: pointer;
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-family: inherit;
  padding: .25rem;
}

.auth-back-link:hover {
  color: var(--Transfrexa-blue);
}

/* ─── SIGNUP PAGE ─────────────────────────────────────────── */
.signup-topbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 2rem;
  border-bottom: 3px solid #ffb500;
  background: #fff;
}

.signup-topbar-logo {
  height: 40px;
}

.signup-login-link {
  background: #ffb500;
  color: var(--gray-900);
  padding: .45rem 1.25rem;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s;
}

.signup-login-link:hover {
  background: #e6a300;
}

.signup-container {
  max-width: 560px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}

.signup-heading {
  font-size: 2rem;
  font-weight: 300;
  color: var(--gray-800);
}

.signup-underline {
  width: 50px;
  height: 3px;
  background: #ffb500;
  margin: .5rem 0 1rem;
  border-radius: 2px;
}

/* Step progress */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  position: relative;
  z-index: 1;
}

.step-dot span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--gray-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-400);
  background: #fff;
  transition: var(--transition);
}

.step-dot small {
  font-size: .7rem;
  color: var(--gray-400);
  font-weight: 500;
}

.step-dot.active span {
  border-color: #ffb500;
  background: #ffb500;
  color: #fff;
}

.step-dot.active small {
  color: var(--gray-700);
}

.step-dot.completed span {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.step-dot.completed small {
  color: var(--success);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--gray-300);
  margin: 0 .25rem;
  margin-bottom: 1rem;
}

.step-line.active {
  background: #ffb500;
}

/* Reg steps */
.reg-step {
  display: none;
  text-align: left;
}

.reg-step.active {
  display: block;
  animation: fadeIn .35s ease;
}

.reg-step-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.reg-step-buttons .btn-auth-gold {
  flex: 1;
}

.step-section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1.25rem;
}

.optional-tag {
  font-size: .7rem;
  font-weight: 500;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 8px;
  border-radius: 10px;
  vertical-align: middle;
}

.step-description {
  font-size: .88rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

/* Form rows */
.form-row {
  display: flex;
  gap: .75rem;
}

/* Auth checkbox */
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .78rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 1rem 0 1.25rem;
  cursor: pointer;
}

.auth-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: #ffb500;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.auth-checkbox a {
  color: var(--Transfrexa-blue);
  text-decoration: underline;
}

/* Password toggle (inside auth card) */
.auth-card .input-wrapper {
  position: relative;
}

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

.auth-card .toggle-password {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  padding: 4px 6px;
  font-size: .9rem;
}

.auth-card .toggle-password:hover {
  color: var(--Transfrexa-blue);
}

/* ─── PAYMENT METHODS ────────────────────────────────────── */
.payment-cards-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.payment-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: var(--transition);
}

.payment-card-item:hover {
  border-color: var(--Transfrexa-blue);
  box-shadow: var(--shadow-sm);
}

.payment-card-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.payment-card-icon {
  font-size: 1.8rem;
  color: var(--Transfrexa-blue);
  width: 40px;
  text-align: center;
}

.payment-card-details h4 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
}

.payment-card-details p {
  font-size: .8rem;
  color: var(--gray-500);
}

.payment-card-actions {
  display: flex;
  gap: .5rem;
}

.payment-card-actions button {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  padding: .35rem .75rem;
  font-size: .78rem;
  cursor: pointer;
  color: var(--gray-600);
  transition: var(--transition);
  font-family: inherit;
}

.payment-card-actions button:hover {
  border-color: var(--Transfrexa-blue);
  color: var(--Transfrexa-blue);
}

.payment-card-actions button.delete:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.empty-state {
  color: var(--gray-400);
  font-size: .9rem;
  text-align: center;
  padding: 2rem 0;
}


/* Dashboard form fields override */
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--Transfrexa-blue);
  box-shadow: 0 0 0 3px rgba(0, 72, 187, .12);
}

.form-group .input-icon {
  position: absolute;
  right: 14px;
  top: 38px;
  color: var(--gray-400);
  pointer-events: none;
}

.form-group .error-text {
  color: var(--danger);
  font-size: .78rem;
  margin-top: .3rem;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--gray-200);
  margin-top: .4rem;
  overflow: hidden;
}

.password-strength .bar {
  height: 100%;
  border-radius: 2px;
  transition: width .3s, background .3s;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--Transfrexa-blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--Transfrexa-blue-dark);
  box-shadow: 0 4px 12px rgba(0, 72, 187, .3);
}

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

.btn-full {
  width: 100%;
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--Transfrexa-blue);
  color: var(--Transfrexa-blue);
}

.btn-outline:hover {
  background: var(--Transfrexa-blue);
  color: var(--white);
}

.btn-sm {
  padding: .5rem 1rem;
  font-size: .8rem;
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #dc2626;
}

/* Golden CTA button (UPS style) */
.btn-gold {
  background: var(--gold);
  color: var(--brown-dark);
  font-weight: 700;
  border-radius: 24px;
  padding: .7rem 2rem;
}

.btn-gold:hover {
  background: var(--gold-hover);
  box-shadow: 0 4px 12px rgba(218, 180, 86, .4);
}

.btn-outline-blue {
  background: transparent;
  border: 2px solid var(--Transfrexa-blue);
  color: var(--Transfrexa-blue);
  border-radius: 24px;
  padding: .6rem 1.5rem;
  font-size: .85rem;
}

.btn-outline-blue:hover {
  background: var(--Transfrexa-blue);
  color: var(--white);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD LAYOUT — UPS-STYLE (no sidebar)
   ═══════════════════════════════════════════════════════════════ */

.app-wrapper {
  display: none;
  flex-direction: column;
  min-height: 100vh;
}

.app-wrapper.active {
  display: flex;
}

/* Hide the old sidebar — kept in HTML for backward compat */
.sidebar,
.sidebar-overlay {
  display: none !important;
}

/* ─── TOP NAVIGATION BAR ─────────────────────────────────── */
.top-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.header-left .top-logo {
  height: 40px;
}

.top-nav-links {
  display: flex;
  gap: 1.75rem;
}

.top-nav-links a {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  transition: color .2s;
}

.top-nav-links a:hover {
  color: var(--Transfrexa-blue);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--gray-600);
  cursor: pointer;
}

.page-title {
  display: none;
  /* Hidden in new layout */
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-right .search-icon {
  font-size: 1.1rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: color .2s;
}

.header-right .search-icon:hover {
  color: var(--gray-800);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--Transfrexa-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: var(--transition);
}

.user-avatar:hover {
  box-shadow: 0 0 0 3px rgba(6, 98, 187, .25);
}

.user-name {
  font-weight: 600;
  font-size: .88rem;
  color: var(--gray-700);
}

/* ─── HERO BANNER ─────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, #4a3728 0%, #6b5344 40%, #7d6454 100%);
  color: var(--white);
  padding: 2.5rem 2.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .03);
  pointer-events: none;
}

.hero-greeting {
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: .75rem;
  letter-spacing: -.5px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: .85rem;
  color: rgba(255, 255, 255, .8);
  margin-bottom: 2rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.hero-meta-item i {
  font-size: .8rem;
  opacity: .7;
}

/* ─── HORIZONTAL TAB NAVIGATION ──────────────────────────── */
.hero-tabs {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-top: 0;
}

.hero-tabs a {
  padding: 1rem 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.hero-tabs a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .05);
}

.hero-tabs a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

/* ─── MAIN CONTENT AREA ──────────────────────────────────── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 0;
  /* No sidebar offset */
}

.page-content {
  flex: 1;
  padding: 2rem 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-section {
  display: none;
  animation: fadeIn .35s ease-out;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px)
  }

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

/* ─── TWO-COLUMN LAYOUT (UPS style) ─────────────────────── */
.ups-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 1.5rem;
  align-items: start;
}

.ups-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ups-side-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ─── CARDS (UPS style — white, rounded, soft shadow) ────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: none;
  overflow: hidden;
  margin-bottom: 0;
}

/* Stand-alone cards in non-grid sections */
.page-section>.card {
  margin-bottom: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
}

.card-body {
  padding: 1.5rem;
}

.card-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .25rem;
}

.card-section-subtitle {
  font-size: .88rem;
  color: var(--gray-500);
}

/* Card with centered icon + text (UPS sidebar cards style) */
.card-centered {
  text-align: center;
  padding: 2rem 1.5rem;
}

.card-centered .card-icon {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: .75rem;
}

.card-centered h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: .5rem;
}

.card-centered p {
  font-size: .88rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.card-centered .card-link {
  color: var(--Transfrexa-blue);
  font-weight: 600;
  font-size: .88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}

.card-centered .card-link:hover {
  text-decoration: underline;
}

/* ─── STAT CARDS ──────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

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

.stat-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.stat-card.blue::after {
  background: linear-gradient(90deg, var(--Transfrexa-blue), var(--Transfrexa-teal));
}

.stat-card.teal::after {
  background: linear-gradient(90deg, var(--Transfrexa-teal), var(--Transfrexa-light-blue));
}

.stat-card.green::after {
  background: linear-gradient(90deg, var(--success), #34d399);
}

.stat-card.orange::after {
  background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.stat-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gray-900);
  margin: .25rem 0;
}

.stat-change {
  font-size: .78rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.stat-change.up {
  color: var(--success);
}

.stat-change.down {
  color: var(--danger);
}

.stat-icon {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.stat-icon.blue {
  background: var(--info-light);
  color: var(--info);
}

.stat-icon.teal {
  background: rgba(0, 173, 188, .12);
  color: var(--Transfrexa-teal);
}

.stat-icon.green {
  background: var(--success-light);
  color: var(--success);
}

.stat-icon.orange {
  background: var(--warning-light);
  color: var(--warning);
}

/* ─── DATA TABLES ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: .85rem 1rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .5px;
  background: var(--gray-50);
  border-bottom: 2px solid var(--gray-200);
}

.data-table td {
  padding: .85rem 1rem;
  font-size: .88rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

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

.data-table tr:hover td {
  background: var(--gray-50);
}

/* ─── STATUS BADGES ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-pending {
  background: var(--warning-light);
  color: #92400e;
}

.badge-processing {
  background: var(--info-light);
  color: #1e40af;
}

.badge-in-transit {
  background: rgba(0, 173, 188, .12);
  color: #0e7490;
}

.badge-out-for-delivery {
  background: #fae8ff;
  color: #86198f;
}

.badge-delivered {
  background: var(--success-light);
  color: #065f46;
}

.badge-delayed {
  background: var(--danger-light);
  color: #991b1b;
}

.badge-cancelled {
  background: var(--gray-200);
  color: var(--gray-600);
}

.badge-returned {
  background: #fef3c7;
  color: #92400e;
}

.badge-completed {
  background: var(--success-light);
  color: #065f46;
}

.badge-failed {
  background: var(--danger-light);
  color: #991b1b;
}

.badge-draft {
  background: var(--gray-200);
  color: var(--gray-600);
}

.badge-confirmed {
  background: var(--info-light);
  color: #1e40af;
}

.badge-in-progress {
  background: rgba(0, 173, 188, .12);
  color: #0e7490;
}

.badge-paid {
  background: var(--success-light);
  color: #065f46;
}

.badge-refunded {
  background: var(--warning-light);
  color: #92400e;
}

/* ─── TRACKING TIMELINE ───────────────────────────────────── */
.tracking-search {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.tracking-search input {
  flex: 1;
}

/* ─── UPS-STYLE TRACKING ──────────────────────────────────── */

/* Status banner */
.tracking-status-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
}

.tracking-status-banner.status-delivered {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  color: #155724;
}

.tracking-status-banner.status-in-transit {
  background: linear-gradient(135deg, #cce5ff, #b8daff);
  color: #004085;
}

.tracking-status-banner.status-hold {
  background: linear-gradient(135deg, #fff3cd, #ffeeba);
  color: #856404;
}

.tracking-status-banner.status-delayed {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb);
  color: #721c24;
}

.tracking-status-banner.status-pending {
  background: linear-gradient(135deg, #e2e3e5, #d6d8db);
  color: #383d41;
}

.tracking-status-banner .status-icon {
  font-size: 2rem;
}

.tracking-status-banner .status-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .15rem;
}

.tracking-status-banner .status-text p {
  font-size: .85rem;
  opacity: .85;
}

/* Progress bar */
.tracking-progress {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  position: relative;
  padding: 0 10px;
}

.tracking-progress::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 4px;
  background: var(--gray-200);
  border-radius: 2px;
  z-index: 0;
}

.tracking-progress::after {
  content: '';
  position: absolute;
  top: 18px;
  left: 30px;
  height: 4px;
  background: var(--Transfrexa-teal);
  border-radius: 2px;
  z-index: 1;
  width: var(--progress-width, 0%);
  transition: width .6s ease;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
}

.progress-step .step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 3px solid var(--gray-300);
  color: var(--gray-400);
  font-size: .85rem;
  transition: all .3s ease;
}

.progress-step.completed .step-circle {
  background: var(--Transfrexa-teal);
  border-color: var(--Transfrexa-teal);
  color: white;
}

.progress-step.active .step-circle {
  border-color: var(--Transfrexa-teal);
  color: var(--Transfrexa-teal);
  box-shadow: 0 0 0 4px rgba(0, 173, 188, .2);
}

.progress-step.hold .step-circle {
  border-color: #ffc107;
  color: #856404;
  background: #fff3cd;
  box-shadow: 0 0 0 4px rgba(255, 193, 7, .2);
}

.progress-step .step-label {
  font-size: .72rem;
  color: var(--gray-500);
  margin-top: .5rem;
  text-align: center;
  font-weight: 500;
}

.progress-step.completed .step-label {
  color: var(--Transfrexa-teal);
  font-weight: 600;
}

.progress-step.active .step-label {
  color: var(--Transfrexa-teal);
  font-weight: 700;
}

/* Hold alert */
.hold-alert {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #ff9800;
}

.hold-alert i {
  font-size: 1.3rem;
  color: #e65100;
  margin-top: 2px;
}

.hold-alert .hold-info h4 {
  font-size: .9rem;
  font-weight: 700;
  color: #e65100;
  margin-bottom: .25rem;
}

.hold-alert .hold-info p {
  font-size: .82rem;
  color: #6d4c00;
  line-height: 1.5;
}

.hold-alert .hold-info .hold-detail {
  font-size: .78rem;
  color: #885a00;
  margin-top: .35rem;
}

.hold-alert .hold-info .hold-detail strong {
  color: #6d4c00;
}

/* Event timeline */
.tracking-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.timeline-event {
  position: relative;
  padding-bottom: 1.75rem;
  animation: fadeIn .4s ease-out;
}

.timeline-event:last-child {
  padding-bottom: 0;
}

.timeline-event .event-dot {
  position: absolute;
  left: -2.5rem;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-300);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
  font-size: .55rem;
  color: white;
}

.timeline-event.latest .event-dot {
  background: var(--Transfrexa-teal);
  box-shadow: 0 0 0 4px rgba(0, 173, 188, .15);
}

.timeline-event.delivered .event-dot {
  background: #28a745;
}

.timeline-event.hold .event-dot {
  background: #ff9800;
}

.timeline-event.delayed .event-dot {
  background: #dc3545;
}

.timeline-event .event-content {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  padding: .8rem 1rem;
}

.timeline-event.latest .event-content {
  border-color: var(--Transfrexa-teal);
  background: rgba(0, 173, 188, .03);
}

.timeline-event .event-status {
  font-size: .85rem;
  font-weight: 700;
  color: var(--gray-800);
  text-transform: capitalize;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.timeline-event .event-desc {
  font-size: .82rem;
  color: var(--gray-600);
  margin-top: .2rem;
  line-height: 1.45;
}

.timeline-event .event-location {
  font-size: .78rem;
  color: var(--Transfrexa-teal);
  margin-top: .25rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.timeline-event .event-time {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: .3rem;
}

/* Shipment info grid */
.tracking-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 1.5rem;
}

.tracking-info-item label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--gray-400);
  display: block;
  margin-bottom: .2rem;
}

.tracking-info-item span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
}

/* ─── FILTER BAR ──────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-bar select,
.filter-bar input[type="date"],
.filter-bar input[type="text"] {
  padding: .55rem .85rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: inherit;
  background: var(--white);
  color: var(--gray-700);
  outline: none;
  transition: var(--transition);
}

.filter-bar select:focus,
.filter-bar input:focus {
  border-color: var(--Transfrexa-blue);
}

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 1rem;
}

.pagination button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-600);
  font-size: .85rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination button:hover {
  border-color: var(--Transfrexa-blue);
  color: var(--Transfrexa-blue);
}

.pagination button.active {
  background: var(--Transfrexa-blue);
  color: var(--white);
  border-color: var(--Transfrexa-blue);
}

.pagination button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* ─── PROFILE SETTINGS ────────────────────────────────────── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.profile-avatar-section {
  text-align: center;
  padding: 2rem;
}

.avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--Transfrexa-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

/* ─── PREFERENCES TOGGLES ────────────────────────────────── */
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.toggle-row:last-child {
  border-bottom: none;
}

.toggle-label h4 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .1rem;
}

.toggle-label p {
  font-size: .8rem;
  color: var(--gray-500);
}

.toggle-switch {
  position: relative;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gray-300);
  border-radius: 26px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle-switch .slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  left: 3px;
  bottom: 3px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.toggle-switch input:checked+.slider {
  background: var(--Transfrexa-teal);
}

.toggle-switch input:checked+.slider::before {
  transform: translateX(22px);
}

/* ─── TOAST NOTIFICATIONS ─────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .88rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: slideInRight .3s ease-out;
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 380px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0
  }

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

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.info {
  background: var(--info);
}

.toast.warning {
  background: var(--warning);
  color: var(--gray-800);
}

/* ─── LOADING STATES ──────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, .3);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--gray-400);
}

.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0
  }

  100% {
    background-position: -200% 0
  }
}

/* ─── QUICK ACTIONS (UPS-style grid of icon cards) ────────── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quick-action {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
}

.quick-action:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-action i {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: .75rem;
  display: block;
}

.quick-action span {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  display: block;
  line-height: 1.3;
}

/* ─── INLINE TAB NAVIGATION (inside cards) ────────────────── */
.card-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  padding: 0 1.5rem;
}

.card-tabs a {
  padding: .75rem 1rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  margin-bottom: -1px;
}

.card-tabs a:hover {
  color: var(--gray-800);
}

.card-tabs a.active {
  color: var(--Transfrexa-blue);
  border-bottom-color: var(--Transfrexa-blue);
  font-weight: 600;
}

/* ─── EMPTY / NO DATA ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray-400);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: .5rem;
}

.empty-state p {
  font-size: .88rem;
}

/* ─── SIDEBAR OVERLAY (kept for compat, hidden) ──────────── */
.sidebar-overlay {
  display: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ups-layout {
    grid-template-columns: 1fr;
  }

  .ups-side-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .hero-banner {
    padding: 1.5rem 1.25rem 0;
  }

  .hero-greeting {
    font-size: 1.5rem;
  }

  .hero-meta {
    gap: .75rem;
    font-size: .78rem;
  }

  .hero-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero-tabs a {
    padding: .75rem 1rem;
    font-size: .82rem;
  }

  .top-header {
    padding: 0 1rem;
  }

  .top-nav-links {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .page-content {
    padding: 1.25rem 1rem;
  }

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

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

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tracking-search {
    flex-direction: column;
  }

  .data-table {
    font-size: .8rem;
  }

  .data-table th,
  .data-table td {
    padding: .6rem .5rem;
  }

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

  .ups-side-col {
    grid-template-columns: 1fr;
  }
}

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

  .login-card {
    padding: 2rem 1.5rem;
  }

  .hero-greeting {
    font-size: 1.3rem;
  }
}