/* ============================================================
   TPS Frontend CSS  — Tote Partner System
   Light theme for forms | Dark SaaS for dashboards
   Brand: #53688a (slate-blue) | #010405 (near-black)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Global Reset inside TPS wrapper ─────────────────────── */
.tps-wrapper {
    --tps-primary: #53688a;
    --tps-primary-2: #6b84aa;
    --tps-dark: #010405;
    --tps-dark-card: #0d1117;
    --tps-dark-card-2: #131b24;
    --tps-dark-border: rgba(255, 255, 255, 0.08);
    --tps-dark-text: #e2e8f0;
    --tps-dark-sub: #94a3b8;
    --tps-low: #dc2626;
    --tps-success: #22c55e;
    --tps-warning: #f59e0b;
    --tps-radius: 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    box-sizing: border-box;
}

.tps-wrapper *,
.tps-wrapper *::before,
.tps-wrapper *::after {
    box-sizing: border-box;
}

/* ============================================================
   APPLICATION FORM — Light / Clean Theme
   ============================================================ */

.tps-app-wrapper {
    background: #f8f9fc;
    min-height: 100vh;
    padding: 40px 20px;
    font-family: 'Inter', -apple-system, sans-serif;
}

.tps-app-container {
    max-width: 720px;
    margin: 0 auto;
}

/* ── Form Header ──────────────────────────────────────────── */
.tps-app-hero {
    text-align: center;
    margin-bottom: 36px;
}

.tps-app-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(83, 104, 138, 0.1);
    color: #53688a;
    border: 1px solid rgba(83, 104, 138, 0.25);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.tps-app-hero h1 {
    font-size: 32px;
    font-weight: 800;
    color: #010405;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.tps-app-hero p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* ── Form Sections ────────────────────────────────────────── */
.tps-form-block {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tps-form-block-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f1f5;
}

.tps-form-block-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #010405;
    margin: 0 0 4px;
}

.tps-form-block-header p {
    font-size: 13px;
    color: #9ca3af;
    margin: 0;
}

/* ── Form Fields ──────────────────────────────────────────── */
.tps-field-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tps-field-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

.tps-field-full {
    grid-column: 1 / -1;
}

.tps-field {
    margin-bottom: 16px;
}

.tps-field:last-child {
    margin-bottom: 0;
}

.tps-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 7px;
}

.tps-field label .req {
    color: #53688a;
    margin-left: 2px;
}

.tps-field input[type=text],
.tps-field input[type=email],
.tps-field input[type=tel],
.tps-field input[type=number],
.tps-field select,
.tps-field textarea {
    width: 100%;
    background: #fff;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 11px 14px;
    color: #1f2937;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 1.4;
}

.tps-field input::placeholder,
.tps-field textarea::placeholder {
    color: #c4c9d4;
}

.tps-field input:focus,
.tps-field select:focus,
.tps-field textarea:focus {
    outline: none;
    border-color: #53688a;
    box-shadow: 0 0 0 3px rgba(83, 104, 138, 0.12);
}

.tps-field textarea {
    resize: vertical;
}

/* Mapbox geocoder override for light mode */
.tps-app-wrapper .mapboxgl-ctrl-geocoder {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: 1.5px solid #d1d5db !important;
    border-radius: 10px !important;
    background: #fff !important;
}

.tps-app-wrapper .mapboxgl-ctrl-geocoder input[type=text] {
    color: #1f2937 !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 11px 40px 11px 46px !important;
    height: auto !important;
}

.tps-app-wrapper .mapboxgl-ctrl-geocoder--icon-search {
    top: 50%;
    transform: translateY(-50%);
}

.tps-app-wrapper .suggestions {
    border-radius: 10px !important;
    border: 1px solid #e5e7eb !important;
}

/* ── Fuel Type Cards ──────────────────────────────────────── */
.tps-fuel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.tps-fuel-card {
    position: relative;
    cursor: pointer;
}

.tps-fuel-card input[type=checkbox],
.tps-fuel-card input[type=radio] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tps-fuel-card-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.tps-fuel-card-inner::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    background: #fff;
    transition: all 0.2s;
}

