/* =========================================================================
   Safe Ride — UTHM Student Transportation System
   Modern UI v2 — clean tokens, no dead rules, mobile-first
   ========================================================================= */

:root {
    /* Brand */
    --brand-50:  #eaf2ff;
    --brand-100: #c7dcff;
    --brand-300: #69a1ff;
    --brand-500: #0056b3;
    --brand-600: #004494;
    --brand-700: #0a2a5e;
    --accent:    #ffd700;

    /* Semantic */
    --success: #10b981;
    --info:    #0ea5e9;
    --warning: #f59e0b;
    --danger:  #ef4444;

    /* Neutrals */
    --ink-900: #0f172a;
    --ink-700: #1f2937;
    --ink-500: #475569;
    --ink-400: #64748b;
    --ink-300: #94a3b8;
    --ink-100: #e2e8f0;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border:  #e6ecf3;

    /* Shape & motion */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 6px 12px -4px rgba(15, 23, 42, 0.08), 0 12px 24px -8px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
    --transition: 180ms cubic-bezier(.4, 0, .2, 1);

    --uthm-blue: var(--brand-500);
    --uthm-yellow: var(--accent);
    --primary-color: var(--brand-500);
    --secondary-color: var(--success);
    --accent-color: var(--accent);
    --text-color: var(--ink-700);
    --light-bg: var(--surface-2);
}

/* ============================ Base ============================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink-700);
    background:
        radial-gradient(1000px 600px at -10% -10%, #dbe9ff 0, transparent 55%),
        radial-gradient(900px 500px at 110% 10%, #e8f1ff 0, transparent 50%),
        linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
    background-attachment: fixed;
    padding-top: 64px;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .display-3, .display-4, .navbar-brand {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--ink-900);
    letter-spacing: -0.01em;
    font-weight: 700;
}

a { color: var(--brand-500); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--brand-700); }

/* ============================ Forms ============================ */
.form-control, .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.6rem 0.9rem;
    font-size: 0.94rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: var(--surface);
    color: var(--ink-700);
}
.form-control:focus, .form-select:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.12);
    outline: 0;
}
.form-label { font-weight: 500; color: var(--ink-700); margin-bottom: 0.3rem; }

/* ============================ Buttons ============================ */
.btn { border-radius: var(--radius-sm); font-weight: 600; transition: all var(--transition); padding: 0.5rem 1rem; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { border-radius: 12px; padding: 0.75rem 1.5rem; }
.btn-primary, .btn-uthm-blue {
    background: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-500) 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 86, 179, 0.18);
}
.btn-primary:hover, .btn-uthm-blue:hover {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 86, 179, 0.25);
}
.btn-uthm-yellow {
    background: var(--accent);
    color: var(--brand-700);
    border: none;
    font-weight: 700;
}
.btn-uthm-yellow:hover { background: #ffcc00; color: var(--brand-700); }
.btn-success { background: var(--success); border: none; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); border: none; }
.btn-danger:hover { background: #dc2626; }
.btn-outline-primary, .btn-outline-secondary { border-width: 1.5px; }
.btn-outline-primary { color: var(--brand-500); border-color: var(--brand-500); }
.btn-outline-primary:hover { background: var(--brand-500); color: #fff; }

.btn-auth {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 86, 179, 0.25);
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 86, 179, 0.35); color: #fff; }

.btn-register {
    background: var(--accent);
    color: var(--brand-700);
    font-weight: 700;
    border-radius: var(--radius-pill);
    padding: 0.55rem 1.25rem;
    margin-left: 0.5rem;
    border: none;
    transition: all var(--transition);
}
.btn-register:hover {
    background: #ffcc00;
    color: var(--brand-700);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* ============================ Navbar ============================ */
.navbar-main {
    background: linear-gradient(135deg, rgba(10, 42, 94, 0.96) 0%, rgba(0, 86, 179, 0.94) 100%) !important;
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 6px 24px rgba(10, 42, 94, 0.18);
    padding: 0.7rem 0;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1030;
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff !important;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i { color: var(--accent); }
.navbar-main .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.45rem 0.85rem !important;
    border-radius: var(--radius-sm);
    margin: 0 0.15rem;
    transition: all var(--transition);
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}
.navbar-main .dropdown-menu {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}
.navbar-main .dropdown-item { border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font-size: 0.92rem; }
.navbar-main .dropdown-item:hover { background: var(--surface-2); }

/* ============================ Cards ============================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%) !important;
    color: #fff !important;
    border-bottom: none;
    padding: 0.9rem 1.1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}
.card-header.bg-light, .card-header.bg-white { background: var(--surface-2) !important; color: var(--ink-700) !important; }
.card-body { padding: 1.2rem; }

/* ============================ Hero ============================ */
.hero-section {
    background:
        radial-gradient(900px 400px at 80% 10%, rgba(255, 215, 0, 0.18) 0, transparent 60%),
        radial-gradient(1000px 500px at 0% 80%, rgba(255, 255, 255, 0.08) 0, transparent 55%),
        linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 55%, #0073e6 100%);
    color: #fff;
    padding: 150px 0 130px;
    margin-top: -64px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        url('/images/background.png') center/cover no-repeat,
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.04), transparent 35%);
    background-blend-mode: overlay, normal, normal;
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: overlay;
}
.hero-section::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.08) 1.2px, transparent 1.2px);
    background-size: 28px 28px;
    background-position: 0 0;
    pointer-events: none;
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%);
}

