/* ============================================================
   FlexGo — Design System
   Orange Fire × Dark Navy × Clean White
   ============================================================ */

:root {
  --fg-orange:    #FF6B35;
  --fg-orange-d:  #E55A28;
  --fg-orange-l:  #FFF1EC;
  --fg-navy:      #0D1B2A;
  --fg-navy-2:    #1A2D40;
  --fg-navy-3:    #243447;
  --fg-white:     #FFFFFF;
  --fg-off-white: #F8F7F4;
  --fg-gray-1:    #F2F1EE;
  --fg-gray-2:    #E0DEDB;
  --fg-gray-3:    #A8A49F;
  --fg-gray-4:    #6B6762;
  --fg-text:      #1C1A18;
  --fg-green:     #22C55E;
  --fg-red:       #EF4444;
  --fg-yellow:    #F59E0B;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.14);
  --shadow-orange: 0 6px 24px rgba(255,107,53,.35);

  --nav-h: 68px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-text);
  background: var(--fg-off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
.fg-main { flex: 1; padding-top: var(--nav-h); }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

/* ── NAV ── */
.fg-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(13,27,42,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.fg-nav.scrolled { background: var(--fg-navy); }
.fg-nav__inner {
  max-width: 1280px; margin: auto;
  height: 100%; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
}
.fg-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.fg-logo__icon { font-size: 28px; filter: drop-shadow(0 0 8px #FF6B35); }
.fg-logo__text strong { color: var(--fg-orange); }
.fg-nav__links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.fg-nav__links a {
  color: rgba(255,255,255,.72); padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: 14px; font-weight: 500;
  transition: all var(--transition); display: flex; align-items: center; gap: 6px;
}
.fg-nav__links a:hover, .fg-nav__links a.active {
  color: #fff; background: rgba(255,255,255,.08);
}
.fg-nav__actions { display: flex; align-items: center; gap: 10px; }
.fg-burger { display: none; color: #fff; font-size: 22px; padding: 6px; }

/* ── BUTTONS ── */
.btn-primary, .btn-ghost, .btn-outline, .btn-danger, .btn-success {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  transition: all var(--transition); cursor: pointer; border: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--fg-orange); color: #fff;
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover { background: var(--fg-orange-d); transform: translateY(-1px); }
.btn-ghost { color: rgba(255,255,255,.85); }
.btn-ghost:hover { color: #fff; background: rgba(255,255,255,.1); }
.btn-outline {
  border: 1.5px solid var(--fg-orange); color: var(--fg-orange);
  background: transparent;
}
.btn-outline:hover { background: var(--fg-orange); color: #fff; }
.btn-danger { background: var(--fg-red); color: #fff; }
.btn-success { background: var(--fg-green); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-md); }
.btn-full { width: 100%; justify-content: center; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.8); background: rgba(255,255,255,.08);
  font-size: 18px; transition: all var(--transition); position: relative;
}
.icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ── BADGE ── */
.badge-dot {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; border-radius: 9px; padding: 0 4px;
  background: var(--fg-orange); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--fg-navy);
}
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.badge-orange { background: var(--fg-orange-l); color: var(--fg-orange); }
.badge-green { background: #DCFCE7; color: #16A34A; }
.badge-red { background: #FEE2E2; color: #DC2626; }
.badge-gray { background: var(--fg-gray-1); color: var(--fg-gray-4); }
.badge-navy { background: var(--fg-navy); color: #fff; }

/* ── AVATAR ── */
.fg-avatar-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); border-radius: 99px;
  padding: 4px 12px 4px 4px; color: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 500; transition: all var(--transition);
}
.fg-avatar-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.fg-avatar-btn img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.fg-avatar-initials {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fg-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.fg-username { font-family: var(--font-display); }

/* ── DROPDOWN ── */
.fg-user-menu, .fg-notif-btn { position: relative; }
.fg-dropdown, .fg-notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  background: var(--fg-white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--fg-gray-2);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: all var(--transition); z-index: 999;
}
.fg-dropdown { min-width: 220px; padding: 8px; }
.fg-dropdown.open, .fg-notif-panel.open { opacity: 1; visibility: visible; transform: none; }
.fg-dropdown__header { padding: 10px 12px 14px; border-bottom: 1px solid var(--fg-gray-1); margin-bottom: 8px; }
.fg-dropdown__header p { font-weight: 600; font-size: 14px; }
.fg-dropdown__header small { color: var(--fg-gray-3); font-size: 12px; }
.fg-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--fg-text);
  transition: background var(--transition);
}
.fg-dropdown a:hover { background: var(--fg-gray-1); }
.fg-dropdown a.text-danger { color: var(--fg-red); }
.fg-dropdown__divider { height: 1px; background: var(--fg-gray-1); margin: 8px 0; }
.fg-notif-panel { width: 320px; padding: 0; overflow: hidden; }
.fg-notif-panel h5 { padding: 16px; font-size: 15px; border-bottom: 1px solid var(--fg-gray-1); }

/* ── FLASH MESSAGES ── */
.fg-flash {
  position: fixed; top: calc(var(--nav-h) + 12px); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md); z-index: 2000; animation: slideDown .3s ease;
}
.fg-flash--success { background: #DCFCE7; color: #16A34A; border: 1px solid #BBF7D0; }
.fg-flash--error   { background: #FEE2E2; color: #DC2626; border: 1px solid #FECACA; }
.fg-flash--info    { background: var(--fg-orange-l); color: var(--fg-orange); }
.fg-flash button { margin-left: 8px; font-size: 18px; color: inherit; }
@keyframes slideDown { from { opacity:0; transform: translateX(-50%) translateY(-12px); } }

/* ── HERO (landing) ── */
.fg-hero {
  background: var(--fg-navy);
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.fg-hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(255,107,53,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(255,107,53,.08) 0%, transparent 60%);
}
.fg-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.fg-hero__inner {
  max-width: 1280px; margin: auto; padding: 80px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative;
}
.fg-hero__tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,53,.15); border: 1px solid rgba(255,107,53,.3);
  color: var(--fg-orange); padding: 6px 14px; border-radius: 99px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.fg-hero__title {
  font-size: clamp(40px, 5vw, 72px);
  color: #fff; line-height: 1.05; margin-bottom: 20px;
}
.fg-hero__title .highlight {
  color: var(--fg-orange);
  position: relative; display: inline-block;
}
.fg-hero__sub { color: rgba(255,255,255,.62); font-size: 17px; line-height: 1.7; margin-bottom: 36px; }
.fg-hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fg-hero__services {
  display: flex; gap: 16px; margin-top: 48px; flex-wrap: wrap;
}
.fg-hero__service {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  padding: 10px 16px; border-radius: var(--radius-sm); color: rgba(255,255,255,.8);
  font-size: 13px; font-weight: 500;
}
.fg-hero__service i { color: var(--fg-orange); font-size: 18px; }
.fg-hero__visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.fg-hero__phone {
  width: 280px; height: 560px; background: var(--fg-navy-2);
  border-radius: 40px; border: 2px solid rgba(255,255,255,.1);
  box-shadow: 0 40px 80px rgba(0,0,0,.5), 0 0 60px rgba(255,107,53,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; overflow: hidden; position: relative;
}
.fg-hero__phone-inner { padding: 24px; width: 100%; }
.fg-map-card {
  background: var(--fg-navy-3); border-radius: 16px; padding: 16px;
  margin-bottom: 16px;
}
.fg-map-placeholder {
  height: 120px; background: linear-gradient(135deg, #1A2D40 0%, #243447 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin-bottom: 12px; position: relative;
}
.fg-map-pin {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: var(--fg-orange); font-size: 28px;
  animation: bounce 1.5s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,-65%); } 50% { transform: translate(-50%,-35%); } }
.fg-map-card p { color: #fff; font-size: 13px; font-weight: 600; }
.fg-map-card small { color: var(--fg-gray-3); font-size: 12px; }
.fg-status-card {
  background: var(--fg-orange); border-radius: 12px; padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.fg-status-card i { color: #fff; font-size: 22px; }
.fg-status-card span { color: #fff; font-size: 13px; font-weight: 700; }
.fg-float-badge {
  position: absolute; background: #fff; border-radius: 12px;
  padding: 8px 14px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
}
.fg-float-badge.tl { top: 20px; left: -30px; animation: float 3s ease-in-out infinite; }
.fg-float-badge.tr { top: 120px; right: -40px; animation: float 3s ease-in-out infinite .5s; }
.fg-float-badge.bl { bottom: 100px; left: -40px; animation: float 3s ease-in-out infinite 1s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ── STATS ── */
.fg-stats {
  background: var(--fg-orange); padding: 40px 24px;
}
.fg-stats__inner {
  max-width: 1280px; margin: auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.fg-stat__num { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: #fff; }
.fg-stat__label { color: rgba(255,255,255,.75); font-size: 14px; }

/* ── SERVICES SECTION ── */
.fg-section { padding: 80px 24px; max-width: 1280px; margin: auto; }
.fg-section-title { text-align: center; margin-bottom: 56px; }
.fg-section-title .tag {
  display: inline-block; background: var(--fg-orange-l); color: var(--fg-orange);
  padding: 4px 14px; border-radius: 99px; font-size: 13px; font-weight: 600;
  margin-bottom: 12px;
}
.fg-section-title h2 { font-size: clamp(28px,4vw,44px); margin-bottom: 12px; }
.fg-section-title p { color: var(--fg-gray-4); font-size: 16px; max-width: 560px; margin: auto; }

.fg-services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.fg-service-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 36px 28px; border: 1px solid var(--fg-gray-2);
  transition: all .3s ease; cursor: pointer; position: relative; overflow: hidden;
}
.fg-service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--fg-orange-l), transparent);
  opacity: 0; transition: opacity .3s;
}
.fg-service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--fg-orange); }
.fg-service-card:hover::before { opacity: 1; }
.fg-service-icon {
  width: 64px; height: 64px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 20px;
}
.fg-service-icon.orange { background: var(--fg-orange-l); color: var(--fg-orange); }
.fg-service-icon.navy { background: #EEF2F7; color: var(--fg-navy); }
.fg-service-card h3 { font-size: 20px; margin-bottom: 10px; }
.fg-service-card p { color: var(--fg-gray-4); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.fg-service-card a {
  color: var(--fg-orange); font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ── HOW IT WORKS ── */
.fg-how { background: var(--fg-navy); padding: 80px 24px; }
.fg-how__inner { max-width: 1280px; margin: auto; }
.fg-how .fg-section-title h2, .fg-how .fg-section-title .tag { color: #fff; }
.fg-how .fg-section-title p { color: rgba(255,255,255,.55); }
.fg-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fg-step {
  text-align: center; padding: 24px 16px;
  position: relative;
}
.fg-step::after {
  content: '→'; position: absolute; right: -12px; top: 32px;
  color: var(--fg-orange); font-size: 20px;
}
.fg-step:last-child::after { display: none; }
.fg-step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--fg-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  margin: 0 auto 16px;
}
.fg-step h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.fg-step p { color: rgba(255,255,255,.5); font-size: 13px; line-height: 1.7; }

/* ── REGISTER / LOGIN ── */
.fg-auth {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: var(--fg-navy);
  position: relative;
}
.fg-auth::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255,107,53,.12), transparent 70%);
}
.fg-auth-card {
  background: #fff; border-radius: var(--radius-xl);
  padding: 48px 40px; width: 100%; max-width: 520px;
  position: relative; box-shadow: var(--shadow-lg);
}
.fg-auth-card.wide { max-width: 680px; }
.fg-auth-logo { text-align: center; margin-bottom: 28px; }
.fg-auth-logo .fg-logo { justify-content: center; color: var(--fg-navy); }
.fg-auth-logo p { color: var(--fg-gray-4); font-size: 14px; margin-top: 6px; }
.fg-auth-card h2 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.fg-auth-card .sub { color: var(--fg-gray-4); text-align: center; margin-bottom: 28px; font-size: 14px; }

/* Role selector */
.fg-role-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 24px;
}
.fg-role-card {
  border: 2px solid var(--fg-gray-2); border-radius: var(--radius-md);
  padding: 16px 12px; cursor: pointer; text-align: center;
  transition: all var(--transition); position: relative;
  background: #fff;
}
.fg-role-card:hover { border-color: var(--fg-orange); }
.fg-role-card.selected { border-color: var(--fg-orange); background: var(--fg-orange-l); }
.fg-role-card input[type=radio] { position: absolute; opacity: 0; }
.fg-role-card i { font-size: 28px; color: var(--fg-gray-3); margin-bottom: 8px; display: block; transition: color .2s; }
.fg-role-card.selected i, .fg-role-card:hover i { color: var(--fg-orange); }
.fg-role-card span { font-size: 13px; font-weight: 600; display: block; margin-bottom: 2px; }
.fg-role-card small { font-size: 11px; color: var(--fg-gray-3); }

/* ── FORMS ── */
.fg-form-group { margin-bottom: 16px; }
.fg-form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--fg-navy); }
.fg-input, .fg-select, .fg-textarea {
  width: 100%; padding: 11px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--fg-gray-2); background: var(--fg-gray-1);
  font-size: 14px; color: var(--fg-text); transition: all var(--transition);
  outline: none;
}
.fg-input:focus, .fg-select:focus, .fg-textarea:focus {
  border-color: var(--fg-orange); background: #fff;
  box-shadow: 0 0 0 3px rgba(255,107,53,.12);
}
.fg-input-icon { position: relative; }
.fg-input-icon i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--fg-gray-3); font-size: 16px; pointer-events: none;
}
.fg-input-icon .fg-input { padding-left: 42px; }
.fg-input.error { border-color: var(--fg-red); }
.fg-error-msg { color: var(--fg-red); font-size: 12px; margin-top: 4px; }
.fg-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fg-textarea { resize: vertical; min-height: 100px; }

