/* ═══════════════════════════════════════════════════════════════
   TRIPNETWORK — 3D Premium Design System v3.0
   Fonts: Syne (display) + DM Sans (body) + JetBrains Mono
   Theme: Deep Space Navy × Gold × 3D Depth
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ──────────────────────────────────────────
   TOKENS
────────────────────────────────────────── */
:root {
    /* Core Palette */
    --tn-navy-900:   #060d1a;
    --tn-navy-800:   #0c1829;
    --tn-navy-700:   #112138;
    --tn-navy-600:   #172d4d;
    --tn-navy-500:   #1e3a5f;
    --tn-navy-400:   #254a78;
    --tn-navy-300:   #3464a0;

    --tn-gold-500:   #F5A623;
    --tn-gold-400:   #FBBF24;
    --tn-gold-300:   #FCD34D;
    --tn-gold-glow:  rgba(245,166,35,0.35);

    --tn-blue-500:   #1D9BF0;
    --tn-blue-400:   #38BDF8;
    --tn-blue-dim:   rgba(29,155,240,0.1);

    --tn-green-500:  #10B981;
    --tn-green-400:  #34D399;
    --tn-green-dim:  rgba(16,185,129,0.1);

    --tn-red-500:    #EF4444;
    --tn-red-dim:    rgba(239,68,68,0.1);

    --tn-purple-500: #8B5CF6;
    --tn-purple-dim: rgba(139,92,246,0.1);

    --tn-teal-500:   #06B6D4;
    --tn-teal-dim:   rgba(6,182,212,0.1);

    --tn-orange-500: #F97316;
    --tn-orange-dim: rgba(249,115,22,0.1);

    /* Surfaces */
    --tn-surface:    #ffffff;
    --tn-surface-2:  #f0f5fb;
    --tn-surface-3:  #e8f0fa;
    --tn-border:     rgba(30,58,95,0.1);
    --tn-border-2:   rgba(255,255,255,0.12);

    /* Text */
    --tn-text:       #0c1829;
    --tn-muted:      #5a6a82;
    --tn-muted-2:    #8899b0;



      /*--tn-display:    'Syne', sans-serif;*/
    /*--tn-body:       'DM Sans', sans-serif;*/
    --tn-body:       'Plus Jakarta Sans', sans-serif;
    --tn-mono:       'JetBrains Mono', monospace;

    /* 3D Shadows */
    --shadow-card:
        0 1px 0 rgba(255,255,255,0.6) inset,
        0 -1px 0 rgba(0,0,0,0.05) inset,
        0 2px 4px rgba(0,0,0,0.04),
        0 8px 24px rgba(30,58,95,0.08),
        0 24px 48px rgba(30,58,95,0.05);

    --shadow-card-hover:
        0 1px 0 rgba(255,255,255,0.7) inset,
        0 -1px 0 rgba(0,0,0,0.06) inset,
        0 4px 8px rgba(0,0,0,0.06),
        0 16px 40px rgba(30,58,95,0.14),
        0 40px 80px rgba(30,58,95,0.08);

    --shadow-sidebar:
        4px 0 60px rgba(6,13,26,0.4),
        inset -1px 0 0 rgba(255,255,255,0.05);

    --shadow-btn:
        0 1px 0 rgba(255,255,255,0.25) inset,
        0 -2px 0 rgba(0,0,0,0.25) inset,
        0 4px 12px rgba(245,166,35,0.4),
        0 12px 28px rgba(245,166,35,0.25);

    --shadow-btn-hover:
        0 1px 0 rgba(255,255,255,0.3) inset,
        0 -2px 0 rgba(0,0,0,0.3) inset,
        0 8px 24px rgba(245,166,35,0.55),
        0 20px 48px rgba(245,166,35,0.3);

    --radius-xl:  20px;
    --radius-lg:  16px;
    --radius-md:  12px;
    --radius-sm:  8px;
}

/* ──────────────────────────────────────────
   BASE RESET
────────────────────────────────────────── */
*, *::before, *::after {
    font-family: var(--tn-body);
    box-sizing: border-box;
}