.tps-fuel-card input:checked~.tps-fuel-card-inner {
    border-color: #53688a;
    background: rgba(83, 104, 138, 0.05);
    box-shadow: 0 0 0 3px rgba(83, 104, 138, 0.1);
}

.tps-fuel-card input:checked~.tps-fuel-card-inner::after {
    background: #53688a;
    border-color: #53688a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M2 6l3 3 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.tps-fuel-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(83, 104, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #53688a;
    font-size: 16px;
    flex-shrink: 0;
}

.tps-fuel-card-text {
    flex: 1;
    min-width: 0;
}

.tps-fuel-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #010405;
    margin-bottom: 3px;
}

.tps-fuel-card-desc {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}

/* ── Agreement ────────────────────────────────────────────── */
.tps-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
}

.tps-agreement input[type=checkbox] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    accent-color: #53688a;
    margin-top: 1px;
    cursor: pointer;
}

.tps-agreement-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* ── Submit Button ────────────────────────────────────────── */
.tps-submit-wrap {
    margin-top: 8px;
}

.tps-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #53688a, #6b84aa);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(83, 104, 138, 0.35);
}

.tps-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(83, 104, 138, 0.45);
}

.tps-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ── Trust Badges ─────────────────────────────────────────── */
.tps-trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.tps-trust-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9ca3af;
}

.tps-trust-badge i {
    color: #53688a;
}

/* ── Form Alerts ──────────────────────────────────────────── */
.tps-form-alert {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
}

.tps-form-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

.tps-form-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* ── Access Wall (not a seller) ───────────────────────────── */
.tps-access-wall {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.tps-access-wall i {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 20px;
    display: block;
}

.tps-access-wall h3 {
    font-size: 20px;
    font-weight: 700;
    color: #010405;
    margin: 0 0 10px;
}

.tps-access-wall p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 24px;
    line-height: 1.6;
}

.tps-access-wall .tps-btn-primary-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #53688a, #6b84aa);
    color: #fff;
    padding: 11px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(83, 104, 138, 0.3);
}

/* ============================================================
   SAVINGS CALCULATOR — Light, modern card
   ============================================================ */

.tps-calculator-wrap {
    padding: 60px 20px;
    text-align: center;
    background: #f8f9fc;
    font-family: 'Inter', sans-serif;
}

.tps-calc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(83, 104, 138, 0.1);
    color: #53688a;
    border: 1px solid rgba(83, 104, 138, 0.2);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.tps-calc-title {
    font-size: 36px;
    font-weight: 800;
    color: #010405;
    margin: 0 0 10px;
    letter-spacing: -0.5px;
}

.tps-calc-subtitle {
    font-size: 15px;
    color: #6b7280;
    margin: 0 0 40px;
}

.tps-calc-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 36px;
    max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    text-align: left;
}

.tps-calc-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tps-calc-slider-label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
}

.tps-calc-slider-val {
    font-size: 22px;
    font-weight: 800;
    color: #53688a;
}

.tps-calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    margin-bottom: 8px;
}

.tps-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #53688a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(83, 104, 138, 0.4);
    border: 3px solid #fff;
}

.tps-calc-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #53688a;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(83, 104, 138, 0.4);
}

.tps-calc-slider-footnote {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #c4c9d4;
    margin-bottom: 28px;
}

.tps-calc-results {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
    margin-bottom: 20px;
}