/* Animated background blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.hero-blob-1 { width: 380px; height: 380px; top: -80px; left: -120px; background: radial-gradient(circle, #ffd700 0%, transparent 70%); animation: blobFloat 14s ease-in-out infinite; }
.hero-blob-2 { width: 320px; height: 320px; bottom: -90px; right: 8%; background: radial-gradient(circle, #38bdf8 0%, transparent 70%); animation: blobFloat 18s ease-in-out infinite reverse; }
.hero-blob-3 { width: 260px; height: 260px; top: 35%; right: -100px; background: radial-gradient(circle, #ffffff 0%, transparent 70%); opacity: 0.18; animation: blobFloat 22s ease-in-out infinite; }
@keyframes blobFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 50px) scale(0.95); }
}

/* Hero scroll hint */
.scroll-hint {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 2;
    animation: scrollBob 2.2s ease-in-out infinite;
}
.scroll-hint .mouse {
    width: 24px; height: 38px; border: 2px solid rgba(255,255,255,0.7);
    border-radius: 14px; display: block; margin: 0 auto 8px; position: relative;
}
.scroll-hint .mouse::after {
    content: ''; width: 3px; height: 7px; background: rgba(255,255,255,0.85);
    border-radius: 2px; position: absolute; top: 8px; left: 50%; margin-left: -1.5px;
    animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollBob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
    50% { transform: translateX(-50%) translateY(6px); opacity: 1; }
}
@keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(14px); opacity: 0; }
}

/* Wave divider */
.section-wave {
    position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0;
}
.section-wave svg { display: block; width: 100%; height: 70px; }
.hero-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.45rem 0.95rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}
.hero-pill i { color: var(--accent); }
.hero-title { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 800; line-height: 1.05; color: #fff; margin-bottom: 1rem; }
.hero-subtitle { font-size: 1.05rem; opacity: 0.85; margin-bottom: 0.5rem; }
.hero-description { font-size: 0.98rem; opacity: 0.8; max-width: 520px; margin-bottom: 1.6rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 0.5rem; }
.hero-section .btn-light { color: var(--brand-700); font-weight: 700; }
.hero-section .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero-section .btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hero-stats { display: flex; gap: 2.5rem; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-stats .stat h4 {
    font-size: 2rem; font-weight: 800; margin: 0;
    background: linear-gradient(135deg, var(--accent), #fff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-stats .stat p { font-size: 0.82rem; opacity: 0.85; margin: 0; letter-spacing: 0.02em; }
.hero-pill, .hero-title, .hero-subtitle, .hero-description, .hero-buttons { position: relative; z-index: 2; }
.hero-title { text-shadow: 0 2px 30px rgba(10, 42, 94, 0.25); }

.hero-illustration {
    position: relative; height: 380px; max-width: 460px; margin-left: auto;
    perspective: 1200px; transform-style: preserve-3d;
}
.hero-card {
    background: rgba(255,255,255,0.98);
    color: var(--ink-700);
    border-radius: 18px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.35);
    position: absolute;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.45);
    transition: transform var(--transition);
}
.hero-card-main { top: 60px; left: 30px; right: 30px; transform: rotateX(6deg) rotateY(-4deg); animation: heroTilt 8s ease-in-out infinite; }
.hero-card-float { top: 10px; right: -10px; padding: 0.65rem 1rem; transform: rotateZ(2deg); animation: heroFloat 4s ease-in-out infinite; }
.hero-card-float-2 { bottom: 40px; left: 0; padding: 0.65rem 1rem; transform: rotateZ(-2deg); animation: heroFloat 5s ease-in-out infinite reverse; }
.hero-card-main:hover { transform: rotateX(0deg) rotateY(0deg) scale(1.02); }
@keyframes heroFloat { 0%, 100% { transform: translateY(0) rotateZ(2deg); } 50% { transform: translateY(-12px) rotateZ(-1deg); } }
@keyframes heroTilt {
    0%, 100% { transform: rotateX(6deg) rotateY(-4deg) translateY(0); }
    50% { transform: rotateX(4deg) rotateY(2deg) translateY(-6px); }
}
.hero-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.hero-route > div { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; padding: 0.2rem 0; }
.hero-dash {
    width: 2px; height: 18px; margin-left: 7px;
    background: repeating-linear-gradient(to bottom, var(--ink-100) 0 4px, transparent 4px 8px);
}

/* ============================ Section title ============================ */
.section-title {
    text-align: center;
    color: var(--brand-500);
    margin-bottom: 3rem;
    font-weight: 800;
    position: relative;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -14px; left: 50%; transform: translateX(-50%);
    width: 64px; height: 4px;
    background: var(--accent);
    border-radius: 4px;
}

/* ============================ Action cards (home Get Started) ============================ */
.quick-actions { padding: 70px 0; }
.action-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms cubic-bezier(.2,.8,.2,1), border-color var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}
.action-card::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(0,86,179,0.10), transparent 45%);
    opacity: 0; transition: opacity var(--transition); pointer-events: none;
}
.action-card:hover {
    transform: translateY(-10px) perspective(900px) rotateX(3deg);
    box-shadow: 0 24px 48px -16px rgba(10, 42, 94, 0.25), 0 8px 16px -8px rgba(10, 42, 94, 0.10);
    border-color: var(--brand-100);
}
.action-card:hover::before { opacity: 1; }
.action-card > i {
    font-size: 2.6rem;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 86, 179, 0.25));
    transition: transform var(--transition);
}
.action-card:hover > i { transform: scale(1.1) rotate(-4deg); }
.action-card h4 { font-weight: 700; color: var(--ink-900); margin: 1rem 0 0.5rem; }
.action-card p { color: var(--ink-500); margin-bottom: 1.25rem; font-size: 0.92rem; flex-grow: 1; }
.action-card .btn-action { margin-top: auto; }
.btn-action {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    color: #fff !important;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}
.btn-action:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3); }