body {
    background: var(--tn-surface-2);
    color: var(--tn-text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   SIDEBAR — 3D Deep Space
══════════════════════════════════════════ */
.sidebar {
    background:
        linear-gradient(175deg,
            #0e2040 0%,
            #0c1c38 35%,
            #091528 70%,
            #060d1a 100%
        ) !important;
    min-height: 83vh;
    padding: 0 0 24px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sidebar);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Sidebar ambient glow */
.sidebar::before {
    content: '';
    position: absolute;
    top: -80px; left: -80px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(29,155,240,0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.sidebar::after {
    content: '';
    position: absolute;
    bottom: -60px; right: -60px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(245,166,35,0.08) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

/* ── Sidebar Brand ── */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.sidebar-brand-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, rgba(245,166,35,0.25), rgba(245,166,35,0.1));
    border: 1.5px solid rgba(245,166,35,0.4);
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    color: var(--tn-gold-500);
    font-size: 18px;
    box-shadow:
        0 0 20px rgba(245,166,35,0.15),
        inset 0 1px 0 rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.sidebar-brand:hover .sidebar-brand-icon {
    box-shadow: 0 0 30px rgba(245,166,35,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.sidebar-brand-text {
    font-family: var(--tn-display);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.4px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.sidebar-brand-text span { color: var(--tn-gold-500); }

/* ── Brand Pill (top of sidebar, large screens) ── */
.tm-brand-pill {
    background: linear-gradient(135deg, rgb(14, 32, 64) 0%, rgb(21, 45, 82) 50%, rgb(12, 32, 64) 100%);
    border: 1.5px solid rgba(245,166,35,0.35);
    border-radius: 50px !important;
    box-shadow:
        0 0 28px rgba(245,166,35,0.14),
        0 2px 8px rgba(6,13,26,0.25),
        inset 0 1px 0 rgba(255,255,255,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tm-brand-pill::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
    pointer-events: none;
}

.tm-brand-pill:hover {
    box-shadow:
        0 0 40px rgba(245,166,35,0.25),
        0 4px 16px rgba(6,13,26,0.35),
        inset 0 1px 0 rgba(255,255,255,0.12);
    border-color: rgba(245,166,35,0.55);
    transform: translateY(-1px);
}

.tm-brand-icon {
    font-size: 18px;
    color: var(--tn-gold-500);
    filter: drop-shadow(0 0 8px rgba(245,166,35,0.5));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tm-brand-pill:hover .tm-brand-icon {
    transform: rotate(-10deg) scale(1.15);
}

.tm-brand-text {
    font-family: var(--tn-display);
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.3px;
    text-shadow: 0 0 20px rgba(255,255,255,0.12);
}

/* ── Section Labels ── */
.sidebar-section-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.22);
    padding: 18px 20px 6px;
    position: relative;
    z-index: 1;
}

/* ── Nav Links ── */
.sidebar a {
    color: rgba(190,215,255,0.72);
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px 9px 20px;
    margin: 1px 10px;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

.sidebar a:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.95);
    transform: translateX(2px);
}

.sidebar a.active {
    background: linear-gradient(90deg,
        rgba(245,166,35,0.18) 0%,
        rgba(245,166,35,0.06) 100%
    );
    border-left: 3px solid var(--tn-gold-500);
    padding-left: 17px;
    color: var(--tn-gold-400);
    font-weight: 600;
    box-shadow:
        inset 0 1px 0 rgba(245,166,35,0.1),
        inset 0 -1px 0 rgba(245,166,35,0.05);
}

/* ── Dropdown ── */
.sidebar .dropdown-menu {
    background: rgba(6,13,26,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-md);
    padding: 6px;
    margin: 3px 10px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.sidebar .dropdown-item {
    color: rgba(180,210,255,0.7);
    border-radius: 8px;
    font-size: 12.5px;
    padding: 7px 13px;
    font-weight: 500;
    transition: all 0.18s;
}

.sidebar .dropdown-item:hover {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.95);
}

.sidebar .dropdown-item.active {
    background: linear-gradient(90deg, rgba(245,166,35,0.2), rgba(245,166,35,0.08)) !important;
    color: var(--tn-gold-400) !important;
    border-left: 3px solid var(--tn-gold-500);
    font-weight: 700;
}

.sidebar .nav-item.dropdown .dropdown-toggle.active-dropdown {
    color: var(--tn-gold-400) !important;
    background: rgba(245,166,35,0.08);
}

.sidebar .dropdown-menu.show { display: block; }

/* ── Logout ── */
.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 10px;
    padding: 10px 14px;
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.22);
    color: #fca5a5 !important;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
}

.sidebar-logout:hover {
    background: rgba(239,68,68,0.25);
    color: #fff !important;
    border-color: rgba(239,68,68,0.4);
    box-shadow: 0 4px 20px rgba(239,68,68,0.2);
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────
   NAVBAR
────────────────────────────────────────── */
.navbar {
    background: linear-gradient(90deg, #091528, #0c1c38) !important;
    box-shadow: 0 2px 20px rgba(6,13,26,0.3), 0 1px 0 rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(20px);
}

.navbar-brand {
    font-family: var(--tn-display) !important;
    font-weight: 800 !important;
    font-size: 1.4rem !important;
    letter-spacing: 0.3px;
    text-shadow: 0 0 30px rgba(245,166,35,0.3);
}

.navbar-brand, .nav-link, .navbar .dropdown-item { color: #fff !important; font-weight: 600; }

/* ──────────────────────────────────────────
   PAGE WRAPPER
────────────────────────────────────────── */
.tn-page {
    background: var(--tn-surface-2);
    min-height: 100vh;
    padding: 12px 32px 52px;
}

/* ──────────────────────────────────────────
   HERO BANNER — 3D Depth
────────────────────────────────────────── */
.tn-hero {
    background:
        linear-gradient(135deg, #0e2040 0%, #152d52 50%, #0c2040 100%);
    border-radius: var(--radius-xl);
    padding: 30px 38px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255,255,255,0.07);
 /*   box-shadow:
        0 1px 0 rgba(255,255,255,0.08) inset,
        0 -1px 0 rgba(0,0,0,0.2) inset,
        0 8px 40px rgba(6,13,26,0.35),
        0 32px 80px rgba(6,13,26,0.2);*/
}

/* Multi-layer ambient glow */
.tn-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 600px 300px at -5% 60%, rgba(29,155,240,0.22) 0%, transparent 65%),
        radial-gradient(ellipse 400px 400px at 105% -5%, rgba(245,166,35,0.16) 0%, transparent 55%),
        radial-gradient(ellipse 300px 200px at 50% 110%, rgba(139,92,246,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* 3D grid mesh */
.tn-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

.tn-hero-left, .tn-hero-right {
    position: relative; z-index: 1;
}
.tn-hero-right { flex-shrink: 0; }

.tn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,0.14);
    border: 1px solid rgba(245,166,35,0.3);
    color: var(--tn-gold-400);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 50px;
    margin-bottom: 14px;
    box-shadow: 0 0 20px rgba(245,166,35,0.1);
}

.tn-hero-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--tn-gold-500);
    box-shadow: 0 0 8px var(--tn-gold-500);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px var(--tn-gold-500); }
    50%       { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 12px var(--tn-gold-500); }
}

.tn-hero-title {
    font-family: var(--tn-display);
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.tn-hero-title span {
    color: var(--tn-gold-500);
    text-shadow: 0 0 30px rgba(245,166,35,0.4);
}

.tn-hero-sub {
    color: rgba(255,255,255,0.45);
    font-size: 13.5px;
    margin: 0;
    font-weight: 400;
}

.tn-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16,185,129,0.14);
    border: 1px solid rgba(16,185,129,0.28);
    color: var(--tn-green-400);
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 0 20px rgba(16,185,129,0.1);
}

.tn-live-pill .live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--tn-green-400);
    box-shadow: 0 0 8px var(--tn-green-400);
    animation: pulse-dot 1.4s infinite;
}

