/* ============================================
   Blue Entry Global — Main Stylesheet
   ============================================ */

/* --- Variables --- */
:root {
  --primary: #0F3460;
  --primary-dark: #0A2340;
  --primary-light: #1E4D8C;
  --accent: #D4AF37;
  --accent-dark: #B8960C;
  --accent-light: #F0D878;
  --surface: #FFFFFF;
  --surface-alt: #F7F9FC;
  --surface-hover: #EEF2F8;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #E2E8F0;
  --border-focus: #0F3460;
  --success: #38A169;
  --success-bg: #F0FFF4;
  --error: #E53E3E;
  --error-bg: #FFF5F5;
  --warning: #D69E2E;
  --warning-bg: #FFFFF0;
  --shadow-sm: 0 1px 3px rgba(15,52,96,0.08), 0 1px 2px rgba(15,52,96,0.06);
  --shadow-md: 0 4px 12px rgba(15,52,96,0.12), 0 2px 4px rgba(15,52,96,0.08);
  --shadow-lg: 0 12px 40px rgba(15,52,96,0.16), 0 4px 8px rgba(15,52,96,0.08);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, button, textarea, select { font-family: inherit; }

/* --- Typography --- */
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.125rem; font-weight: 600; }
p { color: var(--text-secondary); }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }

/* --- Container --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo img { height: 40px; width: auto; }
.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-links a:hover { color: var(--primary); background: var(--surface-alt); }
.nav-links .btn { margin-left: 0.5rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: all var(--transition);
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  font-size: 0.925rem; font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all var(--transition);
  text-decoration: none;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  background: var(--primary); color: white; border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-dark); border-color: var(--primary-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-accent {
  background: var(--accent); color: white; border-color: var(--accent);
}
.btn-accent:hover:not(:disabled) {
  background: var(--accent-dark); border-color: var(--accent-dark);
  transform: translateY(-1px); box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn-outline:hover:not(:disabled) {
  background: var(--primary); color: white;
}
.btn-outline-white {
  background: transparent; color: white; border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover:not(:disabled) {
  background: white; color: var(--primary);
}
.btn-ghost {
  background: transparent; color: var(--text-secondary); border-color: transparent;
}
.btn-ghost:hover:not(:disabled) { background: var(--surface-alt); color: var(--primary); }
.btn-lg { padding: 0.875rem 2rem; font-size: 1rem; border-radius: var(--radius); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.825rem; }
.btn-full { width: 100%; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* --- Sections --- */
.section { padding: 6rem 0; }
.section-alt { background: var(--surface-alt); }
.section-dark { background: var(--primary); color: white; }
.section-dark p { color: rgba(255,255,255,0.75); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .tag {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: rgba(15,52,96,0.08);
  color: var(--primary);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.section-dark .tag { background: rgba(212,175,55,0.2); color: var(--accent-light); }
.section-header p { max-width: 560px; margin: 1rem auto 0; font-size: 1.0625rem; }

/* --- Hero --- */
.hero {
  padding: 10rem 0 7rem;
  background: linear-gradient(135deg, #0A2340 0%, #0F3460 40%, #1E4D8C 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='28'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 1;
}
.hero-content { position: relative; text-align: center; color: white; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(212,175,55,0.18); border: 1px solid rgba(212,175,55,0.35);
  color: var(--accent-light); font-size: 0.825rem; font-weight: 600;
  border-radius: var(--radius-full); margin-bottom: 1.75rem; letter-spacing: 0.04em;
}
.hero h1 { color: white; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 2.5rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 4.5rem; padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  flex-wrap: wrap;
}
.hero-stat-value { font-size: 2rem; font-weight: 800; color: var(--accent); display: block; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 0.25rem; }

/* --- Services Grid --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.service-card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(15,52,96,0.08), rgba(15,52,96,0.04));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; font-size: 1.5rem;
}
.service-price {
  display: inline-flex; align-items: baseline; gap: 0.25rem;
  margin: 1rem 0 1.25rem;
}
.service-price-value { font-size: 2.25rem; font-weight: 800; color: var(--primary); }
.service-price-unit { font-size: 0.875rem; color: var(--text-muted); }
.service-features { margin: 1.25rem 0 2rem; }
.service-features li {
  display: flex; align-items: flex-start; gap: 0.6rem;
  padding: 0.45rem 0; font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--surface-alt);
}
.service-features li::before {
  content: '✓'; color: var(--accent); font-weight: 700;
  flex-shrink: 0; margin-top: 1px;
}

/* --- How It Works --- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.step-card { text-align: center; padding: 2rem 1.5rem; }
.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white; font-size: 1.25rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(15,52,96,0.3);
}
.step-card h4 { margin-bottom: 0.625rem; }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; max-width: 720px; margin: 0 auto; }
.pricing-card {
  background: white; border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 2.5rem;
  text-align: center; position: relative; transition: all 0.3s ease;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color: white; font-size: 0.75rem; font-weight: 700;
  padding: 0.3rem 1.2rem; border-radius: var(--radius-full); letter-spacing: 0.06em;
  white-space: nowrap;
}
.pricing-amount { margin: 1.5rem 0; }
.pricing-amount-value { font-size: 3rem; font-weight: 800; color: var(--primary); }
.pricing-amount-per { font-size: 0.875rem; color: var(--text-muted); display: block; }
.pricing-features { text-align: left; margin: 1.5rem 0 2rem; }
.pricing-features li {
  display: flex; gap: 0.6rem; padding: 0.5rem 0;
  font-size: 0.9rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--surface-alt);
}
.pricing-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* --- Forms --- */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; margin-bottom: 0.45rem;
  font-size: 0.875rem; font-weight: 600; color: var(--text-primary);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-primary);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15,52,96,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input.error, .form-select.error { border-color: var(--error); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-error { font-size: 0.8rem; color: var(--error); margin-top: 0.35rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.form-divider {
  display: flex; align-items: center; gap: 1rem;
  margin: 1.5rem 0; color: var(--text-muted); font-size: 0.875rem;
}
.form-divider::before, .form-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.checkbox-group {
  display: flex; align-items: flex-start; gap: 0.625rem;
}
.checkbox-group input[type="checkbox"] {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--primary); cursor: pointer;
}
.checkbox-group label { font-size: 0.875rem; color: var(--text-secondary); cursor: pointer; }
.checkbox-group a { color: var(--primary); font-weight: 500; }

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--surface-alt) 0%, white 100%);
  padding: 2rem 1.5rem;
}
.auth-card {
  background: white; border-radius: var(--radius-lg);
  padding: 3rem 2.5rem; width: 100%; max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { display: block; margin: 0 auto 2rem; height: 44px; }
.auth-title { text-align: center; margin-bottom: 0.5rem; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }
.btn-google {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: white;
  font-size: 0.925rem; font-weight: 500; color: var(--text-primary);
  cursor: pointer; transition: all var(--transition);
}
.btn-google:hover { background: var(--surface-alt); border-color: var(--text-secondary); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }

/* --- Dashboard --- */
.dashboard-layout {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--primary); color: white;
  padding: 0; position: fixed; top: 0; left: 0; bottom: 0;
  width: 260px; z-index: 100; overflow-y: auto;
  display: flex; flex-direction: column;
}
.sidebar-logo {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-logo img { height: 36px; }
.sidebar-user {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-user-name { font-weight: 600; font-size: 0.9rem; }
.sidebar-user-email { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 0.15rem; }
.sidebar-nav { padding: 1.25rem 0.75rem; flex: 1; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0.875rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all var(--transition); margin-bottom: 0.15rem;
}
.sidebar-nav-item:hover, .sidebar-nav-item.active {
  background: rgba(255,255,255,0.12); color: white;
}
.sidebar-nav-item.active { background: rgba(212,175,55,0.2); color: var(--accent-light); }
.sidebar-footer {
  padding: 1rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.dashboard-main {
  margin-left: 260px; background: var(--surface-alt); min-height: 100vh;
}
.dashboard-topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.dashboard-topbar h1 { font-size: 1.25rem; font-weight: 600; }
.dashboard-content { padding: 2rem; }
.dashboard-welcome {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: var(--radius-lg); padding: 2rem;
  color: white; margin-bottom: 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.dashboard-welcome h2 { color: white; font-size: 1.5rem; margin-bottom: 0.25rem; }
.dashboard-welcome p { color: rgba(255,255,255,0.75); margin: 0; }

/* --- Stats Cards --- */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card {
  background: white; border-radius: var(--radius); padding: 1.5rem;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.stat-card-label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card-value { font-size: 2rem; font-weight: 800; color: var(--primary); margin-top: 0.25rem; }
.stat-card-change { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }

/* --- Orders Table --- */
.orders-section {
  background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; box-shadow: var(--shadow-sm);
}
.orders-section-header {
  padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.orders-section-header h3 { font-size: 1.0625rem; }
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th {
  padding: 0.875rem 1.25rem; text-align: left;
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  background: var(--surface-alt); border-bottom: 1px solid var(--border);
}
.orders-table td {
  padding: 1rem 1.25rem; border-bottom: 1px solid var(--surface-alt);
  font-size: 0.9rem; vertical-align: middle;
}
.orders-table tr:last-child td { border-bottom: none; }
.orders-table tr:hover td { background: var(--surface-alt); }
.orders-empty {
  text-align: center; padding: 4rem 2rem;
  color: var(--text-muted); font-size: 0.9rem;
}
.orders-empty-icon { font-size: 2.5rem; margin-bottom: 1rem; }

/* --- Status Badges --- */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.28rem 0.75rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.badge-pending { background: #FFFBEB; color: #92400E; }
.badge-pending::before { background: var(--warning); }
.badge-paid { background: #EBF8FF; color: #1A365D; }
.badge-paid::before { background: #3182CE; }
.badge-processing { background: #EBF4FF; color: #2B6CB0; }
.badge-processing::before { background: #4299E1; animation: pulse 1.5s infinite; }
.badge-completed { background: var(--success-bg); color: #22543D; }
.badge-completed::before { background: var(--success); }
.badge-cancelled { background: #FFF5F5; color: #742A2A; }
.badge-cancelled::before { background: var(--error); }

/* --- Cards --- */
.card {
  background: white; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

/* --- Alerts --- */
.alert {
  padding: 0.875rem 1.25rem; border-radius: var(--radius-sm);
  font-size: 0.9rem; display: flex; align-items: flex-start; gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.alert-success { background: var(--success-bg); color: #276749; border-left: 3px solid var(--success); }
.alert-error { background: var(--error-bg); color: #C53030; border-left: 3px solid var(--error); }
.alert-warning { background: var(--warning-bg); color: #744210; border-left: 3px solid var(--warning); }
.alert-info { background: #EBF8FF; color: #2B6CB0; border-left: 3px solid #3182CE; }
.alert-icon { flex-shrink: 0; font-size: 1rem; }
#global-alert { display: none; position: fixed; top: 88px; right: 1.5rem; z-index: 9999; max-width: 400px; }

/* --- File Upload --- */
.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2.5rem; text-align: center;
  transition: all var(--transition); cursor: pointer; position: relative;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary); background: rgba(15,52,96,0.03);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.upload-text { font-size: 0.9rem; color: var(--text-secondary); }
.upload-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }
.upload-progress {
  background: var(--surface-alt); border-radius: var(--radius-sm); overflow: hidden;
  height: 6px; margin-top: 1rem;
}
.upload-progress-bar {
  height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.3s ease; border-radius: var(--radius-sm);
}

/* --- Order Total --- */
.order-total {
  background: var(--surface-alt); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.order-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-secondary);
}
.order-total-row.total {
  border-top: 1px solid var(--border); margin-top: 0.75rem;
  padding-top: 1rem; font-size: 1.1rem; font-weight: 700; color: var(--text-primary);
}
.order-total-row.total span:last-child { color: var(--primary); font-size: 1.25rem; }

/* --- Checkout Page --- */
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.checkout-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.checkout-card-header { padding: 1.5rem 1.75rem; border-bottom: 1px solid var(--border); }
.checkout-card-header h3 { font-size: 1rem; }
.checkout-card-body { padding: 1.75rem; }
.checkout-summary { background: var(--surface-alt); border-radius: var(--radius-lg); padding: 1.75rem; position: sticky; top: 100px; }
.checkout-summary-title { font-size: 1rem; font-weight: 600; margin-bottom: 1.5rem; }

/* --- Success Page --- */
.success-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.success-card { background: white; border-radius: var(--radius-lg); padding: 3.5rem 3rem; text-align: center; max-width: 520px; box-shadow: var(--shadow-lg); }
.success-icon { width: 80px; height: 80px; background: var(--success-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; font-size: 2rem; }
.success-order-number { background: var(--surface-alt); border-radius: var(--radius-sm); padding: 0.75rem 1.25rem; display: inline-block; margin: 1.25rem 0; font-size: 0.875rem; }
.success-order-number strong { color: var(--primary); }
.success-next-steps { text-align: left; background: var(--surface-alt); border-radius: var(--radius); padding: 1.5rem; margin: 1.5rem 0; }
.success-next-steps h4 { margin-bottom: 0.875rem; }
.success-next-steps li { display: flex; gap: 0.75rem; padding: 0.4rem 0; font-size: 0.875rem; color: var(--text-secondary); }
.success-next-steps li::before { content: '→'; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* --- Footer --- */
.footer {
  background: var(--primary-dark); color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img { height: 40px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem; font-size: 0.8rem;
}
.footer-bottom a { color: var(--accent); }
.footer-contact { font-size: 0.875rem; color: rgba(255,255,255,0.6); margin-top: 1rem; }
.footer-contact a { color: rgba(255,255,255,0.75); }
.footer-contact a:hover { color: var(--accent); }

/* --- Utilities --- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; } .text-right { text-align: right; }
.flex { display: flex; } .flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
.spinner { width: 20px; height: 20px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }

/* --- Animations --- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { animation: fadeIn 0.4s ease forwards; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; inset: 72px 0 0; background: white; padding: 1.5rem; gap: 0.25rem; z-index: 999; overflow-y: auto; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.875rem 1rem; border-radius: var(--radius-sm); font-size: 1rem; }
  .nav-links .btn { margin: 0.25rem 0; }
  .nav-toggle { display: flex; }
  .hero { padding: 7rem 0 4rem; }
  .hero-stats { gap: 1.5rem; }
  .section { padding: 4rem 0; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { width: 100%; height: auto; position: relative; top: auto; }
  .dashboard-main { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .auth-card { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .orders-table { display: block; overflow-x: auto; }
}