.tps-calc-box {
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.tps-calc-box-station {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.tps-calc-box-station .tps-calc-box-label {
    color: #ef4444;
}

.tps-calc-box-station .tps-calc-box-amount {
    color: #dc2626;
}

.tps-calc-box-partner {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.tps-calc-box-partner .tps-calc-box-label {
    color: #6b7280;
}

.tps-calc-box-partner .tps-calc-box-amount {
    color: #374151;
}

.tps-calc-box-savings {
    background: #010405;
    border: 1px solid #010405;
}

.tps-calc-box-savings .tps-calc-box-label {
    color: rgba(255, 255, 255, 0.6);
}

.tps-calc-box-savings .tps-calc-box-amount {
    color: #fff;
}

.tps-calc-box-savings .tps-calc-box-sub {
    color: rgba(255, 255, 255, 0.5);
}

.tps-calc-box-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}

.tps-calc-box-amount {
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.tps-calc-box-amount-mo {
    font-size: 14px;
    font-weight: 400;
}

.tps-calc-box-sub {
    font-size: 11px;
    color: #9ca3af;
}

.tps-calc-footer-note {
    background: #f9fafb;
    border: 1px solid #f0f1f5;
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.tps-calc-footer-note strong {
    color: #010405;
}

/* ============================================================
   VENDOR DASHBOARD — Dark SaaS Theme
   ============================================================ */

.tps-vendor-dashboard,
.tps-staff-dashboard {
    display: flex;
    min-height: 100vh;
    background: #010405;
    color: #e2e8f0;
    font-family: 'Inter', sans-serif;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.tps-sidebar {
    width: 260px;
    min-height: 100vh;
    background: #0d1117;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    flex-shrink: 0;
}

.tps-sidebar-brand {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}

.tps-sidebar-brand i {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #53688a, #6b84aa);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.tps-sidebar-user {
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tps-sidebar-user img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(83, 104, 138, 0.5);
}

.tps-user-name {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    display: block;
}

.tps-user-role {
    font-size: 11px;
    color: #53688a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tps-nav {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    flex: 1;
}

.tps-nav li {
    padding: 2px 12px;
}

.tps-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.tps-nav-link:hover {
    background: rgba(83, 104, 138, 0.15);
    color: #fff;
}

.tps-nav-link.active {
    background: linear-gradient(135deg, rgba(83, 104, 138, 0.25), rgba(83, 104, 138, 0.12));
    color: #fff;
}

.tps-nav-link.active i {
    color: #6b84aa;
}

.tps-nav-link i {
    width: 18px;
    text-align: center;
    font-size: 14px;
}

.tps-nav-link.tps-logout:hover {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
}

.tps-badge {
    background: #f59e0b;
    color: #fff;
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 700;
    margin-left: auto;
}

/* ── Main Content ─────────────────────────────────────────── */
.tps-main {
    flex: 1;
    padding: 32px 36px;
    overflow-y: auto;
    min-width: 0;
}

.tps-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.tps-topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tps-alert-badge {
    background: rgba(220, 38, 38, 0.15);
    color: #ef4444;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.25);
    animation: tpsGlow 2s infinite;
}

@keyframes tpsGlow {

    0%,
    100% {
        box-shadow: none;
    }

    50% {
        box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
    }
}

.tps-notif-icon {
    position: relative;
    width: 38px;
    height: 38px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #94a3b8;
    transition: all 0.2s;
}

.tps-notif-icon:hover {
    border-color: #53688a;
    color: #53688a;
}

.tps-notif-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background: #f59e0b;
    border-radius: 50%;
    border: 2px solid #0d1117;
}

.tps-menu-toggle {
    display: none;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    padding: 9px 13px;
    border-radius: 9px;
    cursor: pointer;
    font-size: 15px;
}

/* ── Page System ──────────────────────────────────────────── */
.tps-page {
    display: none;
}

.tps-page.active {
    display: block;
    animation: tpsPageIn 0.25s ease;
}

@keyframes tpsPageIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tps-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
    letter-spacing: -0.3px;
}

.tps-section-title {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 28px 0 14px;
}

/* ── Stats Grid ───────────────────────────────────────────── */
.tps-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.tps-stat-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.tps-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #53688a, transparent);
    opacity: 0;
    transition: opacity 0.2s;
}

.tps-stat-card:hover::before {
    opacity: 1;
}

.tps-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tps-stat-card.is-alert {
    border-color: rgba(245, 158, 11, 0.35);
}

.tps-stat-card.is-alert::before {
    background: linear-gradient(90deg, #f59e0b, transparent);
    opacity: 1;
}

.tps-stat-card.is-danger {
    border-color: rgba(220, 38, 38, 0.35);
}

.tps-stat-card.is-danger::before {
    background: linear-gradient(90deg, #dc2626, transparent);
    opacity: 1;
}

.stat-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #53688a, #6b84aa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.tps-stat-card.is-alert .stat-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
}

.tps-stat-card.is-danger .stat-icon {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ── Tank Cards ───────────────────────────────────────────── */
.tps-tank-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 14px;
}

.tps-tank-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
    position: relative;
    transition: all 0.2s;
}

.tps-tank-card:hover {
    border-color: rgba(83, 104, 138, 0.4);
}

.tps-tank-card.is-low {
    border-color: rgba(220, 38, 38, 0.4);
    background: rgba(220, 38, 38, 0.04);
}

.tps-low-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc2626;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    animation: tpsLowPulse 2s infinite;
}

@keyframes tpsLowPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.tank-id {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.tank-fuel {
    font-size: 11px;
    color: #53688a;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.tps-tank-partner {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 3px;
}

.tps-fuel-pill {
    background: rgba(83, 104, 138, 0.15);
    color: #6b84aa;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.tank-bar-wrap {
    height: 7px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.tank-bar {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #53688a, #6b84aa);
    transition: width 0.6s ease;
}

.tps-tank-card.is-low .tank-bar {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.tank-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #94a3b8;
}

.tps-tank-meta {
    margin-top: 12px;
    font-size: 11px;
    color: #94a3b8;
}

.tps-tank-meta i {
    margin-right: 4px;
    color: #53688a;
}

.tps-tank-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.tps-tank-actions {
    margin-top: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ── Cards (Dashboard) ────────────────────────────────────── */
.tps-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 18px;
}

.tps-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 18px;
}

/* ── Buttons (Dark Dashboard) ─────────────────────────────── */
.tps-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    line-height: 1.2;
    font-family: 'Inter', sans-serif;
}

.tps-btn-primary {
    background: linear-gradient(135deg, #53688a, #6b84aa);
    color: #fff;
    box-shadow: 0 4px 12px rgba(83, 104, 138, 0.3);
}

.tps-btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.tps-btn-secondary {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tps-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tps-btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
}

.tps-btn-success:hover {
    filter: brightness(1.1);
}

.tps-btn-danger {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    color: #fff;
}

.tps-btn-danger:hover {
    filter: brightness(1.1);
}

.tps-btn-sm {
    padding: 5px 11px;
    font-size: 11px;
    border-radius: 7px;
}

.tps-btn-lg {
    padding: 13px 28px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
}

/* ── Tables (Dark) ────────────────────────────────────────── */
.tps-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tps-table-full {
    background: #0d1117;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.tps-table thead th {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.tps-table tbody td {
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    vertical-align: middle;
}

.tps-table tbody tr:last-child td {
    border-bottom: none;
}

.tps-table tbody tr:hover td {
    background: rgba(83, 104, 138, 0.06);
}

.tps-empty-row {
    text-align: center;
    color: #94a3b8;
    font-style: italic;
    padding: 40px !important;
}

/* ── Status Badges ────────────────────────────────────────── */
.tps-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tps-status-pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.tps-status-approved,
.tps-status-active,
.tps-status-succeeded,
.tps-status-paid,
.tps-status-charged {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
}

.tps-status-rejected,
.tps-status-failed {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
}

.tps-status-refunded {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.tps-status-fulfilled {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.tps-status-logged {
    background: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
}

/* ── Fuel Badge ───────────────────────────────────────────── */
.tps-fuel-badge {
    display: inline-block;
    background: rgba(83, 104, 138, 0.15);
    color: #6b84aa;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin: 2px;
}

/* ── Dashboard Forms ──────────────────────────────────────── */
.tps-form-group {
    margin-bottom: 16px;
}

.tps-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.tps-form-group input[type=text],
.tps-form-group input[type=email],
.tps-form-group input[type=tel],
.tps-form-group input[type=number],
.tps-form-group select,
.tps-form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 11px 14px;
    color: #e2e8f0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.tps-form-group input:focus,
.tps-form-group select:focus,
.tps-form-group textarea:focus {
    outline: none;
    border-color: #53688a;
    box-shadow: 0 0 0 3px rgba(83, 104, 138, 0.2);
}

.tps-form-group input::placeholder,
.tps-form-group textarea::placeholder {
    color: rgba(148, 163, 184, 0.4);
}

.tps-form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tps-col-2 {
    grid-column: 1 / -1;
}

/* ── Upload Zone ──────────────────────────────────────────── */
.tps-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    color: #94a3b8;
}

.tps-upload-zone:hover {
    border-color: #53688a;
    background: rgba(83, 104, 138, 0.05);
}

.tps-upload-zone i {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
    color: #53688a;
}

.tps-upload-zone p {
    font-size: 13px;
    margin: 0;
}

.tps-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* ── Cost Preview ─────────────────────────────────────────── */
.tps-cost-preview {
    background: linear-gradient(135deg, rgba(83, 104, 138, 0.15), rgba(83, 104, 138, 0.08));
    border: 1px solid rgba(83, 104, 138, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.tps-cost-label {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

.tps-cost-amount {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.tps-cost-sub {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

/* ── Payment Card UI ──────────────────────────────────────── */
.tps-payment-card {
    padding: 24px;
}

.tps-card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    margin-bottom: 10px;
}

.tps-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tps-card-icon {
    font-size: 20px;
    color: #53688a;
}

.tps-card-brand {
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.tps-card-last4 {
    color: #94a3b8;
    font-size: 13px;
    letter-spacing: 2px;
}

.tps-card-exp {
    color: #94a3b8;
    font-size: 12px;
}

.tps-add-card-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.tps-add-card-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}

.tps-hint {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 14px;
    line-height: 1.5;
}

.tps-hint i {
    color: #53688a;
}

.tps-stripe-element {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 13px 14px;
    min-height: 44px;
}

.tps-empty-state {
    text-align: center;
    padding: 32px;
    color: #94a3b8;
}

.tps-empty-state i {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
    opacity: 0.4;
}

.tps-empty-state p {
    font-size: 13px;
}

/* ── Alert Box ────────────────────────────────────────────── */
.tps-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin: 10px 0;
}

.tps-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.tps-alert-danger {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.2);
    color: #f87171;
}

.tps-alert-warning {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

/* ── Login Wall ───────────────────────────────────────────── */
.tps-login-wall {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding: 40px;
}

.tps-login-card {
    text-align: center;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 400px;
    width: 100%;
}

.tps-login-card i {
    font-size: 36px;
    color: #94a3b8;
    margin-bottom: 16px;
    display: block;
}

.tps-login-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
}

.tps-login-card p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* ── Invoice Modal ────────────────────────────────────────── */
.tps-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.tps-modal-wrap {
    background: #fff;
    border-radius: 16px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.tps-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f3f4f6;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.2s;
    z-index: 1;
}

.tps-modal-close:hover {
    background: #e5e7eb;
    color: #374151;
}

/* ── Map ──────────────────────────────────────────────────── */
.tps-map-marker {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #53688a, #6b84aa);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.tps-map-marker:hover {
    box-shadow: 0 6px 20px rgba(83, 104, 138, 0.5);
}

.tps-map-marker i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 14px;
}

.tps-map-marker.tps-map-marker-low {
    background: linear-gradient(135deg, #dc2626, #ef4444);
}

.tps-map-popup-inner {
    padding: 8px 4px;
    min-width: 200px;
}

.tps-map-popup-inner strong {
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
    color: #1f2937;
}

.tps-map-popup-inner p {
    font-size: 12px;
    color: #6b7280;
    margin: 4px 0;
}

.tps-low-warn {
    color: #dc2626 !important;
    font-weight: 600;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {

    .tps-field-grid-2,
    .tps-field-grid-3 {
        grid-template-columns: 1fr;
    }

    .tps-field-full {
        grid-column: auto;
    }

    .tps-fuel-grid {
        grid-template-columns: 1fr;
    }

    .tps-calc-results {
        grid-template-columns: 1fr;
    }

    .tps-calc-card {
        padding: 20px;
    }

    .tps-sidebar {
        position: fixed;
        left: -260px;
        top: 0;
        z-index: 1000;
        transition: left 0.3s;
        height: 100vh;
    }

    .tps-sidebar.is-open {
        left: 0;
    }

    .tps-menu-toggle {
        display: flex;
    }

    .tps-main {
        padding: 20px;
    }

    .tps-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tps-tank-grid {
        grid-template-columns: 1fr;
    }

    .tps-form-grid-2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tps-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tps-app-hero h1 {
        font-size: 24px;
    }

    .tps-calc-title {
        font-size: 26px;
    }
}
/* ================================================================
   New additions — Tote Partner System
   ================================================================ */

/* ── Toast Notifications ──────────────────────────────────────── */
.tps-toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 99999;
    background: #1e293b; color: #f1f5f9; padding: 14px 20px;
    border-radius: 10px; font-size: 14px; font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,.45); transform: translateX(120%);
    transition: transform .35s cubic-bezier(.34,1.56,.64,1); max-width: 340px;
    border-left: 4px solid #53688a;
}
.tps-toast.show { transform: translateX(0); }
.tps-toast.tps-toast-success { border-color: #22c55e; }
.tps-toast.tps-toast-danger  { border-color: #dc2626; }
.tps-toast.tps-toast-warning { border-color: #f59e0b; }

/* ── Mapbox Geocoder Dropdown ─────────────────────────────────── */
.tps-geo-dropdown {
    position: absolute; z-index: 1000; background: #1e293b;
    border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
    margin: 0; padding: 6px 0; list-style: none; min-width: 100%;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.tps-geo-dropdown li {
    padding: 10px 14px; font-size: 13px; color: #cbd5e1; cursor: pointer;
    transition: background .15s;
}
.tps-geo-dropdown li:hover { background: rgba(83,104,138,.25); color: #f1f5f9; }
.tps-field, .tps-form-group { position: relative; }

/* ── Upload Zone ───────────────────────────────────────────────── */
.tps-upload-zone {
    border: 2px dashed rgba(83,104,138,.4); border-radius: 12px;
    padding: 32px 20px; text-align: center; cursor: pointer;
    transition: all .2s; position: relative; background: rgba(83,104,138,.05);
    color: #64748b;
}
.tps-upload-zone:hover, .tps-upload-zone.drag-over {
    border-color: #53688a; background: rgba(83,104,138,.12); color: #93b4d4;
}
.tps-upload-zone.is-uploading { opacity: .6; pointer-events: none; }
.tps-upload-zone p { margin: 8px 0 0; font-size: 13px; }

/* ── Cost Preview ──────────────────────────────────────────────── */
.tps-cost-preview {
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(83,104,138,.12); border: 1px solid rgba(83,104,138,.3);
    border-radius: 12px; padding: 14px 18px; margin-bottom: 16px;
}
.tps-cost-label { font-weight: 600; color: #94a3b8; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.tps-cost-sub   { font-size: 12px; color: #64748b; margin-top: 3px; }
.tps-cost-amount { font-size: 24px; font-weight: 800; color: #22c55e; }

/* ── Alert badges in topbar ─────────────────────────────────────── */
.tps-alert-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600;
    background: rgba(220,38,38,.12); border: 1px solid rgba(220,38,38,.25); color: #ef4444;
}

/* ── Status Badges ────────────────────────────────────────────── */
.tps-status-badge {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 600; text-transform: capitalize;
}
.tps-status-active    { background: rgba(34,197,94,.12);  color: #22c55e; }
.tps-status-pending   { background: rgba(245,158,11,.12); color: #f59e0b; }
.tps-status-approved  { background: rgba(34,197,94,.12);  color: #22c55e; }
.tps-status-rejected  { background: rgba(220,38,38,.12);  color: #ef4444; }
.tps-status-fulfilled { background: rgba(83,104,138,.2);  color: #93b4d4; }
.tps-status-delivered { background: rgba(34,197,94,.12);  color: #22c55e; }
.tps-status-cancelled { background: rgba(220,38,38,.12);  color: #ef4444; }
.tps-status-adjusted  { background: rgba(245,158,11,.12); color: #f59e0b; }
.tps-status-logged    { background: rgba(83,104,138,.2);  color: #93b4d4; }

/* ── Fuel Pill ────────────────────────────────────────────────── */
.tps-fuel-pill {
    display: inline-block; padding: 3px 9px; border-radius: 6px;
    font-size: 11px; font-weight: 600;
    background: rgba(83,104,138,.2); color: #93b4d4;
}

/* ── Fuel Badge (table) ────────────────────────────────────────── */
.tps-fuel-badge {
    display: inline-block; padding: 3px 7px; border-radius: 5px; margin: 2px;
    font-size: 11px; font-weight: 500;
    background: rgba(83,104,138,.15); color: #93b4d4; border: 1px solid rgba(83,104,138,.3);
}

/* ── Notification items ───────────────────────────────────────── */
.tps-notif-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,.06);
    transition: background .15s;
}
.tps-notif-item:last-child { border-bottom: none; }
.tps-notif-item.is-unread { background: rgba(83,104,138,.08); }
.tps-notif-icon-sm {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(83,104,138,.2); color: #53688a; font-size: 14px;
}
.tps-notif-title { font-weight: 600; font-size: 14px; color: #e2e8f0; }
.tps-notif-msg   { font-size: 13px; color: #94a3b8; margin-top: 2px; }
.tps-notif-time  { font-size: 11px; color: #64748b; margin-top: 4px; }

/* ── Modal ─────────────────────────────────────────────────────── */
.tps-modal-overlay {
    position: fixed; inset: 0; background: rgba(1,4,5,.75);
    z-index: 99999; display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
}
.tps-modal-wrap {
    background: #0d1117; border: 1px solid rgba(255,255,255,.1);
    border-radius: 16px; padding: 28px 32px; max-width: 700px; width: 93%;
    max-height: 82vh; overflow-y: auto; position: relative;
    box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
.tps-modal-close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none; color: #64748b; font-size: 24px;
    cursor: pointer; transition: color .2s; line-height: 1;
}
.tps-modal-close:hover { color: #f1f5f9; }

/* ── Stripe card element ──────────────────────────────────────── */
.tps-stripe-element {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 14px 16px; transition: border-color .2s;
}
.tps-stripe-element:focus-within { border-color: #53688a; }

/* ── Loading spinner ──────────────────────────────────────────── */
.tps-loading {
    text-align: center; padding: 48px 20px; color: #64748b;
}

/* ── Card rows ─────────────────────────────────────────────────── */
.tps-card-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border: 1px solid rgba(255,255,255,.08);
    border-radius: 10px; margin-bottom: 10px; background: rgba(255,255,255,.03);
}
.tps-card-info { display: flex; align-items: center; gap: 12px; }
.tps-card-brand { font-weight: 600; font-size: 14px; color: #e2e8f0; }
.tps-card-last4 { font-size: 14px; color: #94a3b8; }
.tps-card-exp   { font-size: 12px; color: #64748b; }
.tps-add-card-section {
    margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.07);
}
.tps-add-card-section h4 { margin: 0 0 8px; font-size: 15px; color: #e2e8f0; }
.tps-hint { font-size: 12px; color: #64748b; margin: 0 0 14px; display: flex; align-items: center; gap: 6px; }

/* ── Tank header ─────────────────────────────────────────────── */
.tps-tank-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }

/* ── Tank card actions ────────────────────────────────────────── */
.tps-tank-actions { display: flex; gap: 6px; align-items: center; margin-top: 12px; flex-wrap: wrap; }

/* ── Section titles ───────────────────────────────────────────── */
.tps-section-title {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1px; color: #64748b; margin: 0 0 14px;
}

/* ── Alert variants ────────────────────────────────────────────── */
.tps-alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; border-left: 4px solid; }
.tps-alert-success { background: rgba(34,197,94,.1); border-color: #22c55e; color: #4ade80; }
.tps-alert-danger  { background: rgba(220,38,38,.1); border-color: #dc2626; color: #f87171; }
.tps-alert-warning { background: rgba(245,158,11,.1); border-color: #f59e0b; color: #fbbf24; }

/* ── Button variants ────────────────────────────────────────────── */
.tps-btn-success { background: rgba(34,197,94,.15); color: #22c55e; border: 1px solid rgba(34,197,94,.3); }
.tps-btn-success:hover { background: rgba(34,197,94,.25); }
.tps-btn-danger  { background: rgba(220,38,38,.12); color: #ef4444; border: 1px solid rgba(220,38,38,.25); }
.tps-btn-danger:hover  { background: rgba(220,38,38,.22); }
.tps-btn-lg { padding: 14px 28px; font-size: 15px; }

/* ── Badge on nav item ─────────────────────────────────────────── */
.tps-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; border-radius: 10px; font-size: 11px;
    font-weight: 700; background: #53688a; color: #fff; padding: 0 5px; margin-left: 6px;
}
.tps-badge-danger { background: #dc2626; }

/* ── Form layout helpers ────────────────────────────────────────── */
.tps-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tps-form-group  { margin-bottom: 16px; }
.tps-form-group label { display: block; font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .4px; }
.tps-form-group input,
.tps-form-group select,
.tps-form-group textarea {
    width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 11px 14px; color: #f1f5f9; font-family: inherit; font-size: 14px;
    transition: border-color .2s; outline: none;
}
.tps-form-group input:focus,
.tps-form-group select:focus,
.tps-form-group textarea:focus { border-color: #53688a; }

/* ── Map marker ─────────────────────────────────────────────────── */
.tps-map-marker {
    width: 38px; height: 38px; border-radius: 50%; background: #53688a;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 15px; cursor: pointer;
    box-shadow: 0 4px 12px rgba(83,104,138,.5); border: 2px solid #fff;
    transition: transform .2s;
}
.tps-map-marker:hover { transform: scale(1.15); }
.tps-map-popup-inner { font-family: 'Inter', sans-serif; font-size: 13px; min-width: 200px; padding: 4px; color: #010405; }
.tps-map-popup-inner strong { font-size: 14px; display: block; margin-bottom: 4px; }
.tps-map-popup-inner p { margin: 4px 0; color: #334155; }

/* ── Tank meta ──────────────────────────────────────────────────── */
.tps-tank-meta { font-size: 12px; color: #64748b; margin-top: 6px; display: flex; align-items: center; gap: 6px; }

/* ── Access wall ─────────────────────────────────────────────────── */
.tps-access-wall, .tps-login-wall {
    min-height: 40vh; display: flex; align-items: center; justify-content: center;
    background: #0d1117;
}
.tps-login-card, .tps-access-wall {
    text-align: center; padding: 48px 36px; background: #131b24;
    border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
    max-width: 440px; margin: 40px auto;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.tps-login-card i { font-size: 48px; color: #53688a; }
.tps-login-card h3 { margin: 0; font-size: 22px; color: #e2e8f0; }
.tps-login-card p  { margin: 0; color: #94a3b8; font-size: 14px; }

/* ── Empty state ─────────────────────────────────────────────────── */
.tps-empty-state {
    text-align: center; padding: 48px 20px; color: #64748b;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.tps-empty-state i { font-size: 36px; opacity: .4; }
.tps-empty-state p { margin: 0; font-size: 14px; }

/* ── Table ───────────────────────────────────────────────────────── */
.tps-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tps-table th { padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; border-bottom: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); }
.tps-table td { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.04); color: #cbd5e1; vertical-align: middle; }
.tps-table tr:hover td { background: rgba(255,255,255,.02); }
.tps-empty-row { text-align: center; color: #64748b; padding: 32px!important; }
.tps-table-full { overflow-x: auto; border-radius: 12px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); }

/* ── Is-low tank ─────────────────────────────────────────────────── */
.tps-tank-card.is-low { border-color: rgba(220,38,38,.4)!important; }
.tps-tank-card.is-low .tank-bar { background: linear-gradient(90deg,#dc2626,#ef4444)!important; }
.tps-low-badge {
    font-size: 10px; font-weight: 700; color: #ef4444; letter-spacing: .5px;
    background: rgba(220,38,38,.1); border-radius: 4px; padding: 2px 7px;
    display: inline-block; margin-bottom: 8px;
}

/* ── Stat card danger/alert states ─────────────────────────────── */
.tps-stat-card.is-danger { border-color: rgba(220,38,38,.3)!important; }
.tps-stat-card.is-danger .stat-icon { background: rgba(220,38,38,.15); color: #ef4444; }
.tps-stat-card.is-alert { border-color: rgba(245,158,11,.3)!important; }
.tps-stat-card.is-alert .stat-icon { background: rgba(245,158,11,.15); color: #f59e0b; }

/* ── Page title ────────────────────────────────────────────────── */
.tps-page-title { font-size: 22px; font-weight: 700; color: #f1f5f9; margin: 0 0 22px; }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .tps-form-grid-2 { grid-template-columns: 1fr; }
    .tps-modal-wrap  { padding: 20px 16px; }
    .tps-stats-grid  { grid-template-columns: 1fr 1fr; }
}