/* ── VERIFICATION KYC ── */
.fg-kyc { max-width: 780px; margin: 0 auto; padding: 48px 24px; }
.fg-kyc-steps {
  display: flex; align-items: center; gap: 0; margin-bottom: 40px;
}
.fg-kyc-step {
  display: flex; flex-direction: column; align-items: center; flex: 1;
  position: relative;
}
.fg-kyc-step::after {
  content: ''; position: absolute; top: 20px; left: 50%; right: -50%;
  height: 2px; background: var(--fg-gray-2); z-index: 0;
}
.fg-kyc-step:last-child::after { display: none; }
.fg-kyc-step.done::after, .fg-kyc-step.active::after { background: var(--fg-orange); }
.fg-kyc-step__num {
  width: 40px; height: 40px; border-radius: 50%; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--fg-gray-2); background: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--fg-gray-3); transition: all .3s;
}
.fg-kyc-step.done .fg-kyc-step__num { background: var(--fg-green); border-color: var(--fg-green); color: #fff; }
.fg-kyc-step.active .fg-kyc-step__num { background: var(--fg-orange); border-color: var(--fg-orange); color: #fff; }
.fg-kyc-step__label { font-size: 12px; margin-top: 8px; font-weight: 600; color: var(--fg-gray-3); text-align: center; }
.fg-kyc-step.active .fg-kyc-step__label { color: var(--fg-orange); }
.fg-kyc-step.done .fg-kyc-step__label { color: var(--fg-green); }

.fg-upload-zone {
  border: 2px dashed var(--fg-gray-2); border-radius: var(--radius-md);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--fg-gray-1);
}
.fg-upload-zone:hover, .fg-upload-zone.drag { border-color: var(--fg-orange); background: var(--fg-orange-l); }
.fg-upload-zone i { font-size: 40px; color: var(--fg-gray-3); margin-bottom: 12px; display: block; }
.fg-upload-zone p { font-weight: 600; margin-bottom: 4px; }
.fg-upload-zone small { color: var(--fg-gray-3); font-size: 12px; }
.fg-upload-zone.has-file { border-color: var(--fg-green); border-style: solid; background: #F0FDF4; }
.fg-upload-zone.has-file i { color: var(--fg-green); }

/* Signature pad */
#signatureCanvas {
  width: 100%; height: 200px; border: 2px solid var(--fg-gray-2);
  border-radius: var(--radius-sm); background: #fff; cursor: crosshair;
  touch-action: none;
}

/* ── DASHBOARD ── */
.fg-dash {
  display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - var(--nav-h));
}
.fg-sidebar {
  background: var(--fg-navy); padding: 28px 16px;
  border-right: 1px solid var(--fg-navy-3); position: sticky; top: var(--nav-h);
  height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.fg-sidebar__profile {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 16px;
}
.fg-sidebar__profile .fg-avatar-initials { width: 44px; height: 44px; font-size: 16px; flex-shrink: 0; }
.fg-sidebar__profile .name { color: #fff; font-weight: 600; font-size: 14px; }
.fg-sidebar__profile .role-badge { color: var(--fg-orange); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.fg-sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm); color: rgba(255,255,255,.6);
  font-size: 14px; font-weight: 500; transition: all var(--transition); margin-bottom: 2px;
}
.fg-sidebar-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.fg-sidebar-nav a.active { color: #fff; background: var(--fg-orange); }
.fg-sidebar-nav a i { font-size: 18px; }
.fg-sidebar-section { font-size: 10px; font-weight: 700; color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: .1em; padding: 16px 14px 6px; }

.fg-dash-content { padding: 32px; background: var(--fg-off-white); overflow-x: hidden; }
.fg-dash-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.fg-dash-header h1 { font-size: 26px; }
.fg-dash-header p { color: var(--fg-gray-4); font-size: 14px; }

/* KPI Cards */
.fg-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 24px; }
.fg-kpi {
  background: #fff; border-radius: var(--radius-md); padding: 20px 22px;
  border: 1px solid var(--fg-gray-2);
}
.fg-kpi__top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.fg-kpi__icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.fg-kpi__icon.orange { background: var(--fg-orange-l); color: var(--fg-orange); }
.fg-kpi__icon.green  { background: #DCFCE7; color: var(--fg-green); }
.fg-kpi__icon.navy   { background: #EEF2F7; color: var(--fg-navy); }
.fg-kpi__icon.yellow { background: #FEF9C3; color: #CA8A04; }
.fg-kpi__value { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.fg-kpi__label { font-size: 13px; color: var(--fg-gray-4); margin-top: 2px; }
.fg-kpi__change { font-size: 12px; font-weight: 600; }
.fg-kpi__change.up { color: var(--fg-green); }
.fg-kpi__change.down { color: var(--fg-red); }

/* Tables */
.fg-table-card {
  background: #fff; border-radius: var(--radius-md);
  border: 1px solid var(--fg-gray-2); overflow: hidden; margin-bottom: 24px;
}
.fg-table-card__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--fg-gray-1);
}
.fg-table-card__header h3 { font-size: 16px; }
.fg-table { width: 100%; border-collapse: collapse; }
.fg-table th {
  text-align: left; padding: 12px 20px; font-size: 12px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--fg-gray-3); background: var(--fg-gray-1);
}
.fg-table td { padding: 14px 20px; font-size: 14px; border-top: 1px solid var(--fg-gray-1); }
.fg-table tr:hover td { background: var(--fg-gray-1); }

/* Status pills */
.status {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending    { color: #92400E; background: #FEF3C7; }
.status-confirmed  { color: #1E40AF; background: #DBEAFE; }
.status-preparing  { color: #6B21A8; background: #F3E8FF; }
.status-active     { color: #166534; background: #DCFCE7; }
.status-delivered  { color: #166534; background: #DCFCE7; }
.status-cancelled  { color: #991B1B; background: #FEE2E2; }
.status-in_transit { color: #1E40AF; background: #DBEAFE; }
.status-approved   { color: #166534; background: #DCFCE7; }
.status-rejected   { color: #991B1B; background: #FEE2E2; }

/* ── RESTAURANT CARDS ── */
.fg-restaurants-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.fg-rest-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--fg-gray-2); transition: all .3s; cursor: pointer;
}
.fg-rest-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.fg-rest-card__img {
  height: 180px; background: linear-gradient(135deg, var(--fg-navy), var(--fg-navy-2));
  position: relative; overflow: hidden;
}
.fg-rest-card__img img { width: 100%; height: 100%; object-fit: cover; }
.fg-rest-card__img .fg-rest-card__badge {
  position: absolute; bottom: 12px; left: 12px;
  background: #fff; border-radius: 99px; padding: 3px 10px;
  font-size: 12px; font-weight: 700; display: flex; align-items: center; gap: 4px;
}
.fg-rest-card__body { padding: 16px; }
.fg-rest-card__body h3 { font-size: 16px; margin-bottom: 4px; }
.fg-rest-card__body p { font-size: 13px; color: var(--fg-gray-4); margin-bottom: 12px; }
.fg-rest-card__meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--fg-gray-4); }
.fg-rest-card__meta span { display: flex; align-items: center; gap: 4px; }
.fg-rest-card__meta .fee { color: var(--fg-orange); font-weight: 600; }

/* ── CART ── */
.fg-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; padding: 32px 24px; max-width: 1280px; margin: auto; }
.fg-cart-box { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--fg-gray-2); padding: 24px; }
.fg-cart-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--fg-gray-1);
}
.fg-cart-item img { width: 60px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; }
.fg-cart-item__info { flex: 1; }
.fg-cart-item__info h4 { font-size: 14px; font-weight: 600; }
.fg-cart-item__info p { font-size: 13px; color: var(--fg-orange); font-weight: 600; }
.fg-qty { display: flex; align-items: center; gap: 8px; }
.fg-qty button { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--fg-gray-2); font-size: 16px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.fg-qty button:hover { border-color: var(--fg-orange); color: var(--fg-orange); }
.fg-qty span { font-weight: 700; min-width: 24px; text-align: center; }

/* ── TRACKING ── */
.fg-track-timeline { padding: 16px 0; }
.fg-track-event {
  display: flex; gap: 16px; padding-bottom: 24px; position: relative;
}
.fg-track-event::after {
  content: ''; position: absolute; left: 19px; top: 40px; bottom: 0;
  width: 2px; background: var(--fg-gray-2);
}
.fg-track-event:last-child::after { display: none; }
.fg-track-event.done::after { background: var(--fg-orange); }
.fg-track-dot {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--fg-gray-1); border: 2px solid var(--fg-gray-2); color: var(--fg-gray-3);
  font-size: 16px; position: relative; z-index: 1;
}
.fg-track-event.done .fg-track-dot { background: var(--fg-orange); border-color: var(--fg-orange); color: #fff; }
.fg-track-event.active .fg-track-dot { background: #fff; border-color: var(--fg-orange); color: var(--fg-orange); animation: pulse-ring 1.5s infinite; }
@keyframes pulse-ring { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,53,.4); } 50% { box-shadow: 0 0 0 8px rgba(255,107,53,0); } }
.fg-track-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.fg-track-info p { font-size: 12px; color: var(--fg-gray-4); }

/* ── ADMIN ── */
.fg-admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.fg-admin-sidebar {
  background: var(--fg-navy-2); padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,.06);
}

/* ── VERIFY ALERT ── */
.fg-verify-alert {
  background: linear-gradient(135deg, var(--fg-orange), #FF8C42);
  border-radius: var(--radius-md); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px; color: #fff;
}
.fg-verify-alert i { font-size: 28px; flex-shrink: 0; }
.fg-verify-alert h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.fg-verify-alert p { font-size: 13px; opacity: .85; }
.fg-verify-alert .btn-ghost { background: rgba(255,255,255,.2); color: #fff; border: 1px solid rgba(255,255,255,.3); }

/* ── FOOTER ── */
.fg-footer {
  background: var(--fg-navy); padding: 60px 24px 0;
  margin-top: auto;
}
.fg-footer__inner {
  max-width: 1280px; margin: auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.fg-footer__brand .fg-logo { color: #fff; margin-bottom: 16px; }
.fg-footer__brand p { color: rgba(255,255,255,.45); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.fg-footer__socials { display: flex; gap: 10px; }
.fg-footer__socials a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.6);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  transition: all .2s;
}
.fg-footer__socials a:hover { background: var(--fg-orange); color: #fff; }
.fg-footer__links h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.fg-footer__links a { display: block; color: rgba(255,255,255,.45); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.fg-footer__links a:hover { color: var(--fg-orange); }
.fg-footer__bottom { max-width: 1280px; margin: auto; padding: 20px 0; text-align: center; }
.fg-footer__bottom p { color: rgba(255,255,255,.3); font-size: 13px; }

/* ── UTILITIES ── */
.container { max-width: 1280px; margin: auto; padding: 0 24px; }
.text-center { text-align: center; }
.text-orange { color: var(--fg-orange); }
.text-gray { color: var(--fg-gray-4); }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-1 { flex: 1; } .items-center { align-items: center; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--fg-gray-2); padding: 24px; }
.divider { height: 1px; background: var(--fg-gray-2); margin: 20px 0; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--fg-gray-2); border-top-color: var(--fg-orange); border-radius: 50%; animation: spin .7s linear infinite; margin: auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.star { color: #F59E0B; }
.empty-state { text-align: center; padding: 60px 24px; color: var(--fg-gray-4); }
.empty-state i { font-size: 48px; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 18px; color: var(--fg-text); margin-bottom: 8px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .fg-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .fg-hero__visual { display: none; }
  .fg-hero__ctas { justify-content: center; }
  .fg-stats__inner { grid-template-columns: repeat(2,1fr); }
  .fg-services-grid { grid-template-columns: 1fr 1fr; }
  .fg-steps { grid-template-columns: 1fr 1fr; }
  .fg-kpi-grid { grid-template-columns: 1fr 1fr; }
  .fg-restaurants-grid { grid-template-columns: 1fr 1fr; }
  .fg-footer__inner { grid-template-columns: 1fr 1fr; }
  .fg-dash { grid-template-columns: 1fr; }
  .fg-sidebar { display: none; }
}
@media (max-width: 640px) {
  .fg-nav__links { display: none; }
  .fg-burger { display: block; }
  .fg-stats__inner { grid-template-columns: 1fr 1fr; }
  .fg-services-grid { grid-template-columns: 1fr; }
  .fg-steps { grid-template-columns: 1fr; }
  .fg-steps .fg-step::after { display: none; }
  .fg-kpi-grid { grid-template-columns: 1fr 1fr; }
  .fg-restaurants-grid { grid-template-columns: 1fr; }
  .fg-auth-card { padding: 32px 20px; }
  .fg-role-grid { grid-template-columns: 1fr 1fr; }
  .fg-form-row { grid-template-columns: 1fr; }
  .fg-cart-layout { grid-template-columns: 1fr; }
  .fg-footer__inner { grid-template-columns: 1fr; }
}