/* ============================ Features grid ============================ */
.features { padding: 90px 0; background: linear-gradient(180deg, transparent 0%, rgba(234, 242, 255, 0.45) 60%, transparent 100%); position: relative; }
.feature {
    text-align: center;
    padding: 2rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    height: 100%;
    box-shadow: var(--shadow-sm);
    transition: transform 350ms cubic-bezier(.2,.8,.2,1), box-shadow 350ms cubic-bezier(.2,.8,.2,1), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.feature::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, transparent, var(--brand-500), transparent);
    opacity: 0; transition: opacity var(--transition);
}
.feature:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.feature:hover::after { opacity: 1; }
.feature:hover .feature-icon { transform: scale(1.1) rotate(-6deg); }
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 1.7rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 22px -8px rgba(0, 86, 179, 0.35);
    transition: transform var(--transition);
}
.feature-icon.bg-primary  { background: linear-gradient(135deg, #0a2a5e, #0056b3) !important; }
.feature-icon.bg-success  { background: linear-gradient(135deg, #10b981, #059669) !important; }
.feature-icon.bg-warning  { background: linear-gradient(135deg, #f59e0b, #d97706) !important; color: #fff !important; }
.feature-icon.bg-info     { background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; }
.feature-icon.bg-danger   { background: linear-gradient(135deg, #ef4444, #dc2626) !important; }
.feature-icon.bg-secondary{ background: linear-gradient(135deg, #475569, #334155) !important; }
.feature h4 { color: var(--ink-900); font-weight: 700; margin-bottom: 0.5rem; font-size: 1.15rem; }
.feature p  { color: var(--ink-500); font-size: 0.92rem; margin: 0; }

/* ============================ How it works ============================ */
#how-it-works { padding: 90px 0; background: var(--surface-2) !important; position: relative; overflow: hidden; }
#how-it-works .text-center { padding: 1rem; position: relative; z-index: 1; }
.step-row { position: relative; }
.step-row::before {
    content: ''; position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 3px;
    background: repeating-linear-gradient(90deg, var(--brand-300) 0 8px, transparent 8px 16px);
    z-index: 0; opacity: 0.6;
}
.step-number {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 14px 28px -8px rgba(0, 86, 179, 0.35);
    transition: all 300ms cubic-bezier(.2,.8,.2,1);
    position: relative; z-index: 2;
    border: 4px solid var(--surface-2);
}
.step-number::after {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    border: 2px solid var(--brand-300); opacity: 0; transition: all 300ms;
}
.step-number:hover {
    transform: scale(1.12) rotate(8deg);
    background: linear-gradient(135deg, var(--accent), #f59e0b);
    color: var(--brand-700);
}
.step-number:hover::after { opacity: 1; inset: -10px; }
#how-it-works h4 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
#how-it-works p { color: var(--ink-500); font-size: 0.92rem; }
@media (max-width: 768px) {
    .step-row::before { display: none; }
}

/* ============================ Safety section ============================ */
.safety-section { padding: 80px 0; }
.safety-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.safety-list li {
    padding: 0.8rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center;
    color: var(--ink-700);
}
.safety-list li:last-child { border-bottom: none; }
.safety-list li i { color: var(--success); margin-right: 0.85rem; font-size: 1.2rem; }
.safety-illustration { position: relative; height: 360px; max-width: 420px; margin: 0 auto; }
.safety-core {
    position: absolute; inset: 50px;
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1rem;
}
.safety-core > i {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.safety-badge {
    position: absolute;
    width: 60px; height: 60px;
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    animation: heroFloat 4s ease-in-out infinite;
}
.safety-badge-1 { top: 0; left: 20px; background: linear-gradient(135deg, #10b981, #059669); }
.safety-badge-2 { top: 30px; right: 0; background: linear-gradient(135deg, #0a2a5e, #0056b3); animation-delay: 0.5s; }
.safety-badge-3 { bottom: 20px; right: 40px; background: linear-gradient(135deg, #f59e0b, #d97706); animation-delay: 1s; }

/* ============================ Auth pages ============================ */
.auth-container { min-height: calc(100vh - 200px); display: flex; align-items: center; padding: 3rem 0; }
.auth-card {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
}
.auth-header {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    color: #fff;
    padding: 2rem 1.5rem;
    text-align: center;
}
.auth-header h2 { color: #fff; font-weight: 800; margin-bottom: 0.25rem; }
.auth-header p { opacity: 0.85; margin: 0; }
.auth-body { padding: 2rem; }
.auth-footer {
    background: var(--surface-2);
    padding: 1rem 2rem;
    text-align: center;
    color: var(--ink-500);
    font-size: 0.92rem;
}

/* ============================ Dashboard header ============================ */
.dashboard-header {
    background:
        radial-gradient(700px 360px at 90% -20%, rgba(255, 215, 0, 0.16) 0, transparent 60%),
        linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
    color: #fff;
    padding: 2.5rem 0 2.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}
.dashboard-header h2 { color: #fff; font-weight: 800; letter-spacing: -0.02em; }
.dashboard-header p { opacity: 0.9; margin: 0; color: rgba(255,255,255,0.95); }
.dashboard-header .badge { backdrop-filter: blur(6px); }

/* ============================ Stat cards (dashboard) ============================ */
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.stat-card .card-body { padding: 1.25rem 0.5rem; }
.stat-card h3 { font-size: 1.6rem; font-weight: 800; color: var(--ink-900); margin: 0.5rem 0 0; }
.stat-card p { color: var(--ink-500); font-size: 0.82rem; margin: 0; text-transform: uppercase; letter-spacing: 0.04em; }

/* ============================ Sidebar nav ============================ */
.list-group-flush .list-group-item {
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-700);
    margin-bottom: 0.15rem;
    transition: all var(--transition);
}
.list-group-flush .list-group-item:hover { background: var(--surface-2); color: var(--brand-500); }
.list-group-flush .list-group-item.active {
    background: linear-gradient(135deg, var(--brand-700), var(--brand-500));
    color: #fff;
}

/* ============================ Tables ============================ */
.table { color: var(--ink-700); }
.table thead th {
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-500);
    padding: 0.75rem 1rem;
}
.table tbody td { padding: 0.75rem 1rem; vertical-align: middle; border-color: var(--border); }
.table-hover tbody tr:hover { background: var(--surface-2); }

/* ============================ Status badges ============================ */
.badge { font-weight: 600; padding: 0.4em 0.7em; border-radius: var(--radius-pill); font-size: 0.72rem; letter-spacing: 0.02em; }
.status-requested  { background: #fef3c7; color: #92400e; }
.status-accepted   { background: #dbeafe; color: #1e40af; }
.status-arrived    { background: #e0e7ff; color: #4338ca; }
.status-started    { background: #cffafe; color: #155e75; }
.status-completed  { background: #d1fae5; color: #065f46; }
.status-cancelled  { background: #fee2e2; color: #991b1b; }

/* ============================ Rating stars ============================ */
.rating-input { display: inline-flex; flex-direction: row-reverse; gap: 0.3rem; font-size: 2rem; line-height: 1; }
.rating-input input { display: none; }
.rating-input label { color: var(--ink-100); cursor: pointer; transition: color 0.15s; margin: 0; }
.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label { color: var(--warning); }

/* ============================ SOS ============================ */
.sos-pulse { animation: sosPulse 1.4s infinite; }
@keyframes sosPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50% { transform: scale(1.03); box-shadow: 0 0 0 14px rgba(239, 68, 68, 0); }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============================ Footer ============================ */
.footer {
    background: linear-gradient(135deg, #0a2a5e 0%, #0d1b3d 100%);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}
.footer a { color: rgba(255,255,255,0.75); }
.footer a:hover { color: #fff; }
.footer h5 { color: #fff; font-weight: 700; margin-bottom: 1rem; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.footer p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer p i { color: var(--accent); margin-right: 0.4rem; }
.footer hr { border-color: rgba(255,255,255,0.1); margin: 1.5rem 0 0; }
.social-links { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.social-links a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 1rem;
    transition: all var(--transition);
}
.social-links a:hover { background: var(--accent); color: var(--brand-700); transform: translateY(-2px); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ============================ SweetAlert2 tuning ============================ */
.swal2-popup { border-radius: var(--radius-md) !important; font-family: 'Inter', sans-serif !important; }
.swal2-title { color: var(--ink-900) !important; font-weight: 700 !important; }
.swal2-styled.swal2-confirm, .swal2-styled.swal2-cancel {
    border-radius: var(--radius-sm) !important;
    padding: 0.6rem 1.3rem !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}
.swal2-toast { padding: 0.7rem 1rem !important; border-radius: 12px !important; box-shadow: var(--shadow-lg) !important; }

/* ============================ Misc ============================ */
.text-uthm-blue { color: var(--brand-500) !important; }
.bg-uthm-blue { background: var(--brand-500) !important; }
.shadow-soft { box-shadow: var(--shadow-md) !important; }

/* ============================ Button ripple ============================ */
.btn { position: relative; overflow: hidden; }
.btn .ripple {
    position: absolute; border-radius: 50%; transform: scale(0);
    background: rgba(255, 255, 255, 0.45);
    animation: rippleAnim 600ms ease-out;
    pointer-events: none;
}
@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* ============================ Count-up stat ============================ */
.count-up { display: inline-block; will-change: contents; }

/* ============================ Top scroll progress ============================ */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--brand-500));
    z-index: 2000; transition: width 100ms linear;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
}

/* ============================ Section title underline grows on view ============================ */
.section-title { overflow: visible; }

/* ============================ Subtle floating for safety badges ============================ */
.safety-badge { transition: transform var(--transition); }
.safety-badge:hover { transform: scale(1.15) rotate(8deg); }

/* ============================ Improved hero buttons ============================ */
.hero-section .btn-light, .hero-section .btn-outline-light {
    backdrop-filter: blur(4px);
    transition: all 250ms cubic-bezier(.2,.8,.2,1);
}
.hero-section .btn-light:hover { transform: translateY(-3px); box-shadow: 0 14px 28px -8px rgba(0,0,0,0.25); }
.hero-section .btn-outline-light:hover { transform: translateY(-3px); border-color: #fff; }

/* ============================ Reduce motion accessibility ============================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .scroll-hint { display: none; }
}

/* ============================ Responsive ============================ */
@media (max-width: 991px) {
    .hero-section { padding: 130px 0 70px; text-align: center; }
    .hero-buttons { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-illustration { display: none; }
}
@media (max-width: 575px) {
    .dashboard-header { padding: 2rem 0; border-radius: 0 0 var(--radius-md) var(--radius-md); }
    .dashboard-header h2 { font-size: 1.4rem; }
    .stat-card h3 { font-size: 1.3rem; }
    .auth-body { padding: 1.5rem; }
    .card-body { padding: 1rem; }
    .btn { padding: 0.5rem 0.85rem; font-size: 0.92rem; }
}

/* ============================ Live map driver car icon ============================ */
.leaflet-div-icon.driver-car-icon {
    background: transparent !important;
    border: none !important;
}
.driver-car-icon-inner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(145deg, #0056b3, #0a2a5e);
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    line-height: 1;
    position: relative;
}
.driver-car-icon-inner::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(0, 86, 179, 0.45);
    animation: driverCarPulse 1.6s infinite;
}
@keyframes driverCarPulse {
    0% { transform: scale(0.85); opacity: 1; }
    100% { transform: scale(1.55); opacity: 0; }
}