/* ──────────────────────────────────────────
   SECTION LABEL
────────────────────────────────────────── */
.tn-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--tn-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.tn-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--tn-border), transparent);
}

/* ──────────────────────────────────────────
   3D METRIC CARDS
────────────────────────────────────────── */
.tn-metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

.tn-metrics-row2 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 30px;
}

/* ── Base Card ── */
.tn-card {
    background: var(--tn-surface);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Glass highlight edge */
.tn-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.8) 30%,
        rgba(255,255,255,0.8) 70%,
        transparent 100%
    );
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Color top strip */
.tn-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3.5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 2;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0.8;
}

.tn-card:hover {
    transform: translateY(-5px) rotateX(1deg);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(255,255,255,0.95);
}

.tn-card:hover::before { opacity: 1; transform: scaleX(1.02); }

/* Color variants */
.tn-card.c-green::before  { background: linear-gradient(90deg, #10B981, #34D399, #6EE7B7); }
.tn-card.c-teal::before   { background: linear-gradient(90deg, #06B6D4, #38BDF8, #7DD3FC); }
.tn-card.c-slate::before  { background: linear-gradient(90deg, #1e3a5f, #254a78, #3464a0); }
.tn-card.c-gold::before   { background: linear-gradient(90deg, #F5A623, #FCD34D, #FDE68A); }
.tn-card.c-blue::before   { background: linear-gradient(90deg, #1D9BF0, #60C5FF, #BAE6FD); }
.tn-card.c-purple::before { background: linear-gradient(90deg, #8B5CF6, #A78BFA, #C4B5FD); }
.tn-card.c-red::before    { background: linear-gradient(90deg, #EF4444, #F87171, #FCA5A5); }
.tn-card.c-orange::before { background: linear-gradient(90deg, #F97316, #FB923C, #FDBA74); }

/* Hover glow per color */
.tn-card:hover.c-green  { box-shadow: 0 20px 60px rgba(16,185,129,0.15),  var(--shadow-card-hover); }
.tn-card:hover.c-teal   { box-shadow: 0 20px 60px rgba(6,182,212,0.15),   var(--shadow-card-hover); }
.tn-card:hover.c-slate  { box-shadow: 0 20px 60px rgba(30,58,95,0.2),     var(--shadow-card-hover); }
.tn-card:hover.c-gold   { box-shadow: 0 20px 60px rgba(245,166,35,0.15),  var(--shadow-card-hover); }
.tn-card:hover.c-blue   { box-shadow: 0 20px 60px rgba(29,155,240,0.15),  var(--shadow-card-hover); }
.tn-card:hover.c-purple { box-shadow: 0 20px 60px rgba(139,92,246,0.15),  var(--shadow-card-hover); }
.tn-card:hover.c-red    { box-shadow: 0 20px 60px rgba(239,68,68,0.15),   var(--shadow-card-hover); }
.tn-card:hover.c-orange { box-shadow: 0 20px 60px rgba(249,115,22,0.15),  var(--shadow-card-hover); }

/* Card ambient bg grain */
.tn-card .tn-card-bg {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 150px;
    pointer-events: none;
}

.tn-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

/* ── 3D Icon ── */
.tn-card-icon {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.tn-card:hover .tn-card-icon { transform: scale(1.1) rotate(-3deg); }

/* Icon 3D effect */
.tn-card-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}

.c-green  .tn-card-icon { background: var(--tn-green-dim);  color: var(--tn-green-500);  box-shadow: 0 4px 12px rgba(16,185,129,0.2);  }
.c-teal   .tn-card-icon { background: var(--tn-teal-dim);   color: var(--tn-teal-500);   box-shadow: 0 4px 12px rgba(6,182,212,0.2);   }
.c-slate  .tn-card-icon { background: rgba(30,58,95,0.08);  color: var(--tn-navy-400);   box-shadow: 0 4px 12px rgba(30,58,95,0.12);   }
.c-gold   .tn-card-icon { background: var(--tn-gold-dim);   color: var(--tn-gold-500);   box-shadow: 0 4px 12px rgba(245,166,35,0.2);  }
.c-blue   .tn-card-icon { background: var(--tn-blue-dim);   color: var(--tn-blue-500);   box-shadow: 0 4px 12px rgba(29,155,240,0.2);  }
.c-purple .tn-card-icon { background: var(--tn-purple-dim); color: var(--tn-purple-500); box-shadow: 0 4px 12px rgba(139,92,246,0.2);  }
.c-red    .tn-card-icon { background: var(--tn-red-dim);    color: var(--tn-red-500);    box-shadow: 0 4px 12px rgba(239,68,68,0.2);   }
.c-orange .tn-card-icon { background: var(--tn-orange-dim); color: var(--tn-orange-500); box-shadow: 0 4px 12px rgba(249,115,22,0.2);  }

.tn-card-val {
    font-family: var(--tn-mono);
    font-size: 30px;
    font-weight: 700;
    color: var(--tn-text);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1.5px;
    position: relative;
    z-index: 1;
}

.tn-card-val.sm { font-size: 21px; letter-spacing: -0.5px; }

.tn-card-label {
    font-size: 12.5px;
    color: var(--tn-muted);
    font-weight: 500;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.tn-card-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── Pill Tags ── */
.tn-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 600;
    padding: 3.5px 9px;
    border-radius: 7px;
    font-family: var(--tn-mono);
    letter-spacing: 0.2px;
}

.tn-pill.ok     { background: rgba(16,185,129,0.1);  color: #059669; border: 1px solid rgba(16,185,129,0.15); }
.tn-pill.warn   { background: rgba(245,166,35,0.1);  color: #b45309; border: 1px solid rgba(245,166,35,0.15); }
.tn-pill.danger { background: rgba(239,68,68,0.1);   color: #DC2626; border: 1px solid rgba(239,68,68,0.15); }
.tn-pill.info   { background: rgba(29,155,240,0.1);  color: #0369a1; border: 1px solid rgba(29,155,240,0.15); }
.tn-pill.muted  { background: rgba(100,116,139,0.08); color: #475569; border: 1px solid rgba(100,116,139,0.12); }

/* ── Progress ── */
.tn-progress-wrap { margin-top: 12px; position: relative; z-index: 1; }

.tn-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--tn-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.tn-progress {
    height: 6px;
    background: rgba(0,0,0,0.06);
    border-radius: 50px;
    overflow: visible;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
    position: relative;
}

.tn-progress-bar {
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, var(--tn-green-500), var(--tn-green-400));
    box-shadow: 0 2px 8px rgba(16,185,129,0.35);
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.tn-progress-bar::after {
    content: '';
    position: absolute;
    top: -2px; right: -4px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: inherit;
    box-shadow: 0 0 8px rgba(16,185,129,0.5);
}

/* ──────────────────────────────────────────
   3D TABLE CARD
────────────────────────────────────────── */
.tn-table-card {
    background: var(--tn-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.tn-table-head {
    background: linear-gradient(135deg, #0e2040, #152d52);
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tn-table-head::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 350px 120% at 0% 50%, rgba(29,155,240,0.18), transparent);
    pointer-events: none;
}

.tn-table-head::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.tn-table-head-left {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.tn-table-head-icon {
    width: 38px; height: 38px;
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.28);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--tn-gold-500);
    font-size: 16px;
    box-shadow: 0 0 16px rgba(245,166,35,0.1);
}

.tn-table-head-title {
    color: #fff;
    font-family: var(--tn-display);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.tn-table-head-sub { color: rgba(255,255,255,0.38); font-size: 11.5px; }

.tn-table-badge {
    background: rgba(245,166,35,0.18);
    border: 1px solid rgba(245,166,35,0.28);
    color: var(--tn-gold-400);
    font-size: 12px; font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    font-family: var(--tn-mono);
    position: relative; z-index: 1;
    box-shadow: 0 0 16px rgba(245,166,35,0.08);
}

/* Table styles */
.tn-table { width: 100%; border-collapse: collapse; }

.tn-table thead tr {
    background: linear-gradient(90deg, #f8fafd, #f0f5fb);
    border-bottom: 2px solid var(--tn-border);
}

.tn-table thead th {
    padding: 13px 22px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--tn-muted);
    white-space: nowrap;
}

.tn-table tbody tr {
    border-bottom: 1px solid var(--tn-border);
    transition: background 0.18s ease;
}

.tn-table tbody tr:last-child { border-bottom: none; }

.tn-table tbody tr:hover {
    background: linear-gradient(90deg, #f8fafd, #f0f5fb);
}

.tn-table tbody td {
    padding: 15px 22px;
    font-size: 13.5px;
    color: var(--tn-text);
    vertical-align: middle;
}

.tn-booking-id {
    font-family: var(--tn-mono);
    font-size: 11.5px;
    font-weight: 600;
    color: var(--tn-muted);
    background: var(--tn-surface-2);
    border: 1px solid var(--tn-border);
    padding: 3.5px 9px;
    border-radius: 7px;
    display: inline-block;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.tn-route-cell {
    display: flex;
    align-items: center;
    gap: 7px;
}

.tn-route-arrow {
    width: 16px; height: 2px;
    background: linear-gradient(90deg, var(--tn-gold-500), var(--tn-gold-400));
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 0 6px rgba(245,166,35,0.3);
}

.tn-route-arrow::after {
    content: '';
    position: absolute;
    right: -1px; top: -3.5px;
    border: 4.5px solid transparent;
    border-left-color: var(--tn-gold-400);
}

.tn-amount {
    font-family: var(--tn-mono);
    font-size: 13px;
    font-weight: 700;
    color: var(--tn-text);
}

.tn-bus-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--tn-surface-2);
    border: 1px solid var(--tn-border);
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--tn-text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.tn-seats-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tn-blue-dim);
    color: var(--tn-blue-500);
    border: 1px solid rgba(29,155,240,0.18);
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 700;
    font-family: var(--tn-mono);
}

.tn-empty {
    text-align: center;
    padding: 56px 20px;
}

.tn-empty-icon {
    width: 60px; height: 60px;
    background: var(--tn-surface-2);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
    color: var(--tn-muted);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
}

/* ──────────────────────────────────────────
   OPERATOR DASHBOARD — TRIP CARDS
────────────────────────────────────────── */
.tn-metric-card {
    background: var(--tn-surface);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-card);
    cursor: pointer;
    text-decoration: none !important;
    display: block;
    transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.tn-metric-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3.5px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transition: opacity 0.3s;
    opacity: 0.75;
}

.tn-metric-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 2;
}

.tn-metric-card:hover {
    transform: translateY(-5px) rotateX(1deg);
    box-shadow: var(--shadow-card-hover);
}

.tn-metric-card:hover::before { opacity: 1; }

.tn-metric-card.blue::before  { background: linear-gradient(90deg, #1D9BF0, #60C5FF, #BAE6FD); }
.tn-metric-card.green::before { background: linear-gradient(90deg, #10B981, #34D399, #6EE7B7); }
.tn-metric-card.gold::before  { background: linear-gradient(90deg, #F5A623, #FCD34D, #FDE68A); }

.tn-metric-card:hover.blue  { box-shadow: 0 20px 60px rgba(29,155,240,0.15),  var(--shadow-card-hover); }
.tn-metric-card:hover.green { box-shadow: 0 20px 60px rgba(16,185,129,0.15),  var(--shadow-card-hover); }
.tn-metric-card:hover.gold  { box-shadow: 0 20px 60px rgba(245,166,35,0.15),  var(--shadow-card-hover); }

.tn-metric-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.tn-metric-icon {
    width: 48px; height: 48px;
    border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    position: relative;
    transition: transform 0.3s ease;
}

.tn-metric-card:hover .tn-metric-icon { transform: scale(1.1) rotate(-3deg); }

.tn-metric-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, transparent 50%);
}

.blue  .tn-metric-icon { background: var(--tn-blue-dim);  color: var(--tn-blue-500);  box-shadow: 0 4px 14px rgba(29,155,240,0.2); }
.green .tn-metric-icon { background: var(--tn-green-dim); color: var(--tn-green-500); box-shadow: 0 4px 14px rgba(16,185,129,0.2); }
.gold  .tn-metric-icon { background: var(--tn-gold-dim);  color: var(--tn-gold-500);  box-shadow: 0 4px 14px rgba(245,166,35,0.2); }

.tn-metric-trend {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
}

.blue  .tn-metric-trend { background: var(--tn-blue-dim);  color: var(--tn-blue-500);  border: 1px solid rgba(29,155,240,0.15); }
.green .tn-metric-trend { background: var(--tn-green-dim); color: var(--tn-green-500); border: 1px solid rgba(16,185,129,0.15); }
.gold  .tn-metric-trend { background: var(--tn-gold-dim);  color: var(--tn-gold-500);  border: 1px solid rgba(245,166,35,0.15); }

.tn-metric-value {
    font-family: var(--tn-mono);
    font-size: 34px;
    font-weight: 700;
    color: var(--tn-text);
    line-height: 1;
    margin-bottom: 7px;
    letter-spacing: -1.5px;
}

.tn-metric-value.pkr { font-size: 22px; letter-spacing: -0.5px; }

.tn-metric-label {
    font-size: 13px;
    color: var(--tn-muted);
    font-weight: 500;
}

/* ──────────────────────────────────────────
   TRIPS SECTION — 3D
────────────────────────────────────────── */
.tn-trips-card {
    background: var(--tn-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.tn-trips-header {
    background: linear-gradient(135deg, #0e2040, #152d52);
    padding: 22px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tn-trips-header::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 350px 120% at 0% 50%, rgba(29,155,240,0.18), transparent);
    pointer-events: none;
}

.tn-trips-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.tn-trips-header-left {
    display: flex;
    align-items: center;
    gap: 13px;
    position: relative;
    z-index: 1;
}

.tn-trips-header-icon {
    width: 38px; height: 38px;
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.28);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--tn-gold-500);
    font-size: 16px;
    box-shadow: 0 0 16px rgba(245,166,35,0.12);
}

.tn-trips-title {
    font-family: var(--tn-display);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px;
}

.tn-trips-subtitle { color: rgba(255,255,255,0.38); font-size: 12px; margin: 0; }

.tn-trips-count {
    background: rgba(245,166,35,0.18);
    border: 1px solid rgba(245,166,35,0.28);
    color: var(--tn-gold-400);
    font-size: 12px; font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
    font-family: var(--tn-mono);
    position: relative; z-index: 1;
    box-shadow: 0 0 16px rgba(245,166,35,0.1);
}

/* ── Trip Rows ── */
.tn-trip-row {
    padding: 18px 30px;
    border-bottom: 1px solid var(--tn-border);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.22s ease;
    position: relative;
}

.tn-trip-row:last-child { border-bottom: none; }

.tn-trip-row:hover { background: linear-gradient(90deg, #f8fafd, #f4f8fe); }

.tn-trip-row::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 0;
    background: linear-gradient(180deg, var(--tn-gold-500), var(--tn-gold-400));
    border-radius: 0 3px 3px 0;
    transition: height 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 2px 0 10px rgba(245,166,35,0.3);
}

.tn-trip-row:hover::before { height: 65%; }

.tn-trip-index {
    width: 30px; height: 30px;
    background: var(--tn-surface-2);
    border: 1px solid var(--tn-border);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    color: var(--tn-muted);
    font-family: var(--tn-mono);
    flex-shrink: 0;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.tn-trip-route { flex: 1; min-width: 0; }

.tn-trip-cities {
    display: flex; align-items: center; gap: 9px;
    margin-bottom: 6px;
}

.tn-city {
    font-family: var(--tn-display);
    font-size: 15px; font-weight: 700;
    color: var(--tn-text);
}

.tn-arrow {
    display: flex; align-items: center; gap: 2px;
    color: var(--tn-gold-500);
    font-size: 12px;
}

.tn-arrow .line {
    width: 22px; height: 2px;
    background: linear-gradient(90deg, var(--tn-gold-500), var(--tn-gold-400));
    opacity: 0.65;
    box-shadow: 0 0 4px rgba(245,166,35,0.25);
}

.tn-trip-meta { display: flex; align-items: center; gap: 16px; }

.tn-meta-item {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--tn-muted); font-weight: 500;
}

.tn-time-badge {
    background: linear-gradient(135deg, #0e2040, #152d52);
    color: var(--tn-gold-400);
    font-family: var(--tn-mono);
    font-size: 12.5px; font-weight: 600;
    padding: 7px 14px;
    border-radius: 9px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 4px 12px rgba(6,13,26,0.2);
}

.tn-seat-badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700;
    padding: 6px 13px;
    border-radius: 9px;
    white-space: nowrap; flex-shrink: 0;
    font-family: var(--tn-mono);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.5);
}

.tn-seat-badge.full  { background: rgba(239,68,68,0.1);  color: #DC2626; border: 1px solid rgba(239,68,68,0.2); }
.tn-seat-badge.low   { background: rgba(245,166,35,0.1); color: #B45309; border: 1px solid rgba(245,166,35,0.2); }
.tn-seat-badge.avail { background: rgba(16,185,129,0.1); color: #059669; border: 1px solid rgba(16,185,129,0.2); }

/* ──────────────────────────────────────────
   NEW BOOKING BUTTON — 3D Gold
────────────────────────────────────────── */
.tn-btn-booking {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #F5A623 0%, #FBBF24 50%, #F5A623 100%);
    color: #1e2a10 !important;
    font-family: var(--tn-display);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-btn);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tn-btn-booking::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.tn-btn-booking::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2.5px;
    background: rgba(0,0,0,0.18);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.tn-btn-booking:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: var(--shadow-btn-hover);
    color: #1e2a10 !important;
}

.tn-btn-booking:active { transform: translateY(0) scale(0.98); }

.tn-btn-booking .btn-icon {
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.tn-btn-booking:hover .btn-icon { transform: rotate(90deg); }

/* ──────────────────────────────────────────
   GLOBAL CARDS
────────────────────────────────────────── */
.card {
    border-radius: var(--radius-lg) !important;
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: var(--shadow-card) !important;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--tn-navy-700), var(--tn-navy-600)) !important;
    color: white !important;
    font-family: var(--tn-display) !important;
    font-weight: 700 !important;
    padding: 1.1rem 1.4rem !important;
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* ──────────────────────────────────────────
   FOOTER
────────────────────────────────────────── */
footer {
    background: linear-gradient(90deg, var(--tn-navy-800), var(--tn-navy-700));
    color: rgba(255,255,255,0.55);
    text-align: center;
    padding: 1rem;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

footer b { color: rgba(255,255,255,0.85); }

.brand-gold { color: var(--tn-gold-500); }

/* ──────────────────────────────────────────
   REPORT / REVENUE PAGES  (formerly style.css)
────────────────────────────────────────── */

/* Summary Cards */
.stat-card {
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    background: var(--tn-surface);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.stat-card .label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--tn-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-card .amount {
    font-family: var(--tn-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--tn-navy-600);
    letter-spacing: -1px;
    line-height: 1;
}

.stat-card .sub {
    font-size: .8rem;
    color: var(--tn-muted-2);
    margin-top: 4px;
}

/* Filter card */
.filter-card, .card-clean {
    background: var(--tn-surface);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.9) !important;
    box-shadow: var(--shadow-card);
    padding: 1.4rem;
}

/* Period Buttons */
.period-btn {
    border: 1px solid var(--tn-border);
    background: var(--tn-surface);
    font-size: .8rem;
    padding: .45rem 1rem;
    border-radius: 9px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.period-btn.active,
.period-btn:hover {
    background: linear-gradient(135deg, var(--tn-navy-600), var(--tn-navy-500));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(30,58,95,0.25);
}

/* Report Table */
.report-table { font-size: 0.84rem; }

.report-table thead { background: linear-gradient(90deg, #f1f5f9, #f0f5fb); }

.report-table th {
    font-weight: 700;
    color: var(--tn-navy-600);
    padding: .75rem;
    font-size: 10.5px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.report-table td { padding: .7rem .75rem; vertical-align: middle; }

.report-table tbody tr:hover { background: #f8fafd; }

/* Badges */
.badge-confirmed {
    background: rgba(16,185,129,0.1);
    color: #059669;
    font-size: .72rem;
    padding: 4px 11px;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(16,185,129,0.15);
}

.amount-col { font-weight: 700; color: var(--tn-green-500); font-family: var(--tn-mono); }

.page-title {
    font-family: var(--tn-display);
    font-weight: 800;
    color: var(--tn-navy-600);
}

.empty-state { padding: 3rem; text-align: center; color: #94a3b8; }

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--tn-navy-600), var(--tn-navy-500)) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 9px 22px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(30,58,95,0.25) !important;
    transition: all 0.2s ease !important;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(30,58,95,0.35) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #F5A623, #FBBF24) !important;
    border: none !important;
    color: #1E2A10 !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(245,166,35,0.35) !important;
}

.btn-warning:hover {
    box-shadow: 0 8px 24px rgba(245,166,35,0.5) !important;
    transform: translateY(-1px);
}

/* ──────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

.tn-hero        { animation: fadeSlideUp 0.4s ease both; }
.tn-card        { animation: fadeSlideUp 0.45s ease both; }
.tn-card:nth-child(1) { animation-delay: 0.04s; }
.tn-card:nth-child(2) { animation-delay: 0.09s; }
.tn-card:nth-child(3) { animation-delay: 0.14s; }
.tn-card:nth-child(4) { animation-delay: 0.19s; }
.tn-metric-card { animation: fadeSlideUp 0.45s ease both; }
.tn-metric-card:nth-child(1) { animation-delay: 0.05s; }
.tn-metric-card:nth-child(2) { animation-delay: 0.11s; }
.tn-metric-card:nth-child(3) { animation-delay: 0.17s; }
.tn-table-card,
.tn-trips-card  { animation: fadeSlideUp 0.45s 0.22s ease both; }

/* ──────────────────────────────────────────
   PRINT
────────────────────────────────────────── */
@media print {
    .no-print { display: none !important; }
    .tn-page { background: white; padding: 0; }
}

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 992px) {
    .tn-metrics, .tn-metrics-row2 { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
    .tn-page { padding: 12px 16px 40px; }
    .tn-metrics, .tn-metrics-row2 { grid-template-columns: 1fr; }
    .tn-hero { flex-direction: column; align-items: flex-start; }
    .tn-trip-row { flex-wrap: wrap; gap: 12px; }
    .sidebar { position: fixed; z-index: 1050; width: 260px; left: -300px; transition: 0.3s; }
    .sidebar.show { left: 0; }
}



/*Footer css*/
.tn-footer-brand{
    text-decoration: none !important;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 570;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.25s ease;
}

.tn-footer-brand span{
    color: #f5a623;
    font-weight: 700;
}

.tn-footer-brand:hover{
    color: #ffffff;
    transform: translateY(-1px);
}

.tn-footer-brand:hover span{
    color: #ffc857;
}

.tn-divider-dot{
    color: rgba(255,255,255,0.25) !important;
    font-weight: 400 !important;
}


/*charts*/

/* ═══════════════════════════════════════════════════════════════
   TRIPNETWORK — 3D Premium Design System v4.0 (Optimized)
   Fonts: Plus Jakarta Sans + JetBrains Mono
   Theme: Light & Professional | Compact Cards | 3D Depth
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ──────────────────────────────────────────
   TOKENS (Reduced & Consolidated)
────────────────────────────────────────── */
:root {
    --primary: #1e3a5f;
    --primary-light: #2c4a7a;
    --gold: #F5A623;
    --gold-light: #FCD34D;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --border: rgba(30,58,95,0.08);
    --text: #0f172a;
    --text-muted: #5a6a82;
    --text-light: #8899b0;
    
    --green: #10B981;
    --green-dim: rgba(16,185,129,0.1);
    --blue: #1D9BF0;
    --blue-dim: rgba(29,155,240,0.1);
    --purple: #8B5CF6;
    --purple-dim: rgba(139,92,246,0.1);
    --orange: #F97316;
    --orange-dim: rgba(249,115,22,0.1);
    --red: #EF4444;
    --red-dim: rgba(239,68,68,0.1);
    --teal: #06B6D4;
    --teal-dim: rgba(6,182,212,0.1);
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.03), 0 4px 12px rgba(30,58,95,0.06);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.03), 0 8px 24px rgba(30,58,95,0.08);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.04), 0 16px 40px rgba(30,58,95,0.12);
    --shadow-hover: 0 8px 24px rgba(30,58,95,0.12), 0 24px 48px rgba(30,58,95,0.08);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* { box-sizing: border-box; }

body {
    background: #f0f5fb;
    color: var(--text);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

/* ──────────────────────────────────────────
   COMPACT CARDS (Smaller like Home Dashboard)
────────────────────────────────────────── */
.tn-card, .tn-metric-card, .tn-mini-card, .tn-analytics-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.tn-card:hover, .tn-metric-card:hover, .tn-mini-card:hover, .tn-analytics-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Compact padding for cards */
.tn-card { padding: 14px 18px; }
.tn-metric-card { padding: 16px 20px; }
.tn-mini-card .tn-mini-body { padding: 12px 16px; }
.tn-mini-card .tn-mini-header { padding: 12px 16px; border-bottom: 1px solid var(--border); }

/* Smaller icons & values */
.tn-card-icon, .tn-metric-icon, .tn-mini-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.tn-card-val { font-size: 24px; font-weight: 700; font-family: 'JetBrains Mono', monospace; letter-spacing: -1px; }
.tn-card-val.sm { font-size: 18px; }
.tn-card-label { font-size: 11px; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; }

/* ──────────────────────────────────────────
   PROFESSIONAL LIGHT COLOR VARIANTS
────────────────────────────────────────── */
.tn-card.c-green { border-top: 3px solid var(--green); }
.tn-card.c-teal { border-top: 3px solid var(--teal); }
.tn-card.c-slate { border-top: 3px solid var(--primary); }
.tn-card.c-gold { border-top: 3px solid var(--gold); }
.tn-card.c-blue { border-top: 3px solid var(--blue); }
.tn-card.c-purple { border-top: 3px solid var(--purple); }
.tn-card.c-orange { border-top: 3px solid var(--orange); }
.tn-card.c-red { border-top: 3px solid var(--red); }

.tn-card-icon.c-green, .tn-metric-card.green .tn-metric-icon { background: var(--green-dim); color: var(--green); }
.tn-card-icon.c-teal { background: var(--teal-dim); color: var(--teal); }
.tn-card-icon.c-slate { background: rgba(30,58,95,0.08); color: var(--primary); }
.tn-card-icon.c-gold, .tn-metric-card.gold .tn-metric-icon { background: rgba(245,166,35,0.12); color: var(--gold); }
.tn-card-icon.c-blue, .tn-metric-card.blue .tn-metric-icon { background: var(--blue-dim); color: var(--blue); }
.tn-card-icon.c-purple { background: var(--purple-dim); color: var(--purple); }
.tn-card-icon.c-orange { background: var(--orange-dim); color: var(--orange); }

/* Metric Card Trends */
.tn-metric-trend {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
}
.green .tn-metric-trend { background: var(--green-dim); color: var(--green); }
.blue .tn-metric-trend { background: var(--blue-dim); color: var(--blue); }
.gold .tn-metric-trend { background: rgba(245,166,35,0.12); color: var(--gold); }

/* ──────────────────────────────────────────
   SIDEBAR (Compact & Modern)
────────────────────────────────────────── */
.sidebar {
    background: linear-gradient(175deg, #0e2040 0%, #091528 100%);
    min-height: 83vh;
    border-radius: var(--radius-lg);
    padding: 0 0 20px;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}
.sidebar-brand { padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 8px; }
.sidebar-brand-text { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; color: #fff; letter-spacing: 0.3px; }
.sidebar-brand-text span { color: var(--gold); }
.sidebar a {
    color: rgba(190,215,255,0.7);
    padding: 7px 12px 7px 16px;
    margin: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s;
}
.sidebar a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar a.active {
    background: linear-gradient(90deg, rgba(245,166,35,0.15), transparent);
    border-left: 3px solid var(--gold);
    color: var(--gold-light);
}
.sidebar-logout {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.2);
    margin: 10px;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: #fca5a5;
    font-size: 12px;
}
.sidebar-logout:hover { background: rgba(239,68,68,0.25); color: #fff; }

/* ──────────────────────────────────────────
   HERO BANNER (Compact)
────────────────────────────────────────── */
.tn-hero {
    background: linear-gradient(135deg, #0e2040, #152d52);
    border-radius: var(--radius-lg);
    padding: 20px 28px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.07);
}
.tn-hero-title { font-size: 20px; font-weight: 800; color: #fff; margin: 0; }
.tn-hero-title span { color: var(--gold); }
.tn-hero-sub { color: rgba(255,255,255,0.5); font-size: 12px; margin-top: 4px; }
.tn-hero-badge {
    background: rgba(245,166,35,0.15);
    border: 1px solid rgba(245,166,35,0.3);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 10px;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.tn-live-pill {
    background: rgba(16,185,129,0.15);
    border: 1px solid rgba(16,185,129,0.3);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    color: var(--green);
}

/* ──────────────────────────────────────────
   GRID LAYOUTS
────────────────────────────────────────── */
.tn-metrics, .tn-metrics-row2 {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}
.tn-metrics { grid-template-columns: repeat(4, 1fr); }
.tn-metrics-row2 { grid-template-columns: repeat(4, 1fr); }

/* ──────────────────────────────────────────
   TABLES
────────────────────────────────────────── */
.tn-table-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}
.tn-table-head {
    background: linear-gradient(135deg, #0e2040, #152d52);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tn-table-head-title { color: #fff; font-weight: 700; font-size: 14px; }
.tn-table-head-sub { color: rgba(255,255,255,0.4); font-size: 11px; }
.tn-table thead th { padding: 10px 16px; font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.tn-table tbody td { padding: 12px 16px; font-size: 12px; border-bottom: 1px solid var(--border); }
.tn-booking-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; background: var(--surface-muted); padding: 3px 8px; border-radius: 6px; }

/* ──────────────────────────────────────────
   TRIPS ROW (Compact)
────────────────────────────────────────── */
.tn-trip-row {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s;
}
.tn-trip-row:hover { background: var(--surface-muted); }
.tn-trip-index {
    width: 28px; height: 28px;
    background: var(--surface-muted);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
}
.tn-city { font-weight: 700; font-size: 13px; }
.tn-time-badge {
    background: #0e2040;
    color: var(--gold);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}
.tn-seat-badge {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}
.tn-seat-badge.full { background: var(--red-dim); color: var(--red); }
.tn-seat-badge.low { background: rgba(245,166,35,0.12); color: #b45309; }
.tn-seat-badge.avail { background: var(--green-dim); color: var(--green); }

/* ──────────────────────────────────────────
   BUTTONS
────────────────────────────────────────── */
.tn-btn-booking {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 12px;
    color: #1e2a10;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.tn-btn-booking:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(245,166,35,0.4); }

/* ──────────────────────────────────────────
   UTILITIES & BADGES
────────────────────────────────────────── */
.tn-pill {
    font-size: 9px;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 600;
}
.tn-pill.ok { background: var(--green-dim); color: var(--green); }
.tn-pill.warn { background: rgba(245,166,35,0.12); color: #b45309; }
.tn-pill.danger { background: var(--red-dim); color: var(--red); }
.tn-pill.info { background: var(--blue-dim); color: var(--blue); }
.tn-section-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ──────────────────────────────────────────
   ANALYTICS & MINI CARDS
────────────────────────────────────────── */
.tn-analytics-card .tn-analytics-head {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.tn-analytics-title { font-size: 13px; font-weight: 800; }
.tn-analytics-sub { font-size: 10px; color: var(--text-muted); }
.tn-analytics-body { padding: 16px; }
.tn-chart-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.tn-chart-stat { background: var(--surface-muted); border-radius: var(--radius-sm); padding: 8px; text-align: center; }
.tn-progress-wrap { display: flex; align-items: center; gap: 16px; }
.tn-progress-circle { width: 100px; height: 100px; position: relative; }
.tn-progress-circle svg { width: 100px; height: 100px; transform: rotate(-90deg); }
.tn-progress-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.tn-progress-center strong { font-size: 18px; }
.tn-progress-center small { font-size: 9px; color: var(--text-muted); }

/* ──────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────── */
@media (max-width: 992px) {
    .tn-metrics, .tn-metrics-row2 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .tn-metrics, .tn-metrics-row2 { grid-template-columns: 1fr; }
    .tn-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
    .sidebar { position: fixed; left: -280px; z-index: 1050; transition: 0.3s; width: 260px; }
    .sidebar.show { left: 0; }
}

/* ──────────────────────────────────────────
   ANIMATIONS
────────────────────────────────────────── */
.tn-card, .tn-metric-card, .tn-mini-card, .tn-analytics-card {
    animation: fadeSlideUp 0.4s ease both;
}
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

