/* ═══════════════════════════════════════════════
   FASTER FREIGHT PORTAL — portal.css v1.0
   Red: #C41E1E | Dark: #1C1A18
═══════════════════════════════════════════════ */
:root {
  --ff-red:       #C41E1E;
  --ff-red-dark:  #8B1010;
  --ff-red-hover: #A81818;
  --ff-red-10:    rgba(196,30,30,0.08);
  --ff-red-15:    rgba(196,30,30,0.15);
  --ff-dark:      #1C1A18;
  --ff-white:     #ffffff;
  --ff-gray-50:   #F5F4F2;
  --ff-gray-100:  #E8E6E3;
  --ff-gray-300:  #C4C1BB;
  --ff-gray-500:  #8A8680;
  --ff-gray-700:  #4A4845;
  --ff-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --ff-shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --ff-shadow-lg: 0 16px 40px rgba(0,0,0,0.14);
  --ff-radius:    10px;
  --ff-font:      'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --ff-mono:      'DM Mono', 'Courier New', monospace;
}

/* ── BASE ─────────────────────────────────── */
.ff-auth-wrap *, .ff-dash-wrap *, .ff-track-public * {
  box-sizing: border-box;
  font-family: var(--ff-font);
}

/* ── SHARED FORM ELEMENTS ──────────────────── */
.ff-input {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--ff-gray-100);
  border-radius: var(--ff-radius);
  font-size: 13.5px;
  color: var(--ff-dark);
  background: #fff;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  font-family: var(--ff-font);
}
.ff-input:focus {
  border-color: var(--ff-red);
  box-shadow: 0 0 0 3px var(--ff-red-10);
}
.ff-input::placeholder { color: var(--ff-gray-300); }
.ff-input[disabled]    { opacity: .55; cursor: not-allowed; }
textarea.ff-input      { resize: vertical; min-height: 80px; }
.ff-select             { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238A8680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }

