:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #0f172a;
  background: #f8fafc;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.site-header {
  min-height: 72px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; background: #06172f; color: white;
}
.site-header nav { display: flex; gap: 20px; align-items: center; }
.brand { font-size: 1.25rem; font-weight: 900; }
.container { width: min(1120px, 90vw); margin: 0 auto; padding: 64px 0; }
.hero { padding: 60px 0; max-width: 800px; }
.hero h1 { font-size: clamp(2.5rem, 7vw, 5rem); line-height: .98; margin: 12px 0 24px; }
.eyebrow { color: #2563eb; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; }
.tracking-box { display: flex; gap: 12px; margin-top: 28px; }
input, button, textarea, select {
  font: inherit; border-radius: 12px; border: 1px solid #cbd5e1; min-height: 48px; padding: 0 14px;
}
input { width: 100%; background: white; }
button, .button { background: #2563eb; border-color: #2563eb; color: white; font-weight: 800; cursor: pointer; padding: 13px 18px; border-radius: 12px; display: inline-block; }
.auth-card, .card {
  background: white; border: 1px solid #e2e8f0; border-radius: 24px; padding: 28px;
  box-shadow: 0 12px 32px rgba(15,23,42,.06);
}
.auth-card { max-width: 520px; margin: 30px auto; }
.stack { display: grid; gap: 18px; }
.stack label { display: grid; gap: 8px; font-weight: 700; }
.alert { margin: 18px 0; padding: 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.inline-form { display: inline; }
.link-button { padding: 0; min-height: auto; background: transparent; border: 0; color: white; }
.site-footer { text-align: center; padding: 30px; color: #64748b; }
.shipment-result { margin-top: 24px; }
@media (max-width: 760px) {
  .site-header { padding: 0 20px; }
  .site-header nav { gap: 12px; font-size: .9rem; }
  .container { padding: 34px 0; }
  .tracking-box { flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
}

.page-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:28px}
.page-head h1{margin:.35rem 0 0;font-size:clamp(2rem,5vw,3.5rem)}
.toolbar{display:flex;gap:12px;margin:0 0 22px}.toolbar select{min-width:210px}
.table-wrap{overflow:auto;background:#fff;border:1px solid #e2e8f0;border-radius:22px}
table{width:100%;border-collapse:collapse;min-width:760px}th,td{padding:16px 18px;text-align:left;border-bottom:1px solid #e2e8f0;vertical-align:top}
th{font-size:.75rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;background:#f8fafc}
.strong-link{font-weight:850}.muted{color:#64748b;font-size:.9rem}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:28px}
.form-grid label{display:grid;gap:8px;font-weight:700}.form-grid .span-2{grid-column:span 2}
textarea,select{width:100%;background:#fff;padding:12px 14px}.check{display:flex!important;align-items:center;gap:10px!important}.check input{width:auto;min-height:auto}
.actions{display:flex;gap:12px}.button.secondary{background:#fff;color:#0f172a;border-color:#cbd5e1}
.split{display:grid;grid-template-columns:1.2fr .8fr;gap:20px;margin-top:20px}
.timeline{display:grid;gap:18px;margin-top:20px}.timeline-item{position:relative;padding-left:22px;border-left:3px solid #dbeafe}
.timeline-item:before{content:"";position:absolute;left:-7px;top:4px;width:11px;height:11px;background:#2563eb;border-radius:999px}
.badge{display:inline-flex;border-radius:999px;padding:5px 9px;background:#eff6ff;color:#1d4ed8;font-size:.72rem;font-weight:850;text-transform:uppercase}
.location-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8f0}
.cards-list{display:grid;gap:16px}.shipment-card{display:flex;justify-content:space-between;gap:18px;align-items:center}
@media(max-width:760px){.page-head{align-items:flex-start;flex-direction:column}.toolbar{flex-direction:column}.toolbar select{min-width:0}.form-grid{grid-template-columns:1fr;padding:20px}.form-grid .span-2{grid-column:span 1}.split{grid-template-columns:1fr}.shipment-card{align-items:flex-start;flex-direction:column}}


/* ===== Phase 3 responsive billing system ===== */
.site-header{padding:0;background:#06172f;color:#fff}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px max(20px,5vw)}
.header-actions{display:flex;align-items:center;gap:12px}
.user-chip{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:rgba(255,255,255,.09);font-size:.85rem;font-weight:800}
.main-nav{display:flex;gap:6px;overflow-x:auto;padding:0 max(14px,5vw) 14px;scrollbar-width:none}
.main-nav::-webkit-scrollbar{display:none}.main-nav a{white-space:nowrap;padding:9px 12px;border-radius:10px;color:#cbd5e1;font-size:.9rem;font-weight:700}
.main-nav a:hover{background:rgba(255,255,255,.08);color:#fff}
.page-actions{display:flex;flex-wrap:wrap;gap:10px}.bottom-actions{margin-top:20px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}
.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:20px;display:grid;gap:8px}
.stat-card span{font-size:.72rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase;color:#64748b}
.stat-card strong{font-size:1.15rem}.emphasis-stat{border-color:#bfdbfe;background:#eff6ff}
.billing-form{display:grid;gap:20px}.form-section{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:24px;display:grid;gap:18px}
.form-section>h2,.section-title-row h2{margin:0}.form-section>label{display:grid;gap:8px;font-weight:700}
.compact-grid{padding:0;border:0;border-radius:0;box-shadow:none}
.section-title-row{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.section-title-row p{margin:.35rem 0 0;color:#64748b}
.invoice-items-editor{display:grid;gap:12px}.invoice-item-editor{display:grid;grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) 90px minmax(130px,1fr) auto;gap:10px;align-items:end;padding:16px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc}
.invoice-item-editor label{display:grid;gap:7px;font-size:.85rem;font-weight:750}.remove-item{min-height:44px;background:#fff;color:#b91c1c;border-color:#fecaca}
.sticky-form-actions{display:flex;flex-wrap:wrap;gap:10px;position:sticky;bottom:12px;padding:12px;border:1px solid #e2e8f0;border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);box-shadow:0 12px 30px rgba(15,23,42,.08);z-index:5}
.invoice-line-list{display:grid}.invoice-line{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:15px 0;border-bottom:1px solid #e2e8f0}
.invoice-totals{margin-left:auto;width:min(420px,100%);padding-top:18px}.invoice-totals>div{display:flex;justify-content:space-between;gap:18px;padding:8px 0}.invoice-totals .grand-total{margin-top:6px;padding-top:14px;border-top:2px solid #cbd5e1;font-size:1.1rem}
.lead-note{font-size:1.05rem;font-weight:750}.pre-line{white-space:pre-line}.break-all{word-break:break-all}
.success-alert{margin:18px 0;padding:14px;border-radius:12px;background:#ecfdf5;color:#047857;border:1px solid #a7f3d0;font-weight:700}
.danger-button{background:#b91c1c;border-color:#b91c1c;color:#fff}.text-danger{color:#b91c1c;background:transparent;border:0;min-height:auto;padding:0}
.mobile-card-list{display:none}.mobile-record-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:16px;gap:10px;color:#0f172a}
.record-amount{font-size:1.05rem;font-weight:900}.status-pill{display:inline-flex;width:max-content;padding:5px 9px;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:.68rem;font-weight:900;letter-spacing:.05em}.success-pill{background:#ecfdf5;color:#047857}.large-pill{font-size:.8rem;padding:8px 12px}
.empty-state{padding:36px;text-align:center;border:1px dashed #cbd5e1;border-radius:24px;background:#f8fafc;color:#475569}.compact-empty{padding:22px}
.payment-method-card{display:grid;gap:18px}.payment-method-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.payment-method-head h2{margin:9px 0 0}
.active-dot,.inactive-dot{font-size:.75rem;font-weight:850}.active-dot{color:#047857}.inactive-dot{color:#b91c1c}
.method-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.method-details>div,.detail-list>div{display:grid;gap:5px}.method-details span,.detail-list span{font-size:.72rem;color:#64748b;text-transform:uppercase;font-weight:800;letter-spacing:.06em}.wide-detail{grid-column:span 3}
.submission-card{display:flex;align-items:center;justify-content:space-between;gap:20px}.submission-card h2{margin:.35rem 0}.submission-right{display:grid;gap:8px;justify-items:end}
.detail-list{display:grid;gap:16px}.review-actions{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.payment-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.payment-choice{display:grid;grid-template-columns:auto 1fr;gap:14px;align-items:start;border:1px solid #cbd5e1;border-radius:20px;padding:18px;cursor:pointer;background:#fff}.payment-choice:has(input:checked){border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.08)}.payment-choice input{width:auto;min-height:auto;margin-top:5px}.payment-choice h3{margin:8px 0}.payment-choice p{margin:6px 0;color:#475569}.method-instructions{font-size:.9rem}
.notice-box{padding:16px 18px;border-radius:16px;background:#fffbeb;border:1px solid #fde68a;color:#92400e;line-height:1.55}
.invoice-customer-card,.payment-history-card{display:flex;justify-content:space-between;gap:20px;align-items:center}.invoice-customer-card h2,.payment-history-card h3{margin:.35rem 0}.invoice-card-amounts{display:grid;gap:5px;text-align:right}.invoice-card-amounts span{font-size:.75rem;color:#64748b;text-transform:uppercase;font-weight:800}.invoice-card-amounts strong{font-size:1.2rem}.payments-section{margin-top:34px}.section-heading{margin:0 0 14px}.customer-note-card{border-color:#bfdbfe;background:#f8fbff}
.inline-void-form{margin:0}.review-card{margin-top:20px}

@media(max-width:980px){
  .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .invoice-item-editor{grid-template-columns:1fr 1fr}.invoice-item-editor .item-description{grid-column:span 2}
  .method-details{grid-template-columns:1fr 1fr}.wide-detail{grid-column:span 2}
  .payment-choice-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  .header-top{padding:14px 18px}.main-nav{padding:0 12px 12px}.container{width:min(94vw,1120px)}
  .page-head{gap:14px}.page-actions{width:100%}.page-actions .button{flex:1;text-align:center}
  .stat-grid{grid-template-columns:1fr 1fr;gap:10px}.stat-card{padding:16px}.stat-card strong{font-size:1rem}
  .form-section{padding:18px;border-radius:20px}.section-title-row{flex-direction:column}.section-title-row .button{width:100%;text-align:center}
  .invoice-item-editor{grid-template-columns:1fr}.invoice-item-editor .item-description{grid-column:auto}.remove-item{width:100%}
  .sticky-form-actions{position:static}.sticky-form-actions>*{flex:1;text-align:center}
  .desktop-table{display:none}.mobile-card-list{display:grid;gap:12px}.mobile-record-card{display:grid}
  .submission-card,.invoice-customer-card,.payment-history-card{align-items:flex-start;flex-direction:column}.submission-right{justify-items:start}.invoice-card-amounts{text-align:left}
  .method-details{grid-template-columns:1fr}.wide-detail{grid-column:auto}
  .review-actions{grid-template-columns:1fr}.split{grid-template-columns:1fr}
  .invoice-line{gap:12px}.invoice-line>strong{text-align:right}
  .payment-method-head{flex-direction:column}
}

@media(max-width:480px){
  .stat-grid{grid-template-columns:1fr}
  .header-actions .user-chip{display:none}
  .brand{font-size:1.1rem}.main-nav a{padding:8px 10px;font-size:.82rem}
  .page-head h1{font-size:2rem}.form-section{padding:15px}.card{padding:20px}
  .invoice-line{flex-direction:column}.invoice-line>strong{text-align:left}
}

.attention-stat{border-color:#fde68a;background:#fffbeb}


/* ===== Phase 4 communication, settings and document modules ===== */
.header-logo-image{display:block;max-width:150px;max-height:42px;object-fit:contain}
.settings-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:20px;align-items:start}
.settings-grid>.form-section:first-child{grid-row:span 2}
.branding-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.branding-grid>div{border:1px solid #e2e8f0;border-radius:18px;padding:18px;display:grid;gap:14px}
.branding-preview{max-width:220px;max-height:90px;object-fit:contain;background:#f8fafc;border-radius:12px;padding:8px}
.favicon-preview{width:64px;height:64px;object-fit:contain;background:#f8fafc;border-radius:12px;padding:8px}
.document-card,.notification-card,.support-ticket-card{display:flex;justify-content:space-between;gap:18px;align-items:center}
.document-card h2,.notification-card h2,.support-ticket-card h2{margin:.35rem 0}
.unread-notification{border-color:#93c5fd;background:#f8fbff;box-shadow:0 0 0 2px rgba(37,99,235,.05)}
.ticket-meta{display:grid;justify-items:end;gap:8px}
.conversation{display:grid;gap:14px}.message-bubble{max-width:82%;padding:14px 16px;border-radius:18px;display:grid;gap:7px;line-height:1.55}
.customer-message{justify-self:start;background:#f1f5f9;border-bottom-left-radius:6px}
.staff-message{justify-self:end;background:#eff6ff;border:1px solid #bfdbfe;border-bottom-right-radius:6px}
.internal-message{justify-self:stretch;max-width:100%;background:#fffbeb;border:1px dashed #f59e0b}
.message-author{font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#475569}.message-bubble small{color:#64748b}
.attachment-list{display:grid;gap:10px}.attachment-list>a{display:block;padding:11px 13px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;font-weight:700}
.document-admin-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 0;border-bottom:1px solid #e2e8f0}
.document-actions{display:flex;gap:8px;align-items:center}.document-actions form{margin:0}
.auth-helper{text-align:center;margin-top:16px}.auth-helper a{font-weight:750}
:root{--brand-primary:#2563eb;--brand-secondary:#071b36}
.site-header{background:var(--brand-secondary)}
button,.button{background:var(--brand-primary);border-color:var(--brand-primary)}

@media(max-width:980px){
  .settings-grid{grid-template-columns:1fr}.settings-grid>.form-section:first-child{grid-row:auto}
}
@media(max-width:760px){
  .branding-grid{grid-template-columns:1fr}
  .document-card,.notification-card,.support-ticket-card{align-items:flex-start;flex-direction:column}
  .ticket-meta{justify-items:start}
  .message-bubble{max-width:94%}
  .document-admin-row{align-items:flex-start;flex-direction:column}.document-actions{width:100%;flex-wrap:wrap}.document-actions>*{flex:1}
}
@media(max-width:480px){
  .message-bubble{max-width:100%}
  .settings-grid .form-section{padding:15px}
  .header-logo-image{max-width:120px;max-height:34px}
}


/* ===== Phase 5 security / production readiness ===== */
.security-meta{display:grid;gap:6px;margin-top:24px;padding-top:18px;border-top:1px solid #e2e8f0}
.security-meta span{font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:#64748b;font-weight:800}
.diagnostics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}
.diagnostic-card{border-radius:20px;padding:20px;border:1px solid #e2e8f0;background:#fff}
.diagnostic-card h2{font-size:1rem;margin:10px 0}.diagnostic-card p{margin:6px 0}
.diagnostic-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.68rem;font-weight:900;letter-spacing:.08em}
.diagnostic-ok{border-color:#a7f3d0}.diagnostic-ok .diagnostic-status{background:#ecfdf5;color:#047857}
.diagnostic-fail{border-color:#fde68a;background:#fffbeb}.diagnostic-fail .diagnostic-status{background:#fef3c7;color:#92400e}
.checklist-text{display:grid;gap:12px}.checklist-text p{margin:0;padding:12px 14px;border-left:3px solid var(--brand-primary);background:#f8fafc}
code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
@media(max-width:900px){.diagnostics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.diagnostics-grid{grid-template-columns:1fr}}


/* ===== Phase 5 shipment management hotfix ===== */
.shipment-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.small-button{min-height:36px;padding:7px 11px;font-size:.82rem}
.shipment-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.contact-detail{display:grid;gap:6px;padding:16px;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc}
.contact-detail>span{font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;font-weight:850;color:#64748b}
.contact-detail>strong{font-size:1rem;word-break:break-word}
.contact-detail small{color:#475569}
.shipment-contact-card{border-color:#bfdbfe}
.shipment-form label{min-width:0}
@media(max-width:760px){
  .shipment-contact-grid{grid-template-columns:1fr}
  .shipment-row-actions{width:100%}
  .shipment-row-actions .button{flex:1;text-align:center}
}


/* ===== Phase 5 Maps Hotfix ===== */
.shipment-map-card{overflow:hidden}
.shipment-map{position:relative;width:100%;height:430px;border:1px solid #dbe3ee;border-radius:20px;overflow:hidden;background:#eef2f7;z-index:0}
.shipment-map-picker{height:500px}
.shipment-location-picker{height:280px;margin-top:8px}
.shipment-map .leaflet-control-container{font-size:.82rem}
.shipment-map-empty{display:grid;place-items:center}
.shipment-map-empty-message{position:absolute;inset:0;display:grid;place-items:center;padding:30px;text-align:center;color:#475569;font-weight:700;z-index:500;background:rgba(248,250,252,.86)}
.trackflo-map-div-icon{background:transparent;border:0}
.trackflo-map-pin{display:block;width:18px;height:18px;border-radius:50%;border:3px solid #fff;box-shadow:0 2px 8px rgba(15,23,42,.35)}
.trackflo-map-pin-origin{background:#16a34a}
.trackflo-map-pin-history{background:#64748b}
.trackflo-map-pin-current{background:#2563eb;width:22px;height:22px;margin:-2px}
.trackflo-map-pin-destination{background:#dc2626}
.map-legend{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px}
.map-legend>span{display:inline-flex;align-items:center;gap:7px;font-size:.82rem;font-weight:750;color:#475569}
.legend-dot{display:inline-block;width:10px;height:10px;border-radius:50%}
.legend-origin{background:#16a34a}.legend-history{background:#64748b}.legend-current{background:#2563eb}.legend-destination{background:#dc2626}
.map-attribution-note{margin:8px 0 0;color:#64748b;font-size:.72rem}
.map-picker-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}
.map-target-option{display:inline-flex!important;align-items:center;gap:7px!important;padding:9px 12px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;font-size:.82rem;font-weight:800;cursor:pointer}
.map-target-option:has(input:checked){border-color:var(--brand-primary);background:#eff6ff;color:#1d4ed8}
.map-target-option input{width:auto;min-height:auto;margin:0}
.shipment-map-editor-card{display:block;grid-column:1/-1}
.shipment-map-editor-card h2{margin-top:0}

@media(max-width:760px){
  .shipment-map{height:340px;border-radius:16px}
  .shipment-map-picker{height:390px}
  .shipment-location-picker{height:260px}
  .map-picker-toolbar{align-items:stretch}
  .map-picker-toolbar .button{width:100%;text-align:center}
}
@media(max-width:480px){
  .shipment-map{height:300px}
  .shipment-map-picker{height:350px}
}


/* ===== Phase 5 location-name search hotfix ===== */
.map-search-box{position:relative;margin:14px 0 16px}
.map-search-label{display:block;margin-bottom:7px;font-size:.82rem;font-weight:850;color:#334155}
.map-search-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}
.map-search-controls input{min-width:0}
.map-search-results{position:absolute;left:0;right:0;top:100%;z-index:1100;margin-top:6px;border:1px solid #cbd5e1;border-radius:14px;background:#fff;box-shadow:0 16px 38px rgba(15,23,42,.16);overflow:hidden}
.map-search-result{display:block;width:100%;min-height:auto;padding:12px 14px;border:0;border-bottom:1px solid #e2e8f0;border-radius:0;background:#fff;color:#0f172a;text-align:left;font-weight:650;line-height:1.45}
.map-search-result:last-child{border-bottom:0}
.map-search-result:hover{background:#f8fafc}
.map-search-status{padding:13px 14px;color:#64748b;font-size:.86rem}
@media(max-width:600px){
  .map-search-controls{grid-template-columns:1fr}
  .map-search-controls button{width:100%}
}


/* ===== Simple place-selection map workflow ===== */
.simple-map-preview{margin-top:14px;border:1px solid #dbe3ee;border-radius:18px;overflow:hidden;background:#eef2f7}
.simple-map-preview iframe{display:block;width:100%;height:340px;border:0}
.selected-location-summary{display:flex;gap:8px;align-items:flex-start;flex-wrap:wrap;margin:12px 0;padding:12px 14px;border-radius:14px;background:#f8fafc;border:1px solid #e2e8f0}
.selected-location-summary span{font-size:.76rem;text-transform:uppercase;letter-spacing:.06em;font-weight:850;color:#64748b}
.selected-location-summary strong{font-size:.92rem;color:#0f172a;word-break:break-word}
.map-selection-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}
.simple-location-selector{position:relative}
.shipment-map-editor-card .map-search-box{z-index:5}
@media(max-width:760px){
  .simple-map-preview iframe{height:280px}
  .map-selection-actions .button{width:100%;text-align:center}
}
@media(max-width:480px){
  .simple-map-preview iframe{height:240px}
}


/* ========================================================================
   TRACKFLO FINAL UI / UX REDESIGN
   Preserves existing PHP/MySQL functionality while replacing the visual shell.
   ======================================================================== */

:root{
  --tf-bg:#f5f7fb;
  --tf-surface:#ffffff;
  --tf-surface-soft:#f8fafc;
  --tf-border:#e5eaf1;
  --tf-text:#0f172a;
  --tf-muted:#64748b;
  --tf-navy:#06172f;
  --tf-navy-2:#0a2245;
  --tf-blue:var(--brand-primary,#2563eb);
  --tf-shadow:0 18px 50px rgba(15,23,42,.07);
  --tf-shadow-sm:0 8px 24px rgba(15,23,42,.055);
  --tf-radius:22px;
}

html{scroll-behavior:smooth}
body{
  color:var(--tf-text);
  background:var(--tf-bg);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
body.sidebar-open{overflow:hidden}
h1,h2,h3,h4,p{overflow-wrap:anywhere}
button,.button{transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease}
button:hover,.button:hover{transform:translateY(-1px)}
input,textarea,select{
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
input:focus,textarea:focus,select:focus{
  outline:0;
  border-color:var(--tf-blue);
  box-shadow:0 0 0 4px color-mix(in srgb,var(--tf-blue) 12%,transparent);
}

/* Portal shell */
.portal-body{background:var(--tf-bg)}
.portal-shell{min-height:100vh}
.portal-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:282px;
  z-index:50;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#06172f 0%,#071d3b 54%,#051328 100%);
  color:#fff;
  border-right:1px solid rgba(255,255,255,.07);
  box-shadow:18px 0 60px rgba(2,8,23,.08);
}
.sidebar-brand-row{
  min-height:88px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:20px 22px 16px;
}
.sidebar-brand{
  min-width:0;
  display:flex;
  align-items:center;
  gap:12px;
  color:#fff;
}
.sidebar-logo-image{
  display:block;
  max-width:178px;
  max-height:48px;
  object-fit:contain;
}
.brand-mark{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 42px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--tf-blue),#35d8ff);
  box-shadow:0 9px 24px rgba(37,99,235,.25);
  color:#fff;
  font-weight:950;
  letter-spacing:-.04em;
}
.brand-copy{display:grid;min-width:0}
.brand-copy strong{font-size:1rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-copy small{margin-top:4px;color:#8fa5c3;font-size:.72rem}
.sidebar-close{
  display:none;
  width:38px;
  height:38px;
  min-height:0;
  padding:0;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  border-radius:12px;
  color:#fff;
  font-size:1.35rem;
}
.sidebar-role{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 18px 12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(255,255,255,.035);
  color:#a8bad2;
  font-size:.73rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.07em;
}
.role-dot{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 4px rgba(52,211,153,.09)}
.sidebar-nav{
  flex:1;
  overflow-y:auto;
  padding:2px 14px 20px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.12) transparent;
}
.sidebar-nav-group{margin-top:18px}
.sidebar-nav-heading{
  padding:0 12px 8px;
  color:#607999;
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.13em;
}
.sidebar-link{
  position:relative;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:42px;
  padding:9px 12px;
  margin:2px 0;
  border-radius:12px;
  color:#b6c5d8;
  font-size:.86rem;
  font-weight:720;
  transition:.16s ease;
}
.sidebar-link:hover{background:rgba(255,255,255,.055);color:#fff}
.sidebar-link-indicator{
  width:7px;
  height:7px;
  flex:0 0 7px;
  border-radius:50%;
  background:#425a79;
  transition:.16s ease;
}
.sidebar-link.is-active{
  color:#fff;
  background:linear-gradient(90deg,color-mix(in srgb,var(--tf-blue) 25%,transparent),rgba(255,255,255,.05));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.055);
}
.sidebar-link.is-active .sidebar-link-indicator{
  background:#4fd8ff;
  box-shadow:0 0 0 4px rgba(79,216,255,.08);
}
.sidebar-footer{
  padding:16px 18px 20px;
  border-top:1px solid rgba(255,255,255,.075);
  background:rgba(2,8,23,.12);
}
.sidebar-track-link{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:14px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.045);
  color:#c8d5e5;
  font-size:.82rem;
  font-weight:760;
}
.sidebar-user{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}
.user-avatar{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:13px;
  background:linear-gradient(135deg,#1d4ed8,#06b6d4);
  color:#fff;
  font-size:.76rem;
  font-weight:900;
}
.sidebar-user>div{display:grid;min-width:0}
.sidebar-user strong{font-size:.82rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user small{margin-top:2px;color:#7890af;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-logout{
  width:100%;
  min-height:38px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.1);
  background:transparent;
  border-radius:11px;
  color:#aebfd4;
  font-size:.79rem;
}
.portal-content{min-height:100vh;margin-left:282px;display:flex;flex-direction:column}
.portal-topbar{
  position:sticky;
  top:0;
  z-index:30;
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:12px clamp(22px,3vw,40px);
  border-bottom:1px solid rgba(226,232,240,.9);
  background:rgba(255,255,255,.88);
  backdrop-filter:blur(18px);
}
.portal-topbar-left,.portal-topbar-actions,.topbar-profile{display:flex;align-items:center}
.portal-topbar-left{gap:13px}
.mobile-menu-button{
  display:none;
  width:42px;
  height:42px;
  min-height:0;
  padding:9px;
  border:1px solid var(--tf-border);
  border-radius:12px;
  background:#fff;
}
.mobile-menu-button span{display:block;height:2px;margin:4px 0;border-radius:99px;background:#334155}
.topbar-title{display:grid}
.topbar-title span{color:#94a3b8;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em}
.topbar-title strong{margin-top:2px;font-size:.96rem}
.portal-topbar-actions{gap:10px}
.topbar-track{
  padding:9px 13px;
  border:1px solid var(--tf-border);
  border-radius:11px;
  background:#fff;
  color:#334155;
  font-size:.8rem;
  font-weight:760;
}
.topbar-profile{
  gap:9px;
  padding:5px 8px 5px 5px;
  border:1px solid var(--tf-border);
  border-radius:13px;
  background:#fff;
}
.user-avatar-small{width:34px;height:34px;border-radius:10px;font-size:.67rem}
.topbar-profile-copy{display:grid;min-width:56px}
.topbar-profile-copy strong{font-size:.78rem;line-height:1.1}
.topbar-profile-copy small{margin-top:2px;color:#94a3b8;font-size:.65rem}
.portal-main{flex:1}
.portal-container{width:min(100%,1460px);margin:0 auto;padding:32px clamp(22px,3vw,42px) 56px}
.portal-footer{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:18px clamp(22px,3vw,42px);
  border-top:1px solid var(--tf-border);
  color:#94a3b8;
  font-size:.72rem;
}
.sidebar-backdrop{display:none}

/* Global portal content polish */
.page-head{
  align-items:center;
  margin-bottom:24px;
  padding:26px 28px;
  border:1px solid var(--tf-border);
  border-radius:24px;
  background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);
  box-shadow:var(--tf-shadow-sm);
}
.page-head h1{margin:.25rem 0 .25rem;font-size:clamp(1.65rem,3vw,2.45rem);letter-spacing:-.035em}
.page-head p:not(.eyebrow){margin:.45rem 0 0;color:var(--tf-muted);line-height:1.55}
.eyebrow,.dashboard-kicker{
  color:var(--tf-blue);
  font-size:.69rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.13em;
}
.card,.form-section,.form-grid,.table-wrap,.stat-card,.mobile-record-card{
  border-color:var(--tf-border);
  box-shadow:var(--tf-shadow-sm);
}
.card,.form-section,.form-grid{border-radius:22px}
.card{padding:24px}
.card h2,.card h3{letter-spacing:-.02em}
.table-wrap{border-radius:18px}
th{
  padding:13px 16px;
  background:#f7f9fc;
  color:#74839a;
  border-bottom:1px solid var(--tf-border);
  font-size:.67rem;
}
td{padding:15px 16px;border-bottom:1px solid #edf0f4}
tbody tr:hover{background:#fafcff}
.toolbar{
  align-items:center;
  padding:12px;
  border:1px solid var(--tf-border);
  border-radius:16px;
  background:#fff;
  box-shadow:var(--tf-shadow-sm);
}
.toolbar input,.toolbar select{background:#f9fbfd}
.button,button{
  border-radius:11px;
  box-shadow:0 6px 16px color-mix(in srgb,var(--tf-blue) 14%,transparent);
}
.button.secondary{
  background:#fff;
  color:#334155;
  border-color:#d9e0e9;
  box-shadow:none;
}
.button.secondary:hover{border-color:#b9c4d2;background:#f8fafc}
.status-pill,.badge{border:1px solid #dbeafe}
.alert,.success-alert,.notice-box{border-radius:14px}

/* Dashboard */
.dashboard-hero{
  position:relative;
  overflow:hidden;
  min-height:235px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:34px;
  margin-bottom:22px;
  border-radius:28px;
  background:
    radial-gradient(circle at 88% 12%,rgba(56,189,248,.22),transparent 24%),
    radial-gradient(circle at 62% 105%,rgba(37,99,235,.25),transparent 34%),
    linear-gradient(135deg,#06172f,#09244b 62%,#0a2d59);
  color:#fff;
  box-shadow:0 24px 60px rgba(4,19,43,.16);
}
.dashboard-hero:before{
  content:"";
  position:absolute;
  inset:0;
  opacity:.16;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:34px 34px;
  mask-image:linear-gradient(to left,#000,transparent);
}
.dashboard-hero>div{position:relative;z-index:1}
.dashboard-kicker{color:#7de5ff}
.dashboard-hero h1{max-width:720px;margin:8px 0 10px;font-size:clamp(2rem,4vw,3.6rem);line-height:1.02;letter-spacing:-.055em}
.dashboard-hero p:not(.dashboard-kicker){max-width:650px;margin:0;color:#b7c8dd;line-height:1.65}
.dashboard-hero-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}
.dashboard-hero-actions .button{border-color:rgba(255,255,255,.16)}
.dashboard-hero-actions .button.secondary{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.12)}
.dashboard-section{margin-top:26px}
.dashboard-stats{gap:14px}
.dashboard-stats .stat-card{
  grid-template-columns:50px 1fr;
  align-items:center;
  gap:14px;
  min-height:112px;
  padding:18px;
  border-radius:19px;
  background:#fff;
}
.stat-icon{
  display:grid;
  place-items:center;
  width:50px;
  height:50px;
  border-radius:15px;
  background:#eef5ff;
  color:#1d4ed8;
  font-size:.72rem;
  font-weight:950;
  letter-spacing:.02em;
}
.stat-card>div:last-child{display:grid;gap:4px}
.stat-card span{font-size:.65rem;color:#8592a6}
.stat-card strong{font-size:1.42rem;letter-spacing:-.035em}
.attention-stat{border-color:#f8d88b;background:#fffdf6}
.attention-stat .stat-icon{background:#fff4d8;color:#b45309}
.emphasis-stat{border-color:#cfe0fb;background:#fbfdff}
.section-heading-row{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:15px}
.section-heading-row h2{margin:.3rem 0 0;font-size:1.45rem;letter-spacing:-.03em}
.section-heading-row p:not(.eyebrow){margin:.45rem 0 0;color:var(--tf-muted)}
.dashboard-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.dashboard-action-card{
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:16px;
  min-height:128px;
  padding:20px;
  border:1px solid var(--tf-border);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--tf-shadow-sm);
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.dashboard-action-card:hover{transform:translateY(-2px);border-color:#cdd8e6;box-shadow:var(--tf-shadow)}
.dashboard-action-index{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#f0f5fb;
  color:#718198;
  font-size:.69rem;
  font-weight:900;
}
.dashboard-action-card h3{margin:0 0 6px;font-size:1rem}
.dashboard-action-card p{margin:0;color:var(--tf-muted);font-size:.84rem;line-height:1.55}
.dashboard-action-arrow{color:#8a9ab0;font-size:1.3rem}
.dashboard-payment-methods{padding-top:5px}
.dashboard-method-grid{margin-top:12px}
.dashboard-payment-method{
  border-color:var(--tf-border);
  box-shadow:var(--tf-shadow-sm);
}
.method-icon-placeholder{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:13px;
  background:#eaf2ff;
  color:#1d4ed8;
  font-weight:950;
}

/* =========================================================
   TRACKFLO PREMIUM PUBLIC HOMEPAGE
========================================================= */

.tf-home-shell{
  width:min(1180px,92vw);
  margin:0 auto;
}

.tf-home-section{
  padding:105px 0;
}

.tf-section-kicker{
  margin:0 0 15px;
  color:#0877e8;
  font-size:.7rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.15em;
}

.tf-section-kicker-light{
  color:#4cc9ff;
}


/* =========================================================
   HERO
========================================================= */

.tf-home-hero{
  position:relative;
  min-height:760px;
  overflow:hidden;
  display:flex;
  align-items:center;
  background:#04152b;
  color:#fff;
}

.tf-home-hero-bg,
.tf-home-hero-overlay{
  position:absolute;
  inset:0;
}

.tf-home-hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}

.tf-home-hero-overlay{
  background:
    linear-gradient(
      90deg,
      rgba(2,13,29,.96) 0%,
      rgba(2,17,37,.88) 34%,
      rgba(2,17,37,.48) 65%,
      rgba(2,17,37,.15) 100%
    ),
    linear-gradient(
      0deg,
      rgba(3,15,32,.45),
      transparent 45%
    );
}

.tf-home-hero-inner{
  position:relative;
  z-index:2;
  width:min(1180px,92vw);
  padding:95px 0 82px;
}

.tf-home-hero-content{
  max-width:720px;
}

.tf-home-kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  margin-bottom:21px;
  color:#b9d6ef;
  font-size:.72rem;
  font-weight:850;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.tf-home-kicker span{
  width:28px;
  height:2px;
  border-radius:20px;
  background:#16b9ff;
}

.tf-home-hero h1{
  max-width:760px;
  margin:0;
  color:#fff;
  font-size:clamp(3.4rem,6.5vw,6.2rem);
  line-height:.91;
  letter-spacing:-.065em;
}

.tf-home-hero h1 span{
  display:block;
  color:#42bfff;
}

.tf-home-hero-description{
  max-width:660px;
  margin:27px 0 0;
  color:#c1d0df;
  font-size:1.04rem;
  line-height:1.75;
}

.tf-home-tracking{
  width:min(690px,100%);
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  margin-top:33px;
  padding:8px;
  border:1px solid rgba(255,255,255,.19);
  border-radius:18px;
  background:rgba(255,255,255,.97);
  box-shadow:0 24px 60px rgba(0,0,0,.28);
}

.tf-home-tracking-input{
  min-width:0;
  display:flex;
  align-items:center;
  gap:13px;
  padding:4px 13px;
}

.tf-tracking-icon{
  flex:0 0 auto;
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#eef7ff;
  color:#0877e8;
}

.tf-tracking-icon svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tf-home-tracking-input>div{
  min-width:0;
  flex:1;
}

.tf-home-tracking label{
  display:block;
  margin-bottom:1px;
  color:#8291a3;
  font-size:.6rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.tf-home-tracking input{
  width:100%;
  min-height:34px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  box-shadow:none;
  color:#0f172a;
  font-size:.95rem;
  font-weight:750;
}

.tf-home-tracking input:focus{
  box-shadow:none;
}

.tf-home-tracking button{
  min-width:172px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 20px;
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,#0877e8,#0556c7);
  color:#fff;
  font-weight:850;
  cursor:pointer;
}

.tf-home-tracking button svg,
.tf-final-cta-button svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tf-home-hero-trust{
  display:flex;
  flex-wrap:wrap;
  gap:18px 24px;
  margin-top:21px;
  color:#a7bacd;
  font-size:.69rem;
  font-weight:750;
}

.tf-home-hero-trust span{
  display:flex;
  align-items:center;
  gap:7px;
}

.tf-home-hero-trust span:before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#32d399;
}

.tf-home-hero-status{
  position:absolute;
  right:0;
  bottom:52px;
  width:380px;
  padding:19px;
  border:1px solid rgba(255,255,255,.13);
  border-radius:18px;
  background:rgba(4,22,45,.73);
  backdrop-filter:blur(18px);
  box-shadow:0 20px 55px rgba(0,0,0,.2);
}

.tf-hero-status-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:15px;
  border-bottom:1px solid rgba(255,255,255,.1);
}

.tf-status-live{
  display:flex;
  align-items:center;
  gap:7px;
  color:#b8c8d8;
  font-size:.67rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.tf-status-live i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 5px rgba(34,197,94,.12);
}

.tf-hero-status-top strong{
  font-size:.75rem;
}

.tf-hero-status-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  padding-top:15px;
}

.tf-hero-status-grid div{
  padding:11px 12px;
  border-radius:11px;
  background:rgba(255,255,255,.055);
}

.tf-hero-status-grid span,
.tf-hero-status-grid strong{
  display:block;
}

.tf-hero-status-grid span{
  color:#7f9bb7;
  font-size:.59rem;
  font-weight:800;
  text-transform:uppercase;
}

.tf-hero-status-grid strong{
  margin-top:4px;
  font-size:.78rem;
}

.tf-home-hero-status{
    animation:
        tfNetworkFloat 5.5s ease-in-out infinite;
}

@keyframes tfNetworkFloat{

    0%,
    100%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-9px);
    }

}
@media (prefers-reduced-motion:reduce){

    .tf-home-hero-status{
        animation:none;
    }

}

/* =========================================================
   GENERAL SECTION HEADING
========================================================= */

.tf-home-heading{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
  gap:80px;
  align-items:end;
  margin-bottom:43px;
}

.tf-home-heading h2{
  max-width:730px;
  margin:0;
  color:#0b1930;
  font-size:clamp(2.5rem,4.6vw,4.35rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.tf-heading-description{
  margin:0 0 5px;
  color:#66758a;
  font-size:.93rem;
  line-height:1.75;
}


/* =========================================================
   SERVICES
========================================================= */

.tf-services-section{
  background:#fff;
}

.tf-service-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  grid-template-rows:400px 330px;
  gap:15px;
}

.tf-service-card{
  position:relative;
  overflow:hidden;
  min-width:0;
  border-radius:24px;
  background:#071b36;
}

.tf-service-card img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .6s ease;
}

.tf-service-card:hover img{
  transform:scale(1.035);
}

.tf-service-overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      0deg,
      rgba(3,15,31,.9) 0%,
      rgba(3,15,31,.24) 58%,
      rgba(3,15,31,.04) 100%
    );
}

.tf-service-content{
  position:absolute;
  inset:auto 0 0;
  display:flex;
  align-items:flex-end;
  gap:22px;
  padding:27px;
  color:#fff;
}

.tf-service-content>span{
  flex:0 0 auto;
  width:37px;
  height:37px;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.25);
  border-radius:50%;
  color:#a7c4df;
  font-size:.62rem;
  font-weight:900;
}

.tf-service-content p{
  margin:0 0 4px;
  color:#50c8ff;
  font-size:.63rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.11em;
}

.tf-service-content h3{
  margin:0;
  color:#fff;
  font-size:1.65rem;
  letter-spacing:-.025em;
}

.tf-service-content small{
  display:block;
  max-width:480px;
  margin-top:8px;
  color:#c5d2df;
  font-size:.76rem;
  line-height:1.55;
}


/* =========================================================
   GLOBAL NETWORK
========================================================= */

.tf-network-section{
  overflow:hidden;
  padding:105px 0;
  background:
    radial-gradient(circle at 75% 45%,rgba(0,133,255,.15),transparent 34%),
    #03162d;
  color:#fff;
}

.tf-network-grid{
  display:grid;
  grid-template-columns:.8fr 1.2fr;
  gap:60px;
  align-items:center;
}

.tf-network-content h2{
  margin:0;
  color:#fff;
  font-size:clamp(2.6rem,4.5vw,4.5rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.tf-network-content>p:not(.tf-section-kicker){
  max-width:530px;
  margin:25px 0 0;
  color:#9db2c8;
  line-height:1.75;
  font-size:.92rem;
}

.tf-network-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:8px;
  margin-top:34px;
}

.tf-network-features div{
  padding:17px 12px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:13px;
  background:rgba(255,255,255,.035);
}

.tf-network-features strong,
.tf-network-features span{
  display:block;
}

.tf-network-features strong{
  color:#fff;
  font-size:.8rem;
}

.tf-network-features span{
  margin-top:4px;
  color:#7893ae;
  font-size:.62rem;
}

.tf-network-map{
  position:relative;
}

.tf-network-map:after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  box-shadow:inset 0 0 60px 35px #03162d;
}

.tf-network-map img{
  width:100%;
  display:block;
  border-radius:24px;
}


/* =========================================================
   TRACKING PLATFORM
========================================================= */

.tf-tracking-platform{
  overflow:hidden;
  background:#f5f8fc;
}

.tf-platform-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:85px;
  align-items:center;
}

.tf-platform-image{
  position:relative;
  display:flex;
  justify-content:center;
}

.tf-platform-image-glow{
  position:absolute;
  width:420px;
  height:420px;
  top:50%;
  left:50%;
  border-radius:50%;
  background:rgba(15,126,232,.12);
  filter:blur(20px);
  transform:translate(-50%,-50%);
}

.tf-platform-image img{
  position:relative;
  z-index:1;
  width:min(100%,500px);
  max-height:680px;
  object-fit:cover;
  border-radius:30px;
  box-shadow:0 32px 80px rgba(15,23,42,.16);
}

.tf-platform-content h2{
  max-width:680px;
  margin:0;
  color:#0b1930;
  font-size:clamp(2.5rem,4.5vw,4.3rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.tf-platform-content>p:not(.tf-section-kicker){
  max-width:620px;
  margin:24px 0 0;
  color:#66758a;
  font-size:.94rem;
  line-height:1.75;
}

.tf-platform-list{
  margin-top:31px;
  border-top:1px solid #dfe6ee;
}

.tf-platform-list>div{
  display:grid;
  grid-template-columns:40px 1fr;
  gap:14px;
  padding:17px 0;
  border-bottom:1px solid #dfe6ee;
}

.tf-platform-list>div>span{
  color:#0b7be7;
  font-size:.65rem;
  font-weight:900;
}

.tf-platform-list strong{
  color:#16243a;
  font-size:.86rem;
}

.tf-platform-list p{
  margin:4px 0 0;
  color:#78869a;
  font-size:.76rem;
  line-height:1.55;
}

.tf-platform-button{
  margin-top:28px;
}


/* =========================================================
   OPERATIONS
========================================================= */

.tf-operations-section{
  position:relative;
  min-height:720px;
  overflow:hidden;
  display:flex;
  align-items:center;
  background:#04162d;
}

.tf-operations-image,
.tf-operations-overlay{
  position:absolute;
  inset:0;
}

.tf-operations-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tf-operations-overlay{
  background:
    linear-gradient(
      90deg,
      rgba(2,15,31,.95) 0%,
      rgba(2,15,31,.78) 35%,
      rgba(2,15,31,.22) 75%
    );
}

.tf-operations-inner{
  position:relative;
  z-index:2;
  padding:80px 0;
}

.tf-operations-card{
  max-width:530px;
  padding:38px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:25px;
  background:rgba(3,20,42,.78);
  backdrop-filter:blur(16px);
  color:#fff;
}

.tf-operations-card h2{
  margin:0;
  color:#fff;
  font-size:clamp(2.6rem,4vw,4rem);
  line-height:.98;
  letter-spacing:-.05em;
}

.tf-operations-card>p:not(.tf-section-kicker){
  margin:23px 0 0;
  color:#a9bbcd;
  font-size:.9rem;
  line-height:1.75;
}

.tf-operation-points{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:27px;
}

.tf-operation-points span{
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#c6d5e3;
  font-size:.64rem;
  font-weight:750;
}


/* =========================================================
   TRUST
========================================================= */

.tf-trust-section{
  background:#fff;
}

.tf-trust-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}

.tf-trust-card{
  overflow:hidden;
  border:1px solid #e3e9f0;
  border-radius:25px;
  background:#fff;
  box-shadow:0 15px 45px rgba(15,23,42,.06);
}

.tf-trust-image{
  height:340px;
  overflow:hidden;
}

.tf-trust-image img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transition:transform .6s ease;
}

.tf-trust-card:hover .tf-trust-image img{
  transform:scale(1.03);
}

.tf-trust-content{
  padding:27px;
}

.tf-trust-content>span{
  color:#0877e8;
  font-size:.65rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.1em;
}

.tf-trust-content h3{
  max-width:460px;
  margin:11px 0 0;
  color:#102038;
  font-size:1.65rem;
  line-height:1.12;
}

.tf-trust-content p{
  margin:13px 0 0;
  color:#718096;
  font-size:.82rem;
  line-height:1.65;
}


/* =========================================================
   FINAL CTA
========================================================= */

.tf-final-cta{
  position:relative;
  min-height:470px;
  overflow:hidden;
  display:flex;
  align-items:center;
  color:#fff;
  background:#04162d;
}

.tf-final-cta-image,
.tf-final-cta-overlay{
  position:absolute;
  inset:0;
}

.tf-final-cta-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tf-final-cta-overlay{
  background:
    linear-gradient(
      90deg,
      rgba(2,14,29,.94),
      rgba(2,14,29,.68) 52%,
      rgba(2,14,29,.25)
    );
}

.tf-final-cta-inner{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:50px;
  padding:75px 0;
}

.tf-final-cta h2{
  max-width:700px;
  margin:0;
  color:#fff;
  font-size:clamp(2.7rem,5vw,4.8rem);
  line-height:.96;
  letter-spacing:-.055em;
}

.tf-final-cta p:not(.tf-section-kicker){
  max-width:570px;
  margin:20px 0 0;
  color:#bac9d7;
  font-size:.9rem;
  line-height:1.7;
}

.tf-final-cta-button{
  flex:0 0 auto;
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 22px;
  border-radius:14px;
  background:#fff;
  color:#082449;
  font-size:.78rem;
  font-weight:900;
  box-shadow:0 18px 40px rgba(0,0,0,.2);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width:1000px){

  .tf-home-hero{
    min-height:700px;
  }

  .tf-home-hero-status{
    display:none;
  }

  .tf-home-hero-content{
    max-width:700px;
  }

  .tf-home-heading{
    grid-template-columns:1fr;
    gap:18px;
  }

  .tf-heading-description{
    max-width:650px;
  }

  .tf-network-grid,
  .tf-platform-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .tf-network-content{
    max-width:700px;
  }

  .tf-network-map{
    max-width:850px;
  }

  .tf-platform-image{
    order:2;
  }

  .tf-platform-content{
    order:1;
  }

  .tf-platform-image img{
    width:min(100%,600px);
  }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width:700px){

  .tf-home-shell{
    width:min(92vw,560px);
  }

  .tf-home-section{
    padding:68px 0;
  }


  /* HERO */

  .tf-home-hero{
    min-height:auto;
    align-items:flex-end;
  }

  .tf-home-hero-bg img{
    object-position:62% center;
  }

  .tf-home-hero-overlay{
    background:
      linear-gradient(
        0deg,
        rgba(2,13,29,.98) 0%,
        rgba(2,13,29,.9) 50%,
        rgba(2,13,29,.42) 100%
      );
  }

 .tf-home-hero-inner{
  width:min(92vw,560px);
  padding:90px 0 52px;
}

  .tf-home-kicker{
    font-size:.61rem;
    letter-spacing:.1em;
  }

.tf-home-hero h1{
  font-size:clamp(2.55rem,11vw,3.7rem);
  line-height:.96;
  letter-spacing:-.045em;
}
.tf-home-hero-content{
  width:100%;
  max-width:100%;
}

.tf-home-kicker{
  margin-bottom:18px;
}

.tf-home-hero-description{
  max-width:100%;
}

  .tf-home-hero-description{
    margin-top:20px;
    font-size:.88rem;
    line-height:1.65;
  }

  .tf-home-tracking{
    grid-template-columns:1fr;
    margin-top:25px;
    padding:7px;
    border-radius:16px;
  }

  .tf-home-tracking-input{
    min-height:58px;
  }

  .tf-home-tracking button{
    width:100%;
    min-height:49px;
  }

  .tf-home-hero-trust{
    gap:10px 16px;
    margin-top:17px;
    font-size:.62rem;
  }


  /* HEADINGS */

  .tf-home-heading{
    margin-bottom:27px;
  }

  .tf-home-heading h2,
  .tf-network-content h2,
  .tf-platform-content h2,
  .tf-operations-card h2,
  .tf-final-cta h2{
    font-size:clamp(2.25rem,10vw,3.4rem);
  }

  .tf-heading-description{
    font-size:.82rem;
    line-height:1.65;
  }


  /* SERVICES */

  .tf-service-grid{
    grid-template-columns:1fr;
    grid-template-rows:none;
    gap:12px;
  }

  .tf-service-card,
  .tf-service-large,
  .tf-service-wide{
    height:330px;
  }

  .tf-service-content{
    padding:21px;
    gap:14px;
  }

  .tf-service-content h3{
    font-size:1.4rem;
  }

  .tf-service-content small{
    font-size:.7rem;
  }


  /* NETWORK */

  .tf-network-section{
    padding:70px 0;
  }

  .tf-network-grid{
    gap:35px;
  }

  .tf-network-content>p:not(.tf-section-kicker){
    font-size:.82rem;
  }

  .tf-network-features{
    grid-template-columns:1fr;
  }

  .tf-network-map:after{
    box-shadow:inset 0 0 28px 14px #03162d;
  }


  /* PLATFORM */

  .tf-platform-grid{
    gap:40px;
  }

  .tf-platform-content>p:not(.tf-section-kicker){
    font-size:.83rem;
  }

  .tf-platform-list>div{
    grid-template-columns:32px 1fr;
  }

  .tf-platform-image img{
    max-height:none;
    border-radius:22px;
  }


  /* OPERATIONS */

  .tf-operations-section{
    min-height:640px;
    align-items:flex-end;
  }

  .tf-operations-image img{
    object-position:60% center;
  }

  .tf-operations-overlay{
    background:
      linear-gradient(
        0deg,
        rgba(2,15,31,.97),
        rgba(2,15,31,.68) 70%,
        rgba(2,15,31,.22)
      );
  }

  .tf-operations-inner{
    padding:220px 0 38px;
  }

  .tf-operations-card{
    padding:25px;
    border-radius:20px;
  }


  /* TRUST */

  .tf-trust-grid{
    grid-template-columns:1fr;
  }

  .tf-trust-image{
    height:260px;
  }

  .tf-trust-content{
    padding:22px;
  }

  .tf-trust-content h3{
    font-size:1.4rem;
  }


  /* CTA */

  .tf-final-cta{
    min-height:580px;
    align-items:flex-end;
  }

  .tf-final-cta-image img{
    object-position:center;
  }

  .tf-final-cta-overlay{
    background:
      linear-gradient(
        0deg,
        rgba(2,14,29,.98),
        rgba(2,14,29,.72) 62%,
        rgba(2,14,29,.22)
      );
  }

  .tf-final-cta-inner{
    display:block;
    padding:230px 0 45px;
  }

  .tf-final-cta p:not(.tf-section-kicker){
    font-size:.82rem;
  }

  .tf-final-cta-button{
    width:100%;
    margin-top:25px;
  }

}
/* Auth */
.auth-layout{
  min-height:calc(100vh - 150px);
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,480px);
  gap:70px;
  align-items:center;
  padding:68px 0;
}
.auth-intro h1{margin:16px 0 14px;font-size:clamp(3rem,6vw,5rem);letter-spacing:-.06em;line-height:.94}
.auth-intro>p{max-width:620px;color:#64748b;font-size:1rem;line-height:1.7}
.auth-benefits{display:grid;gap:10px;max-width:590px;margin-top:30px}
.auth-benefits>div{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #edf1f5}
.auth-benefits span{display:grid;place-items:center;width:35px;height:35px;border-radius:11px;background:#f0f5fb;color:#607793;font-size:.66rem;font-weight:900}
.auth-benefits p{margin:0;color:#475569;font-size:.86rem}
.auth-card-modern{max-width:none;margin:0;padding:30px;border-radius:25px;box-shadow:0 24px 60px rgba(15,23,42,.1)}
.auth-card-heading{margin-bottom:22px}
.auth-card-heading h2{margin:6px 0 6px;font-size:1.8rem;letter-spacing:-.035em}
.auth-card-heading p:not(.eyebrow){margin:0;color:#64748b;font-size:.85rem}
.auth-card-modern .stack{gap:16px}
.auth-card-modern .stack label{gap:7px;font-size:.78rem}
.auth-card-modern input{background:#fbfcfe}
.auth-form-meta{display:flex;justify-content:flex-end;margin-top:-4px}
.auth-form-meta a{color:var(--tf-blue);font-size:.75rem;font-weight:800}
.auth-submit{width:100%;min-height:50px}

/* Existing map/form polish */
.shipment-map,.simple-map-preview{box-shadow:inset 0 0 0 1px rgba(255,255,255,.3)}
.map-search-box{position:relative}
.simple-map-preview{border-radius:18px}
.selected-location-summary{background:#f7faff}
.shipment-contact-card{background:linear-gradient(145deg,#fff,#f8fbff)}

/* Mobile */
@media(max-width:1120px){
  .portal-sidebar{width:254px}
  .portal-content{margin-left:254px}
  .public-hero{grid-template-columns:1fr minmax(350px,.85fr);gap:34px}
}
@media(max-width:920px){
  .portal-sidebar{
    width:min(310px,88vw);
    transform:translateX(-105%);
    transition:transform .22s ease;
    box-shadow:24px 0 70px rgba(2,8,23,.28);
  }
  .portal-content{margin-left:0}
  .sidebar-open .portal-sidebar{transform:translateX(0)}
  .sidebar-backdrop{
    position:fixed;
    inset:0;
    z-index:45;
    background:rgba(2,8,23,.52);
    backdrop-filter:blur(3px);
  }
  .sidebar-open .sidebar-backdrop{display:block}
  .sidebar-close,.mobile-menu-button{display:block}
  .public-header-inner{grid-template-columns:1fr auto}
  .public-nav{display:none}
  .public-hero{grid-template-columns:1fr;padding-top:55px}
  .public-hero-panel{min-height:400px}
  .public-feature-grid{grid-template-columns:1fr}
  .auth-layout{grid-template-columns:1fr;gap:34px}
  .auth-intro{max-width:700px}
}
@media(max-width:760px){
  .portal-topbar{min-height:68px;padding:10px 15px}
  .portal-container{padding:20px 14px 40px}
  .topbar-track,.topbar-profile-copy{display:none}
  .topbar-profile{padding:4px;border:0;background:transparent}
  .portal-footer{padding:16px 14px;flex-direction:column;gap:5px}
  .page-head{padding:20px;border-radius:19px}
  .dashboard-hero{min-height:unset;align-items:flex-start;flex-direction:column;padding:25px 21px;border-radius:22px}
  .dashboard-hero h1{font-size:2.2rem}
  .dashboard-hero-actions{justify-content:flex-start;width:100%}
  .dashboard-hero-actions .button{flex:1;text-align:center}
  .dashboard-action-grid{grid-template-columns:1fr}
  .dashboard-action-card{grid-template-columns:38px 1fr auto;min-height:112px;padding:17px}
  .dashboard-action-index{width:38px;height:38px}
   /* PUBLIC MOBILE HEADER */

   .public-header-inner{
    width:100%;
    min-height:76px;
    padding:0 16px;
    grid-template-columns:minmax(0,1fr) auto;
    gap:10px;
  }

  .public-logo-image{
    max-width:155px;
    max-height:48px;
  }

  .public-nav{
    display:none;
  }

  .public-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
  }

  .public-actions .public-signin{
    display:inline-flex;
    align-items:center;
    color:#1e293b;
    font-size:.78rem;
    font-weight:800;
    white-space:nowrap;
  }

  .public-register{
    min-height:43px;
    padding:0 14px;
    border-radius:12px;
    font-size:.74rem;
  }

  .public-main{
    min-height:calc(100vh - 76px);
  }

  .public-container{
    width:min(92vw,1180px);
  }

  .public-container-home{
    width:100%;
    max-width:none;
    padding:0;
    margin:0;
  }
  .public-hero{min-height:auto;padding:48px 0 36px}
  .public-hero h1{font-size:clamp(2.7rem,13vw,4.1rem)}
  .hero-tracking-form{grid-template-columns:1fr}
  .hero-tracking-form button{width:100%}
  .public-hero-panel{padding:22px;border-radius:23px}
  .public-feature-section{padding:48px 0}
  .public-cta{align-items:flex-start;flex-direction:column;padding:25px}
  .public-footer-inner{width:min(92vw,1180px);flex-direction:column;padding:34px 0}
  .auth-layout{padding:42px 0}
  .auth-intro h1{font-size:3rem}
  .auth-card-modern{padding:22px}
}

@media(max-width:480px){
  .portal-container{padding-left:11px;padding-right:11px}
  .page-head{padding:17px}
  .dashboard-hero{padding:22px 18px}
  .dashboard-hero-actions{display:grid;grid-template-columns:1fr;width:100%}
  .dashboard-stats{grid-template-columns:1fr 1fr}
  .dashboard-stats .stat-card{grid-template-columns:42px 1fr;min-height:96px;padding:13px}
  .stat-icon{width:42px;height:42px;border-radius:12px}
  .stat-card strong{font-size:1.15rem}
  .dashboard-action-card{grid-template-columns:34px 1fr auto;gap:11px}
  .dashboard-action-index{width:34px;height:34px}
  .public-hero h1{font-size:2.65rem}
  .public-hero-panel{min-height:370px}
  .hero-panel-stats{grid-template-columns:1fr}
  .public-actions .button{font-size:.7rem}
  .public-header-inner{
    min-height:70px;
    padding:0 12px;
    gap:7px;
  }

  .public-logo-image{
    max-width:120px;
    max-height:42px;
  }

  .public-actions{
    gap:8px;
  }

  .public-actions .public-signin{
    font-size:.7rem;
  }

  .public-register{
    min-height:39px;
    padding:0 10px;
    font-size:.66rem;
  }


  .public-main{
    min-height:calc(100vh - 70px);
  }
}


/* ========================================================================
   TRACKFLO SHELL BEHAVIOR FIX
   Mirrors the original Node.js desktop collapse + mobile drawer behavior.
   ======================================================================== */

.portal-sidebar,
.portal-content{
  transition:
    width .3s ease,
    margin-left .3s ease,
    transform .24s ease;
}

.sidebar-nav-icon{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  background:rgba(255,255,255,.055);
  color:#8fa9c7;
  font-size:.57rem;
  font-weight:950;
  letter-spacing:.03em;
  transition:.18s ease;
}

.sidebar-link{
  min-height:46px;
  gap:11px;
}

.sidebar-link.is-active .sidebar-nav-icon{
  background:rgba(59,130,246,.18);
  color:#8be6ff;
  box-shadow:inset 0 0 0 1px rgba(125,229,255,.12);
}

.desktop-sidebar-toggle{
  display:inline-grid;
  place-items:center;
  width:40px;
  height:40px;
  min-height:40px;
  padding:0;
  border:1px solid var(--tf-border);
  border-radius:12px;
  background:#fff;
  color:#475569;
  box-shadow:none;
}

.desktop-sidebar-toggle:hover{
  background:#f8fafc;
  transform:none;
}

.sidebar-toggle-glyph{
  display:block;
  font-size:1.65rem;
  line-height:1;
  transform:translateY(-1px);
}

/* Desktop collapsed state — equivalent to Node w-20 / lg:pl-20. */
@media(min-width:920px){
  .portal-shell.sidebar-collapsed .portal-sidebar{
    width:80px;
  }

  .portal-shell.sidebar-collapsed .portal-content{
    margin-left:80px;
  }

  .portal-shell.sidebar-collapsed .sidebar-brand-row{
    justify-content:center;
    padding-left:12px;
    padding-right:12px;
  }

  .portal-shell.sidebar-collapsed .sidebar-brand{
    justify-content:center;
    width:100%;
  }

  .portal-shell.sidebar-collapsed .sidebar-logo-image{
    width:42px;
    height:42px;
    object-fit:contain;
    object-position:left center;
  }

  .portal-shell.sidebar-collapsed .brand-copy,
  .portal-shell.sidebar-collapsed .sidebar-role,
  .portal-shell.sidebar-collapsed .sidebar-nav-heading,
  .portal-shell.sidebar-collapsed .sidebar-link-label,
  .portal-shell.sidebar-collapsed .sidebar-track-link span,
  .portal-shell.sidebar-collapsed .sidebar-user>div,
  .portal-shell.sidebar-collapsed .sidebar-logout{
    display:none;
  }

  .portal-shell.sidebar-collapsed .sidebar-nav{
    padding-left:10px;
    padding-right:10px;
  }

  .portal-shell.sidebar-collapsed .sidebar-nav-group{
    margin-top:10px;
  }

  .portal-shell.sidebar-collapsed .sidebar-link{
    justify-content:center;
    min-height:48px;
    padding:8px;
  }

  .portal-shell.sidebar-collapsed .sidebar-nav-icon{
    width:34px;
    height:34px;
    flex-basis:34px;
  }

  .portal-shell.sidebar-collapsed .sidebar-footer{
    padding-left:10px;
    padding-right:10px;
  }

  .portal-shell.sidebar-collapsed .sidebar-track-link{
    justify-content:center;
    padding:10px 8px;
  }

  .portal-shell.sidebar-collapsed .sidebar-track-link strong{
    font-size:1rem;
  }

  .portal-shell.sidebar-collapsed .sidebar-user{
    display:flex;
    justify-content:center;
    grid-template-columns:1fr;
  }
}

/* Mobile drawer — always starts off canvas, then slides in. */
@media(max-width:919px){
  .desktop-sidebar-toggle{
    display:none;
  }

  .portal-sidebar{
    display:flex;
    visibility:visible;
    pointer-events:auto;
    width:min(320px,86vw);
    max-width:320px;
    transform:translate3d(-105%,0,0);
    opacity:1;
  }

  .portal-content{
    margin-left:0 !important;
  }

  .sidebar-open .portal-sidebar{
    transform:translate3d(0,0,0);
  }

  .sidebar-backdrop{
    display:block;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .2s ease,visibility .2s ease;
  }

  .sidebar-open .sidebar-backdrop{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }

  .mobile-menu-button{
    display:grid;
    place-items:center;
    width:42px;
    height:42px;
    flex:0 0 42px;
  }

  .mobile-menu-button span{
    width:19px;
    margin:2px 0;
  }

  .sidebar-close{
    display:grid;
    place-items:center;
  }
}

/* Very small mobile top bar */
@media(max-width:480px){
  .portal-topbar-left{
    min-width:0;
  }

  .topbar-title{
    min-width:0;
  }

  .topbar-title span,
  .topbar-title strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .topbar-title strong{
    max-width:52vw;
  }
}

/* ========================================================================
   TRACKFLO MOBILE SIDEBAR — CLEAN FINAL SCROLL MODEL
   The sidebar itself is the only mobile scroll container.
   ======================================================================== */

@media (max-width: 919px) {
  body.sidebar-open {
    overflow: hidden;
  }

  .portal-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: 0 !important;

    width: min(320px, 86vw) !important;
    max-width: 320px !important;

    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;

    display: block !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;

    scrollbar-width: thin;
    scrollbar-color: #587494 transparent;
  }

  .portal-sidebar::-webkit-scrollbar {
    width: 6px;
  }

  .portal-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .portal-sidebar::-webkit-scrollbar-thumb {
    background: #587494;
    border-radius: 999px;
  }

  .sidebar-scroll-region,
  .sidebar-nav,
  .sidebar-footer {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .sidebar-scroll-region {
    display: block !important;
    width: 100% !important;
  }

  .sidebar-nav {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    padding-bottom: 20px;
  }

  .sidebar-footer {
    position: relative !important;
    display: block !important;
    flex: none !important;
    margin-top: 0 !important;
    padding-bottom: max(30px, env(safe-area-inset-bottom)) !important;
  }

  .sidebar-brand-row {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: #06172f !important;
  }
}

@media (min-width: 920px) {
  .sidebar-scroll-region {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .sidebar-nav {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }
}
/* ========================================================================
   ADMIN DASHBOARD — MATCHED PREMIUM LAYOUT
   Matches the current app/Views/dashboard/admin.php exactly.
   Sidebar/mobile scroll rules above are untouched.
   ======================================================================== */

.admin-dashboard-hero{
  position:relative;
  overflow:hidden;
  min-height:248px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  padding:34px;
  margin-bottom:18px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:28px;
  color:#fff;
  background:
    radial-gradient(circle at 88% 10%,rgba(56,189,248,.22),transparent 25%),
    radial-gradient(circle at 64% 115%,rgba(37,99,235,.24),transparent 34%),
    linear-gradient(135deg,#06172f 0%,#0a2348 62%,#0b315f 100%);
  box-shadow:0 24px 60px rgba(6,23,47,.16);
}

.admin-dashboard-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.13;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px);
  background-size:32px 32px;
  mask-image:linear-gradient(to left,#000,transparent 72%);
}

.admin-dashboard-hero>div{
  position:relative;
  z-index:1;
}

.admin-dashboard-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:29px;
  padding:6px 10px;
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#9beaff;
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.11em;
}

.admin-dashboard-badge>span{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#34d399;
  box-shadow:0 0 0 4px rgba(52,211,153,.09);
}

.admin-dashboard-hero h1{
  max-width:760px;
  margin:14px 0 10px;
  color:#fff;
  font-size:clamp(2.15rem,4vw,3.65rem);
  line-height:1;
  font-weight:820;
  letter-spacing:-.055em;
}

.admin-dashboard-hero p{
  max-width:700px;
  margin:0;
  color:#b7c8dc;
  font-size:.93rem;
  line-height:1.65;
}

.admin-dashboard-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:18px;
}

.admin-dashboard-hero-meta span{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:6px 9px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#c8d6e7;
  font-size:.67rem;
  font-weight:800;
}

.admin-dashboard-hero-actions{
  min-width:184px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.admin-dashboard-hero-actions .button{
  min-width:180px;
  text-align:center;
}

.admin-primary-action{
  background:#fff !important;
  border-color:#fff !important;
  color:#071b36 !important;
  box-shadow:0 10px 24px rgba(2,8,23,.16) !important;
}

.admin-secondary-action{
  background:rgba(255,255,255,.075) !important;
  border-color:rgba(255,255,255,.13) !important;
  color:#fff !important;
  box-shadow:none !important;
}

.admin-dashboard-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:13px;
  margin-bottom:18px;
}

.admin-dashboard-stat{
  position:relative;
  overflow:hidden;
  min-height:142px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:9px;
  padding:18px;
  border:1px solid #e4eaf2;
  border-radius:20px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,24,40,.055);
}

.admin-dashboard-stat::after{
  content:"";
  position:absolute;
  right:-27px;
  bottom:-32px;
  width:78px;
  height:78px;
  border-radius:50%;
  background:rgba(37,99,235,.035);
}

.admin-dashboard-stat>span{
  position:relative;
  z-index:1;
  color:#7b899c;
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.085em;
}

.admin-dashboard-stat>strong{
  position:relative;
  z-index:1;
  margin-top:2px;
  color:#101828;
  font-size:2rem;
  line-height:1;
  font-weight:820;
  letter-spacing:-.05em;
}

.admin-dashboard-stat>a,
.admin-dashboard-stat>small{
  position:relative;
  z-index:1;
  color:#77869a;
  font-size:.72rem;
  line-height:1.45;
}

.admin-dashboard-stat>a{
  color:#315f9b;
  font-weight:800;
}

.admin-dashboard-stat.attention{
  border-color:#f3d58a;
  background:linear-gradient(145deg,#fff,#fffaf0);
}

.admin-dashboard-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.55fr) minmax(310px,.8fr);
  gap:16px;
  align-items:start;
}

.admin-dashboard-column{
  display:grid;
  gap:16px;
}

.admin-dashboard-panel{
  overflow:hidden;
  border:1px solid #e4eaf2;
  border-radius:22px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,24,40,.055);
}

.admin-dashboard-panel-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:20px 21px 16px;
  border-bottom:1px solid #edf1f5;
}

.admin-dashboard-panel-head .eyebrow{
  margin:0;
}

.admin-dashboard-panel-head h2{
  margin:4px 0 0;
  color:#101828;
  font-size:1.18rem;
  line-height:1.2;
  letter-spacing:-.025em;
}

.admin-dashboard-panel-head>a{
  flex:0 0 auto;
  color:#4f6888;
  font-size:.72rem;
  font-weight:850;
}

.admin-dashboard-list{
  display:grid;
}

.admin-dashboard-row{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:13px;
  align-items:center;
  min-height:78px;
  padding:15px 20px;
  border-bottom:1px solid #edf1f5;
  transition:background .15s ease;
}

.admin-dashboard-row:last-child{
  border-bottom:0;
}

.admin-dashboard-row:hover{
  background:#fafcff;
}

.admin-dashboard-row-icon{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid #deebfa;
  border-radius:13px;
  background:#f3f8ff;
  color:#496a93;
  font-size:.61rem;
  font-weight:950;
}

.admin-dashboard-row>div{
  min-width:0;
}

.admin-dashboard-row-title{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.admin-dashboard-row-title strong{
  color:#101828;
  font-size:.85rem;
}

.admin-dashboard-row p{
  margin:5px 0 2px;
  color:#536276;
  font-size:.78rem;
  font-weight:720;
}

.admin-dashboard-row small{
  display:block;
  color:#8d9bad;
  font-size:.67rem;
  line-height:1.45;
}

.admin-dashboard-row>b{
  color:#9aa7b7;
  font-size:1rem;
  font-weight:800;
}

.admin-dashboard-empty{
  padding:26px 21px;
  color:#7b899c;
  font-size:.79rem;
  line-height:1.55;
}

.admin-status-list{
  display:grid;
  gap:18px;
  padding:20px 21px 24px;
}

.admin-status-list>div{
  display:grid;
  gap:8px;
}

.admin-status-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.admin-status-meta span{
  color:#627287;
  font-size:.73rem;
  font-weight:760;
}

.admin-status-meta strong{
  color:#1f2937;
  font-size:.79rem;
}

.admin-status-track{
  overflow:hidden;
  height:7px;
  border-radius:999px;
  background:#edf2f7;
}

.admin-status-track>span{
  display:block;
  height:100%;
  min-width:3px;
  border-radius:inherit;
}

.admin-status-track .blue{background:#3b82f6}
.admin-status-track .green{background:#22c55e}
.admin-status-track .amber{background:#f59e0b}
.admin-status-track .slate{background:#94a3b8}

.admin-dashboard-mini-list{
  display:grid;
}

.admin-dashboard-mini-list>a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:13px;
  min-height:64px;
  padding:13px 20px;
  border-bottom:1px solid #edf1f5;
}

.admin-dashboard-mini-list>a:last-child{
  border-bottom:0;
}

.admin-dashboard-mini-list>a:hover{
  background:#fafcff;
}

.admin-dashboard-mini-list>a>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.admin-dashboard-mini-list strong{
  color:#1f2937;
  font-size:.77rem;
}

.admin-dashboard-mini-list small{
  overflow:hidden;
  color:#8a98aa;
  font-size:.65rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.admin-dashboard-mini-list>a>span:not(.admin-mini-avatar){
  flex:0 0 auto;
  color:#344054;
  font-size:.72rem;
  font-weight:850;
}

.customer-mini-list>a{
  justify-content:flex-start;
}

.admin-mini-avatar{
  display:grid;
  place-items:center;
  width:36px;
  height:36px;
  flex:0 0 36px;
  border-radius:11px;
  background:linear-gradient(135deg,#1d4ed8,#06b6d4);
  color:#fff !important;
  font-size:.61rem !important;
  font-weight:950 !important;
}

.admin-dashboard-shortcuts{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-top:16px;
}

.admin-dashboard-shortcuts>a{
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  min-height:92px;
  padding:15px;
  border:1px solid #e4eaf2;
  border-radius:18px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,24,40,.045);
  transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease;
}

.admin-dashboard-shortcuts>a:hover{
  transform:translateY(-1px);
  border-color:#cad6e4;
  box-shadow:0 12px 28px rgba(16,24,40,.07);
}

.admin-dashboard-shortcuts>a>span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border-radius:10px;
  background:#f0f5fb;
  color:#667b96;
  font-size:.58rem;
  font-weight:950;
}

.admin-dashboard-shortcuts>a>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.admin-dashboard-shortcuts strong{
  color:#1f2937;
  font-size:.78rem;
}

.admin-dashboard-shortcuts small{
  color:#8a98aa;
  font-size:.64rem;
  line-height:1.35;
}

.admin-dashboard-shortcuts b{
  color:#9aa7b7;
  font-size:.92rem;
}

@media(max-width:1180px){
  .admin-dashboard-stat-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .admin-dashboard-shortcuts{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:980px){
  .admin-dashboard-main-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:760px){
  .admin-dashboard-hero{
    min-height:unset;
    flex-direction:column;
    align-items:flex-start;
    padding:24px 20px;
    border-radius:22px;
  }

  .admin-dashboard-hero h1{
    font-size:2.25rem;
  }

  .admin-dashboard-hero-actions{
    width:100%;
    min-width:0;
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .admin-dashboard-hero-actions .button{
    min-width:0;
  }

  .admin-dashboard-stat-grid{
    grid-template-columns:1fr 1fr;
    gap:10px;
  }

  .admin-dashboard-stat{
    min-height:126px;
    padding:15px;
    border-radius:17px;
  }

  .admin-dashboard-stat>strong{
    font-size:1.55rem;
  }

  .admin-dashboard-panel{
    border-radius:18px;
  }

  .admin-dashboard-shortcuts{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:520px){
  .admin-dashboard-hero{
    padding:21px 17px;
  }

  .admin-dashboard-hero h1{
    font-size:2rem;
  }

  .admin-dashboard-hero-actions{
    grid-template-columns:1fr;
  }

  .admin-dashboard-stat{
    min-height:116px;
    padding:13px;
  }

  .admin-dashboard-stat>span{
    font-size:.58rem;
  }

  .admin-dashboard-stat>strong{
    font-size:1.34rem;
  }

  .admin-dashboard-stat>a,
  .admin-dashboard-stat>small{
    font-size:.64rem;
  }

  .admin-dashboard-panel-head{
    padding:17px 16px 14px;
  }

  .admin-dashboard-row{
    grid-template-columns:36px minmax(0,1fr);
    padding:14px 16px;
  }

  .admin-dashboard-row-icon{
    width:36px;
    height:36px;
  }

  .admin-dashboard-row>b{
    display:none;
  }

  .admin-dashboard-row-title{
    align-items:flex-start;
    flex-direction:column;
    gap:5px;
  }

  .admin-dashboard-shortcuts{
    grid-template-columns:1fr;
  }
}

/* ========================================================================
   TRACKFLO LIGHT / DARK THEME SYSTEM
   Light mode uses a bright premium workspace. Sidebar remains brand navy.
   ======================================================================== */

html[data-theme="light"]{color-scheme:light}
html[data-theme="dark"]{color-scheme:dark}

.theme-toggle{
  width:40px;
  height:40px;
  min-height:40px;
  display:grid;
  place-items:center;
  padding:10px;
  border:1px solid #e1e8f0;
  border-radius:12px;
  background:#fff;
  color:#526174;
  box-shadow:0 1px 2px rgba(16,24,40,.035),0 2px 8px rgba(16,24,40,.03);
  cursor:pointer;
}

.theme-toggle:hover{
  background:#f8fafc;
  border-color:#cfd8e4;
  transform:none;
}

.theme-icon{
  width:18px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.theme-icon-moon{display:none}
html[data-theme="dark"] .theme-icon-sun{display:none}
html[data-theme="dark"] .theme-icon-moon{display:block}

/* Light dashboard hero: premium, bright and less visually heavy */
.admin-dashboard-hero{
  min-height:235px;
  color:#101828;
  border:1px solid #dfe7f1;
  background:
    radial-gradient(circle at 88% 10%,rgba(34,199,238,.13),transparent 26%),
    radial-gradient(circle at 63% 112%,rgba(37,99,235,.09),transparent 36%),
    linear-gradient(145deg,#ffffff 0%,#f7faff 58%,#eef6ff 100%);
  box-shadow:0 16px 42px rgba(16,24,40,.07);
}

.admin-dashboard-hero::before{
  opacity:.34;
  background-image:
    linear-gradient(rgba(37,99,235,.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(37,99,235,.05) 1px,transparent 1px);
  mask-image:linear-gradient(to left,#000,transparent 74%);
}

.admin-dashboard-badge{
  border-color:#d9e8fb;
  background:#f2f7ff;
  color:#2563eb;
}

.admin-dashboard-badge>span{
  background:#10b981;
}

.admin-dashboard-hero h1{
  color:#101828;
}

.admin-dashboard-hero p{
  color:#667085;
}

.admin-dashboard-hero-meta span{
  border-color:#dde6f1;
  background:rgba(255,255,255,.76);
  color:#526174;
  box-shadow:0 1px 2px rgba(16,24,40,.025);
}

.admin-primary-action{
  background:linear-gradient(180deg,#3474f4,#2563eb)!important;
  border-color:#2563eb!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(37,99,235,.18)!important;
}

.admin-secondary-action{
  background:#fff!important;
  border-color:#d6dee9!important;
  color:#344054!important;
  box-shadow:0 3px 10px rgba(16,24,40,.045)!important;
}

/* Dark workspace theme */
html[data-theme="dark"] body,
html[data-theme="dark"] .portal-body{
  color:#e5edf8;
  background:#07111f;
}

html[data-theme="dark"] .portal-main{
  background:
    radial-gradient(circle at 100% 0,rgba(37,99,235,.08),transparent 32rem),
    #07111f;
}

html[data-theme="dark"] .portal-topbar{
  border-bottom-color:#1b2a3f;
  background:rgba(8,18,32,.9);
  box-shadow:0 1px 0 rgba(255,255,255,.025);
}

html[data-theme="dark"] .topbar-title span{
  color:#71839a;
}

html[data-theme="dark"] .topbar-title strong{
  color:#eef4fc;
}

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .desktop-sidebar-toggle,
html[data-theme="dark"] .mobile-menu-button,
html[data-theme="dark"] .topbar-track,
html[data-theme="dark"] .topbar-profile{
  border-color:#22344b;
  background:#0c1a2d;
  color:#b6c6da;
  box-shadow:none;
}

html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .desktop-sidebar-toggle:hover,
html[data-theme="dark"] .mobile-menu-button:hover,
html[data-theme="dark"] .topbar-track:hover{
  background:#102138;
  border-color:#30445f;
}

html[data-theme="dark"] .admin-dashboard-hero{
  color:#edf4fc;
  border-color:#20324a;
  background:
    radial-gradient(circle at 87% 8%,rgba(34,199,238,.11),transparent 28%),
    radial-gradient(circle at 60% 110%,rgba(37,99,235,.12),transparent 38%),
    linear-gradient(145deg,#0b1728,#0d1d32 66%,#10243d);
  box-shadow:0 18px 46px rgba(0,0,0,.18);
}

html[data-theme="dark"] .admin-dashboard-hero::before{
  opacity:.12;
}

html[data-theme="dark"] .admin-dashboard-badge{
  border-color:#244768;
  background:#102640;
  color:#79ddff;
}

html[data-theme="dark"] .admin-dashboard-hero h1{
  color:#f3f7fc;
}

html[data-theme="dark"] .admin-dashboard-hero p{
  color:#9fb0c6;
}

html[data-theme="dark"] .admin-dashboard-hero-meta span{
  border-color:#263a53;
  background:#102137;
  color:#aebed1;
  box-shadow:none;
}

html[data-theme="dark"] .admin-primary-action{
  background:linear-gradient(180deg,#3a78f6,#2c64dc)!important;
  border-color:#3974e9!important;
  color:#fff!important;
}

html[data-theme="dark"] .admin-secondary-action{
  background:#102138!important;
  border-color:#2a3d56!important;
  color:#dce7f5!important;
  box-shadow:none!important;
}

html[data-theme="dark"] .admin-dashboard-stat,
html[data-theme="dark"] .admin-dashboard-panel,
html[data-theme="dark"] .admin-dashboard-shortcuts>a,
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .form-grid,
html[data-theme="dark"] .mobile-record-card,
html[data-theme="dark"] .payment-choice,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .page-head{
  border-color:#1e3046;
  background:#0c192a;
  color:#e7eef8;
  box-shadow:0 6px 20px rgba(0,0,0,.12);
}

html[data-theme="dark"] .admin-dashboard-stat.attention{
  border-color:#654e25;
  background:linear-gradient(145deg,#0c192a,#1a1a16);
}

html[data-theme="dark"] .admin-dashboard-stat>span,
html[data-theme="dark"] .admin-dashboard-stat>a,
html[data-theme="dark"] .admin-dashboard-stat>small,
html[data-theme="dark"] .admin-dashboard-row small,
html[data-theme="dark"] .admin-dashboard-mini-list small,
html[data-theme="dark"] .admin-dashboard-shortcuts small,
html[data-theme="dark"] .muted{
  color:#8193aa;
}

html[data-theme="dark"] .admin-dashboard-stat>strong,
html[data-theme="dark"] .admin-dashboard-panel-head h2,
html[data-theme="dark"] .admin-dashboard-row-title strong,
html[data-theme="dark"] .admin-dashboard-mini-list strong,
html[data-theme="dark"] .admin-dashboard-shortcuts strong,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .page-head h1,
html[data-theme="dark"] label{
  color:#edf3fb;
}

html[data-theme="dark"] .admin-dashboard-panel-head,
html[data-theme="dark"] .admin-dashboard-row,
html[data-theme="dark"] .admin-dashboard-mini-list>a,
html[data-theme="dark"] tbody td{
  border-color:#182a3e;
}

html[data-theme="dark"] .admin-dashboard-row:hover,
html[data-theme="dark"] .admin-dashboard-mini-list>a:hover,
html[data-theme="dark"] tbody tr:hover{
  background:#102035;
}

html[data-theme="dark"] .admin-dashboard-row-icon,
html[data-theme="dark"] .admin-dashboard-shortcuts>a>span{
  border-color:#28415f;
  background:#10243c;
  color:#8cb8eb;
}

html[data-theme="dark"] .admin-status-track{
  background:#1a2b40;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  border-color:#243750;
  background:#091625;
  color:#edf3fb;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{
  color:#61758e;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{
  background:#0c1b2d;
  border-color:#3b70c9;
  box-shadow:0 0 0 4px rgba(59,112,201,.13);
}

html[data-theme="dark"] thead th{
  border-color:#1c2d42;
  background:#0a1727;
  color:#72869e;
}

html[data-theme="dark"] tbody td{
  color:#c4d1e1;
}

html[data-theme="dark"] .badge,
html[data-theme="dark"] .status-pill{
  border-color:#29415e;
  background:#102139;
  color:#9cb5d1;
}

html[data-theme="dark"] .button.secondary,
html[data-theme="dark"] button.secondary,
html[data-theme="dark"] .button.outline{
  border-color:#2b3f59;
  background:#0e1d30;
  color:#dbe5f1;
  box-shadow:none;
}

html[data-theme="dark"] .portal-footer{
  border-color:#18283a;
  color:#637890;
}

@media(max-width:760px){
  .theme-toggle{
    width:38px;
    height:38px;
    min-height:38px;
    padding:9px;
  }
}


/* ========================================================================
   TRACKFLO GLASSY PREMIUM DASHBOARD
   Premium workspace treatment. Mobile sidebar scroll behavior is untouched.
   ======================================================================== */

:root{
  --glass-surface:rgba(255,255,255,.72);
  --glass-surface-strong:rgba(255,255,255,.86);
  --glass-border:rgba(148,163,184,.22);
  --glass-highlight:rgba(255,255,255,.72);
  --glass-shadow:0 18px 50px rgba(15,23,42,.08);
  --glass-shadow-soft:0 10px 30px rgba(15,23,42,.055);
  --glass-blue:rgba(59,130,246,.12);
  --glass-cyan:rgba(34,211,238,.10);
}

html[data-theme="dark"]{
  --glass-surface:rgba(12,25,42,.72);
  --glass-surface-strong:rgba(12,25,42,.88);
  --glass-border:rgba(148,163,184,.13);
  --glass-highlight:rgba(255,255,255,.045);
  --glass-shadow:0 20px 58px rgba(0,0,0,.24);
  --glass-shadow-soft:0 10px 30px rgba(0,0,0,.18);
  --glass-blue:rgba(59,130,246,.14);
  --glass-cyan:rgba(34,211,238,.10);
}

/* Workspace canvas */
.portal-body{
  background:
    radial-gradient(circle at 78% 0%,rgba(56,189,248,.11),transparent 24rem),
    radial-gradient(circle at 46% 22%,rgba(99,102,241,.075),transparent 28rem),
    linear-gradient(180deg,#f7faff 0%,#f3f6fb 42%,#eef3f9 100%);
  background-attachment:fixed;
}

.portal-main{
  position:relative;
  isolation:isolate;
  background:transparent;
}

.portal-main::before{
  content:"";
  position:fixed;
  inset:72px 0 0 282px;
  z-index:-1;
  pointer-events:none;
  opacity:.52;
  background:
    linear-gradient(rgba(255,255,255,.34),rgba(255,255,255,.34)),
    radial-gradient(circle at 82% 8%,rgba(59,130,246,.08),transparent 22rem),
    radial-gradient(circle at 48% 55%,rgba(34,211,238,.055),transparent 24rem);
}

html[data-theme="dark"] .portal-body{
  background:
    radial-gradient(circle at 80% 0%,rgba(37,99,235,.13),transparent 26rem),
    radial-gradient(circle at 46% 26%,rgba(6,182,212,.07),transparent 28rem),
    linear-gradient(180deg,#07111f 0%,#081321 52%,#07101c 100%);
}

html[data-theme="dark"] .portal-main::before{
  opacity:.4;
  background:
    radial-gradient(circle at 82% 10%,rgba(37,99,235,.12),transparent 22rem),
    radial-gradient(circle at 48% 55%,rgba(34,211,238,.055),transparent 24rem);
}

/* Cleaner glass topbar */
.portal-topbar{
  border-bottom:1px solid rgba(148,163,184,.16);
  background:rgba(248,251,255,.70);
  backdrop-filter:blur(22px) saturate(150%);
  -webkit-backdrop-filter:blur(22px) saturate(150%);
  box-shadow:0 10px 30px rgba(15,23,42,.035);
}

html[data-theme="dark"] .portal-topbar{
  border-bottom-color:rgba(148,163,184,.10);
  background:rgba(7,17,31,.72);
  box-shadow:0 10px 32px rgba(0,0,0,.14);
}

.portal-topbar-actions{
  gap:9px;
}

.theme-toggle,
.desktop-sidebar-toggle,
.mobile-menu-button,
.topbar-profile{
  border:1px solid var(--glass-border)!important;
  background:var(--glass-surface)!important;
  backdrop-filter:blur(16px) saturate(145%);
  -webkit-backdrop-filter:blur(16px) saturate(145%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 7px 18px rgba(15,23,42,.045)!important;
}

.theme-toggle{
  width:42px;
  height:42px;
  min-height:42px;
  border-radius:14px;
  color:#526174;
}

html[data-theme="dark"] .theme-toggle{
  color:#b7c7da;
}

.theme-icon,
.topbar-control-icon,
.sidebar-nav-icon svg{
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.7!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

.topbar-profile{
  min-height:44px;
  padding:5px 10px 5px 5px;
  border-radius:15px;
}

.user-avatar-small{
  width:34px;
  height:34px;
  border-radius:11px;
  box-shadow:0 5px 15px rgba(37,99,235,.15);
}

/* Sidebar icons: never black, always refined line icons */
.sidebar-nav-icon{
  border-color:rgba(255,255,255,.055)!important;
  background:rgba(255,255,255,.04)!important;
  color:#8ba8c7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}

.sidebar-nav-icon svg{
  width:18px!important;
  height:18px!important;
}

.sidebar-link:hover .sidebar-nav-icon{
  color:#b6d7f2!important;
  background:rgba(255,255,255,.065)!important;
}

.sidebar-link.is-active .sidebar-nav-icon{
  color:#74e1ff!important;
  border-color:rgba(116,225,255,.14)!important;
  background:linear-gradient(145deg,rgba(37,99,235,.24),rgba(6,182,212,.12))!important;
}

/* Glass dashboard hero */
.admin-dashboard-hero{
  min-height:220px;
  padding:30px 32px;
  border:1px solid var(--glass-border)!important;
  border-radius:26px;
  color:#101828;
  background:
    linear-gradient(135deg,rgba(255,255,255,.82),rgba(255,255,255,.60)),
    radial-gradient(circle at 86% 8%,rgba(34,211,238,.12),transparent 24%),
    radial-gradient(circle at 62% 110%,rgba(59,130,246,.10),transparent 35%)!important;
  backdrop-filter:blur(22px) saturate(145%);
  -webkit-backdrop-filter:blur(22px) saturate(145%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.82),
    var(--glass-shadow)!important;
}

.admin-dashboard-hero::before{
  opacity:.28!important;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(59,130,246,.04) 1px,transparent 1px)!important;
  background-size:30px 30px!important;
}

.admin-dashboard-badge{
  border-color:rgba(59,130,246,.16)!important;
  background:rgba(255,255,255,.56)!important;
  color:#2563eb!important;
  backdrop-filter:blur(10px);
}

.admin-dashboard-hero h1{
  color:#0f172a!important;
  font-size:clamp(2.15rem,3.6vw,3.35rem)!important;
}

.admin-dashboard-hero p{
  color:#64748b!important;
}

.admin-dashboard-hero-meta span{
  border-color:rgba(148,163,184,.18)!important;
  background:rgba(255,255,255,.50)!important;
  color:#526174!important;
  backdrop-filter:blur(12px);
}

.admin-primary-action{
  border-color:rgba(37,99,235,.18)!important;
  background:linear-gradient(135deg,#2f6fec,#2563eb)!important;
  color:#fff!important;
  box-shadow:0 12px 28px rgba(37,99,235,.20)!important;
}

.admin-secondary-action{
  border-color:var(--glass-border)!important;
  background:rgba(255,255,255,.58)!important;
  color:#344054!important;
  backdrop-filter:blur(12px);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.68),0 7px 18px rgba(15,23,42,.05)!important;
}

/* Glass KPI cards */
.admin-dashboard-stat{
  border:1px solid var(--glass-border)!important;
  border-radius:20px!important;
  background:var(--glass-surface)!important;
  backdrop-filter:blur(18px) saturate(145%);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft)!important;
}

.admin-dashboard-stat::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.12),transparent 42%);
}

.admin-dashboard-stat:hover{
  transform:translateY(-2px);
  border-color:rgba(96,165,250,.24)!important;
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 18px 38px rgba(15,23,42,.085)!important;
}

.admin-dashboard-stat>strong{
  font-size:2.1rem;
}

.admin-dashboard-stat.attention{
  border-color:rgba(245,158,11,.24)!important;
  background:
    linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,250,235,.72))!important;
}

/* Main glass panels */
.admin-dashboard-panel,
.admin-dashboard-shortcuts>a,
.card,
.form-section,
.form-grid,
.table-wrap,
.toolbar,
.page-head,
.mobile-record-card,
.payment-choice{
  border:1px solid var(--glass-border)!important;
  background:var(--glass-surface)!important;
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft)!important;
}

.admin-dashboard-panel{
  border-radius:22px!important;
}

.admin-dashboard-panel-head{
  border-bottom-color:rgba(148,163,184,.14)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.22),transparent);
}

.admin-dashboard-row,
.admin-dashboard-mini-list>a{
  border-bottom-color:rgba(148,163,184,.12)!important;
}

.admin-dashboard-row:hover,
.admin-dashboard-mini-list>a:hover{
  background:rgba(255,255,255,.36)!important;
}

.admin-dashboard-row-icon{
  border:1px solid rgba(96,165,250,.14)!important;
  background:rgba(239,246,255,.58)!important;
  color:#4d6f9a!important;
  backdrop-filter:blur(10px);
}

.admin-dashboard-shortcuts>a:hover{
  border-color:rgba(96,165,250,.22)!important;
  background:var(--glass-surface-strong)!important;
}

/* Shared content surfaces */
.page-head{
  background:
    linear-gradient(145deg,rgba(255,255,255,.76),rgba(255,255,255,.56)),
    radial-gradient(circle at 94% 0,rgba(59,130,246,.08),transparent 14rem)!important;
}

input,
select,
textarea{
  border-color:rgba(148,163,184,.26)!important;
  background:rgba(255,255,255,.62)!important;
  backdrop-filter:blur(10px);
}

input:focus,
select:focus,
textarea:focus{
  background:rgba(255,255,255,.86)!important;
}

/* Dark glass theme */
html[data-theme="dark"] .admin-dashboard-hero{
  color:#edf4fc;
  background:
    linear-gradient(135deg,rgba(12,25,42,.82),rgba(12,25,42,.68)),
    radial-gradient(circle at 86% 8%,rgba(34,211,238,.10),transparent 24%),
    radial-gradient(circle at 60% 108%,rgba(59,130,246,.12),transparent 36%)!important;
  border-color:rgba(148,163,184,.12)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    var(--glass-shadow)!important;
}

html[data-theme="dark"] .admin-dashboard-hero h1{
  color:#f3f7fc!important;
}

html[data-theme="dark"] .admin-dashboard-hero p{
  color:#9eafc4!important;
}

html[data-theme="dark"] .admin-dashboard-badge{
  border-color:rgba(56,189,248,.14)!important;
  background:rgba(14,41,67,.52)!important;
  color:#7bdfff!important;
}

html[data-theme="dark"] .admin-dashboard-hero-meta span{
  border-color:rgba(148,163,184,.11)!important;
  background:rgba(16,33,55,.54)!important;
  color:#aec0d5!important;
}

html[data-theme="dark"] .admin-secondary-action{
  border-color:rgba(148,163,184,.12)!important;
  background:rgba(15,32,53,.62)!important;
  color:#dce8f5!important;
}

html[data-theme="dark"] .admin-dashboard-stat,
html[data-theme="dark"] .admin-dashboard-panel,
html[data-theme="dark"] .admin-dashboard-shortcuts>a,
html[data-theme="dark"] .card,
html[data-theme="dark"] .form-section,
html[data-theme="dark"] .form-grid,
html[data-theme="dark"] .table-wrap,
html[data-theme="dark"] .toolbar,
html[data-theme="dark"] .page-head,
html[data-theme="dark"] .mobile-record-card,
html[data-theme="dark"] .payment-choice{
  border-color:rgba(148,163,184,.11)!important;
  background:rgba(10,23,39,.68)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    var(--glass-shadow-soft)!important;
}

html[data-theme="dark"] .admin-dashboard-stat.attention{
  border-color:rgba(245,158,11,.18)!important;
  background:linear-gradient(145deg,rgba(13,26,43,.78),rgba(33,30,21,.66))!important;
}

html[data-theme="dark"] .admin-dashboard-panel-head{
  background:linear-gradient(180deg,rgba(255,255,255,.018),transparent);
}

html[data-theme="dark"] .admin-dashboard-row:hover,
html[data-theme="dark"] .admin-dashboard-mini-list>a:hover{
  background:rgba(255,255,255,.025)!important;
}

html[data-theme="dark"] .admin-dashboard-row-icon{
  border-color:rgba(96,165,250,.12)!important;
  background:rgba(17,39,64,.58)!important;
  color:#8eb8e8!important;
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  border-color:rgba(148,163,184,.13)!important;
  background:rgba(7,20,34,.64)!important;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus{
  background:rgba(10,28,47,.86)!important;
}

/* Desktop collapsed background alignment */
@media(min-width:920px){
  .portal-shell.sidebar-collapsed .portal-main::before{
    inset-left:80px;
  }
}

/* Mobile refinements */
@media(max-width:919px){
  .portal-main::before{
    inset:68px 0 0 0;
  }
}

@media(max-width:760px){
  .admin-dashboard-hero{
    padding:22px 18px!important;
    border-radius:20px!important;
  }

  .admin-dashboard-hero h1{
    font-size:2rem!important;
  }

  .admin-dashboard-stat{
    border-radius:17px!important;
  }

  .admin-dashboard-panel,
  .admin-dashboard-shortcuts>a{
    border-radius:18px!important;
  }

  .theme-toggle{
    width:40px;
    height:40px;
    min-height:40px;
    border-radius:13px;
  }
}


/* ========================================================================
   THEME TOGGLE ICON VISIBILITY — DEFINITIVE
   ======================================================================== */
.theme-toggle{
  position:relative;
}

.theme-toggle .theme-icon{
  width:18px;
  height:18px;
  pointer-events:none;
}

.theme-icon-moon{
  display:none;
}

html[data-theme="dark"] .theme-icon-sun{
  display:none;
}

html[data-theme="dark"] .theme-icon-moon{
  display:block;
}

/* Core dark-mode workspace colors */
html[data-theme="dark"] body,
html[data-theme="dark"] .portal-body{
  color:#e6edf7;
}

html[data-theme="dark"] .portal-content{
  color:#e6edf7;
}

html[data-theme="dark"] .topbar-title strong,
html[data-theme="dark"] .topbar-profile-copy strong{
  color:#edf4fc;
}

html[data-theme="dark"] .topbar-title span,
html[data-theme="dark"] .topbar-profile-copy small{
  color:#8297b1;
}


/* ========================================================================
   ADMIN SHIPMENTS — GLASSY PREMIUM UI
   ======================================================================== */

.shipment-page-hero{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:28px;
  min-height:190px;
  padding:28px 30px;
  margin-bottom:15px;
  border:1px solid var(--glass-border);
  border-radius:24px;
  background:
    linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.56)),
    radial-gradient(circle at 88% 7%,rgba(34,211,238,.10),transparent 25%),
    radial-gradient(circle at 62% 120%,rgba(59,130,246,.09),transparent 36%);
  backdrop-filter:blur(20px) saturate(145%);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft);
}

.shipment-page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.32;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(59,130,246,.04) 1px,transparent 1px);
  background-size:30px 30px;
  mask-image:linear-gradient(to left,#000,transparent 68%);
}

.shipment-page-hero-copy,
.shipment-page-hero-actions{
  position:relative;
  z-index:1;
}

.shipment-page-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(59,130,246,.15);
  border-radius:999px;
  background:rgba(255,255,255,.54);
  color:#2563eb;
  font-size:.66rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.11em;
}

.shipment-page-kicker-icon,
.shipment-action-icon,
.shipment-field-icon,
.shipment-record-icon,
.shipment-table-mini-icon,
.shipment-empty-icon{
  display:grid;
  place-items:center;
}

.shipment-page-kicker-icon{
  width:17px;
  height:17px;
}

.shipment-page-kicker-icon svg,
.shipment-action-icon svg,
.shipment-field-icon svg,
.shipment-record-icon svg,
.shipment-table-mini-icon svg,
.shipment-icon-button svg,
.shipment-empty-icon svg{
  width:100%;
  height:100%;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.shipment-page-hero h1{
  margin:13px 0 8px;
  color:#0f172a;
  font-size:clamp(2rem,3.5vw,3.15rem);
  line-height:1;
  font-weight:820;
  letter-spacing:-.05em;
}

.shipment-page-hero p{
  max-width:760px;
  margin:0;
  color:#64748b;
  font-size:.88rem;
  line-height:1.65;
}

.shipment-new-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:155px;
}

.shipment-action-icon{
  width:16px;
  height:16px;
}

.shipment-overview-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:11px;
  margin-bottom:14px;
}

.shipment-overview-card{
  position:relative;
  overflow:hidden;
  min-height:112px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4px;
  padding:16px 17px;
  border:1px solid var(--glass-border);
  border-radius:18px;
  background:var(--glass-surface);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft);
}

.shipment-overview-card::after{
  content:"";
  position:absolute;
  right:-26px;
  bottom:-32px;
  width:72px;
  height:72px;
  border-radius:50%;
  background:rgba(59,130,246,.035);
}

.shipment-overview-label{
  position:relative;
  z-index:1;
  color:#7b899c;
  font-size:.61rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.085em;
}

.shipment-overview-card strong{
  position:relative;
  z-index:1;
  color:#101828;
  font-size:1.75rem;
  line-height:1;
  letter-spacing:-.045em;
}

.shipment-overview-card small{
  position:relative;
  z-index:1;
  color:#8b98aa;
  font-size:.64rem;
}

.shipment-overview-attention{
  border-color:rgba(245,158,11,.24);
  background:
    linear-gradient(145deg,rgba(255,255,255,.72),rgba(255,249,235,.68));
}

.shipment-filter-panel{
  display:grid;
  grid-template-columns:minmax(300px,1fr) minmax(190px,240px) auto auto;
  gap:9px;
  align-items:center;
  padding:10px;
  margin-bottom:15px;
  border:1px solid var(--glass-border);
  border-radius:17px;
  background:var(--glass-surface);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft);
}

.shipment-search-field,
.shipment-status-filter{
  position:relative;
}

.shipment-search-field input,
.shipment-status-filter select{
  min-height:42px;
  margin:0;
  padding-left:40px;
  border-color:rgba(148,163,184,.22)!important;
  background:rgba(255,255,255,.58)!important;
  box-shadow:none!important;
}

.shipment-field-icon{
  position:absolute;
  left:13px;
  top:50%;
  z-index:2;
  width:17px;
  height:17px;
  color:#8795a8;
  transform:translateY(-50%);
  pointer-events:none;
}

.shipment-filter-submit,
.shipment-filter-clear{
  min-height:42px;
  white-space:nowrap;
}

.shipment-table-panel{
  overflow:hidden;
  border:1px solid var(--glass-border);
  border-radius:21px;
  background:var(--glass-surface);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft);
}

.shipment-table-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:18px 19px 15px;
  border-bottom:1px solid rgba(148,163,184,.13);
}

.shipment-table-head .eyebrow{
  margin:0;
}

.shipment-table-head h2{
  margin:4px 0 0;
  font-size:1.1rem;
  letter-spacing:-.025em;
}

.shipment-table-head>span{
  color:#8a98aa;
  font-size:.67rem;
  font-weight:800;
}

.shipment-table-scroll{
  overflow-x:auto;
}

.shipment-premium-table{
  min-width:920px;
  border-collapse:separate;
  border-spacing:0;
}

.shipment-premium-table thead th{
  height:42px;
  padding:10px 14px;
  background:rgba(248,250,252,.54);
  border-bottom:1px solid rgba(148,163,184,.13);
  color:#7d8b9d;
  font-size:.59rem;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}

.shipment-premium-table tbody td{
  padding:13px 14px;
  border-bottom:1px solid rgba(148,163,184,.11);
  background:transparent;
  vertical-align:middle;
}

.shipment-premium-table tbody tr:last-child td{
  border-bottom:0;
}

.shipment-premium-table tbody tr:hover{
  background:rgba(255,255,255,.32);
}

.shipment-tracking-cell{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:190px;
}

.shipment-record-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  padding:9px;
  border:1px solid rgba(96,165,250,.14);
  border-radius:11px;
  background:rgba(239,246,255,.58);
  color:#4f74a3;
}

.shipment-tracking-cell>span:last-child{
  display:grid;
  gap:3px;
  min-width:0;
}

.shipment-tracking-cell strong{
  color:#172033;
  font-size:.76rem;
  font-weight:850;
}

.shipment-tracking-cell small{
  color:#98a5b5;
  font-size:.6rem;
}

.shipment-table-detail{
  display:flex;
  align-items:center;
  gap:8px;
  color:#536276;
  font-size:.71rem;
  line-height:1.4;
}

.shipment-table-mini-icon{
  width:15px;
  height:15px;
  flex:0 0 15px;
  color:#94a3b8;
}

.shipment-updated-detail{
  white-space:nowrap;
}

.shipment-status-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  min-height:25px;
  padding:4px 8px;
  border:1px solid transparent;
  border-radius:999px;
  font-size:.57rem;
  font-weight:900;
  letter-spacing:.045em;
  text-transform:uppercase;
  white-space:nowrap;
}

.shipment-status-chip>span{
  width:5px;
  height:5px;
  border-radius:50%;
  background:currentColor;
  opacity:.7;
}

.shipment-status-success{
  border-color:rgba(16,185,129,.18);
  background:rgba(236,253,245,.76);
  color:#047857;
}

.shipment-status-info{
  border-color:rgba(59,130,246,.18);
  background:rgba(239,246,255,.76);
  color:#2563eb;
}

.shipment-status-cyan{
  border-color:rgba(6,182,212,.18);
  background:rgba(236,254,255,.74);
  color:#0891b2;
}

.shipment-status-warning{
  border-color:rgba(245,158,11,.2);
  background:rgba(255,251,235,.76);
  color:#b45309;
}

.shipment-status-danger{
  border-color:rgba(239,68,68,.18);
  background:rgba(254,242,242,.76);
  color:#c24141;
}

.shipment-status-neutral{
  border-color:rgba(148,163,184,.18);
  background:rgba(248,250,252,.76);
  color:#64748b;
}

.shipment-actions-column{
  width:104px;
  text-align:right!important;
}

.shipment-premium-actions{
  display:flex;
  justify-content:flex-end;
  gap:6px;
}

.shipment-icon-button{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  border:1px solid rgba(148,163,184,.18);
  border-radius:10px;
  background:rgba(255,255,255,.52);
  color:#62748a;
  transition:.15s ease;
}

.shipment-icon-button svg{
  width:15px;
  height:15px;
}

.shipment-icon-button:hover{
  transform:translateY(-1px);
  border-color:rgba(96,165,250,.24);
  color:#2563eb;
  background:rgba(239,246,255,.72);
}

.shipment-icon-button-primary{
  border-color:rgba(37,99,235,.14);
  background:rgba(37,99,235,.08);
  color:#2563eb;
}

.shipment-mobile-premium-list{
  gap:11px;
}

.shipment-mobile-premium-card{
  display:grid;
  gap:14px;
  padding:15px;
  border:1px solid var(--glass-border);
  border-radius:18px;
  background:var(--glass-surface);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--glass-shadow-soft);
}

.shipment-mobile-card-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}

.shipment-mobile-record{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}

.shipment-mobile-record>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.shipment-mobile-record strong{
  overflow:hidden;
  color:#172033;
  font-size:.8rem;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.shipment-mobile-record small{
  color:#8b98aa;
  font-size:.64rem;
}

.shipment-mobile-route{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:11px 12px;
  border:1px solid rgba(148,163,184,.12);
  border-radius:13px;
  background:rgba(255,255,255,.30);
}

.shipment-mobile-route>div{
  display:grid;
  gap:3px;
}

.shipment-mobile-route small{
  color:#98a5b5;
  font-size:.58rem;
  font-weight:850;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.shipment-mobile-route strong{
  color:#475569;
  font-size:.72rem;
  line-height:1.45;
}

.shipment-mobile-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.shipment-mobile-meta>span{
  display:flex;
  align-items:center;
  gap:6px;
  color:#8b98aa;
  font-size:.63rem;
}

.shipment-mobile-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.shipment-mobile-actions .button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:40px;
  padding:8px 10px;
}

.shipment-empty-premium{
  display:grid;
  place-items:center;
  min-height:330px;
  padding:38px 24px;
  text-align:center;
  border:1px dashed rgba(148,163,184,.28);
  border-radius:22px;
  background:var(--glass-surface);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  box-shadow:inset 0 1px 0 var(--glass-highlight);
}

.shipment-empty-icon{
  width:54px;
  height:54px;
  padding:15px;
  margin-bottom:12px;
  border:1px solid rgba(96,165,250,.14);
  border-radius:17px;
  background:rgba(239,246,255,.58);
  color:#4e73a2;
}

.shipment-empty-premium h2{
  margin:0;
  font-size:1.2rem;
}

.shipment-empty-premium p{
  max-width:520px;
  margin:8px 0 18px;
  color:#7b899c;
  font-size:.78rem;
  line-height:1.6;
}

/* Dark shipment surfaces */
html[data-theme="dark"] .shipment-page-hero{
  background:
    linear-gradient(135deg,rgba(12,25,42,.82),rgba(12,25,42,.66)),
    radial-gradient(circle at 88% 7%,rgba(34,211,238,.08),transparent 25%),
    radial-gradient(circle at 62% 120%,rgba(59,130,246,.10),transparent 36%);
}

html[data-theme="dark"] .shipment-page-kicker{
  border-color:rgba(56,189,248,.14);
  background:rgba(14,41,67,.48);
  color:#7bdfff;
}

html[data-theme="dark"] .shipment-page-hero h1,
html[data-theme="dark"] .shipment-overview-card strong,
html[data-theme="dark"] .shipment-tracking-cell strong,
html[data-theme="dark"] .shipment-mobile-record strong{
  color:#edf4fc;
}

html[data-theme="dark"] .shipment-page-hero p,
html[data-theme="dark"] .shipment-overview-card small,
html[data-theme="dark"] .shipment-table-detail,
html[data-theme="dark"] .shipment-mobile-route strong{
  color:#9eafc4;
}

html[data-theme="dark"] .shipment-overview-card,
html[data-theme="dark"] .shipment-filter-panel,
html[data-theme="dark"] .shipment-table-panel,
html[data-theme="dark"] .shipment-mobile-premium-card,
html[data-theme="dark"] .shipment-empty-premium{
  border-color:rgba(148,163,184,.11);
  background:rgba(10,23,39,.68);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    var(--glass-shadow-soft);
}

html[data-theme="dark"] .shipment-search-field input,
html[data-theme="dark"] .shipment-status-filter select,
html[data-theme="dark"] .shipment-icon-button,
html[data-theme="dark"] .shipment-mobile-route{
  border-color:rgba(148,163,184,.12)!important;
  background:rgba(7,20,34,.58)!important;
}

html[data-theme="dark"] .shipment-premium-table thead th{
  background:rgba(255,255,255,.018);
}

html[data-theme="dark"] .shipment-premium-table tbody tr:hover{
  background:rgba(255,255,255,.022);
}

html[data-theme="dark"] .shipment-record-icon{
  border-color:rgba(96,165,250,.12);
  background:rgba(17,39,64,.58);
  color:#8eb8e8;
}

html[data-theme="dark"] .shipment-status-success{
  background:rgba(6,78,59,.28);
  color:#6ee7b7;
}

html[data-theme="dark"] .shipment-status-info{
  background:rgba(30,64,175,.25);
  color:#93c5fd;
}

html[data-theme="dark"] .shipment-status-cyan{
  background:rgba(8,145,178,.18);
  color:#67e8f9;
}

html[data-theme="dark"] .shipment-status-warning{
  background:rgba(146,64,14,.20);
  color:#fbbf24;
}

html[data-theme="dark"] .shipment-status-danger{
  background:rgba(153,27,27,.22);
  color:#fca5a5;
}

html[data-theme="dark"] .shipment-status-neutral{
  background:rgba(71,85,105,.24);
  color:#cbd5e1;
}

@media(max-width:1100px){
  .shipment-overview-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .shipment-filter-panel{
    grid-template-columns:minmax(260px,1fr) minmax(180px,220px) auto;
  }

  .shipment-filter-clear{
    grid-column:1/-1;
    justify-self:start;
  }
}

@media(max-width:760px){
  .shipment-page-hero{
    min-height:unset;
    flex-direction:column;
    align-items:flex-start;
    padding:21px 18px;
    border-radius:20px;
  }

  .shipment-page-hero-actions{
    width:100%;
  }

  .shipment-new-button{
    width:100%;
  }

  .shipment-overview-grid{
    grid-template-columns:1fr 1fr;
    gap:9px;
  }

  .shipment-overview-card{
    min-height:104px;
    padding:14px;
    border-radius:16px;
  }

  .shipment-overview-card strong{
    font-size:1.45rem;
  }

  .shipment-filter-panel{
    grid-template-columns:1fr;
    padding:9px;
    border-radius:15px;
  }

  .shipment-filter-clear{
    grid-column:auto;
    justify-self:stretch;
    text-align:center;
  }

  .shipment-filter-submit{
    width:100%;
  }

  .desktop-table{
    display:none!important;
  }

  .shipment-mobile-premium-list{
    display:grid!important;
  }
}

@media(min-width:761px){
  .shipment-mobile-premium-list{
    display:none!important;
  }
}

@media(max-width:480px){
  .shipment-page-hero h1{
    font-size:1.9rem;
  }

  .shipment-overview-card{
    min-height:96px;
    padding:12px;
  }

  .shipment-overview-label{
    font-size:.56rem;
  }

  .shipment-overview-card strong{
    font-size:1.3rem;
  }

  .shipment-overview-card small{
    font-size:.58rem;
  }

  .shipment-mobile-card-top{
    flex-direction:column;
  }

  .shipment-mobile-actions{
    grid-template-columns:1fr;
  }
}
/* =========================================================
   PUBLIC HEADER
   ========================================================= */

.public-body{
  background:#fff;
  margin:0;
}

.public-header{
  position:sticky;
  top:0;
  z-index:100;
  width:100%;
  border-bottom:1px solid rgba(226,232,240,.9);
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.public-header-inner{
  width:min(1660px,94vw);
  min-height:106px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:40px;
}

/* LOGO */

.public-brand{
  display:flex;
  align-items:center;
  justify-self:start;
  text-decoration:none;
  min-width:0;
}

.public-logo-shell{
  display:flex;
  align-items:center;
}

.public-logo-image{
  display:block;
  width:auto;
  height:auto;
  max-width:230px;
  max-height:68px;
  object-fit:contain;
}

/* Fallback brand */

.public-brand-fallback{
  display:flex;
  align-items:center;
  gap:13px;
}

.public-brand-symbol{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--brand-primary,#2563eb);
  color:#fff;
  font-size:15px;
  font-weight:900;
}

.public-brand-copy{
  display:grid;
}

.public-brand-copy strong{
  color:#0f172a;
  font-size:1.15rem;
  font-weight:850;
  line-height:1.1;
}

.public-brand-copy small{
  margin-top:4px;
  color:#64748b;
  font-size:.75rem;
  font-weight:650;
}

/* NAVIGATION */

.public-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:44px;
  height:100%;
}

.public-nav a{
  position:relative;
  display:flex;
  align-items:center;
  min-height:106px;
  color:#526079;
  font-size:1rem;
  font-weight:750;
  text-decoration:none;
  transition:color .2s ease;
}

.public-nav a:hover,
.public-nav a.is-active{
  color:#0f172a;
}

.public-nav a.is-active::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:27px;
  height:3px;
  border-radius:999px;
  background:var(--brand-primary,#2563eb);
}

/* HEADER ACTIONS */

.public-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:24px;
}

.public-signin{
  color:#273449;
  font-size:1rem;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}

.public-signin:hover{
  color:var(--brand-primary,#2563eb);
}

.public-register{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 24px;
  border-radius:15px;
  font-size:.94rem;
  font-weight:850;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(37,99,235,.16);
}

/* =========================================================
   REMOVE SPACE BETWEEN HEADER AND HOMEPAGE HERO
   ========================================================= */

.public-main{
  min-height:calc(100vh - 106px);
}

.public-container{
  width:min(1180px,92vw);
  margin:0 auto;
  padding:0 0 70px;
}

/*
 * Homepage gets full width.
 * This removes the white/unwanted gap and allows the
 * hero image to touch the header.
 */
.public-container-home{
  width:100%;
  max-width:none;
  margin:0;
  padding:0;
}

/* Make sure first homepage section does not create a gap */
.public-container-home > :first-child{
  margin-top:0 !important;
}

/* TABLET / MOBILE */

@media(max-width:800px){

  .public-header-inner{
    width:min(92vw,600px);
    min-height:68px;

    grid-template-columns:minmax(0,1fr) auto;

    gap:14px;
  }

  .public-nav{
    display:none;
  }

  .public-logo-shell{
    max-width:150px !important;
    height:40px !important;
    max-height:40px !important;
  }

  .public-logo-image{
    max-width:150px !important;
    max-height:38px !important;
  }

  .public-actions{
    gap:8px;
  }

  .public-signin{
    font-size:.73rem;
  }

  .public-register{
    min-height:36px;
    padding:0 11px;

    font-size:.68rem;
  }
}


@media(max-width:460px){

  .public-logo-shell{
    max-width:125px !important;
  }

  .public-logo-image{
    max-width:125px !important;
    max-height:36px !important;
  }

  .public-signin{
    display:none;
  }

}
.public-footer{
  position:relative;
  overflow:hidden;
  background:#03152c;
  color:#fff;
}

.public-footer:before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  right:-180px;
  top:-260px;
  border-radius:50%;
  background:rgba(24,155,255,.08);
  filter:blur(10px);
  pointer-events:none;
}

.public-footer-inner{
  position:relative;
  z-index:1;
  width:min(1180px,92vw);
  margin:0 auto;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:50px;
  padding:55px 0 42px;
}

.public-footer-brand{
  max-width:460px;
}

.public-footer-brand strong{
  display:block;
  color:#fff;
  font-size:1.05rem;
  font-weight:900;
}

.public-footer-brand p{
  max-width:440px;
  margin:9px 0 0;
  color:#8198b1;
  font-size:.78rem;
  line-height:1.7;
}

.public-footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  align-items:center;
}

.public-footer-links a{
  color:#b9c9d9;
  font-size:.75rem;
  font-weight:750;
  transition:color .16s ease;
}

.public-footer-links a:hover{
  color:#4cc9ff;
}

.public-footer-bottom{
  position:relative;
  z-index:1;
  border-top:1px solid rgba(255,255,255,.075);
  padding:17px max(4vw,20px);
  text-align:center;
  color:#607b98;
  font-size:.67rem;
}

@media(max-width:700px){

  .public-footer-inner{
    flex-direction:column;
    gap:27px;
    padding:40px 0 32px;
  }

  .public-footer-links{
    gap:16px 22px;
  }

}
/* =========================================================
   PREMIUM PUBLIC FOOTER
========================================================= */

.public-footer{
  position:relative;
  overflow:hidden;
  width:100%;
  background:#03152c;
  color:#fff;
}

.public-footer::before{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  right:-180px;
  top:-280px;
  border-radius:50%;
  background:rgba(0,174,255,.09);
  filter:blur(20px);
  pointer-events:none;
}

.public-footer-main{
  position:relative;
  z-index:1;

  width:min(1320px,92vw);
  margin:0 auto;

  display:grid;
  grid-template-columns:1.6fr repeat(3,1fr);
  gap:65px;

  padding:72px 0 60px;
}

.public-footer-brand-name{
  color:#fff;
  font-size:1.25rem;
  font-weight:900;
}

.public-footer-brand p{
  max-width:380px;
  margin:16px 0 22px;
  color:#8097b1;
  font-size:.82rem;
  line-height:1.8;
}

.public-footer-email{
  color:#39b9f5;
  font-size:.78rem;
  font-weight:750;
}

.public-footer-column{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:13px;
}

.public-footer-column strong{
  margin-bottom:8px;
  color:#fff;
  font-size:.78rem;
  font-weight:850;
}

.public-footer-column a,
.public-footer-column span{
  color:#8198b1;
  font-size:.76rem;
  line-height:1.5;
}

.public-footer-column a{
  transition:color .16s ease;
}

.public-footer-column a:hover{
  color:#3bbcf8;
}

.public-footer-bottom{
  position:relative;
  z-index:1;

  width:min(1320px,92vw);
  margin:0 auto;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:30px;

  border-top:1px solid rgba(255,255,255,.08);
  padding:22px 0;

  color:#607b98;
  font-size:.68rem;
}

.public-footer-legal{
  display:flex;
  align-items:center;
  gap:22px;
}

@media(max-width:760px){

  .public-footer-main{
    width:min(92vw,560px);
    grid-template-columns:1fr 1fr;
    gap:40px 25px;
    padding:50px 0 40px;
  }

  .public-footer-brand{
    grid-column:1 / -1;
  }

  .public-footer-bottom{
    width:min(92vw,560px);
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
    padding:20px 0 26px;
  }
}

@media(max-width:480px){

  .public-footer-main{
    grid-template-columns:1fr 1fr;
    gap:35px 18px;
  }

  .public-footer-column:last-child{
    grid-column:1 / -1;
  }
}
/* =========================================================
   HOMEPAGE STATS
========================================================= */

.tf-home-stats{
  position:relative;
  z-index:5;
  background:#fff;
  border-bottom:1px solid #e8edf3;
}

.tf-home-stats-inner{
  width:min(1320px,92vw);
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  padding:38px 0;
}

.tf-stat-item{
  position:relative;
  padding:5px 34px;
}

.tf-stat-item:first-child{
  padding-left:0;
}

.tf-stat-item:not(:last-child){
  border-right:1px solid #e2e8f0;
}

.tf-stat-number{
  display:block;
  color:#071b36;
  font-size:2.15rem;
  font-weight:900;
  line-height:1;
  letter-spacing:-.045em;
}

.tf-stat-label{
  display:block;
  margin-top:10px;
  color:#1e293b;
  font-size:.85rem;
  font-weight:850;
}

.tf-stat-item small{
  display:block;
  margin-top:4px;
  color:#94a3b8;
  font-size:.7rem;
}

@media(max-width:760px){

  .tf-home-stats-inner{
    width:min(92vw,560px);
    grid-template-columns:1fr 1fr;
    padding:18px 0;
  }

  .tf-stat-item{
    padding:24px 18px;
  }

  .tf-stat-item:first-child{
    padding-left:18px;
  }

  .tf-stat-item:not(:last-child){
    border-right:0;
  }

  .tf-stat-item:nth-child(odd){
    border-right:1px solid #e2e8f0;
  }

  .tf-stat-item:nth-child(-n+2){
    border-bottom:1px solid #e2e8f0;
  }

  .tf-stat-number{
    font-size:1.75rem;
  }
}
/* =========================================================
   CUSTOMER REVIEWS
========================================================= */

.tf-reviews{
  padding:95px 0;
  background:#f7f9fc;
}

.tf-reviews-inner{
  width:min(1320px,92vw);
  margin:0 auto;
}

.tf-reviews-heading{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:50px;
  margin-bottom:42px;
}

.tf-section-kicker{
  display:block;
  margin-bottom:14px;
  color:#149ee9;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.14em;
}

.tf-reviews-heading h2{
  max-width:650px;
  margin:0;
  color:#071b36;
  font-size:clamp(2.2rem,4vw,3.7rem);
  line-height:1;
  letter-spacing:-.05em;
}

.tf-reviews-heading > p{
  max-width:420px;
  margin:0;
  color:#64748b;
  font-size:.9rem;
  line-height:1.7;
}

.tf-review-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}

.tf-review-card{
  min-height:310px;
  display:flex;
  flex-direction:column;
  padding:30px;
  border:1px solid #e2e8f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 35px rgba(15,23,42,.05);
}

.tf-review-card-featured{
  background:#071b36;
  border-color:#071b36;
  color:#fff;
  transform:translateY(-12px);
}

.tf-review-stars{
  color:#f5b942;
  font-size:.8rem;
  letter-spacing:.12em;
}

.tf-review-card blockquote{
  margin:30px 0;
  color:#334155;
  font-size:1.02rem;
  font-weight:650;
  line-height:1.75;
}

.tf-review-card-featured blockquote{
  color:#e5edf7;
}

.tf-review-person{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:auto;
}

.tf-review-avatar{
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eaf6fd;
  color:#087bb8;
  font-size:.72rem;
  font-weight:900;
}

.tf-review-person div{
  display:grid;
}

.tf-review-person strong{
  font-size:.78rem;
}

.tf-review-person small{
  margin-top:3px;
  color:#94a3b8;
  font-size:.68rem;
}

@media(max-width:760px){

  .tf-reviews{
    padding:65px 0;
  }

  .tf-reviews-inner{
    width:min(92vw,560px);
  }

  .tf-reviews-heading{
    display:block;
    margin-bottom:28px;
  }

  .tf-reviews-heading > p{
    margin-top:18px;
  }

  .tf-review-grid{
    grid-template-columns:1fr;
  }

  .tf-review-card{
    min-height:260px;
    padding:24px;
  }

  .tf-review-card-featured{
    transform:none;
  }
}

/* ==========================================
   TRACKFLO GLOBAL NETWORK MAP
   ========================================== */

.tf-network-map{
    position:relative;
    width:100%;
    min-height:480px;
    overflow:visible;
    border-radius:28px;
}

/* Actual world map */
.tf-network-map-image{
    position:absolute;
    inset:0;

    width:100%;
    height:100%;

    display:block;
    object-fit:contain;
    object-position:center;

    z-index:1;
}

/* Individual location */
.tf-map-point{
    position:absolute;
    z-index:10;

    display:flex;
    align-items:center;
    gap:7px;

    transform:translate(-50%, -50%);
}

/* Glowing dot */
.tf-map-dot{
    position:relative;

    width:11px;
    height:11px;
    flex:0 0 11px;

    border:2px solid #fff;
    border-radius:50%;

    background:#22bfff;

    box-shadow:
        0 0 0 5px rgba(34,191,255,.15),
        0 0 20px rgba(34,191,255,.85);
}

.tf-map-dot::before{
    content:"";

    position:absolute;
    left:50%;
    top:50%;

    width:25px;
    height:25px;

    border:1px solid rgba(34,191,255,.7);
    border-radius:50%;

    transform:translate(-50%,-50%);

    animation:tfMapPulse 2.4s ease-out infinite;
}

@keyframes tfMapPulse{
    0%{
        opacity:.9;
        transform:translate(-50%,-50%) scale(.45);
    }

    100%{
        opacity:0;
        transform:translate(-50%,-50%) scale(1.6);
    }
}


/* Permanent country/region label */
.tf-map-label{
    display:block;

    padding:6px 9px;

    border:1px solid rgba(255,255,255,.13);
    border-radius:7px;

    background:rgba(5,25,49,.92);

    color:#fff;

    font-size:.62rem;
    font-weight:800;

    line-height:1;

    white-space:nowrap;

    box-shadow:0 8px 20px rgba(0,0,0,.2);
}


/* ==========================================
   MAP LOCATIONS
   ========================================== */

.tf-map-north-america{
    left:20%;
    top:39%;
}

.tf-map-south-america{
    left:30%;
    top:69%;
}

.tf-map-europe{
    left:50%;
    top:31%;
}

.tf-map-africa{
    left:51%;
    top:57%;
}

.tf-map-middle-east{
    left:62%;
    top:49%;
}

.tf-map-asia{
    left:77%;
    top:39%;
}


/* ==========================================
   MOBILE
   ========================================== */

@media(max-width:900px){

    .tf-network-map{
        min-height:390px;
    }

    .tf-map-label{
        font-size:.55rem;
        padding:5px 7px;
    }
}


@media(max-width:600px){

    .tf-network-map{
        min-height:300px;
    }

    .tf-map-dot{
        width:8px;
        height:8px;
        flex-basis:8px;
    }

    .tf-map-label{
        font-size:.48rem;
        padding:4px 5px;
    }

    .tf-map-point{
        gap:4px;
    }
}
/* =========================================================
   LANGUAGE SWITCHER
========================================================= */

.language-switcher{
    position:relative;
}

.language-switcher-button{
    min-height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    gap:6px;

    padding:0 10px;

    border:1px solid #e2e8f0;
    border-radius:10px;

    background:#fff;

    color:#334155;

    font-size:.72rem;
    font-weight:800;

    cursor:pointer;

    box-shadow:none;
}

.language-switcher-button:hover{
    background:#f8fafc;
    transform:none;
}

.language-globe{
    font-size:.9rem;
}

.language-chevron{
    color:#94a3b8;
    font-size:.7rem;
}

.language-switcher-menu{
    position:absolute;

    right:0;
    top:calc(100% + 8px);

    width:180px;

    display:none;

    padding:7px;

    border:1px solid #e2e8f0;
    border-radius:13px;

    background:#fff;

    box-shadow:
        0 18px 45px
        rgba(15,23,42,.14);

    z-index:200;
}

.language-switcher:hover .language-switcher-menu,
.language-switcher:focus-within .language-switcher-menu{
    display:block;
}

.language-switcher-menu a{
    min-height:40px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    gap:10px;

    padding:8px 10px;

    border-radius:9px;

    color:#475569;

    font-size:.75rem;
    font-weight:700;
}

.language-switcher-menu a:hover{
    background:#f5f8fc;
}

.language-switcher-menu a.is-active{
    background:#eef6ff;
    color:#1469d1;
}

.language-switcher-menu strong{
    color:#16a34a;
}


/* DASHBOARD DARK MODE */

[data-theme="dark"] .language-switcher-button{
    border-color:#263a53;
    background:#0f223b;
    color:#dbe7f5;
}

[data-theme="dark"] .language-switcher-menu{
    border-color:#263a53;
    background:#0d2038;
}

[data-theme="dark"] .language-switcher-menu a{
    color:#c3d2e4;
}

[data-theme="dark"] .language-switcher-menu a:hover{
    background:#152b47;
}

[data-theme="dark"] .language-switcher-menu a.is-active{
    background:#143253;
    color:#7ddfff;
}


/* MOBILE */

@media(max-width:760px){

    .language-switcher-button{
        min-height:38px;
        padding:0 8px;
    }

    .language-globe{
        font-size:.8rem;
    }

    .language-switcher-menu{
        position:fixed;

        top:82px;
        right:12px;

        width:min(220px,calc(100vw - 24px));
    }

}

@media(max-width:480px){

    .language-switcher-button{
        min-height:36px;
        padding:0 7px;

        font-size:.65rem;
    }

}
/* =========================================================
   TRACKFLO PREMIUM AUTH SYSTEM
========================================================= */

.tf-auth-page{
  width:min(1320px,94vw);
  min-height:720px;
  margin:52px auto 70px;

  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(420px,.95fr);

  overflow:hidden;

  border:1px solid #e2e8f0;
  border-radius:30px;

  background:#fff;

  box-shadow:
    0 30px 80px
    rgba(15,23,42,.10);
}


/* IMAGE SIDE */

.tf-auth-visual{
  position:relative;
  min-height:720px;
  overflow:hidden;
  background:#071b36;
}

.tf-auth-visual-image,
.tf-auth-visual-overlay{
  position:absolute;
  inset:0;
}

.tf-auth-visual-image img{
  width:100%;
  height:100%;

  display:block;
  object-fit:cover;
}

.tf-auth-visual-overlay{
  background:
    linear-gradient(
      0deg,
      rgba(2,15,31,.95),
      rgba(2,15,31,.42) 65%,
      rgba(2,15,31,.20)
    );
}

.tf-auth-visual-content{
  position:absolute;
  inset:auto 0 0;

  z-index:2;

  padding:55px;

  color:#fff;
}

.tf-auth-kicker{
  display:flex;
  align-items:center;
  gap:10px;

  margin-bottom:18px;

  color:#70d4ff;

  font-size:.68rem;
  font-weight:900;

  letter-spacing:.14em;
  text-transform:uppercase;
}

.tf-auth-kicker span{
  width:25px;
  height:2px;

  background:#38bdf8;
  border-radius:20px;
}

.tf-auth-visual-content h1{
  max-width:600px;

  margin:0;

  color:#fff;

  font-size:clamp(2.7rem,4.3vw,4.7rem);
  line-height:.96;

  letter-spacing:-.055em;
}

.tf-auth-visual-content>p{
  max-width:570px;

  margin:22px 0 0;

  color:#b5c6d8;

  font-size:.92rem;
  line-height:1.75;
}


/* BENEFITS */

.tf-auth-benefits{
  display:grid;
  gap:0;

  margin-top:32px;

  border-top:
    1px solid
    rgba(255,255,255,.12);
}

.tf-auth-benefits>div{
  display:grid;

  grid-template-columns:37px 1fr;

  gap:13px;

  align-items:center;

  padding:15px 0;

  border-bottom:
    1px solid
    rgba(255,255,255,.10);
}

.tf-auth-benefits>div>span{
  color:#55c9ff;

  font-size:.65rem;
  font-weight:900;
}

.tf-auth-benefits p{
  margin:0;

  color:#c5d3e0;

  font-size:.78rem;
}


/* FORM SIDE */

.tf-auth-form-side{
  display:flex;
  align-items:center;
  justify-content:center;

  padding:55px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(37,99,235,.06),
      transparent 20rem
    ),
    #fff;
}

.tf-auth-form-wrap{
  width:min(100%,470px);
}

.tf-auth-form-heading{
  margin-bottom:28px;
}

.tf-auth-form-heading h2{
  margin:5px 0 8px;

  color:#101828;

  font-size:2.2rem;

  letter-spacing:-.04em;
}

.tf-auth-form-heading>p:not(.tf-section-kicker){
  margin:0;

  color:#667085;

  font-size:.84rem;
  line-height:1.65;
}


/* FORM */

.tf-auth-form{
  display:grid;
  gap:18px;
}

.tf-auth-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}

.tf-auth-field{
  display:grid;
  gap:8px;
}

.tf-auth-field>span{
  color:#344054;

  font-size:.76rem;
  font-weight:750;
}

.tf-auth-input-wrap{
  position:relative;

  display:flex;
  align-items:center;
}

.tf-auth-input-wrap svg{
  position:absolute;

  left:14px;

  width:18px;
  height:18px;

  fill:none;

  stroke:#8a98aa;

  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;

  pointer-events:none;
}

.tf-auth-input-wrap svg + input{
  padding-left:44px;
}

.tf-auth-input-wrap input{
  width:100%;
  min-height:51px;

  border:1px solid #d8e1eb;
  border-radius:13px;

  background:#fbfcfe;

  color:#101828;

  font-size:.86rem;
}

.tf-auth-input-wrap input:focus{
  border-color:#3b82f6;
  background:#fff;

  box-shadow:
    0 0 0 4px
    rgba(59,130,246,.09);
}

.tf-auth-field-help{
  color:#98a2b3;

  font-size:.67rem;
}


/* FORGOT LINK */

.tf-auth-meta{
  display:flex;
  justify-content:flex-end;

  margin-top:-5px;
}

.tf-auth-meta a{
  color:#1671d9;

  font-size:.73rem;
  font-weight:800;
}


/* TERMS */

.tf-auth-check{
  display:flex;

  align-items:flex-start;

  gap:10px;

  color:#667085;

  font-size:.72rem;
  line-height:1.5;
}

.tf-auth-check input{
  width:16px;
  height:16px;

  min-height:auto;

  margin-top:2px;
}


/* SUBMIT */

.tf-auth-submit{
  position:relative;

  width:100%;
  min-height:52px;

  display:flex;
  align-items:center;
  justify-content:center;

  gap:10px;

  border:0;
  border-radius:13px;

  background:
    linear-gradient(
      135deg,
      #0b7ee8,
      #1459cc
    );

  color:#fff;

  font-size:.8rem;
  font-weight:850;

  cursor:pointer;

  box-shadow:
    0 12px 28px
    rgba(37,99,235,.20);
}

.tf-auth-submit:disabled{
  cursor:wait;
  opacity:.82;
}


/* SPINNER */

.tf-button-spinner{
  display:none;

  width:18px;
  height:18px;

  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;

  border-radius:50%;

  animation:tfAuthSpin .7s linear infinite;
}

.tf-auth-submit.is-loading .tf-button-spinner{
  display:block;
}

.tf-auth-submit.is-loading .tf-button-label{
  opacity:.75;
}

@keyframes tfAuthSpin{
  to{
    transform:rotate(360deg);
  }
}


/* BOTTOM */

.tf-auth-bottom{
  display:flex;

  align-items:center;
  justify-content:center;

  gap:7px;

  margin-top:23px;

  color:#98a2b3;

  font-size:.73rem;
}

.tf-auth-bottom a{
  color:#1671d9;

  font-weight:850;
}


/* SIMPLE RECOVERY PAGES */

.tf-auth-page-simple{
  width:min(560px,92vw);
  min-height:0;

  display:block;

  margin:70px auto;
}

.tf-auth-page-simple .tf-auth-form-side{
  padding:48px;
}


/* =========================================================
   AUTH MOBILE
========================================================= */

@media(max-width:900px){

  .tf-auth-page{
    width:min(92vw,650px);

    grid-template-columns:1fr;

    margin:30px auto 50px;
  }

  .tf-auth-visual{
    min-height:430px;
  }

  .tf-auth-visual-content{
    padding:35px;
  }

  .tf-auth-form-side{
    padding:40px;
  }

}


@media(max-width:600px){

  .tf-auth-page{
    width:100%;

    margin:0;

    border:0;
    border-radius:0;

    box-shadow:none;
  }

  .tf-auth-visual{
    min-height:390px;
  }

  .tf-auth-visual-content{
    padding:28px 20px;
  }

  .tf-auth-visual-content h1{
    font-size:2.6rem;
  }

  .tf-auth-benefits{
    display:none;
  }

  .tf-auth-form-side{
    padding:36px 18px 50px;
  }

  .tf-auth-form-heading h2{
    font-size:1.9rem;
  }

  .tf-auth-grid{
    grid-template-columns:1fr;
  }

  .tf-auth-page-simple{
    width:100%;

    margin:0;
  }

  .tf-auth-page-simple .tf-auth-form-side{
    padding:45px 18px;
  }

}
/* =========================================================
   PASSWORD VISIBILITY TOGGLE
========================================================= */

.tf-password-wrap{
  position:relative;
}

.tf-password-wrap input{
  padding-right:48px !important;
}

.tf-password-toggle{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);

  width:36px;
  height:36px;
  min-height:36px;

  display:grid;
  place-items:center;

  padding:0;

  border:0;
  border-radius:9px;

  background:transparent;

  color:#7b8a9e;

  box-shadow:none;

  cursor:pointer;
}

.tf-password-toggle:hover{
  background:#f1f5f9;
  color:#334155;
  transform:translateY(-50%);
}

.tf-password-toggle svg{
  position:static !important;

  width:18px !important;
  height:18px !important;

  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tf-password-toggle .tf-eye-closed{
  display:none;
}

.tf-password-toggle.is-visible .tf-eye-open{
  display:none;
}

.tf-password-toggle.is-visible .tf-eye-closed{
  display:block;
}

[data-theme="dark"] .tf-password-toggle{
  color:#91a4ba;
}

[data-theme="dark"] .tf-password-toggle:hover{
  background:#172b44;
  color:#fff;
}
/* =========================================================
   TRACKFLO PREMIUM PUBLIC TRACKING
========================================================= */

.tf-public-track-hero{
  position:relative;
  overflow:hidden;
  min-height:520px;
  background:#04172f;
  color:#fff;
}

.tf-public-track-hero-bg,
.tf-public-track-overlay{
  position:absolute;
  inset:0;
}

.tf-public-track-hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.tf-public-track-overlay{
  background:
    linear-gradient(
      90deg,
      rgba(3,17,37,.96) 0%,
      rgba(3,17,37,.84) 43%,
      rgba(3,17,37,.47) 72%,
      rgba(3,17,37,.30) 100%
    );
}

.tf-public-track-shell{
  position:relative;
  z-index:2;

  width:min(1240px,92vw);
  min-height:520px;

  margin:0 auto;

  display:flex;
  flex-direction:column;
  justify-content:center;

  padding:70px 0;
}

.tf-public-track-intro{
  max-width:760px;
}

.tf-public-track-kicker{
  display:flex;
  align-items:center;
  gap:10px;

  margin:0 0 18px;

  color:#71d9ff;

  font-size:.7rem;
  font-weight:900;

  letter-spacing:.14em;
  text-transform:uppercase;
}

.tf-public-track-kicker span{
  width:28px;
  height:2px;

  border-radius:999px;
  background:#3bc7ff;
}

.tf-public-track-intro h1{
  max-width:800px;

  margin:0;

  font-size:clamp(3rem,6vw,5.6rem);
  line-height:.93;

  letter-spacing:-.06em;
}

.tf-public-track-intro h1 span{
  display:block;
  color:#55c8ff;
}

.tf-public-track-intro>p{
  max-width:670px;

  margin:22px 0 0;

  color:#b7c9dc;

  font-size:1rem;
  line-height:1.75;
}


/* SEARCH */

.tf-public-track-form{
  width:min(760px,100%);

  display:grid;
  grid-template-columns:minmax(0,1fr) auto;

  gap:9px;

  margin-top:34px;
  padding:8px;

  border:1px solid rgba(255,255,255,.14);
  border-radius:17px;

  background:rgba(255,255,255,.96);

  box-shadow:
    0 26px 60px rgba(0,0,0,.18);
}

.tf-public-track-field{
  min-width:0;

  display:grid;
  grid-template-columns:42px minmax(0,1fr);

  gap:5px;

  align-items:center;
}

.tf-public-track-icon{
  display:grid;
  place-items:center;

  width:42px;
  height:42px;

  color:#1f7bdc;
}

.tf-public-track-icon svg{
  width:22px;
  height:22px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.tf-public-track-field>div{
  min-width:0;
  display:grid;
}

.tf-public-track-field label{
  color:#94a3b8;

  font-size:.6rem;
  font-weight:850;

  letter-spacing:.08em;
  text-transform:uppercase;
}

.tf-public-track-field input{
  min-height:34px;

  padding:0;

  border:0;

  background:transparent;

  color:#0f172a;

  font-size:.96rem;
  font-weight:700;

  box-shadow:none;
}

.tf-public-track-field input:focus{
  box-shadow:none;
}

.tf-public-track-form>button{
  min-width:170px;
  min-height:54px;

  display:flex;
  align-items:center;
  justify-content:center;

  gap:9px;

  border-radius:12px;
}

.tf-public-track-security{
  display:flex;
  flex-wrap:wrap;

  gap:20px;

  margin-top:15px;

  color:#8ba5be;

  font-size:.68rem;
  font-weight:720;
}

.tf-public-track-security span::before{
  content:"✓";

  margin-right:6px;

  color:#2dd4bf;
}


/* ERROR */

.tf-track-message-shell{
  width:min(1240px,92vw);

  margin:26px auto;
}

.tf-track-error{
  display:flex;
  align-items:flex-start;

  gap:15px;

  padding:18px;

  border:1px solid #fecaca;
  border-radius:16px;

  background:#fff7f7;

  color:#991b1b;
}

.tf-track-error-icon{
  width:34px;
  height:34px;

  flex:0 0 34px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:#fee2e2;

  font-weight:900;
}

.tf-track-error strong{
  font-size:.87rem;
}

.tf-track-error p{
  margin:4px 0 0;

  color:#b42318;

  font-size:.78rem;
}


/* RESULT */

.tf-track-result{
  padding:38px 0 80px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(37,99,235,.045),
      transparent 30rem
    ),
    #f5f8fc;
}

.tf-track-result-shell{
  width:min(1240px,92vw);

  margin:0 auto;

  display:grid;
  gap:18px;
}


/* RESULT HEADER */

.tf-track-result-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:30px;

  padding:28px;

  border:1px solid #e2e8f0;
  border-radius:23px;

  background:rgba(255,255,255,.88);

  backdrop-filter:blur(15px);

  box-shadow:
    0 12px 34px rgba(15,23,42,.055);
}

.tf-track-result-label{
  margin-bottom:7px;

  color:#7c8b9f;

  font-size:.65rem;
  font-weight:850;

  letter-spacing:.12em;
  text-transform:uppercase;
}

.tf-track-result-identity h2{
  margin:0;

  color:#071b36;

  font-size:clamp(1.7rem,3vw,2.45rem);

  letter-spacing:-.04em;
}

.tf-track-route-line{
  display:flex;
  align-items:center;

  gap:10px;

  margin-top:12px;

  color:#667085;

  font-size:.78rem;
  font-weight:700;
}

.tf-track-route-line svg{
  width:17px;
  height:17px;

  flex:0 0 17px;

  fill:none;

  stroke:#97a6b8;
  stroke-width:1.8;
}

.tf-track-status-area{
  display:grid;
  justify-items:end;

  gap:9px;
}

.tf-track-status-pill{
  display:inline-flex;
  align-items:center;

  gap:7px;

  padding:8px 12px;

  border:1px solid #bfe2f6;
  border-radius:999px;

  background:#eef9ff;

  color:#0877b6;

  font-size:.67rem;
  font-weight:900;

  letter-spacing:.06em;
  text-transform:uppercase;
}

.tf-track-status-pill i{
  width:7px;
  height:7px;

  border-radius:50%;

  background:#15a6dc;

  box-shadow:
    0 0 0 4px rgba(21,166,220,.1);
}

.tf-track-status-area small{
  color:#94a3b8;

  font-size:.67rem;
}


/* SUMMARY */

.tf-track-summary-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);

  gap:13px;
}

.tf-track-summary-card{
  min-height:108px;

  display:grid;
  grid-template-columns:46px 1fr;

  align-items:center;

  gap:13px;

  padding:18px;

  border:1px solid #e2e8f0;
  border-radius:19px;

  background:#fff;

  box-shadow:
    0 7px 22px rgba(15,23,42,.045);
}

.tf-track-summary-icon{
  width:46px;
  height:46px;

  display:grid;
  place-items:center;

  border:1px solid #dbeafa;
  border-radius:14px;

  background:#f0f7ff;

  color:#2678cc;
}

.tf-track-summary-icon svg{
  width:21px;
  height:21px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.tf-track-summary-card div{
  min-width:0;

  display:grid;
  gap:5px;
}

.tf-track-summary-card small{
  color:#8694a7;

  font-size:.63rem;
  font-weight:850;

  letter-spacing:.07em;
  text-transform:uppercase;
}

.tf-track-summary-card strong{
  color:#1e293b;

  font-size:.85rem;
  line-height:1.45;
}


/* ROUTE CARD */

.tf-track-route-card,
.tf-track-map-card,
.tf-track-timeline-card,
.tf-track-account-card,
.tf-track-public-note{
  border:1px solid #e2e8f0;
  border-radius:23px;

  background:#fff;

  box-shadow:
    0 8px 26px rgba(15,23,42,.045);
}

.tf-track-route-card,
.tf-track-map-card,
.tf-track-timeline-card{
  padding:25px;
}

.tf-track-section-head{
  display:flex;
  justify-content:space-between;

  gap:20px;

  margin-bottom:25px;
}

.tf-track-section-head h3{
  margin:5px 0 0;

  color:#071b36;

  font-size:1.35rem;
  letter-spacing:-.03em;
}

.tf-track-section-head p:not(.tf-section-kicker){
  max-width:670px;

  margin:7px 0 0;

  color:#64748b;

  font-size:.78rem;
  line-height:1.6;
}


/* ROUTE PROGRESS */

.tf-track-route-progress{
  display:grid;

  grid-template-columns:
    minmax(150px,1fr)
    minmax(80px,.65fr)
    minmax(150px,1fr)
    minmax(80px,.65fr)
    minmax(150px,1fr);

  align-items:start;

  gap:0;

  padding:15px 3px;
}

.tf-route-node{
  display:grid;
  justify-items:center;

  gap:10px;

  text-align:center;
}

.tf-route-node>span{
  width:17px;
  height:17px;

  border:4px solid #d7e0eb;
  border-radius:50%;

  background:#fff;
}

.tf-route-node.is-complete>span{
  border-color:#2aa6dc;
  background:#2aa6dc;

  box-shadow:
    0 0 0 5px rgba(42,166,220,.1);
}

.tf-route-node.is-current>span{
  border-color:#fff;

  background:#237be0;

  box-shadow:
    0 0 0 5px rgba(35,123,224,.14),
    0 0 20px rgba(35,123,224,.25);
}

.tf-route-node div{
  display:grid;
  gap:4px;
}

.tf-route-node small{
  color:#94a3b8;

  font-size:.58rem;
  font-weight:850;

  letter-spacing:.08em;
  text-transform:uppercase;
}

.tf-route-node strong{
  color:#344054;

  font-size:.72rem;
  line-height:1.45;
}

.tf-route-connector{
  height:2px;

  margin-top:8px;

  overflow:hidden;

  background:#e2e8f0;
}

.tf-route-connector span{
  display:block;

  width:0;
  height:100%;

  background:
    linear-gradient(
      90deg,
      #1d8fe1,
      #40c1eb
    );
}

.tf-route-connector.is-active span{
  width:100%;
}


/* MAP */

.tf-public-shipment-map{
  height:430px;

  border-radius:18px;
}

.tf-public-map-legend{
  display:flex;
  flex-wrap:wrap;

  gap:18px;

  margin-top:15px;

  color:#65758a;

  font-size:.68rem;
  font-weight:750;
}

.tf-public-map-legend span{
  display:flex;
  align-items:center;

  gap:6px;
}


/* LOWER */

.tf-track-lower-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(320px,.6fr);

  gap:18px;
}


/* TIMELINE */

.tf-public-timeline{
  position:relative;

  display:grid;
  gap:0;

  margin-top:4px;
}

.tf-public-timeline-event{
  position:relative;

  display:grid;

  grid-template-columns:21px 1fr;

  gap:15px;

  padding:0 0 27px;
}

.tf-public-timeline-event:not(:last-child)::before{
  content:"";

  position:absolute;

  left:9px;
  top:20px;
  bottom:0;

  width:1px;

  background:#dfe7ef;
}

.tf-public-timeline-dot{
  position:relative;
  z-index:2;

  width:19px;
  height:19px;

  margin-top:2px;

  border:5px solid #eaf5fc;
  border-radius:50%;

  background:#1d91d7;
}

.tf-public-timeline-event>div{
  min-width:0;
}

.tf-public-timeline-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:14px;
}

.tf-public-timeline-top strong{
  color:#1e293b;

  font-size:.84rem;
}

.tf-public-timeline-top span{
  padding:4px 7px;

  border-radius:999px;

  background:#eef7ff;

  color:#3570a9;

  font-size:.54rem;
  font-weight:850;

  text-transform:uppercase;
}

.tf-public-timeline-event p{
  margin:7px 0 0;

  color:#64748b;

  font-size:.75rem;
  line-height:1.6;
}

.tf-public-timeline-location{
  color:#377cb9 !important;

  font-weight:750;
}

.tf-public-timeline-event small{
  display:block;

  margin-top:7px;

  color:#98a2b3;

  font-size:.62rem;
}


/* ACCOUNT CTA */

.tf-track-account-card{
  position:relative;
  overflow:hidden;

  padding:27px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(60,184,246,.15),
      transparent 15rem
    ),
    #071b36;

  color:#fff;
}

.tf-track-account-card::after{
  content:"";

  position:absolute;

  width:180px;
  height:180px;

  right:-80px;
  bottom:-85px;

  border-radius:50%;

  background:rgba(56,189,248,.06);
}

.tf-track-account-icon{
  position:relative;
  z-index:2;

  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  margin-bottom:20px;

  border:1px solid rgba(255,255,255,.1);
  border-radius:15px;

  background:rgba(255,255,255,.06);

  color:#5fd6ff;
}

.tf-track-account-icon svg{
  width:23px;
  height:23px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.tf-track-account-card>*{
  position:relative;
  z-index:2;
}

.tf-track-account-card h3{
  margin:7px 0 12px;

  color:#fff;

  font-size:1.55rem;

  letter-spacing:-.035em;
}

.tf-track-account-card>p:not(.tf-section-kicker){
  margin:0;

  color:#aebfd1;

  font-size:.78rem;
  line-height:1.7;
}

.tf-track-account-card ul{
  display:grid;
  gap:9px;

  margin:22px 0;

  padding:0;

  list-style:none;
}

.tf-track-account-card li{
  color:#c3d1df;

  font-size:.72rem;
}

.tf-track-account-card li::before{
  content:"✓";

  margin-right:8px;

  color:#50d1ff;
  font-weight:950;
}

.tf-track-account-actions{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:9px;
}

.tf-track-account-actions .button{
  text-align:center;
}

.tf-track-account-actions .button.secondary{
  border-color:rgba(255,255,255,.13);

  background:rgba(255,255,255,.07);

  color:#fff;
}

.tf-track-account-card>small{
  display:block;

  margin-top:16px;

  color:#708aa4;

  font-size:.61rem;
  line-height:1.55;
}


/* NOTE */

.tf-track-public-note{
  padding:19px 22px;
}

.tf-track-public-note strong{
  color:#344054;

  font-size:.74rem;
}

.tf-track-public-note p{
  margin:7px 0 0;

  color:#64748b;

  font-size:.75rem;
  line-height:1.6;
}

.tf-track-empty{
  padding:25px;

  border:1px dashed #d6dee8;
  border-radius:14px;

  background:#f8fafc;

  color:#758599;

  font-size:.75rem;

  text-align:center;
}


/* =========================================================
   MOBILE PUBLIC TRACKING
========================================================= */

@media(max-width:900px){

  .tf-track-summary-grid{
    grid-template-columns:1fr 1fr;
  }

  .tf-track-summary-card:last-child{
    grid-column:1/-1;
  }

  .tf-track-lower-grid{
    grid-template-columns:1fr;
  }

}


@media(max-width:700px){

  .tf-public-track-hero{
    min-height:auto;
  }

  .tf-public-track-shell{
    width:min(92vw,560px);
    min-height:auto;

    padding:65px 0 48px;
  }

  .tf-public-track-intro h1{
    font-size:clamp(2.7rem,13vw,4.2rem);
  }

  .tf-public-track-form{
    grid-template-columns:1fr;

    padding:8px;
  }

  .tf-public-track-form>button{
    width:100%;
  }

  .tf-track-result{
    padding:22px 0 55px;
  }

  .tf-track-result-shell{
    width:min(92vw,560px);
  }

  .tf-track-result-header{
    align-items:flex-start;
    flex-direction:column;

    padding:21px;
  }

  .tf-track-status-area{
    justify-items:start;
  }

  .tf-track-route-line{
    align-items:flex-start;
  }

  .tf-track-summary-grid{
    grid-template-columns:1fr;
  }

  .tf-track-summary-card:last-child{
    grid-column:auto;
  }

  .tf-track-route-card,
  .tf-track-map-card,
  .tf-track-timeline-card{
    padding:20px;
  }

  .tf-track-route-progress{
    grid-template-columns:1fr;

    gap:0;

    padding-left:3px;
  }

  .tf-route-node{
    grid-template-columns:22px 1fr;

    justify-items:start;
    align-items:center;

    text-align:left;
  }

  .tf-route-connector{
    width:2px;
    height:42px;

    margin:
      0 0 0 8px;
  }

  .tf-route-connector span{
    width:100%;
    height:0;
  }

  .tf-route-connector.is-active span{
    width:100%;
    height:100%;
  }

  .tf-public-shipment-map{
    height:330px;
  }

  .tf-track-account-actions{
    grid-template-columns:1fr;
  }

}


@media(max-width:480px){

  .tf-public-track-shell{
    padding-top:48px;
  }

  .tf-public-track-intro h1{
    font-size:2.65rem;
  }

  .tf-public-track-security{
    gap:8px 14px;
  }

  .tf-track-result-header{
    border-radius:18px;
  }

  .tf-track-route-card,
  .tf-track-map-card,
  .tf-track-timeline-card,
  .tf-track-account-card{
    border-radius:18px;
  }

}
/* =========================================================
   CUSTOMER DASHBOARD EXTENSIONS
========================================================= */

.customer-dashboard-quick-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
  gap:12px;
  padding:16px;
}

.customer-dashboard-quick-card{
  min-height:82px;

  display:grid;
  grid-template-columns:44px 1fr auto;

  align-items:center;
  gap:12px;

  padding:15px;

  border:1px solid var(--ui-line,#e4eaf2);
  border-radius:17px;

  background:#fff;

  box-shadow:
    0 7px 20px rgba(15,23,42,.035);

  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease;
}

.customer-dashboard-quick-card:hover{
  transform:translateY(-2px);

  border-color:#cdd8e6;

  box-shadow:
    0 13px 28px rgba(15,23,42,.07);
}

.customer-dashboard-quick-card>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.customer-dashboard-quick-card strong{
  color:#1e293b;
  font-size:.82rem;
}

.customer-dashboard-quick-card small{
  color:#94a3b8;
  font-size:.64rem;
}

.customer-dashboard-quick-arrow{
  color:#94a3b8;
  font-size:1.2rem;
}


/* PAYMENT METHODS */

.customer-dashboard-payment-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));

  gap:12px;

  padding:16px;
}

.customer-dashboard-payment-card{
  display:grid;
  gap:13px;

  padding:20px;

  border:1px solid #e2e8f0;
  border-radius:18px;

  background:#fff;

  box-shadow:
    0 7px 20px rgba(15,23,42,.035);
}

.customer-dashboard-payment-top{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;
}

.customer-dashboard-payment-card h3{
  margin:0;

  color:#1e293b;

  font-size:1rem;
  letter-spacing:-.02em;
}

.customer-payment-detail{
  display:grid;
  gap:4px;

  padding-top:10px;

  border-top:1px solid #edf1f5;
}

.customer-payment-detail span{
  color:#94a3b8;

  font-size:.6rem;
  font-weight:850;

  letter-spacing:.07em;
  text-transform:uppercase;
}

.customer-payment-detail strong{
  color:#344054;

  font-size:.78rem;
}


/* DARK MODE */

[data-theme="dark"] .customer-dashboard-quick-card,
[data-theme="dark"] .customer-dashboard-payment-card{
  border-color:#26384d;

  background:#0e2138;
}

[data-theme="dark"] .customer-dashboard-quick-card strong,
[data-theme="dark"] .customer-dashboard-payment-card h3,
[data-theme="dark"] .customer-payment-detail strong{
  color:#e7eef7;
}

[data-theme="dark"] .customer-dashboard-quick-card small,
[data-theme="dark"] .customer-payment-detail span{
  color:#8398ae;
}


/* MOBILE */

@media(max-width:600px){

  .customer-dashboard-quick-grid{
    grid-template-columns:1fr 1fr;

    gap:9px;

    padding:12px;
  }

  .customer-dashboard-quick-card{
    min-height:96px;

    grid-template-columns:38px 1fr;

    align-items:start;

    padding:13px;
  }

  .customer-dashboard-quick-arrow{
    display:none;
  }

  .customer-dashboard-payment-grid{
    grid-template-columns:1fr;

    padding:12px;
  }

}

@media(max-width:420px){

  .customer-dashboard-quick-grid{
    grid-template-columns:1fr;
  }

}
/* =========================================================
   CUSTOMER SHIPMENT EXTENSIONS
========================================================= */

.customer-shipment-access{
  display:inline-flex;
  align-items:center;

  min-height:28px;

  padding:5px 9px;

  border:1px solid #e2e8f0;
  border-radius:999px;

  background:#f8fafc;

  color:#64748b;

  font-size:.61rem;
  font-weight:800;
}

.shipment-directory-count{
  color:#94a3b8;
  font-size:.68rem;
  font-weight:800;
}

.customer-shipment-mobile-location{
  display:grid;
  grid-template-columns:28px 1fr;

  gap:10px;

  align-items:start;

  padding:12px 0;

  border-top:1px solid #edf1f5;
}

.customer-shipment-mobile-location>div{
  min-width:0;
  display:grid;
  gap:3px;
}

.customer-shipment-mobile-location small{
  color:#94a3b8;
  font-size:.6rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.customer-shipment-mobile-location strong{
  color:#334155;
  font-size:.76rem;
  line-height:1.45;
}

[data-theme="dark"] .customer-shipment-access{
  border-color:#2a3d53;
  background:#10243d;
  color:#9db0c4;
}

[data-theme="dark"] .customer-shipment-mobile-location{
  border-color:#22364c;
}

[data-theme="dark"] .customer-shipment-mobile-location strong{
  color:#e6edf5;
}
/* =========================================================
   CUSTOMER CLAIM SHIPMENT
========================================================= */

.customer-claim-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.7fr);

  gap:16px;

  margin-top:16px;
}

.customer-claim-card,
.customer-claim-info{
  padding:28px;

  border:1px solid #e2e8f0;
  border-radius:22px;

  background:#fff;

  box-shadow:
    0 8px 26px rgba(15,23,42,.045);
}

.customer-claim-heading h2,
.customer-claim-info h2{
  margin:6px 0 10px;

  color:#0f172a;

  font-size:1.45rem;
  letter-spacing:-.03em;
}

.customer-claim-heading>p:not(.eyebrow),
.customer-claim-info>p:not(.eyebrow){
  margin:0;

  color:#64748b;

  font-size:.78rem;
  line-height:1.65;
}

.customer-claim-form{
  display:grid;
  gap:18px;

  margin-top:25px;
}

.customer-claim-form label{
  display:grid;
  gap:8px;
}

.customer-claim-form label>span{
  color:#344054;

  font-size:.72rem;
  font-weight:800;
}

.customer-claim-form input{
  min-height:50px;

  border:1px solid #dbe3ec;
  border-radius:13px;

  background:#fbfcfe;
}

.customer-claim-form input:focus{
  border-color:#3b82f6;

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(59,130,246,.08);
}

.customer-claim-form label small{
  color:#94a3b8;

  font-size:.63rem;
  line-height:1.5;
}

.customer-claim-notice{
  display:grid;
  grid-template-columns:28px 1fr;

  gap:10px;

  align-items:start;

  padding:13px;

  border:1px solid #dceaf7;
  border-radius:13px;

  background:#f4f9fd;
}

.customer-claim-notice>span{
  width:28px;
  height:28px;

  display:grid;
  place-items:center;

  border-radius:50%;

  background:#e0f2fe;

  color:#147ab7;

  font-size:.72rem;
  font-weight:900;
}

.customer-claim-notice p{
  margin:2px 0 0;

  color:#577086;

  font-size:.69rem;
  line-height:1.55;
}

.customer-claim-info{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(56,189,248,.13),
      transparent 17rem
    ),
    #071b36;

  color:#fff;
}

.customer-claim-info-icon{
  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  margin-bottom:22px;

  border:1px solid rgba(255,255,255,.1);
  border-radius:15px;

  background:rgba(255,255,255,.06);

  color:#58d0ff;
}

.customer-claim-info-icon svg{
  width:23px;
  height:23px;

  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-claim-info h2{
  color:#fff;
}

.customer-claim-info>p:not(.eyebrow){
  color:#a7b9cb;
}

.customer-claim-info-list{
  display:grid;

  gap:0;

  margin-top:25px;

  border-top:1px solid rgba(255,255,255,.1);
}

.customer-claim-info-list>div{
  display:grid;
  grid-template-columns:34px 1fr;

  gap:10px;

  padding:14px 0;

  border-bottom:1px solid rgba(255,255,255,.08);
}

.customer-claim-info-list strong{
  color:#52cdfc;

  font-size:.64rem;
}

.customer-claim-info-list span{
  color:#c1cfdd;

  font-size:.72rem;
  line-height:1.5;
}

[data-theme="dark"] .customer-claim-card{
  border-color:#273a50;

  background:#0d2138;
}

[data-theme="dark"] .customer-claim-heading h2,
[data-theme="dark"] .customer-claim-form label>span{
  color:#e8eef6;
}

[data-theme="dark"] .customer-claim-form input{
  border-color:#2a4058;

  background:#10263f;

  color:#fff;
}

[data-theme="dark"] .customer-claim-notice{
  border-color:#29435b;

  background:#10283f;
}

@media(max-width:850px){

  .customer-claim-layout{
    grid-template-columns:1fr;
  }

}

@media(max-width:600px){

  .customer-claim-card,
  .customer-claim-info{
    padding:20px;

    border-radius:18px;
  }

}
/* =========================================================
   CUSTOMER SHIPMENT DETAIL
========================================================= */

.customer-shipment-status-panel{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:25px;

  margin-bottom:16px;
  padding:22px 24px;

  border:1px solid #e2e8f0;
  border-radius:20px;

  background:#fff;

  box-shadow:
    0 8px 24px rgba(15,23,42,.04);
}

.customer-shipment-status-panel h2{
  margin:11px 0 5px;

  color:#0f172a;

  font-size:1.25rem;
  letter-spacing:-.03em;
}

.customer-shipment-status-panel p{
  margin:0;

  color:#64748b;

  font-size:.75rem;
  line-height:1.55;
}

.customer-shipment-status-panel>small{
  color:#94a3b8;

  font-size:.65rem;
}


.customer-shipment-stat-text{
  display:block;

  max-width:100%;

  font-size:1rem !important;
  line-height:1.35;

  overflow-wrap:anywhere;
}


/* ROUTE */

.customer-shipment-route-progress{
  display:grid;

  grid-template-columns:
    minmax(150px,1fr)
    minmax(80px,.6fr)
    minmax(150px,1fr)
    minmax(80px,.6fr)
    minmax(150px,1fr);

  align-items:start;

  gap:0;

  padding:30px 25px;
}

.customer-route-stage{
  display:grid;
  justify-items:center;

  gap:10px;

  text-align:center;
}

.customer-route-dot{
  width:17px;
  height:17px;

  border:4px solid #dbe4ed;
  border-radius:50%;

  background:#fff;
}

.customer-route-stage.is-complete .customer-route-dot{
  border-color:#2da6df;

  background:#2da6df;

  box-shadow:
    0 0 0 5px rgba(45,166,223,.10);
}

.customer-route-stage.is-current .customer-route-dot{
  border-color:#fff;

  background:#256edb;

  box-shadow:
    0 0 0 5px rgba(37,110,219,.14),
    0 0 20px rgba(37,110,219,.23);
}

.customer-route-stage>div{
  display:grid;
  gap:4px;
}

.customer-route-stage small{
  color:#94a3b8;

  font-size:.58rem;
  font-weight:850;

  letter-spacing:.08em;
  text-transform:uppercase;
}

.customer-route-stage strong{
  color:#334155;

  font-size:.73rem;
  line-height:1.45;
}

.customer-route-line{
  height:2px;

  margin-top:8px;

  overflow:hidden;

  background:#e2e8f0;
}

.customer-route-line span{
  display:block;

  width:0;
  height:100%;

  background:
    linear-gradient(
      90deg,
      #168fe0,
      #45c0e9
    );
}

.customer-route-line.is-complete span{
  width:100%;
}


/* MAP */

.customer-shipment-map-wrap{
  padding:0 16px 16px;
}

.customer-shipment-map{
  height:440px;

  border-radius:18px;

  overflow:hidden;
}

.customer-shipment-map-legend{
  display:flex;
  flex-wrap:wrap;

  gap:18px;

  padding:0 18px 8px;

  color:#64748b;

  font-size:.67rem;
  font-weight:750;
}

.customer-shipment-map-legend span{
  display:flex;
  align-items:center;

  gap:6px;
}


/* TIMELINE */

.customer-shipment-timeline{
  display:grid;

  padding:7px 22px 25px;
}

.customer-shipment-timeline-item{
  position:relative;

  display:grid;

  grid-template-columns:22px 1fr;

  gap:15px;

  padding:0 0 26px;
}

.customer-shipment-timeline-item:not(:last-child)::before{
  content:"";

  position:absolute;

  left:10px;
  top:21px;
  bottom:0;

  width:1px;

  background:#dfe7ef;
}

.customer-shipment-timeline-marker{
  position:relative;
  z-index:2;

  width:20px;
  height:20px;

  margin-top:2px;

  border:5px solid #eaf5fd;
  border-radius:50%;

  background:#208fd3;
}

.customer-shipment-timeline-content{
  min-width:0;
}

.customer-shipment-timeline-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:15px;
}

.customer-shipment-timeline-head strong{
  color:#1e293b;

  font-size:.84rem;
}

.customer-shipment-timeline-location{
  display:flex;
  align-items:center;

  gap:6px;

  margin-top:7px;

  color:#2e78b9;

  font-size:.7rem;
  font-weight:750;
}

.customer-shipment-timeline-content p{
  margin:8px 0 0;

  color:#64748b;

  font-size:.74rem;
  line-height:1.6;
}

.customer-shipment-timeline-content>small{
  display:flex;
  align-items:center;

  gap:6px;

  margin-top:9px;

  color:#94a3b8;

  font-size:.62rem;
}


/* NOTE */

.customer-shipment-note{
  display:grid;

  grid-template-columns:44px 1fr;

  gap:14px;

  align-items:start;

  padding:20px;

  border:1px solid #dbe8f5;
  border-radius:18px;

  background:#f5faff;
}

.customer-shipment-note-icon{
  width:44px;
  height:44px;

  display:grid;
  place-items:center;

  border-radius:13px;

  background:#e5f3ff;

  color:#2079bf;
}

.customer-shipment-note-icon svg{
  width:21px;
  height:21px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-shipment-note strong{
  color:#1e293b;

  font-size:.8rem;
}

.customer-shipment-note p{
  margin:6px 0 0;

  color:#64748b;

  font-size:.74rem;
  line-height:1.6;
}


/* DARK MODE */

[data-theme="dark"] .customer-shipment-status-panel{
  border-color:#273b50;

  background:#0d2138;
}

[data-theme="dark"] .customer-shipment-status-panel h2,
[data-theme="dark"] .customer-route-stage strong,
[data-theme="dark"] .customer-shipment-timeline-head strong,
[data-theme="dark"] .customer-shipment-note strong{
  color:#e8eef6;
}

[data-theme="dark"] .customer-route-line{
  background:#2b4058;
}

[data-theme="dark"] .customer-shipment-timeline-item:not(:last-child)::before{
  background:#294057;
}

[data-theme="dark"] .customer-shipment-note{
  border-color:#29445e;

  background:#10283f;
}


/* MOBILE */

@media(max-width:760px){

  .customer-shipment-status-panel{
    align-items:flex-start;
    flex-direction:column;
  }

  .customer-shipment-route-progress{
    grid-template-columns:1fr;

    padding:24px 20px;
  }

  .customer-route-stage{
    grid-template-columns:22px 1fr;

    justify-items:start;
    align-items:center;

    text-align:left;
  }

  .customer-route-line{
    width:2px;
    height:42px;

    margin:0 0 0 8px;
  }

  .customer-route-line span{
    width:100%;
    height:0;
  }

  .customer-route-line.is-complete span{
    width:100%;
    height:100%;
  }

  .customer-shipment-map{
    height:330px;
  }

  .customer-shipment-timeline-head{
    flex-direction:column;

    gap:7px;
  }

}

@media(max-width:480px){

  .customer-shipment-status-panel{
    padding:18px;

    border-radius:17px;
  }

  .customer-shipment-map-wrap{
    padding:0 10px 10px;
  }

  .customer-shipment-timeline{
    padding:5px 15px 20px;
  }

}
/* =========================================================
   CUSTOMER INVOICES
========================================================= */

.customer-invoice-stat-amount{
  font-size:1.05rem !important;
  overflow-wrap:anywhere;
}

.customer-invoice-stat-status{
  font-size:1rem !important;
}

.customer-invoice-balance-due{
  color:#b45309;
}

.customer-invoice-mobile-title{
  padding:12px 0;

  border-top:1px solid #edf1f5;
}

.customer-invoice-mobile-title strong{
  color:#334155;
  font-size:.78rem;
  line-height:1.45;
}

.customer-invoice-mobile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:12px;

  padding:12px 0;

  border-top:1px solid #edf1f5;
}

.customer-invoice-mobile-grid>div{
  display:grid;
  gap:4px;
}

.customer-invoice-mobile-grid small{
  color:#94a3b8;

  font-size:.6rem;
  font-weight:800;

  text-transform:uppercase;
  letter-spacing:.06em;
}

.customer-invoice-mobile-grid strong{
  color:#334155;

  font-size:.78rem;
}


/* STATUS SUMMARY */

.customer-invoice-status-panel{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:25px;

  margin-bottom:16px;
  padding:22px 24px;

  border:1px solid #e2e8f0;
  border-radius:20px;

  background:#fff;

  box-shadow:
    0 8px 24px rgba(15,23,42,.04);
}

.customer-invoice-status-panel h2{
  margin:11px 0 5px;

  color:#0f172a;

  font-size:1.25rem;
  letter-spacing:-.03em;
}

.customer-invoice-status-panel p{
  margin:0;

  color:#64748b;

  font-size:.75rem;
  line-height:1.55;
}

.customer-invoice-status-meta{
  display:grid;
  justify-items:end;

  gap:3px;
}

.customer-invoice-status-meta small{
  color:#94a3b8;

  font-size:.61rem;
  font-weight:800;

  text-transform:uppercase;
}

.customer-invoice-status-meta strong{
  color:#334155;

  font-size:.78rem;
}


/* NOTE */

.customer-invoice-note{
  display:grid;
  grid-template-columns:44px 1fr;

  gap:14px;

  padding:20px;

  border:1px solid #dbe8f5;
  border-radius:18px;

  background:#f6faff;
}

.customer-invoice-note-icon{
  width:44px;
  height:44px;

  display:grid;
  place-items:center;

  border-radius:13px;

  background:#e6f3ff;

  color:#2679bb;
}

.customer-invoice-note-icon svg{
  width:21px;
  height:21px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-invoice-note strong{
  color:#1e293b;

  font-size:.8rem;
}

.customer-invoice-note p{
  margin:6px 0 0;

  color:#64748b;

  font-size:.74rem;
  line-height:1.6;
}


/* LINES */

.customer-invoice-lines{
  display:grid;

  padding:4px 18px 0;
}

.customer-invoice-line{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  padding:17px 5px;

  border-bottom:1px solid #edf1f5;
}

.customer-invoice-line>div{
  min-width:0;

  display:grid;
  gap:4px;
}

.customer-invoice-line>div strong{
  color:#334155;

  font-size:.79rem;
}

.customer-invoice-line small{
  color:#94a3b8;

  font-size:.63rem;
}

.customer-invoice-line-amount{
  flex:0 0 auto;

  color:#1e293b;

  font-size:.8rem;
}


/* TOTALS */

.customer-invoice-totals{
  width:min(420px,calc(100% - 36px));

  margin:18px 18px 20px auto;

  display:grid;
}

.customer-invoice-totals>div{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:20px;

  padding:9px 0;

  color:#64748b;

  font-size:.72rem;
}

.customer-invoice-totals strong{
  color:#334155;
}

.customer-invoice-grand-total{
  margin-top:5px;
  padding-top:15px !important;

  border-top:1px solid #dce4ed;

  color:#0f172a !important;

  font-size:.86rem !important;
}

.customer-invoice-grand-total strong{
  color:#0f172a;

  font-size:1rem;
}


/* PAYMENTS */

.customer-invoice-payments{
  display:grid;

  padding:4px 18px 18px;
}

.customer-invoice-payment{
  display:grid;
  grid-template-columns:44px 1fr auto;

  align-items:center;

  gap:12px;

  padding:15px 4px;

  border-bottom:1px solid #edf1f5;
}

.customer-invoice-payment>div{
  min-width:0;

  display:grid;
  gap:4px;
}

.customer-invoice-payment>div strong{
  color:#334155;

  font-size:.78rem;
}

.customer-invoice-payment small{
  color:#94a3b8;

  font-size:.62rem;
}

.customer-invoice-payment-amount{
  color:#166534;

  font-size:.8rem;
}


/* TERMS */

.customer-invoice-terms{
  padding:20px;

  border:1px solid #e2e8f0;
  border-radius:18px;

  background:#fff;
}

.customer-invoice-terms strong{
  color:#1e293b;

  font-size:.8rem;
}

.customer-invoice-terms p{
  margin:7px 0 0;

  color:#64748b;

  font-size:.74rem;
  line-height:1.65;
}


/* PAYMENT CTA */

.customer-invoice-pay-cta{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:25px;

  padding:28px;

  border-radius:22px;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(56,189,248,.15),
      transparent 18rem
    ),
    #071b36;

  color:#fff;
}

.customer-invoice-pay-cta h2{
  margin:5px 0 7px;

  color:#fff;

  font-size:1.45rem;
  letter-spacing:-.03em;
}

.customer-invoice-pay-cta p:not(.eyebrow){
  max-width:610px;

  margin:0;

  color:#9fb2c6;

  font-size:.75rem;
  line-height:1.6;
}

.customer-invoice-pay-cta>div:last-child{
  display:grid;
  justify-items:end;

  gap:12px;

  flex:0 0 auto;
}

.customer-invoice-pay-cta>div:last-child>strong{
  color:#fff;

  font-size:1.25rem;
}


/* DARK MODE */

[data-theme="dark"] .customer-invoice-status-panel,
[data-theme="dark"] .customer-invoice-terms{
  border-color:#273b50;

  background:#0d2138;
}

[data-theme="dark"] .customer-invoice-status-panel h2,
[data-theme="dark"] .customer-invoice-status-meta strong,
[data-theme="dark"] .customer-invoice-line>div strong,
[data-theme="dark"] .customer-invoice-line-amount,
[data-theme="dark"] .customer-invoice-totals strong,
[data-theme="dark"] .customer-invoice-note strong,
[data-theme="dark"] .customer-invoice-terms strong{
  color:#e8eef6;
}

[data-theme="dark"] .customer-invoice-line,
[data-theme="dark"] .customer-invoice-payment{
  border-color:#25394f;
}

[data-theme="dark"] .customer-invoice-note{
  border-color:#29445e;

  background:#10283f;
}


/* MOBILE */

@media(max-width:700px){

  .customer-invoice-status-panel{
    align-items:flex-start;
    flex-direction:column;
  }

  .customer-invoice-status-meta{
    justify-items:start;
  }

  .customer-invoice-line{
    align-items:flex-start;
  }

  .customer-invoice-totals{
    width:calc(100% - 30px);

    margin:16px 15px;
  }

  .customer-invoice-pay-cta{
    align-items:flex-start;
    flex-direction:column;

    padding:22px;
  }

  .customer-invoice-pay-cta>div:last-child{
    width:100%;

    justify-items:start;
  }

  .customer-invoice-pay-cta .button{
    width:100%;

    text-align:center;
  }

}

@media(max-width:480px){

  .customer-invoice-payment{
    grid-template-columns:38px 1fr;
  }

  .customer-invoice-payment-amount{
    grid-column:2;

    margin-top:3px;
  }

}
/* =========================================================
   CUSTOMER PAYMENTS
========================================================= */

.customer-payment-history-list{
  display:grid;
  padding:4px 18px 18px;
}

.customer-payment-history-row{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;

  gap:13px;

  align-items:center;

  padding:16px 4px;

  border-bottom:1px solid #edf1f5;
}

.customer-payment-history-main{
  min-width:0;
}

.customer-payment-history-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:13px;
}

.customer-payment-history-head>div{
  min-width:0;

  display:grid;
  gap:4px;
}

.customer-payment-history-head strong{
  color:#334155;
  font-size:.8rem;
}

.customer-payment-history-head small{
  color:#94a3b8;
  font-size:.63rem;
}

.customer-payment-history-meta{
  display:flex;
  flex-wrap:wrap;

  gap:8px 16px;

  margin-top:8px;

  color:#64748b;

  font-size:.67rem;
}

.customer-payment-review-note{
  margin-top:10px;

  padding:10px 12px;

  border:1px solid #e1e8f0;
  border-radius:11px;

  background:#f8fafc;
}

.customer-payment-review-note strong{
  color:#475569;
  font-size:.65rem;
}

.customer-payment-review-note p{
  margin:4px 0 0;

  color:#64748b;

  font-size:.67rem;
  line-height:1.55;
}

.customer-payment-history-amount{
  color:#1e293b;

  font-size:.82rem;

  white-space:nowrap;
}


/* PAYMENT BALANCE */

.customer-payment-balance-panel{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:12px;

  margin-bottom:16px;
}

.customer-payment-balance-panel>div{
  display:grid;
  gap:5px;

  padding:20px;

  border:1px solid #e2e8f0;
  border-radius:18px;

  background:#fff;

  box-shadow:
    0 7px 20px rgba(15,23,42,.035);
}

.customer-payment-balance-panel span{
  color:#94a3b8;

  font-size:.61rem;
  font-weight:850;

  letter-spacing:.07em;
  text-transform:uppercase;
}

.customer-payment-balance-panel strong{
  color:#1e293b;

  font-size:1.08rem;
}


/* PAYMENT METHOD GRID */

.customer-payment-method-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(290px,1fr));

  gap:12px;

  padding:16px;
}

.customer-payment-method-card{
  position:relative;

  display:grid;
  grid-template-columns:48px minmax(0,1fr);

  gap:14px;

  padding:18px;

  border:1px solid #e2e8f0;
  border-radius:18px;

  background:#fff;

  cursor:pointer;

  transition:
    border-color .16s ease,
    transform .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.customer-payment-method-card:hover{
  transform:translateY(-2px);

  border-color:#cbd8e6;

  box-shadow:
    0 12px 28px rgba(15,23,42,.06);
}

.customer-payment-method-card.is-selected{
  border-color:#60a5fa;

  background:#f7fbff;

  box-shadow:
    0 0 0 3px rgba(59,130,246,.07),
    0 12px 28px rgba(15,23,42,.06);
}

.customer-payment-method-card>input{
  position:absolute;

  opacity:0;

  pointer-events:none;
}

.customer-payment-method-check{
  position:absolute;

  right:14px;
  top:14px;

  width:18px;
  height:18px;

  border:2px solid #cbd5e1;
  border-radius:50%;

  background:#fff;
}

.customer-payment-method-card.is-selected .customer-payment-method-check{
  border-color:#2563eb;

  box-shadow:
    inset 0 0 0 4px #fff;

  background:#2563eb;
}

.customer-payment-method-icon{
  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  border:1px solid #dce8f4;
  border-radius:14px;

  background:#f2f8fe;

  color:#2678c4;
}

.customer-payment-method-icon svg{
  width:22px;
  height:22px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-payment-method-content{
  min-width:0;
}

.customer-payment-method-top{
  min-height:28px;
}

.customer-payment-method-content h3{
  margin:7px 0 14px;

  color:#1e293b;

  font-size:.96rem;
}

.customer-payment-detail-grid{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:10px;
}

.customer-payment-detail-grid>div{
  min-width:0;

  display:grid;
  gap:4px;

  padding:9px 0;

  border-top:1px solid #edf1f5;
}

.customer-payment-detail-grid span{
  color:#94a3b8;

  font-size:.57rem;
  font-weight:850;

  letter-spacing:.06em;
  text-transform:uppercase;
}

.customer-payment-detail-grid strong{
  color:#475569;

  font-size:.7rem;
  line-height:1.45;
}

.customer-payment-detail-wide{
  grid-column:1/-1;
}

.customer-payment-method-instructions{
  margin-top:12px;

  padding:11px;

  border-radius:11px;

  background:#f8fafc;
}

.customer-payment-method-instructions strong{
  color:#475569;

  font-size:.64rem;
}

.customer-payment-method-instructions p{
  margin:5px 0 0;

  color:#64748b;

  font-size:.66rem;
  line-height:1.55;
}


/* FIELDS */

.customer-payment-fields{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:16px;

  padding:18px;
}

.customer-payment-fields label{
  display:grid;

  gap:8px;

  min-width:0;
}

.customer-payment-fields label>span{
  color:#344054;

  font-size:.7rem;
  font-weight:800;
}

.customer-payment-fields input,
.customer-payment-fields textarea{
  width:100%;

  border:1px solid #dbe3ec;
  border-radius:12px;

  background:#fbfcfe;
}

.customer-payment-fields input{
  min-height:49px;
}

.customer-payment-fields input:focus,
.customer-payment-fields textarea:focus{
  border-color:#3b82f6;

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(59,130,246,.08);
}

.customer-payment-fields small{
  color:#94a3b8;

  font-size:.61rem;
  line-height:1.45;
}

.customer-payment-field-wide{
  grid-column:1/-1;
}

.customer-payment-upload{
  position:relative;

  display:flex;
  align-items:center;

  gap:10px;

  min-height:54px;

  padding:7px 12px;

  border:1px dashed #cbd5e1;
  border-radius:12px;

  background:#f8fafc;
}

.customer-payment-upload-icon{
  width:34px;
  height:34px;

  flex:0 0 34px;

  display:grid;
  place-items:center;

  border-radius:10px;

  background:#eaf4fd;

  color:#2877ba;
}

.customer-payment-upload-icon svg{
  width:18px;
  height:18px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-payment-upload input{
  min-height:0;

  padding:0;

  border:0;

  background:transparent;
}


/* REVIEW NOTICE */

.customer-payment-review-notice{
  display:grid;
  grid-template-columns:44px 1fr;

  gap:14px;

  align-items:start;

  padding:18px;

  border:1px solid #dceaf6;
  border-radius:17px;

  background:#f5faff;
}

.customer-payment-review-icon{
  width:44px;
  height:44px;

  display:grid;
  place-items:center;

  border-radius:13px;

  background:#e6f4ff;

  color:#2478ba;
}

.customer-payment-review-icon svg{
  width:21px;
  height:21px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-payment-review-notice strong{
  color:#334155;

  font-size:.77rem;
}

.customer-payment-review-notice p{
  margin:5px 0 0;

  color:#64748b;

  font-size:.69rem;
  line-height:1.6;
}


/* SUBMIT */

.customer-payment-submit-actions{
  display:flex;

  align-items:center;
  justify-content:flex-end;

  gap:10px;

  margin-top:16px;
}

.customer-payment-submit-actions .tf-auth-submit{
  width:auto;
  min-width:230px;
}


/* DARK */

[data-theme="dark"] .customer-payment-history-row{
  border-color:#263a50;
}

[data-theme="dark"] .customer-payment-balance-panel>div,
[data-theme="dark"] .customer-payment-method-card{
  border-color:#293d53;

  background:#0d2138;
}

[data-theme="dark"] .customer-payment-method-card.is-selected{
  border-color:#3b82f6;

  background:#102943;
}

[data-theme="dark"] .customer-payment-history-head strong,
[data-theme="dark"] .customer-payment-history-amount,
[data-theme="dark"] .customer-payment-balance-panel strong,
[data-theme="dark"] .customer-payment-method-content h3,
[data-theme="dark"] .customer-payment-detail-grid strong,
[data-theme="dark"] .customer-payment-fields label>span,
[data-theme="dark"] .customer-payment-review-notice strong{
  color:#e7eef7;
}

[data-theme="dark"] .customer-payment-method-instructions,
[data-theme="dark"] .customer-payment-upload{
  background:#10263f;
}

[data-theme="dark"] .customer-payment-fields input,
[data-theme="dark"] .customer-payment-fields textarea{
  border-color:#2c4259;

  background:#10263f;

  color:#fff;
}

[data-theme="dark"] .customer-payment-review-notice{
  border-color:#29445e;

  background:#10283f;
}


/* MOBILE */

@media(max-width:700px){

  .customer-payment-history-row{
    grid-template-columns:40px minmax(0,1fr);
  }

  .customer-payment-history-amount{
    grid-column:2;

    margin-top:4px;
  }

  .customer-payment-balance-panel{
    grid-template-columns:1fr;
  }

  .customer-payment-fields{
    grid-template-columns:1fr;

    padding:14px;
  }

  .customer-payment-field-wide{
    grid-column:auto;
  }

  .customer-payment-submit-actions{
    flex-direction:column-reverse;

    align-items:stretch;
  }

  .customer-payment-submit-actions .button,
  .customer-payment-submit-actions .tf-auth-submit{
    width:100%;

    min-width:0;

    text-align:center;
  }

}

@media(max-width:480px){

  .customer-payment-method-grid{
    grid-template-columns:1fr;

    padding:12px;
  }

  .customer-payment-method-card{
    grid-template-columns:42px 1fr;

    padding:15px;
  }

  .customer-payment-method-icon{
    width:42px;
    height:42px;
  }

  .customer-payment-detail-grid{
    grid-template-columns:1fr;
  }

  .customer-payment-detail-wide{
    grid-column:auto;
  }

}
/* =========================================================
   CUSTOMER DOCUMENTS
========================================================= */

.customer-document-stat-text{
  font-size:1rem !important;
}

.customer-document-type{
  display:inline-flex;
  align-items:center;

  min-height:28px;

  padding:5px 9px;

  border:1px solid #e2e8f0;
  border-radius:999px;

  background:#f8fafc;

  color:#64748b;

  font-size:.61rem;
  font-weight:800;
}

.customer-document-mobile-grid{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:12px;

  padding:13px 0;

  border-top:1px solid #edf1f5;
}

.customer-document-mobile-grid>div{
  display:grid;
  gap:4px;
}

.customer-document-mobile-grid small{
  color:#94a3b8;

  font-size:.59rem;
  font-weight:800;

  letter-spacing:.06em;
  text-transform:uppercase;
}

.customer-document-mobile-grid strong{
  color:#334155;

  font-size:.76rem;
}

[data-theme="dark"] .customer-document-type{
  border-color:#2a3d53;

  background:#10243d;

  color:#9db0c4;
}

[data-theme="dark"] .customer-document-mobile-grid{
  border-color:#25394f;
}

[data-theme="dark"] .customer-document-mobile-grid strong{
  color:#e7eef7;
}
/* =========================================================
   CUSTOMER SUPPORT
========================================================= */

.customer-support-category{
  display:inline-flex;
  align-items:center;

  min-height:28px;

  padding:5px 9px;

  border:1px solid #e2e8f0;
  border-radius:999px;

  background:#f8fafc;

  color:#64748b;

  font-size:.61rem;
  font-weight:800;
}

.customer-support-mobile-subject{
  padding:12px 0;

  border-top:1px solid #edf1f5;

  color:#334155;

  font-size:.76rem;
  font-weight:750;
  line-height:1.45;
}

.customer-support-mobile-meta-grid{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:12px;

  padding:12px 0;

  border-top:1px solid #edf1f5;
}

.customer-support-mobile-meta-grid>div{
  display:grid;
  gap:5px;
}

.customer-support-mobile-meta-grid small{
  color:#94a3b8;

  font-size:.59rem;
  font-weight:800;

  text-transform:uppercase;
  letter-spacing:.06em;
}

.customer-support-linked{
  display:flex;
  align-items:center;

  gap:7px;

  padding:11px 0;

  border-top:1px solid #edf1f5;

  color:#64748b;

  font-size:.68rem;
}


/* NEW TICKET */

.customer-support-new-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(300px,.6fr);

  gap:16px;

  margin-top:16px;
}

.customer-support-form-card,
.customer-support-guidance{
  padding:27px;

  border:1px solid #e2e8f0;
  border-radius:22px;

  background:#fff;

  box-shadow:
    0 8px 26px rgba(15,23,42,.045);
}

.customer-support-form-heading h2,
.customer-support-guidance h2{
  margin:6px 0 9px;

  color:#0f172a;

  font-size:1.4rem;

  letter-spacing:-.03em;
}

.customer-support-form-heading>p:not(.eyebrow),
.customer-support-guidance>p:not(.eyebrow){
  margin:0;

  color:#64748b;

  font-size:.75rem;
  line-height:1.6;
}

.customer-support-form{
  display:grid;

  gap:17px;

  margin-top:24px;
}

.customer-support-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:15px;
}

.customer-support-form label{
  display:grid;
  gap:8px;
}

.customer-support-form label>span{
  color:#344054;

  font-size:.7rem;
  font-weight:800;
}

.customer-support-form input,
.customer-support-form select,
.customer-support-form textarea{
  width:100%;

  border:1px solid #dbe3ec;
  border-radius:12px;

  background:#fbfcfe;
}

.customer-support-form input,
.customer-support-form select{
  min-height:49px;
}

.customer-support-form input:focus,
.customer-support-form select:focus,
.customer-support-form textarea:focus{
  border-color:#3b82f6;

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(59,130,246,.08);
}

.customer-support-form-actions{
  display:flex;
  justify-content:flex-end;

  gap:10px;
}

.customer-support-form-actions .tf-auth-submit{
  width:auto;
  min-width:190px;
}


/* GUIDANCE */

.customer-support-guidance{
  position:relative;
  overflow:hidden;

  background:
    radial-gradient(
      circle at 100% 0,
      rgba(56,189,248,.14),
      transparent 17rem
    ),
    #071b36;

  color:#fff;
}

.customer-support-guidance-icon{
  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  margin-bottom:21px;

  border:1px solid rgba(255,255,255,.1);
  border-radius:15px;

  background:rgba(255,255,255,.06);

  color:#5bd2ff;
}

.customer-support-guidance-icon svg{
  width:23px;
  height:23px;

  fill:none;
  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-support-guidance h2{
  color:#fff;
}

.customer-support-guidance>p:not(.eyebrow){
  color:#a9bacb;
}

.customer-support-guidance-list{
  display:grid;

  margin-top:24px;

  border-top:1px solid rgba(255,255,255,.1);
}

.customer-support-guidance-list>div{
  display:grid;
  grid-template-columns:34px 1fr;

  gap:10px;

  padding:14px 0;

  border-bottom:1px solid rgba(255,255,255,.08);
}

.customer-support-guidance-list strong{
  color:#51cdfc;

  font-size:.63rem;
}

.customer-support-guidance-list span{
  color:#c1cfdd;

  font-size:.7rem;
  line-height:1.5;
}


/* SHOW TICKET */

.customer-support-ticket-summary{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;

  gap:24px;

  margin-bottom:16px;
  padding:22px 24px;

  border:1px solid #e2e8f0;
  border-radius:20px;

  background:#fff;

  box-shadow:
    0 8px 24px rgba(15,23,42,.04);
}

.customer-support-ticket-summary h2{
  margin:10px 0 5px;

  color:#0f172a;

  font-size:1.22rem;
  letter-spacing:-.03em;
}

.customer-support-ticket-summary p{
  margin:0;

  color:#64748b;

  font-size:.73rem;
}

.customer-support-ticket-summary-right{
  display:grid;
  justify-items:end;

  gap:6px;
}

.customer-support-ticket-summary-right small{
  color:#94a3b8;

  font-size:.59rem;
  font-weight:800;

  text-transform:uppercase;
}


/* CONVERSATION */

.customer-support-thread{
  overflow:hidden;

  border:1px solid #e2e8f0;
  border-radius:22px;

  background:#fff;

  box-shadow:
    0 8px 26px rgba(15,23,42,.045);
}

.customer-support-thread-head{
  padding:20px 22px;

  border-bottom:1px solid #edf1f5;
}

.customer-support-thread-head h2{
  margin:5px 0 0;

  color:#0f172a;

  font-size:1.2rem;
}

.customer-support-conversation{
  display:grid;
  gap:14px;

  padding:22px;

  background:#f8fafc;
}

.customer-support-message{
  max-width:min(760px,86%);

  padding:15px 17px;

  border:1px solid #e2e8f0;
  border-radius:16px;

  background:#fff;

  box-shadow:
    0 6px 16px rgba(15,23,42,.035);
}

.customer-support-message.is-customer{
  justify-self:end;

  border-color:#cfe2f7;

  background:#eef7ff;

  border-bottom-right-radius:6px;
}

.customer-support-message.is-staff{
  justify-self:start;

  border-bottom-left-radius:6px;
}

.customer-support-message-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:12px;

  margin-bottom:8px;
}

.customer-support-message-meta strong{
  color:#334155;

  font-size:.72rem;
}

.customer-support-message-meta span{
  color:#94a3b8;

  font-size:.56rem;
  font-weight:800;

  text-transform:uppercase;
}

.customer-support-message-body{
  color:#475569;

  font-size:.76rem;
  line-height:1.65;
}

.customer-support-message>small{
  display:flex;
  align-items:center;

  gap:5px;

  margin-top:9px;

  color:#94a3b8;

  font-size:.59rem;
}


/* ATTACHMENTS */

.customer-support-attachment-list{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(230px,1fr));

  gap:10px;

  padding:16px;
}

.customer-support-attachment{
  display:grid;
  grid-template-columns:42px 1fr;

  gap:11px;

  align-items:center;

  padding:13px;

  border:1px solid #e2e8f0;
  border-radius:15px;

  background:#fff;
}

.customer-support-attachment>span:last-child{
  min-width:0;
  display:grid;
  gap:3px;
}

.customer-support-attachment strong{
  display:block;

  color:#334155;

  font-size:.72rem;

  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.customer-support-attachment small{
  color:#94a3b8;
  font-size:.59rem;
}


/* REPLY */

.customer-support-reply-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(300px,.8fr);

  gap:16px;
}

.customer-support-reply-card,
.customer-support-upload-card{
  padding:23px;

  border:1px solid #e2e8f0;
  border-radius:20px;

  background:#fff;
}

.customer-support-reply-card h2,
.customer-support-upload-card h2{
  margin:5px 0 0;

  color:#0f172a;

  font-size:1.15rem;
}

.customer-support-upload-card>div>p:not(.eyebrow){
  margin:8px 0 0;

  color:#64748b;

  font-size:.7rem;
  line-height:1.55;
}

.customer-support-reply-form{
  display:grid;
  gap:12px;

  margin-top:17px;
}

.customer-support-reply-form textarea{
  width:100%;

  border:1px solid #dbe3ec;
  border-radius:13px;

  background:#fbfcfe;
}

.customer-support-reply-form textarea:focus{
  border-color:#3b82f6;

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(59,130,246,.08);
}

.customer-support-upload-form{
  display:grid;
  gap:12px;

  margin-top:18px;
}

.customer-support-upload-box{
  display:flex;
  align-items:center;

  gap:10px;

  padding:12px;

  border:1px dashed #cbd5e1;
  border-radius:13px;

  background:#f8fafc;
}

.customer-support-upload-box>span{
  width:36px;
  height:36px;

  flex:0 0 36px;

  display:grid;
  place-items:center;

  border-radius:10px;

  background:#eaf4fd;

  color:#2877ba;
}

.customer-support-upload-box svg{
  width:18px;
  height:18px;

  fill:none;
  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-support-upload-box input{
  min-width:0;
}


/* DARK */

[data-theme="dark"] .customer-support-category{
  border-color:#2a3d53;
  background:#10243d;
  color:#9db0c4;
}

[data-theme="dark"] .customer-support-form-card,
[data-theme="dark"] .customer-support-ticket-summary,
[data-theme="dark"] .customer-support-thread,
[data-theme="dark"] .customer-support-reply-card,
[data-theme="dark"] .customer-support-upload-card,
[data-theme="dark"] .customer-support-attachment{
  border-color:#293d53;
  background:#0d2138;
}

[data-theme="dark"] .customer-support-form-heading h2,
[data-theme="dark"] .customer-support-ticket-summary h2,
[data-theme="dark"] .customer-support-thread-head h2,
[data-theme="dark"] .customer-support-reply-card h2,
[data-theme="dark"] .customer-support-upload-card h2,
[data-theme="dark"] .customer-support-message-meta strong,
[data-theme="dark"] .customer-support-attachment strong{
  color:#e7eef7;
}

[data-theme="dark"] .customer-support-conversation{
  background:#081b30;
}

[data-theme="dark"] .customer-support-message{
  border-color:#293d53;
  background:#10263f;
}

[data-theme="dark"] .customer-support-message.is-customer{
  border-color:#315b82;
  background:#12304d;
}

[data-theme="dark"] .customer-support-message-body{
  color:#c1cedb;
}

[data-theme="dark"] .customer-support-form input,
[data-theme="dark"] .customer-support-form select,
[data-theme="dark"] .customer-support-form textarea,
[data-theme="dark"] .customer-support-reply-form textarea{
  border-color:#2c4259;
  background:#10263f;
  color:#fff;
}


/* MOBILE */

@media(max-width:850px){

  .customer-support-new-layout,
  .customer-support-reply-layout{
    grid-template-columns:1fr;
  }

}


@media(max-width:650px){

  .customer-support-form-grid{
    grid-template-columns:1fr;
  }

  .customer-support-form-actions{
    flex-direction:column-reverse;
  }

  .customer-support-form-actions .button,
  .customer-support-form-actions .tf-auth-submit{
    width:100%;
    min-width:0;
    text-align:center;
  }

  .customer-support-ticket-summary{
    align-items:flex-start;
    flex-direction:column;
  }

  .customer-support-ticket-summary-right{
    justify-items:start;
  }

  .customer-support-message{
    max-width:94%;
  }

}


@media(max-width:480px){

  .customer-support-form-card,
  .customer-support-guidance,
  .customer-support-reply-card,
  .customer-support-upload-card{
    padding:19px;

    border-radius:18px;
  }

  .customer-support-conversation{
    padding:14px;
  }

  .customer-support-message{
    max-width:97%;
  }

  .customer-support-mobile-meta-grid{
    grid-template-columns:1fr;
  }

}
/* =========================================================
   CUSTOMER NOTIFICATIONS
========================================================= */

.customer-notification-stat-text{
  font-size:1rem !important;
}

.customer-notification-list{
  display:grid;
  padding:4px 18px 18px;
}

.customer-notification-item{
  position:relative;

  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;

  gap:14px;

  align-items:center;

  padding:18px 6px;

  border-bottom:1px solid #edf1f5;

  transition:
    background .16s ease,
    border-color .16s ease;
}

.customer-notification-item.is-unread{
  margin:4px -6px;

  padding-left:12px;
  padding-right:12px;

  border:1px solid #d8eafb;
  border-radius:16px;

  background:
    linear-gradient(
      90deg,
      #f4faff,
      #fff
    );
}

.customer-notification-item.is-unread::before{
  content:"";

  position:absolute;

  left:0;
  top:16px;
  bottom:16px;

  width:3px;

  border-radius:999px;

  background:#2586da;
}

.customer-notification-icon{
  width:46px;
  height:46px;

  display:grid;
  place-items:center;

  border:1px solid #dce9f5;
  border-radius:14px;

  background:#f1f8fe;

  color:#2779be;
}

.customer-notification-icon svg{
  width:21px;
  height:21px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-notification-main{
  min-width:0;
}

.customer-notification-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;

  gap:15px;
}

.customer-notification-head>div{
  display:flex;
  flex-wrap:wrap;

  align-items:center;

  gap:7px;
}

.customer-notification-head>small{
  display:flex;
  align-items:center;

  gap:5px;

  flex:0 0 auto;

  color:#94a3b8;

  font-size:.6rem;
}

.customer-notification-new{
  display:inline-flex;
  align-items:center;

  min-height:22px;

  padding:3px 7px;

  border-radius:999px;

  background:#2563eb;

  color:#fff;

  font-size:.53rem;
  font-weight:900;

  letter-spacing:.05em;
  text-transform:uppercase;
}

.customer-notification-main h3{
  margin:10px 0 5px;

  color:#1e293b;

  font-size:.84rem;

  letter-spacing:-.01em;
}

.customer-notification-main p{
  max-width:760px;

  margin:0;

  color:#64748b;

  font-size:.72rem;
  line-height:1.6;
}

.customer-notification-actions{
  min-width:145px;

  display:flex;
  justify-content:flex-end;
}

.customer-notification-actions form{
  margin:0;
}

.customer-notification-action-button{
  display:flex;
  align-items:center;
  justify-content:center;

  gap:7px;

  min-width:135px;
}

.customer-notification-arrow{
  display:grid;
  place-items:center;
}

.customer-notification-arrow svg{
  width:15px;
  height:15px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.8;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-notification-read-label{
  display:inline-flex;
  align-items:center;

  min-height:28px;

  padding:5px 9px;

  border:1px solid #e2e8f0;
  border-radius:999px;

  background:#f8fafc;

  color:#94a3b8;

  font-size:.6rem;
  font-weight:800;
}


/* DARK */

[data-theme="dark"] .customer-notification-item{
  border-color:#263a50;
}

[data-theme="dark"] .customer-notification-item.is-unread{
  border-color:#315675;

  background:
    linear-gradient(
      90deg,
      #102c49,
      #0d2138
    );
}

[data-theme="dark"] .customer-notification-icon{
  border-color:#29435b;

  background:#102941;

  color:#66c8f2;
}

[data-theme="dark"] .customer-notification-main h3{
  color:#e7eef7;
}

[data-theme="dark"] .customer-notification-main p{
  color:#a7b6c7;
}

[data-theme="dark"] .customer-notification-read-label{
  border-color:#2b4058;

  background:#10243d;

  color:#869bb0;
}


/* MOBILE */

@media(max-width:760px){

  .customer-notification-item{
    grid-template-columns:42px minmax(0,1fr);

    align-items:start;
  }

  .customer-notification-icon{
    width:42px;
    height:42px;
  }

  .customer-notification-actions{
    grid-column:2;

    width:100%;
    min-width:0;

    justify-content:flex-start;

    margin-top:3px;
  }

  .customer-notification-actions form{
    width:100%;
  }

  .customer-notification-action-button{
    width:100%;

    min-width:0;
  }

}


@media(max-width:520px){

  .customer-notification-list{
    padding:4px 12px 14px;
  }

  .customer-notification-item{
    grid-template-columns:1fr;

    gap:10px;

    padding:15px 4px;
  }

  .customer-notification-item.is-unread{
    padding:15px;

    margin:4px 0;
  }

  .customer-notification-icon{
    width:40px;
    height:40px;
  }

  .customer-notification-main{
    grid-column:1;
  }

  .customer-notification-actions{
    grid-column:1;
  }

  .customer-notification-head{
    flex-direction:column;

    gap:7px;
  }

}
/* =========================================================
   CUSTOMER PROFILE
========================================================= */

.customer-profile-layout{
  display:grid;
  grid-template-columns:minmax(270px,.55fr) minmax(0,1.45fr);

  gap:16px;

  margin-top:16px;
}

.customer-profile-summary,
.customer-profile-form-card{
  padding:26px;

  border:1px solid #e2e8f0;
  border-radius:22px;

  background:#fff;

  box-shadow:
    0 8px 26px rgba(15,23,42,.045);
}

.customer-profile-summary{
  align-self:start;

  text-align:center;
}

.customer-profile-avatar{
  width:82px;
  height:82px;

  display:grid;
  place-items:center;

  margin:0 auto 16px;

  border-radius:24px;

  background:
    linear-gradient(
      145deg,
      #e9f5ff,
      #d9ecff
    );

  color:#1d6fb8;

  font-size:1.45rem;
  font-weight:900;
}

.customer-profile-summary h2{
  margin:0;

  color:#1e293b;

  font-size:1.15rem;
}

.customer-profile-summary>p{
  margin:5px 0 14px;

  color:#94a3b8;

  font-size:.7rem;

  overflow-wrap:anywhere;
}

.customer-profile-summary-list{
  display:grid;

  gap:0;

  margin-top:22px;

  border-top:1px solid #edf1f5;

  text-align:left;
}

.customer-profile-summary-list>div{
  display:grid;
  grid-template-columns:28px 1fr;

  gap:10px;

  align-items:start;

  padding:14px 0;

  border-bottom:1px solid #edf1f5;
}

.customer-profile-summary-list>div>div{
  min-width:0;

  display:grid;
  gap:3px;
}

.customer-profile-summary-list small{
  color:#94a3b8;

  font-size:.57rem;
  font-weight:800;

  letter-spacing:.06em;
  text-transform:uppercase;
}

.customer-profile-summary-list strong{
  color:#475569;

  font-size:.68rem;
  line-height:1.45;

  overflow-wrap:anywhere;
}


/* FORM */

.customer-profile-form-heading h2{
  margin:6px 0 8px;

  color:#0f172a;

  font-size:1.35rem;
  letter-spacing:-.03em;
}

.customer-profile-form-heading>p:not(.eyebrow){
  margin:0;

  color:#64748b;

  font-size:.74rem;
  line-height:1.6;
}

.customer-profile-form{
  display:grid;

  gap:20px;

  margin-top:24px;
}

.customer-profile-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;

  gap:16px;
}

.customer-profile-form label{
  display:grid;
  gap:8px;
}

.customer-profile-form label>span{
  color:#344054;

  font-size:.69rem;
  font-weight:800;
}

.customer-profile-form input{
  width:100%;
  min-height:49px;

  border:1px solid #dbe3ec;
  border-radius:12px;

  background:#fbfcfe;
}

.customer-profile-form input:focus{
  border-color:#3b82f6;

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(59,130,246,.08);
}

.customer-profile-form input:disabled{
  background:#f1f5f9;

  color:#94a3b8;

  cursor:not-allowed;
}

.customer-profile-form label small{
  color:#94a3b8;

  font-size:.58rem;
  line-height:1.45;
}

.customer-profile-field-wide{
  grid-column:1/-1;
}

.customer-profile-form-actions{
  display:flex;
  justify-content:flex-end;
}

.customer-profile-form-actions .tf-auth-submit{
  width:auto;
  min-width:185px;
}


/* =========================================================
   CUSTOMER SECURITY
========================================================= */

.customer-security-layout{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);

  gap:16px;

  margin-top:16px;
}

.customer-security-card{
  padding:27px;

  border:1px solid #e2e8f0;
  border-radius:22px;

  background:#fff;

  box-shadow:
    0 8px 26px rgba(15,23,42,.045);
}

.customer-security-icon{
  width:48px;
  height:48px;

  display:grid;
  place-items:center;

  margin-bottom:18px;

  border:1px solid #dce9f5;
  border-radius:14px;

  background:#f0f7fd;

  color:#2879bc;
}

.customer-security-icon svg{
  width:22px;
  height:22px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;

  stroke-linecap:round;
  stroke-linejoin:round;
}

.customer-security-heading h2{
  margin:6px 0 8px;

  color:#0f172a;

  font-size:1.35rem;
  letter-spacing:-.03em;
}

.customer-security-heading>p:not(.eyebrow){
  margin:0;

  color:#64748b;

  font-size:.73rem;
  line-height:1.6;
}


/* PASSWORD FORM */

.customer-security-form{
  display:grid;

  gap:17px;

  margin-top:23px;
}

.customer-security-form label{
  display:grid;
  gap:8px;
}

.customer-security-form label>span{
  color:#344054;

  font-size:.69rem;
  font-weight:800;
}

.customer-security-form input{
  width:100%;
  min-height:49px;

  padding-left:42px;

  border:1px solid #dbe3ec;
  border-radius:12px;

  background:#fbfcfe;
}

.customer-security-form input:focus{
  border-color:#3b82f6;

  background:#fff;

  box-shadow:
    0 0 0 4px rgba(59,130,246,.08);
}

.customer-security-form label small{
  color:#94a3b8;

  font-size:.59rem;
}

.customer-security-field-icon{
  position:absolute;

  left:13px;
  top:50%;

  transform:translateY(-50%);

  width:18px;
  height:18px;

  display:grid;
  place-items:center;

  color:#94a3b8;
}

.customer-security-field-icon svg{
  width:17px;
  height:17px;

  fill:none;

  stroke:currentColor;
  stroke-width:1.7;
}


/* SESSION PANEL */

.customer-security-session-card{
  align-self:start;
}

.customer-security-session-icon{
  color:#8b5cf6;

  background:#f5f3ff;

  border-color:#e7defd;
}

.customer-security-session-meta{
  display:grid;
  grid-template-columns:28px 1fr;

  gap:10px;

  align-items:center;

  margin-top:23px;
  padding:14px;

  border:1px solid #e2e8f0;
  border-radius:14px;

  background:#f8fafc;
}

.customer-security-session-meta>div{
  display:grid;
  gap:3px;
}

.customer-security-session-meta small{
  color:#94a3b8;

  font-size:.57rem;
  font-weight:800;

  text-transform:uppercase;
  letter-spacing:.06em;
}

.customer-security-session-meta strong{
  color:#334155;

  font-size:.72rem;
}

.customer-security-danger-note{
  margin-top:14px;

  padding:14px;

  border:1px solid #fee2e2;
  border-radius:14px;

  background:#fff7f7;
}

.customer-security-danger-note strong{
  color:#991b1b;

  font-size:.68rem;
}

.customer-security-danger-note p{
  margin:5px 0 0;

  color:#a94442;

  font-size:.66rem;
  line-height:1.55;
}

.customer-security-revoke-button{
  width:100%;

  margin-top:15px;
}


/* DARK */

[data-theme="dark"] .customer-profile-summary,
[data-theme="dark"] .customer-profile-form-card,
[data-theme="dark"] .customer-security-card{
  border-color:#293d53;

  background:#0d2138;
}

[data-theme="dark"] .customer-profile-summary h2,
[data-theme="dark"] .customer-profile-form-heading h2,
[data-theme="dark"] .customer-security-heading h2,
[data-theme="dark"] .customer-profile-summary-list strong,
[data-theme="dark"] .customer-profile-form label>span,
[data-theme="dark"] .customer-security-form label>span,
[data-theme="dark"] .customer-security-session-meta strong{
  color:#e7eef7;
}

[data-theme="dark"] .customer-profile-form input,
[data-theme="dark"] .customer-security-form input{
  border-color:#2c4259;

  background:#10263f;

  color:#fff;
}

[data-theme="dark"] .customer-profile-form input:disabled{
  background:#0b1d31;

  color:#768ba0;
}

[data-theme="dark"] .customer-profile-summary-list{
  border-color:#263a50;
}

[data-theme="dark"] .customer-profile-summary-list>div{
  border-color:#263a50;
}

[data-theme="dark"] .customer-security-session-meta{
  border-color:#2a4058;

  background:#10263f;
}

[data-theme="dark"] .customer-security-danger-note{
  border-color:#633438;

  background:#2b191d;
}


/* MOBILE */

@media(max-width:900px){

  .customer-profile-layout,
  .customer-security-layout{
    grid-template-columns:1fr;
  }

}


@media(max-width:650px){

  .customer-profile-form-grid{
    grid-template-columns:1fr;
  }

  .customer-profile-field-wide{
    grid-column:auto;
  }

  .customer-profile-form-actions .tf-auth-submit{
    width:100%;
  }

}


@media(max-width:480px){

  .customer-profile-summary,
  .customer-profile-form-card,
  .customer-security-card{
    padding:20px;

    border-radius:18px;
  }

}

/* ========================================================================
   TRACKFLO PORTAL SHELL — FINAL HEADER + MOBILE SCROLL FIX
   Keep this block at the END of app.css.
   ======================================================================== */

/* The document itself owns normal page scrolling. */
html{
  min-height:100%;
  height:auto;
  overflow-x:hidden;
}

body.portal-body{
  min-width:0;
  min-height:100vh;
  min-height:100dvh;
  height:auto;
  overflow-x:hidden;
  overflow-y:auto;
}

/* Prevent flex children from creating accidental horizontal overflow. */
.portal-shell,
.portal-content,
.portal-main,
.portal-container,
.portal-topbar,
.portal-topbar-left,
.portal-topbar-actions,
.topbar-title{
  min-width:0;
  box-sizing:border-box;
}

/* Desktop shell remains naturally tall instead of being viewport-capped. */
.portal-shell{
  position:relative;
  width:100%;
  min-height:100vh;
  min-height:100dvh;
  height:auto;
  overflow:visible;
}

.portal-content{
  min-height:100vh;
  min-height:100dvh;
  height:auto;
  display:flex;
  flex-direction:column;
  overflow:visible;
}

.portal-main{
  flex:1 0 auto;
  width:100%;
  min-height:0;
  height:auto;
  overflow:visible;
}

.portal-container{
  width:100%;
  max-width:1460px;
  min-height:0;
  height:auto;
  overflow:visible;
}

/* ------------------------------------------------------------------------
   TOPBAR
   ------------------------------------------------------------------------ */
.portal-topbar{
  position:sticky;
  top:0;
  z-index:40;
  width:100%;
  flex:0 0 auto;
  background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(18px);
  backdrop-filter:blur(18px);
}

[data-theme="dark"] .portal-topbar{
  background:rgba(7,27,54,.95);
}

.portal-topbar-left{
  flex:1 1 auto;
  overflow:hidden;
}

.topbar-title{
  overflow:hidden;
}

.topbar-title span,
.topbar-title strong{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.portal-topbar-actions{
  flex:0 0 auto;
}

/* ------------------------------------------------------------------------
   SIDEBAR
   Brand/role stay fixed; only the inner region scrolls.
   ------------------------------------------------------------------------ */
.portal-sidebar{
  height:100vh;
  height:100dvh;
  min-height:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.sidebar-brand-row,
.sidebar-role{
  flex:0 0 auto;
}

.sidebar-scroll-region{
  flex:1 1 auto;
  min-height:0;
  height:auto;
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.sidebar-nav{
  flex:0 0 auto;
  overflow:visible;
}

.sidebar-footer{
  flex:0 0 auto;
  margin-top:auto;
}

/* ------------------------------------------------------------------------
   MOBILE / TABLET PORTAL
   ------------------------------------------------------------------------ */
@media(max-width:919px){

  html,
  body{
    height:auto !important;
    min-height:100%;
    overflow-x:hidden !important;
  }

  body.portal-body{
    position:static !important;
    width:100%;
    min-height:100vh;
    min-height:100dvh;
    height:auto !important;
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior-y:auto;
  }

  /* Main page must never become a second scroll container. */
  .portal-shell{
    display:block !important;
    width:100%;
    min-height:100vh;
    min-height:100dvh;
    height:auto !important;
    overflow:visible !important;
  }

  .portal-content{
    width:100% !important;
    max-width:100% !important;
    margin-left:0 !important;
    min-height:100vh;
    min-height:100dvh;
    height:auto !important;
    overflow:visible !important;
  }

  .portal-main{
    display:block !important;
    width:100%;
    min-height:0;
    height:auto !important;
    overflow:visible !important;
  }

  .portal-container{
    width:100%;
    max-width:100%;
    min-height:0;
    height:auto !important;
    padding-bottom:max(64px,calc(env(safe-area-inset-bottom) + 38px)) !important;
    overflow:visible !important;
  }

  /* Drawer: fixed to viewport, but its inner region scrolls correctly. */
  .portal-sidebar{
    position:fixed !important;
    top:0 !important;
    right:auto !important;
    bottom:0 !important;
    left:0 !important;
    z-index:100 !important;
    width:min(300px,86vw) !important;
    max-width:300px !important;
    height:100vh !important;
    height:100dvh !important;
    min-height:0 !important;
    display:flex !important;
    flex-direction:column !important;
    overflow:hidden !important;
    transform:translate3d(-105%,0,0) !important;
    transition:transform .22s ease !important;
    box-shadow:24px 0 70px rgba(2,8,23,.28);
  }

  body.sidebar-open .portal-sidebar,
  .sidebar-open .portal-sidebar{
    transform:translate3d(0,0,0) !important;
  }

  .sidebar-brand-row{
    position:relative !important;
    top:auto !important;
    z-index:2;
    min-height:76px;
    padding-top:max(14px,env(safe-area-inset-top));
    background:#06172f;
  }

  .sidebar-role{
    flex:0 0 auto !important;
  }

  .sidebar-scroll-region{
    flex:1 1 auto !important;
    min-height:0 !important;
    height:auto !important;
    max-height:none !important;
    display:block !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding-bottom:max(24px,env(safe-area-inset-bottom)) !important;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-y:contain;
    touch-action:pan-y;
  }

  .sidebar-nav,
  .sidebar-footer{
    height:auto !important;
    max-height:none !important;
    min-height:0 !important;
    overflow:visible !important;
  }

  .sidebar-footer{
    margin-top:0 !important;
    padding-bottom:max(28px,env(safe-area-inset-bottom)) !important;
  }

  /* Background locks only while drawer is open. */
  body.sidebar-open{
    overflow:hidden !important;
  }

  .sidebar-backdrop{
    position:fixed;
    inset:0;
    z-index:90;
  }

  /* Compact, balanced mobile header. */
  .portal-topbar{
    min-height:64px !important;
    padding:max(8px,env(safe-area-inset-top)) 12px 8px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:8px !important;
  }

  .portal-topbar-left{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    flex:1 1 auto !important;
  }

  .desktop-sidebar-toggle{
    display:none !important;
  }

  .mobile-menu-button{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    flex:0 0 38px !important;
    display:grid !important;
    place-items:center !important;
    padding:0 !important;
    border-radius:11px;
  }

  .topbar-title{
    flex:1 1 auto;
    display:grid;
    gap:1px;
  }

  .topbar-title span{
    font-size:.52rem !important;
    line-height:1.15;
    letter-spacing:.07em;
    text-transform:uppercase;
  }

  .topbar-title strong{
    font-size:.76rem !important;
    line-height:1.2;
  }

  .portal-topbar-actions{
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
  }

  .theme-toggle{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    flex:0 0 36px !important;
    padding:0 !important;
  }

  .tf-profile-v2,
  .topbar-profile{
    width:38px !important;
    height:38px !important;
    min-width:38px !important;
    min-height:38px !important;
    flex:0 0 38px !important;
    padding:2px !important;
    display:grid !important;
    place-items:center !important;
    border-radius:11px !important;
  }

  .topbar-profile-copy{
    display:none !important;
  }

  .user-avatar-small{
    width:30px !important;
    height:30px !important;
    min-width:30px !important;
    font-size:.58rem !important;
  }

  /* Compact language control so the header does not overflow. */
  .language-switcher{
    flex:0 0 auto;
  }

  .language-switcher-button{
    width:36px !important;
    min-width:36px !important;
    height:36px !important;
    min-height:36px !important;
    padding:0 !important;
    gap:0 !important;
    font-size:0 !important;
    border-radius:10px !important;
  }

  .language-globe{
    font-size:.92rem !important;
    line-height:1;
  }

  .language-chevron{
    display:none !important;
  }

  .language-switcher-menu{
    position:fixed !important;
    top:72px !important;
    right:10px !important;
    width:min(220px,calc(100vw - 20px)) !important;
    max-height:min(420px,calc(100dvh - 90px));
    overflow-y:auto;
    z-index:220 !important;
  }

  /* Footer follows content; it is never fixed to the viewport. */
  .portal-footer{
    position:relative !important;
    inset:auto !important;
    width:100%;
    flex:0 0 auto;
    margin-top:auto;
    padding:18px 14px max(22px,env(safe-area-inset-bottom)) !important;
  }
}

/* ------------------------------------------------------------------------
   SMALL MOBILE
   ------------------------------------------------------------------------ */
@media(max-width:600px){
  .portal-container{
    padding-top:18px !important;
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .portal-topbar{
    min-height:62px !important;
    padding-left:10px !important;
    padding-right:10px !important;
  }

  .topbar-title span{
    font-size:.49rem !important;
  }

  .topbar-title strong{
    font-size:.72rem !important;
  }
}

@media(max-width:420px){
  .portal-topbar{
    gap:5px !important;
  }

  .portal-topbar-left{
    gap:6px !important;
  }

  .mobile-menu-button{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    flex-basis:36px !important;
  }

  .theme-toggle,
  .language-switcher-button{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    min-height:34px !important;
    flex-basis:34px !important;
  }

  .tf-profile-v2,
  .topbar-profile{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    flex-basis:36px !important;
  }

  .topbar-title strong{
    font-size:.68rem !important;
  }

  .portal-container{
    padding-left:10px !important;
    padding-right:10px !important;
    padding-bottom:max(72px,calc(env(safe-area-inset-bottom) + 42px)) !important;
  }
}
/* =========================================================
   FINAL MOBILE DASHBOARD PAGE SCROLL
========================================================= */

@media (max-width: 919px) {
  html,
  body.portal-body {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  .portal-shell {
    display: block !important;

    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;

    overflow: hidden !important;
  }

  .portal-content {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: 100dvh !important;

    margin-left: 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    touch-action: pan-y !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .portal-topbar {
    position: sticky !important;
    top: 0 !important;
    flex: 0 0 auto !important;
  }

  .portal-main {
    display: block !important;
    flex: 0 0 auto !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    overflow: visible !important;
  }

  .portal-container {
    display: block !important;

    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    padding-bottom: 80px !important;

    overflow: visible !important;
  }

  .portal-footer {
    position: relative !important;
    flex: 0 0 auto !important;

    width: 100% !important;
    margin-top: 0 !important;
  }

  /* The sidebar stays separate from page scrolling */
  .portal-sidebar {
    position: fixed !important;

    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
}
/* Mobile and desktop sidebar toggle icons */
.mobile-menu-button,
.desktop-sidebar-toggle {
  color: #334155 !important;
}

.mobile-menu-button .topbar-control-icon,
.desktop-sidebar-toggle .topbar-control-icon {
  display: block !important;

  width: 20px !important;
  height: 20px !important;

  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;

  opacity: 1 !important;
  visibility: visible !important;
}

html[data-theme="dark"] .mobile-menu-button,
html[data-theme="dark"] .desktop-sidebar-toggle {
  color: #dbeafe !important;
}

/* ==========================================
   Public mobile page scrolling
========================================== */

@media (max-width: 919px) {
    html:has(body.public-body) {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    body.public-body {
        position: static !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch;
    }
}

/* =========================================================
   CLIENT REFERENCE HOMEPAGE — 2026-08-18
   ========================================================= */
.tfr-shell{width:min(1180px,92vw);margin-inline:auto}.tfr-section{padding:88px 0}.tfr-grid-pattern{position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgba(96,165,250,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(96,165,250,.055) 1px,transparent 1px);background-size:46px 46px}.tfr-eyebrow,.tfr-section-head>p{margin:0 0 14px;color:#2563eb;font-size:.76rem;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.tfr-section-head{max-width:760px;margin:0 auto 46px;text-align:center}.tfr-section-head h2,.tfr-split-head h2{margin:0;color:#0f172a;font-size:clamp(2rem,4vw,3.35rem);line-height:1.08;letter-spacing:-.045em}.tfr-section-head>span,.tfr-split-head>p{display:block;margin-top:18px;color:#64748b;font-size:1rem;line-height:1.8}.tfr-split-head{display:grid;grid-template-columns:.85fr 1.15fr;align-items:end;gap:50px;margin-bottom:44px}.tfr-split-head>p{max-width:650px;justify-self:end;margin-bottom:2px}.tfr-hero svg,.tfr-stats svg,.tfr-service-grid svg,.tfr-network svg,.tfr-fleet svg,.tfr-journey svg,.tfr-contact svg{width:1em;height:1em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

.tfr-hero{position:relative;isolation:isolate;overflow:hidden;background:#041225;color:#fff}.tfr-hero::before,.tfr-hero::after{content:"";position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none}.tfr-hero::before{width:560px;height:560px;right:-180px;top:-220px;background:rgba(37,99,235,.24)}.tfr-hero::after{width:460px;height:460px;left:-240px;bottom:-230px;background:rgba(6,182,212,.12)}.tfr-hero-grid{position:relative;z-index:2;min-height:690px;display:grid;grid-template-columns:.9fr 1.1fr;align-items:center;gap:44px;padding-block:72px 100px}.tfr-hero-copy{position:relative;z-index:3}.tfr-badge{display:inline-flex;align-items:center;gap:9px;padding:9px 14px;border:1px solid rgba(147,197,253,.2);border-radius:999px;background:rgba(96,165,250,.09);color:#dbeafe;font-size:.75rem;font-weight:750;backdrop-filter:blur(10px)}.tfr-badge i,.tfr-live-head b i,.tfr-map-live>b i{width:7px;height:7px;border-radius:50%;background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.1)}.tfr-hero h1{max-width:620px;margin:22px 0 0;color:#fff;font-size:clamp(3rem,5.5vw,5rem);line-height:.99;letter-spacing:-.058em}.tfr-hero h1 span{display:block;background:linear-gradient(100deg,#93c5fd,#67e8f9,#60a5fa);-webkit-background-clip:text;background-clip:text;color:transparent}.tfr-hero-copy>p{max-width:590px;margin:25px 0 0;color:#cbd5e1;font-size:1.08rem;line-height:1.8}.tfr-track-card{max-width:650px;margin-top:30px;padding:17px;border:1px solid rgba(255,255,255,.12);border-radius:24px;background:rgba(255,255,255,.08);box-shadow:0 24px 80px rgba(0,0,0,.3);backdrop-filter:blur(16px)}.tfr-track-caption{display:flex;justify-content:space-between;gap:20px;margin:0 4px 10px;color:#f8fafc;font-size:.78rem}.tfr-track-caption small{color:#94a3b8}.tfr-track-row{position:relative;display:grid;grid-template-columns:1fr auto;gap:10px}.tfr-track-row input{width:100%;height:56px;padding:0 18px 0 48px;border:1px solid rgba(226,232,240,.9);border-radius:15px;background:#fff;color:#0f172a;font:inherit;font-weight:700;outline:none}.tfr-input-icon{position:absolute;z-index:2;left:17px;top:19px;color:#2563eb;font-size:19px}.tfr-track-row button{height:56px;display:flex;align-items:center;gap:10px;padding:0 22px;border:0;border-radius:15px;background:#2563eb;color:#fff;font-weight:850;white-space:nowrap;cursor:pointer}.tfr-track-row button svg{font-size:19px}.tfr-trust-row{display:flex;flex-wrap:wrap;gap:14px 22px;margin-top:22px;color:#cbd5e1;font-size:.74rem}.tfr-trust-row span{display:flex;align-items:center;gap:8px}.tfr-trust-row svg{color:#67e8f9;font-size:17px}.tfr-hero-visual{position:relative;min-height:510px;border:1px solid rgba(255,255,255,.12);border-radius:32px;background:#020617;box-shadow:0 32px 90px rgba(0,0,0,.5)}.tfr-hero-visual>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:31px}.tfr-hero-visual::after{content:"";position:absolute;inset:0;border-radius:31px;background:linear-gradient(90deg,rgba(4,18,37,.25),transparent 50%),linear-gradient(0deg,rgba(4,18,37,.6),transparent 45%)}.tfr-live-card{position:absolute;z-index:3;right:24px;bottom:24px;width:min(330px,calc(100% - 36px));padding:20px;border:1px solid rgba(255,255,255,.78);border-radius:21px;background:rgba(255,255,255,.94);color:#0f172a;box-shadow:0 24px 65px rgba(0,0,0,.34);backdrop-filter:blur(14px);animation:tfr-float 5s ease-in-out infinite}.tfr-live-head,.tfr-live-route,.tfr-live-meta{display:flex;align-items:center;justify-content:space-between;gap:16px}.tfr-live-head span,.tfr-live-route span,.tfr-live-meta span{display:grid}.tfr-live-card small{color:#94a3b8;font-size:.65rem}.tfr-live-head strong{margin-top:4px;font-size:.83rem}.tfr-live-head>b,.tfr-map-live>b{display:flex;align-items:center;gap:8px;padding:7px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.64rem}.tfr-live-route{margin-top:18px}.tfr-live-route span:last-child{text-align:right}.tfr-live-route strong{font-size:.82rem}.tfr-live-route em{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#2563eb;color:#fff;font-size:19px}.tfr-progress{height:5px;margin-top:19px;border-radius:10px;background:#e2e8f0;overflow:hidden}.tfr-progress i{display:block;width:62%;height:100%;background:linear-gradient(90deg,#2563eb,#06b6d4);animation:tfr-progress 2.4s ease-out}.tfr-live-meta{margin-top:18px;padding-top:15px;border-top:1px solid #e2e8f0}.tfr-live-meta span:last-child{text-align:right}.tfr-live-meta strong{margin-top:4px;font-size:.68rem}@keyframes tfr-float{50%{transform:translateY(-7px)}}@keyframes tfr-progress{from{width:0}}

.tfr-stats-wrap{position:relative;z-index:5;margin-top:-42px}.tfr-stats{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;border:1px solid #e2e8f0;border-radius:25px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.13)}.tfr-stats article{position:relative;display:flex;gap:14px;padding:27px 23px}.tfr-stats article+article{border-left:1px solid #e2e8f0}.tfr-stats article>span{width:45px;height:45px;display:grid;flex:0 0 auto;place-items:center;border-radius:15px;background:#eff6ff;color:#2563eb;font-size:22px}.tfr-stats article>div{display:grid;gap:3px}.tfr-stats strong{color:#0f172a;font-size:1.75rem;line-height:1}.tfr-stats b{color:#1e293b;font-size:.78rem}.tfr-stats small{margin-top:5px;color:#94a3b8;font-size:.64rem;line-height:1.5}

.tfr-service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.tfr-service-card{overflow:hidden;border:1px solid #e2e8f0;border-radius:26px;background:#fff;box-shadow:0 12px 38px rgba(15,23,42,.07);transition:.35s}.tfr-service-card:hover{transform:translateY(-8px);box-shadow:0 26px 70px rgba(37,99,235,.15)}.tfr-service-image{position:relative;height:220px;overflow:hidden}.tfr-service-image img{width:100%;height:100%;object-fit:cover;transition:transform .7s}.tfr-service-card:hover img{transform:scale(1.06)}.tfr-service-image>div{position:absolute;inset:0;background:linear-gradient(0deg,rgba(2,6,23,.85),transparent 65%)}.tfr-service-image>span{position:absolute;right:20px;bottom:18px;width:45px;height:45px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:15px;background:rgba(255,255,255,.14);color:#fff;font-size:23px;backdrop-filter:blur(10px)}.tfr-service-image h3{position:absolute;left:22px;right:76px;bottom:20px;margin:0;color:#fff;font-size:1.45rem}.tfr-service-copy{padding:23px}.tfr-service-copy p{min-height:74px;margin:0;color:#64748b;font-size:.84rem;line-height:1.75}.tfr-service-copy a{display:inline-flex;align-items:center;gap:8px;margin-top:17px;color:#2563eb;font-size:.78rem;font-weight:850;text-decoration:none}.tfr-service-copy a svg{font-size:17px}

.tfr-network{position:relative;isolation:isolate;overflow:hidden;padding:90px 0;background:#041225;color:#fff}.tfr-network::before{content:"";position:absolute;width:500px;height:500px;right:-150px;bottom:-220px;border-radius:50%;background:rgba(37,99,235,.17);filter:blur(90px)}.tfr-network-grid{position:relative;z-index:2;display:grid;grid-template-columns:.72fr 1.28fr;gap:60px;align-items:center}.tfr-network h2{margin:0;color:#fff;font-size:clamp(2.1rem,4vw,3.45rem);line-height:1.08;letter-spacing:-.045em}.tfr-network-copy>p:not(.tfr-eyebrow){margin:22px 0 0;color:#cbd5e1;line-height:1.8}.tfr-network .tfr-eyebrow{color:#67e8f9}.tfr-network-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:30px}.tfr-network-stats span{display:grid;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(255,255,255,.055)}.tfr-network-stats b{font-size:1rem}.tfr-network-stats small{margin-top:5px;color:#94a3b8;font-size:.62rem;text-transform:uppercase;letter-spacing:.08em}.tfr-network ul{display:grid;gap:12px;margin:26px 0 0;padding:0;list-style:none}.tfr-network li{display:flex;align-items:center;gap:10px;color:#cbd5e1;font-size:.78rem}.tfr-network li svg{color:#67e8f9;font-size:18px}.tfr-map-card{position:relative;min-height:505px;overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:30px;background:#020617;box-shadow:0 30px 90px rgba(0,0,0,.45)}.tfr-map-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.tfr-map-card::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(4,18,37,.65),transparent 55%)}.tfr-map-card>i{position:absolute;z-index:2}.tfr-map-card>i>b{display:block;width:11px;height:11px;border:2px solid #fff;border-radius:50%;background:#3b82f6;box-shadow:0 0 18px #38bdf8}.tfr-map-card>i>span{position:absolute;left:9px;top:8px;padding:4px 8px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:rgba(2,6,23,.72);color:#fff;font-size:.55rem;white-space:nowrap}.tfr-map-live{position:absolute;z-index:3;right:18px;bottom:18px;width:245px;padding:17px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:rgba(2,6,23,.82);backdrop-filter:blur(14px)}.tfr-map-live>span{display:grid}.tfr-map-live>span small{color:#67e8f9;font-size:.58rem;font-weight:800;text-transform:uppercase}.tfr-map-live>span strong{font-size:1.45rem}.tfr-map-live>b{position:absolute;right:15px;top:15px;background:rgba(52,211,153,.1);color:#6ee7b7}.tfr-map-live p{margin:10px 0 0;color:#cbd5e1;font-size:.65rem;line-height:1.5}

.tfr-fleet{background:#fff}.tfr-fleet-grid{display:grid;grid-template-columns:repeat(12,1fr);gap:20px}.tfr-fleet-card{position:relative;isolation:isolate;min-height:325px;overflow:hidden;border-radius:27px;background:#020617;box-shadow:0 18px 55px rgba(15,23,42,.13);transition:.35s}.tfr-fleet-card:hover{transform:translateY(-7px)}.tfr-fleet-1,.tfr-fleet-2{grid-column:span 6;min-height:380px}.tfr-fleet-3{grid-column:span 5}.tfr-fleet-4{grid-column:span 4}.tfr-fleet-5{grid-column:span 3}.tfr-fleet-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .7s}.tfr-fleet-card:hover>img{transform:scale(1.05)}.tfr-fleet-card>div{position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(2,6,23,.96),rgba(2,6,23,.05) 80%)}.tfr-fleet-card>span{position:absolute;left:22px;bottom:126px;width:43px;height:43px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:14px;background:rgba(255,255,255,.13);color:#fff;font-size:21px;backdrop-filter:blur(10px)}.tfr-fleet-card h3{position:absolute;left:22px;right:22px;bottom:82px;margin:0;color:#fff;font-size:1.35rem}.tfr-fleet-card p{position:absolute;left:22px;right:22px;bottom:20px;margin:0;color:#cbd5e1;font-size:.72rem;line-height:1.55}

.tfr-journey{background:#f1f5f9}.tfr-steps{position:relative;display:grid;grid-template-columns:repeat(7,1fr);gap:12px}.tfr-steps::before{content:"";position:absolute;left:6%;right:6%;top:31px;height:4px;border-radius:5px;background:linear-gradient(90deg,#2563eb,#06b6d4,#10b981)}.tfr-steps article{position:relative;text-align:center}.tfr-steps article>div{position:relative;width:64px;height:64px;margin:0 auto;z-index:2}.tfr-steps article>div>span{width:64px;height:64px;display:grid;place-items:center;border:5px solid #e2e8f0;border-radius:50%;background:#2563eb;color:#fff;font-size:25px;box-shadow:0 10px 30px rgba(37,99,235,.25)}.tfr-steps article>div>b{position:absolute;right:-3px;top:-6px;width:22px;height:22px;display:grid;place-items:center;border:2px solid #fff;border-radius:50%;background:#0f172a;color:#fff;font-size:.57rem}.tfr-steps h3{margin:20px 0 0;color:#0f172a;font-size:.8rem}.tfr-steps p{margin:9px 0 0;color:#64748b;font-size:.65rem;line-height:1.55}.tfr-track-cta{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px;margin-top:48px;padding:24px;border-radius:24px;background:#06172f;color:#fff}.tfr-track-cta>span{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:rgba(59,130,246,.17);color:#bfdbfe;font-size:22px}.tfr-track-cta h3{margin:0;font-size:1.05rem}.tfr-track-cta p{margin:6px 0 0;color:#cbd5e1;font-size:.76rem}.tfr-track-cta a{display:flex;align-items:center;gap:8px;padding:12px 18px;border-radius:999px;background:#fff;color:#1e40af;font-size:.75rem;font-weight:850;text-decoration:none}.tfr-track-cta a svg{font-size:17px}

.tfr-testimonials{background:#fff}.tfr-review-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.tfr-review-grid article{padding:28px;border:1px solid #e2e8f0;border-radius:25px;background:#fff;box-shadow:0 12px 38px rgba(15,23,42,.07)}.tfr-stars{color:#f59e0b;letter-spacing:4px}.tfr-review-grid blockquote{min-height:118px;margin:18px 0 25px;color:#334155;font-size:.88rem;line-height:1.8}.tfr-review-grid footer{display:flex;align-items:center;gap:13px}.tfr-review-grid footer>span{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:#2563eb;color:#fff;font-size:.72rem;font-weight:850}.tfr-review-grid footer>div{display:grid}.tfr-review-grid footer strong{color:#0f172a;font-size:.8rem}.tfr-review-grid footer small{margin-top:4px;color:#94a3b8;font-size:.63rem}

.tfr-contact{padding:30px 0 88px;background:#fff}.tfr-contact-card{position:relative;isolation:isolate;min-height:440px;display:grid;grid-template-columns:1fr 300px;align-items:center;gap:60px;overflow:hidden;padding:60px;border-radius:30px;color:#fff;box-shadow:0 28px 80px rgba(15,23,42,.2)}.tfr-contact-card>img,.tfr-contact-overlay{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}.tfr-contact-overlay{z-index:-1;background:linear-gradient(90deg,rgba(3,21,44,.97) 0%,rgba(3,21,44,.84) 50%,rgba(3,21,44,.52) 100%)}.tfr-contact .tfr-eyebrow{color:#67e8f9}.tfr-contact h2{max-width:650px;margin:0;color:#fff;font-size:clamp(2.2rem,4vw,3.7rem);line-height:1.05;letter-spacing:-.045em}.tfr-contact-card>div>p:not(.tfr-eyebrow){max-width:650px;margin:18px 0 0;color:#cbd5e1;line-height:1.75}.tfr-contact nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}.tfr-contact nav a,.tfr-contact aside>a{padding:12px 18px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:#fff;color:#1e40af;font-size:.73rem;font-weight:850;text-decoration:none}.tfr-contact nav a+ a{background:rgba(255,255,255,.08);color:#fff;backdrop-filter:blur(10px)}.tfr-contact aside{padding:25px;border:1px solid rgba(255,255,255,.15);border-radius:22px;background:rgba(2,6,23,.72);backdrop-filter:blur(14px)}.tfr-contact aside>span{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:rgba(59,130,246,.2);color:#bfdbfe;font-size:22px}.tfr-contact aside small{display:block;margin-top:18px;color:#94a3b8}.tfr-contact aside strong{display:block;margin-top:4px;font-size:2rem}.tfr-contact aside p{color:#cbd5e1;font-size:.74rem;line-height:1.6}.tfr-contact aside>a{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:18px}.tfr-contact aside>a svg{font-size:16px}

.public-header-inner{width:min(1180px,92vw);min-height:74px;gap:25px}.public-logo-image{max-height:44px;max-width:170px}.public-nav{gap:28px}.public-nav a{min-height:74px;font-size:.76rem}.public-nav a.is-active::after{bottom:13px;height:2px}.public-actions{gap:14px}.public-signin{font-size:.76rem}.public-register{min-height:42px;padding:0 17px;border-radius:999px;font-size:.72rem}.language-switcher-button{min-height:40px!important;padding:0 12px!important;border-radius:10px!important;font-size:.68rem!important}.public-menu-button{display:none;width:40px;height:40px;padding:10px;border:1px solid #e2e8f0;border-radius:11px;background:#fff}.public-menu-button span{display:block;height:2px;margin:4px 0;border-radius:2px;background:#0f172a}.public-mobile-menu{position:fixed;z-index:99;left:4vw;right:4vw;top:72px;padding:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;box-shadow:0 25px 70px rgba(15,23,42,.18)}.public-mobile-menu[hidden]{display:none}.public-mobile-menu a{display:block;padding:12px 14px;border-radius:10px;color:#334155;font-size:.82rem;font-weight:750;text-decoration:none}.public-mobile-menu a:hover{background:#eff6ff;color:#2563eb}.public-mobile-menu .button{margin-top:6px;background:#2563eb;color:#fff;text-align:center}

@media(max-width:1050px){.public-nav{gap:17px}.public-actions{gap:8px}.public-header-inner{width:min(96vw,1180px)}.tfr-hero-grid{grid-template-columns:1fr;min-height:auto;padding-top:65px}.tfr-hero-copy{max-width:760px}.tfr-hero-visual{min-height:520px}.tfr-stats{grid-template-columns:1fr 1fr}.tfr-stats article:nth-child(3){border-left:0;border-top:1px solid #e2e8f0}.tfr-stats article:nth-child(4){border-top:1px solid #e2e8f0}.tfr-network-grid{grid-template-columns:1fr}.tfr-network-copy{max-width:760px}.tfr-map-card{min-height:570px}.tfr-steps{grid-template-columns:repeat(4,1fr);gap:28px 14px}.tfr-steps::before{display:none}.tfr-contact-card{grid-template-columns:1fr 260px;padding:42px}}
@media(max-width:800px){.public-header-inner{min-height:68px}.public-nav,.public-signin{display:none}.public-register{display:none}.public-menu-button{display:block}.public-actions{gap:7px}.tfr-section{padding:66px 0}.tfr-hero-grid{padding:45px 0 92px;gap:35px}.tfr-hero h1{font-size:clamp(2.65rem,12vw,4.2rem)}.tfr-track-row{grid-template-columns:1fr}.tfr-track-row button{justify-content:center}.tfr-hero-visual{min-height:430px}.tfr-service-grid{grid-template-columns:1fr 1fr}.tfr-split-head{grid-template-columns:1fr;gap:5px}.tfr-split-head>p{justify-self:start}.tfr-fleet-1,.tfr-fleet-2,.tfr-fleet-3,.tfr-fleet-4,.tfr-fleet-5{grid-column:span 6}.tfr-steps{grid-template-columns:1fr 1fr}.tfr-track-cta{grid-template-columns:auto 1fr}.tfr-track-cta>a{grid-column:1/-1;justify-content:center}.tfr-review-grid{grid-template-columns:1fr}.tfr-review-grid blockquote{min-height:0}.tfr-contact-card{grid-template-columns:1fr;gap:28px;padding:32px}.tfr-contact aside{max-width:340px}}
@media(max-width:520px){.tfr-shell{width:min(92vw,440px)}.tfr-section{padding:56px 0}.tfr-section-head{margin-bottom:32px}.tfr-section-head h2,.tfr-split-head h2{font-size:2rem}.tfr-hero-grid{padding-top:34px}.tfr-hero h1{font-size:2.7rem}.tfr-hero-copy>p{font-size:.92rem}.tfr-track-card{padding:12px;border-radius:18px}.tfr-track-caption small{display:none}.tfr-trust-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.tfr-hero-visual{min-height:350px;border-radius:23px}.tfr-hero-visual>img,.tfr-hero-visual::after{border-radius:22px}.tfr-live-card{left:13px;right:13px;bottom:13px;width:auto;padding:15px}.tfr-live-meta{display:none}.tfr-stats-wrap{margin-top:-55px}.tfr-stats{grid-template-columns:1fr;border-radius:20px}.tfr-stats article{padding:20px}.tfr-stats article+article,.tfr-stats article:nth-child(3){border-left:0;border-top:1px solid #e2e8f0}.tfr-service-grid{grid-template-columns:1fr}.tfr-service-image{height:215px}.tfr-network{padding:60px 0}.tfr-network-stats{grid-template-columns:1fr}.tfr-map-card{min-height:360px}.tfr-map-live{left:12px;right:12px;bottom:12px;width:auto}.tfr-map-card>i>span{display:none}.tfr-fleet-grid{grid-template-columns:1fr}.tfr-fleet-1,.tfr-fleet-2,.tfr-fleet-3,.tfr-fleet-4,.tfr-fleet-5{grid-column:auto;min-height:330px}.tfr-steps{grid-template-columns:1fr}.tfr-steps article{display:grid;grid-template-columns:64px 1fr;text-align:left;column-gap:15px}.tfr-steps article>div{grid-row:1/3}.tfr-steps h3{margin-top:7px}.tfr-steps p{margin-top:4px}.tfr-track-cta{grid-template-columns:1fr}.tfr-track-cta>span{display:none}.tfr-track-cta>a{grid-column:auto}.tfr-contact{padding-bottom:55px}.tfr-contact-card{min-height:560px;padding:25px}.tfr-contact h2{font-size:2.25rem}.tfr-contact nav{display:grid}.tfr-contact nav a{text-align:center}.public-footer-main{padding-top:45px}}

/* =========================================================
   MOBILE AUTH KEYBOARD / PASSWORD CONTROL FIX — 2026-08-18
========================================================= */
@media(max-width:600px){
  html,
  body.public-body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }

  .public-main,
  .public-container,
  .public-container-home,
  .tf-auth-page,
  .tf-auth-form-side,
  .tf-auth-form-wrap,
  .tf-auth-form,
  .tf-auth-field,
  .tf-auth-input-wrap{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
  }

  .tf-auth-page{
    overflow-x:clip;
  }

  .tf-auth-form-side{
    padding-left:max(18px,env(safe-area-inset-left));
    padding-right:max(18px,env(safe-area-inset-right));
  }

  .tf-auth-input-wrap input{
    min-width:0;
    max-width:100%;
    font-size:16px;
  }

  .tf-password-wrap input{
    padding-right:54px!important;
  }

  .tf-password-toggle{
    right:8px;
    z-index:3;
    width:40px;
    height:40px;
    min-width:40px;
    min-height:40px;
    touch-action:manipulation;
  }

  .tf-auth-field:focus-within{
    scroll-margin-top:90px;
    scroll-margin-bottom:120px;
  }
}

/* =========================================================
   MOBILE HEADER MENU + LANGUAGE SELECTOR — 2026-08-19
========================================================= */
.public-mobile-language{
  display:none;
}

@media(max-width:800px){
  .public-actions>.language-switcher{
    display:none!important;
  }

  .public-signin{
    display:inline-flex!important;
    align-items:center;
    min-height:40px;
    padding:0 5px;
    white-space:nowrap;
  }

  .public-mobile-menu{
    left:max(14px,env(safe-area-inset-left));
    right:max(14px,env(safe-area-inset-right));
    top:calc(68px + env(safe-area-inset-top));
    max-height:calc(100dvh - 84px - env(safe-area-inset-top));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    padding:16px;
    border-radius:24px;
  }

  .public-mobile-menu>a:not(.button){
    padding:13px 14px;
  }

  .public-mobile-language{
    display:block;
    margin:8px 0 14px;
    padding:14px;
    border-top:1px solid #e2e8f0;
    border-bottom:1px solid #e2e8f0;
  }

  .public-mobile-language-heading{
    display:flex;
    align-items:center;
    gap:8px;
    margin-bottom:11px;
    color:#334155;
    font-size:.76rem;
  }

  .public-mobile-language-heading>span{
    font-size:1rem;
  }

  .public-mobile-language-heading small{
    margin-left:auto;
    padding:4px 7px;
    border-radius:999px;
    background:#eff6ff;
    color:#2563eb;
    font-size:.62rem;
    font-weight:900;
  }

  .public-mobile-language-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .public-mobile-language-grid a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    min-width:0;
    padding:10px!important;
    border:1px solid #e2e8f0;
    border-radius:11px;
    background:#fff;
    color:#475569;
    font-size:.69rem;
    font-weight:750;
  }

  .public-mobile-language-grid a.is-active{
    border-color:#93c5fd;
    background:#eff6ff;
    color:#1d4ed8;
  }

  .public-menu-button[aria-expanded="true"] span:nth-child(1){
    transform:translateY(6px) rotate(45deg);
  }

  .public-menu-button[aria-expanded="true"] span:nth-child(2){
    opacity:0;
  }

  .public-menu-button[aria-expanded="true"] span:nth-child(3){
    transform:translateY(-6px) rotate(-45deg);
  }

  .public-menu-button span{
    transition:transform .2s ease,opacity .2s ease;
  }
}

/* =========================================================
   FINAL REGISTRATION + DESKTOP PORTAL HEADER FIX — 2026-08-19
========================================================= */

.tf-auth-check,
.tf-auth-check span{
  color:#111827!important;
}

@media(min-width:920px){
  .portal-topbar{
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:282px!important;
    width:auto!important;
    max-width:none!important;
    z-index:80!important;
    min-height:76px;
    transition:left .3s ease!important;
  }

  .portal-shell.sidebar-collapsed .portal-topbar{
    left:80px!important;
  }

  .portal-main{
    padding-top:76px!important;
  }

  /* Keep the complete administrator/customer action area visible
     after the desktop header is changed from sticky to fixed. */
  .portal-topbar-left{
    min-width:0!important;
    flex:1 1 auto!important;
  }

  .portal-topbar-actions{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    overflow:visible!important;
    opacity:1!important;
    visibility:visible!important;
  }

  .portal-topbar-actions .theme-toggle,
  .portal-topbar-actions .topbar-notification-button{
    display:inline-flex!important;
    flex:0 0 auto!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
}

@media(min-width:920px) and (max-width:1120px){
  .portal-topbar{
    left:254px!important;
  }

  .portal-shell.sidebar-collapsed .portal-topbar{
    left:80px!important;
  }
}

@media(max-width:390px){
  .public-header-inner{
    width:calc(100% - 20px);
  }

  .public-signin{
    font-size:.68rem;
  }

  .public-menu-button{
    width:38px;
    height:38px;
  }
}

/* =========================================================
   FIXED FULL-SCREEN MOBILE NAVIGATION — 2026-08-19
========================================================= */
@media(max-width:800px){
  body.public-menu-open{
    overflow:hidden!important;
    touch-action:none;
  }

  body.public-menu-open .public-header{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1001;
    background:#fff;
  }

  .public-mobile-menu{
    position:fixed;
    z-index:1000;
    inset:68px 0 0;
    width:100%;
    max-width:none;
    max-height:none;
    margin:0;
    padding:24px max(24px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));
    overflow-x:hidden;
    overflow-y:auto;
    overscroll-behavior:contain;
    border:0;
    border-top:1px solid #e2e8f0;
    border-radius:0;
    background:#fff;
    box-shadow:none;
    -webkit-overflow-scrolling:touch;
  }

  .public-mobile-menu[hidden]{
    display:none!important;
  }

  .public-mobile-menu>a:not(.button){
    display:flex;
    align-items:center;
    min-height:52px;
    padding:12px 8px;
    border-bottom:1px solid #f1f5f9;
    border-radius:0;
    color:#334155;
    font-size:.87rem;
    font-weight:800;
  }

  .public-mobile-menu>a:not(.button):hover,
  .public-mobile-menu>a:not(.button):focus{
    background:transparent;
    color:#2563eb;
  }

  .public-mobile-language{
    margin:14px 0 18px;
    padding:16px 0 18px;
  }

  .public-mobile-menu>.button{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:54px;
    margin-top:4px;
    border-radius:14px;
  }
}

/* Protected package verification media */
.package-media-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:18px;margin:20px 0}.package-media-card{overflow:hidden;border:1px solid var(--border,#dce5f0);border-radius:18px;background:var(--surface,#fff);box-shadow:0 10px 30px rgba(15,23,42,.06)}.package-media-card img,.package-media-card video{display:block;width:100%;height:210px;object-fit:cover;background:#071b36}.package-media-meta{display:flex;flex-direction:column;gap:4px;padding:14px}.package-media-meta small{color:var(--muted,#64748b)}.package-media-card form{padding:0 14px 14px}.package-media-later-form{margin-top:22px;padding-top:22px;border-top:1px solid var(--border,#dce5f0)}@media(max-width:600px){.package-media-grid{grid-template-columns:1fr}.package-media-card img,.package-media-card video{height:auto;max-height:360px}}
.trackflo-live-toast{position:fixed;z-index:10000;right:20px;bottom:20px;width:min(360px,calc(100vw - 32px));display:flex;flex-direction:column;gap:5px;padding:16px 18px;color:#fff;background:#071b36;border:1px solid rgba(96,165,250,.35);border-radius:16px;box-shadow:0 22px 55px rgba(2,8,23,.35);opacity:0;transform:translateY(18px);transition:.25s ease}.trackflo-live-toast.is-visible{opacity:1;transform:none}.trackflo-live-toast strong{font-size:15px}.trackflo-live-toast span{font-size:13px;color:#cbd5e1;line-height:1.45}