.ff-label  { display: block; font-size: 11px; font-weight: 700; color: var(--ff-gray-700); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 5px; }
.ff-req    { color: var(--ff-red); }
.ff-form-group { display: flex; flex-direction: column; margin-bottom: 12px; }
.ff-form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-form-2col  { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-form-full  { grid-column: 1 / -1; }
@media (max-width: 520px) { .ff-form-row, .ff-form-2col { grid-template-columns: 1fr; } }

.ff-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 20px; border-radius: var(--ff-radius); font-size: 13.5px; font-weight: 700; cursor: pointer; border: none; transition: all .2s; font-family: var(--ff-font); }
.ff-btn-primary { background: var(--ff-red); color: #fff; }
.ff-btn-primary:hover { background: var(--ff-red-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(196,30,30,.3); }
.ff-btn-outline { background: #fff; color: var(--ff-dark); border: 1.5px solid var(--ff-gray-100); }
.ff-btn-outline:hover { border-color: var(--ff-red); color: var(--ff-red); background: var(--ff-red-10); }
.ff-btn-danger  { background: #DC2626; color: #fff; }
.ff-btn-danger:hover { background: #B91C1C; }
.ff-btn-spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: ffspin .7s linear infinite; }
@keyframes ffspin { to { transform: rotate(360deg); } }

.ff-notice { padding: 10px 14px; border-radius: var(--ff-radius); font-size: 13px; margin-bottom: 14px; }
.ff-notice--success { background: #D1FAE5; color: #065F46; border: 1px solid #6EE7B7; }
.ff-notice--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FCA5A5; }
.ff-notice--info    { background: #DBEAFE; color: #1E3A8A; border: 1px solid #93C5FD; }

.ff-link       { color: var(--ff-red); text-decoration: none; font-weight: 600; }
.ff-link:hover { text-decoration: underline; }
.ff-link-small { font-size: 11px; color: var(--ff-gray-500); text-decoration: none; }
.ff-link-small:hover { color: var(--ff-red); }
.ff-checkbox-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; color: var(--ff-gray-700); margin-bottom: 14px; cursor: pointer; line-height: 1.5; }
.ff-checkbox-row input { margin-top: 2px; accent-color: var(--ff-red); }

.ff-input-icon { position: relative; }
.ff-input-icon .ff-input { padding-right: 42px; }
.ff-eye-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--ff-gray-500); padding: 4px; display: flex; }
.ff-eye-btn:hover { color: var(--ff-red); }
.ff-eye-btn .eye-icon { width: 17px; height: 17px; }

/* Password strength */
.ff-pass-strength { height: 3px; border-radius: 2px; background: var(--ff-gray-100); margin-top: 5px; overflow: hidden; }
.ff-pass-strength::after { content: ''; display: block; height: 100%; border-radius: 2px; transition: width .3s, background .3s; }
.ff-pass-strength.weak::after   { width: 33%; background: #EF4444; }
.ff-pass-strength.fair::after   { width: 66%; background: #F59E0B; }
.ff-pass-strength.strong::after { width: 100%; background: #10B981; }

/* ── AUTH PAGES ──────────────────────────────── */
.ff-auth-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
  max-width: 900px;
  margin: 30px auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--ff-shadow-lg);
  border: 1px solid var(--ff-gray-100);
}
.ff-auth-wrap--narrow { grid-template-columns: 1fr; max-width: 440px; }
@media (max-width: 680px) { .ff-auth-wrap { grid-template-columns: 1fr; } .ff-auth-visual { display: none; } }

.ff-auth-panel { background: #fff; padding: 36px 32px; display: flex; flex-direction: column; }
.ff-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.ff-auth-logo  { width: 40px; height: 40px; background: var(--ff-red); border-radius: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ff-auth-logo svg { width: 22px; height: 22px; }
.ff-auth-brand-name { font-size: 15px; font-weight: 800; color: var(--ff-dark); letter-spacing: -.3px; }
.ff-auth-brand-tag  { font-size: 9px; color: var(--ff-gray-500); font-style: italic; letter-spacing: .3px; }
.ff-auth-title { font-size: 22px; font-weight: 800; color: var(--ff-dark); margin-bottom: 5px; letter-spacing: -.4px; }
.ff-auth-sub   { font-size: 13px; color: var(--ff-gray-500); margin-bottom: 20px; line-height: 1.5; }
.ff-auth-switch{ font-size: 12.5px; color: var(--ff-gray-500); text-align: center; margin-top: 16px; }

.ff-auth-visual { background: linear-gradient(145deg, var(--ff-red-dark) 0%, var(--ff-red) 100%); padding: 40px 32px; display: flex; align-items: center; position: relative; overflow: hidden; }
.ff-auth-visual::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='%23fff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.ff-auth-visual-inner { position: relative; }
.ff-visual-icon  { font-size: 48px; margin-bottom: 16px; }
.ff-visual-title { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.ff-visual-text  { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 24px; }
.ff-visual-stats { display: flex; gap: 20px; }
.ff-vstat-num    { font-size: 24px; font-weight: 800; color: #fff; }
.ff-vstat-label  { font-size: 11px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }
.ff-ff-example   { background: rgba(255,255,255,.15); border-radius: 10px; padding: 14px 16px; margin-top: 8px; border: 1px solid rgba(255,255,255,.2); }
.ff-ff-ex-label  { font-size: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; }
.ff-ff-ex-num    { font-family: var(--ff-mono); font-size: 16px; color: #fff; font-weight: 500; margin-top: 4px; letter-spacing: 1px; }

/* ── DASHBOARD WRAP ──────────────────────────── */
.ff-dash-wrap { max-width: 1020px; margin: 0 auto; font-family: var(--ff-font); }

/* Top nav */
.ff-dash-topnav { background: var(--ff-dark); padding: 0 24px; height: 58px; display: flex; align-items: center; justify-content: space-between; border-radius: 12px 12px 0 0; }
.ff-dash-brand  { display: flex; align-items: center; gap: 9px; }
.ff-dash-logo   { width: 36px; height: 36px; background: var(--ff-red); border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.ff-dash-logo svg { width: 20px; height: 20px; }
.ff-dash-brand-name { font-size: 14px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.ff-dash-brand-tag  { font-size: 9px; color: rgba(255,255,255,.45); letter-spacing: .4px; }
.ff-dash-tabs { display: flex; gap: 4px; }
.ff-dtab { font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.15); background: none; color: rgba(255,255,255,.6); cursor: pointer; transition: all .18s; font-family: var(--ff-font); }
.ff-dtab:hover  { background: rgba(255,255,255,.1); color: #fff; }
.ff-dtab.active { background: #fff; color: var(--ff-red); border-color: #fff; }
.ff-dash-topright { display: flex; gap: 8px; }
.ff-topnav-btn { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 7px 13px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); cursor: pointer; transition: all .15s; font-family: var(--ff-font); }
.ff-topnav-btn svg { width: 14px; height: 14px; }
.ff-topnav-btn:hover { background: rgba(255,255,255,.15); color: #fff; }
.ff-topnav-btn--red { border-color: rgba(196,30,30,.5); background: rgba(196,30,30,.2); }
.ff-topnav-btn--red:hover { background: var(--ff-red); }

/* Hero band */
.ff-dash-hero { background: linear-gradient(135deg, var(--ff-red-dark), var(--ff-red)); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; overflow: hidden; }
.ff-dash-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='%23fff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E"); }
.ff-dash-hero-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.65); margin-bottom: 4px; }
.ff-dash-hero-title { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.ff-dash-hero-sub { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 3px; }
.ff-kpi    { text-align: center; }
.ff-kpi-val{ font-size: 24px; font-weight: 800; color: #fff; line-height: 1; }
.ff-kpi-label { font-size: 10px; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.ff-kpi-div{ width: 1px; background: rgba(255,255,255,.2); align-self: stretch; margin: 4px 0; }
.ff-dash-kpis { display: flex; gap: 16px; align-items: center; position: relative; flex-shrink: 0; }

/* Main grid */
.ff-dash-grid { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 16px; background: var(--ff-gray-50); border-radius: 0 0 12px 12px; }
@media (max-width: 680px) { .ff-dash-grid { grid-template-columns: 1fr; } .ff-dash-tabs { display: none; } }

/* Profile card */
.ff-profile-card { background: #fff; border-radius: 12px; border: 1px solid var(--ff-gray-100); overflow: hidden; box-shadow: var(--ff-shadow-sm); position: sticky; top: 16px; }
.ff-profile-banner { height: 64px; background: linear-gradient(135deg, var(--ff-red-dark), var(--ff-red)); position: relative; }
.ff-profile-avatar { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); width: 50px; height: 50px; background: var(--ff-red-dark); border-radius: 50%; border: 3px solid #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--ff-shadow-md); transition: transform .2s; }
.ff-profile-avatar:hover { transform: translateX(-50%) scale(1.05); }
.ff-profile-avatar span { font-size: 17px; font-weight: 800; color: #fff; }
.ff-profile-body { padding: 32px 16px 14px; text-align: center; }
.ff-profile-name { font-size: 14px; font-weight: 700; color: var(--ff-dark); }
.ff-profile-email { font-size: 11px; color: var(--ff-gray-500); word-break: break-all; margin-top: 2px; }
.ff-profile-verified { display: inline-flex; align-items: center; gap: 4px; background: var(--ff-red-10); color: var(--ff-red); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 10px; margin-top: 8px; }
.ff-profile-divider { height: 1px; background: var(--ff-gray-100); margin: 12px 0; }
.ff-profile-info { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.ff-pinfo-row { display: flex; align-items: flex-start; gap: 8px; }
.ff-pinfo-ic { width: 28px; height: 28px; border-radius: 7px; background: var(--ff-gray-50); border: 1px solid var(--ff-gray-100); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ff-pinfo-ic svg { width: 13px; height: 13px; stroke: var(--ff-gray-700); }
.ff-pinfo-label { font-size: 10px; color: var(--ff-gray-500); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.ff-pinfo-val { font-size: 11.5px; font-weight: 600; color: var(--ff-dark); line-height: 1.35; margin-top: 1px; }
.ff-ff-number-box { background: linear-gradient(135deg, var(--ff-red-10), rgba(196,30,30,.04)); border: 1px solid var(--ff-red-15); border-radius: var(--ff-radius); padding: 10px 12px; margin-top: 12px; text-align: left; }
.ff-ff-number-label { font-size: 9px; font-weight: 700; color: var(--ff-red); text-transform: uppercase; letter-spacing: .6px; }
.ff-ff-number-val { font-family: var(--ff-mono); font-size: 11px; font-weight: 500; color: var(--ff-red-dark); margin-top: 3px; word-break: break-all; line-height: 1.4; }
.ff-ff-number-note { font-size: 10px; color: var(--ff-gray-500); margin-top: 4px; line-height: 1.4; }
.ff-profile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 16px 14px; }
.ff-paction-btn { padding: 8px 6px; border-radius: 8px; border: 1px solid var(--ff-gray-100); background: #fff; cursor: pointer; font-size: 11px; font-weight: 600; color: var(--ff-gray-700); display: flex; align-items: center; justify-content: center; gap: 4px; transition: all .18s; font-family: var(--ff-font); }
.ff-paction-btn svg { width: 12px; height: 12px; }
.ff-paction-btn:hover { border-color: var(--ff-red); color: var(--ff-red); background: var(--ff-red-10); }
.ff-paction-btn--danger:hover { border-color: #DC2626; color: #DC2626; background: #FEE2E2; }

/* Section cards */
.ff-content-col { display: flex; flex-direction: column; gap: 14px; }
.ff-section-card { background: #fff; border-radius: 12px; border: 1px solid var(--ff-gray-100); overflow: hidden; box-shadow: var(--ff-shadow-sm); }
.ff-section-head { padding: 13px 18px; border-bottom: 1px solid var(--ff-gray-100); display: flex; align-items: center; justify-content: space-between; }
.ff-section-title { font-size: 13.5px; font-weight: 700; color: var(--ff-dark); display: flex; align-items: center; gap: 7px; }
.ff-section-title svg { width: 15px; height: 15px; stroke: var(--ff-red); }
.ff-section-head-right { display: flex; align-items: center; gap: 8px; }
.ff-section-close { font-size: 12px; color: var(--ff-gray-500); cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: all .15s; }
.ff-section-close:hover { background: #FEE2E2; color: #DC2626; }
.ff-section-sub-label { font-size: 11px; color: var(--ff-gray-500); }
.ff-section-body { padding: 18px; }
.ff-count-badge { background: var(--ff-red); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }

/* Table */
.ff-table-wrap { overflow-x: auto; }
.ff-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ff-table th { background: var(--ff-dark); color: rgba(255,255,255,.8); font-weight: 600; padding: 9px 16px; text-align: left; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.ff-table td { padding: 12px 16px; border-bottom: 1px solid var(--ff-gray-50); vertical-align: middle; }
.ff-table tbody tr { cursor: pointer; transition: background .12s; }
.ff-table tbody tr:hover td { background: var(--ff-gray-50); }
.ff-table tbody tr:last-child td { border-bottom: none; }
.ff-table-empty { text-align: center; padding: 28px !important; color: var(--ff-gray-500); font-size: 13px; cursor: default !important; }
.ff-table tbody tr:hover .ff-table-empty { background: transparent !important; }

.ff-tracking-num { font-family: var(--ff-mono); font-size: 11.5px; color: var(--ff-red-dark); font-weight: 500; }
.ff-view-btn { font-size: 11px; color: var(--ff-red); font-weight: 700; padding: 4px 10px; border-radius: 7px; border: 1px solid var(--ff-red-15); background: var(--ff-red-10); white-space: nowrap; transition: all .15s; }
.ff-table tr:hover .ff-view-btn { background: var(--ff-red); color: #fff; }

/* Status chips */
.ff-chip { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; letter-spacing: .2px; }
.ff-chip::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.ff-chip-hold      { background: #FEF3C7; color: #92400E; }
.ff-chip-transit   { background: #DBEAFE; color: #1E40AF; }
.ff-chip-delivered { background: #D1FAE5; color: #065F46; }
.ff-chip-pending   { background: var(--ff-red-10); color: var(--ff-red); }
.ff-chip-received  { background: #EDE9FE; color: #5B21B6; }
.ff-chip-customs   { background: #FEF3C7; color: #78350F; }
.ff-chip-cancelled { background: #F3F4F6; color: #4B5563; }

/* Support */
.ff-support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px; }
@media (max-width: 500px) { .ff-support-grid { grid-template-columns: 1fr; } }
.ff-supp-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--ff-gray-100); border-radius: 10px; cursor: pointer; transition: all .18s; text-decoration: none; background: #fff; }
.ff-supp-item:hover { border-color: var(--ff-red); background: var(--ff-red-10); transform: translateY(-1px); box-shadow: var(--ff-shadow-sm); }
.ff-supp-ic { width: 34px; height: 34px; border-radius: 8px; background: var(--ff-gray-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ff-supp-ic svg { width: 14px; height: 14px; stroke: var(--ff-red); }
.ff-supp-name { font-size: 12.5px; font-weight: 700; color: var(--ff-dark); }
.ff-supp-sub  { font-size: 10px; color: var(--ff-gray-500); margin-top: 1px; }

/* Success screen */
.ff-success-screen { text-align: center; padding: 24px 16px; }
.ff-success-icon { width: 54px; height: 54px; background: #D1FAE5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; font-size: 22px; color: #065F46; font-weight: 800; }
.ff-success-title { font-size: 17px; font-weight: 800; color: var(--ff-dark); margin-bottom: 7px; }
.ff-success-sub   { font-size: 13px; color: var(--ff-gray-500); line-height: 1.6; margin-bottom: 18px; }

/* ── MODALS ───────────────────────────────────── */
.ff-modal-bg { position: fixed; inset: 0; background: rgba(28,26,24,.55); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 20px; backdrop-filter: blur(4px); }
.ff-modal-bg.open { display: flex; animation: ff-fadein .2s ease; }
@keyframes ff-fadein { from { opacity: 0; } to { opacity: 1; } }
.ff-modal { background: #fff; border-radius: 14px; width: 100%; max-width: 460px; box-shadow: var(--ff-shadow-lg); overflow: hidden; animation: ff-slidein .25s ease; }
.ff-modal--wide { max-width: 560px; }
.ff-modal--sm   { max-width: 380px; }
@keyframes ff-slidein { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.ff-modal-head { padding: 16px 20px; border-bottom: 1px solid var(--ff-gray-100); display: flex; align-items: center; justify-content: space-between; }
.ff-modal-title { font-size: 15px; font-weight: 800; color: var(--ff-dark); }
.ff-modal-close { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--ff-gray-100); background: var(--ff-gray-50); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; color: var(--ff-gray-500); transition: all .15s; font-family: var(--ff-font); }
.ff-modal-close:hover { background: #FEE2E2; color: #DC2626; border-color: #FCA5A5; }
.ff-modal-body { padding: 18px 20px; max-height: 70vh; overflow-y: auto; }

/* Track modal */
.ff-track-row { display: flex; gap: 8px; margin-bottom: 14px; }
.ff-track-row .ff-input { font-family: var(--ff-mono); }
.ff-track-meta { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; background: var(--ff-gray-50); border-radius: var(--ff-radius); border: 1px solid var(--ff-gray-100); margin-bottom: 16px; }
.ff-track-meta-label { font-size: 10px; color: var(--ff-gray-500); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; margin-bottom: 3px; }
.ff-track-details { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; font-size: 12px; }
.ff-track-detail-item { background: var(--ff-gray-50); padding: 8px 11px; border-radius: 8px; }
.ff-track-detail-label { font-size: 10px; color: var(--ff-gray-500); text-transform: uppercase; letter-spacing: .4px; font-weight: 600; }
.ff-track-detail-val { font-weight: 600; color: var(--ff-dark); margin-top: 2px; }

/* Progress tracker */
.ff-progress-track { display: flex; align-items: flex-start; gap: 0; position: relative; }
.ff-prog-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; position: relative; }
.ff-prog-step:not(:last-child)::after { content: ''; position: absolute; top: 10px; left: 50%; width: 100%; height: 2px; background: var(--ff-gray-100); z-index: 0; }
.ff-prog-step.done:not(:last-child)::after { background: var(--ff-red); }
.ff-prog-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ff-gray-100); background: #fff; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 10px; transition: all .3s; }
.ff-prog-step.done .ff-prog-dot { background: var(--ff-red); border-color: var(--ff-red); color: #fff; }
.ff-prog-step.active .ff-prog-dot { border-color: var(--ff-red); box-shadow: 0 0 0 4px var(--ff-red-10); }
.ff-prog-label { font-size: 9px; color: var(--ff-gray-500); text-align: center; line-height: 1.3; max-width: 48px; font-weight: 500; }
.ff-prog-step.done .ff-prog-label, .ff-prog-step.active .ff-prog-label { color: var(--ff-red); font-weight: 700; }

/* Public track page */
.ff-track-public { max-width: 560px; margin: 32px auto; }
.ff-track-box { background: #fff; border-radius: 14px; padding: 32px; box-shadow: var(--ff-shadow-md); border: 1px solid var(--ff-gray-100); }
.ff-track-title { font-size: 22px; font-weight: 800; color: var(--ff-dark); margin-bottom: 6px; }
.ff-track-sub { font-size: 13px; color: var(--ff-gray-500); margin-bottom: 18px; }
.ff-track-input-row { display: flex; gap: 8px; margin-bottom: 14px; }

/* Toast */
.ff-toast { position: fixed; bottom: 20px; right: 20px; background: var(--ff-dark); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 12.5px; font-weight: 500; z-index: 999999; display: flex; align-items: center; gap: 8px; box-shadow: var(--ff-shadow-lg); opacity: 0; transform: translateY(10px); transition: all .3s; pointer-events: none; max-width: 300px; }
.ff-toast.show { opacity: 1; transform: translateY(0); }
.ff-toast-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ff-red); flex-shrink: 0; }
.ff-toast.success .ff-toast-dot { background: #10B981; }
.ff-toast.error   .ff-toast-dot { background: #EF4444; }
.ff-toast.info    .ff-toast-dot { background: #3B82F6; }
