:root {
    --bg: #0b1622;
    --bg-2: #101f30;
    --card: rgba(255,255,255,0.05);
    --card-border: rgba(255,255,255,0.08);
    --green: #22c55e;
    --green-dark: #16a34a;
    --text: #e5edf5;
    --text-dim: #93a4b8;
    --accent: #38bdf8;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at 50% 0%, #16283c 0%, var(--bg) 60%);
    color: var(--text);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    animation: bodyFadeIn 0.5s ease both;
}

@keyframes bodyFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Twinkling starfield background */
.stars-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}
.star {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    animation-name: twinkle;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    box-shadow: 0 0 4px rgba(255,255,255,0.6);
}
@keyframes twinkle {
    0%, 100% { opacity: 0.15; transform: scale(0.7); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Soft glowing orb, echoes the "scooter beam" from the original mockup */
.glow-orb {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(34,197,94,0.16) 0%, rgba(34,197,94,0) 70%);
    z-index: 0;
    pointer-events: none;
    animation: orbPulse 5s ease-in-out infinite;
}
@keyframes orbPulse {
    0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.container, .wide-container, .top-nav {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.wide-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px 60px;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    position: relative;
}

.brand-inner {
    position: relative;
    display: inline-block;
    animation: logoEntrance 0.9s cubic-bezier(.22,1.4,.4,1) both;
}

.brand img {
    max-width: 240px;
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 6px 24px rgba(34,197,94,0.35));
    animation: floaty 4s ease-in-out infinite;
    animation-delay: 0.9s;
    position: relative;
    z-index: 1;
}

@keyframes logoEntrance {
    0% { opacity: 0; transform: scale(0.4) translateY(30px) rotate(-8deg); }
    55% { opacity: 1; transform: scale(1.08) translateY(-6px) rotate(2deg); }
    75% { transform: scale(0.96) translateY(0) rotate(-1deg); }
    100% { opacity: 1; transform: scale(1) translateY(0) rotate(0); }
}

/* Sparkle shine sweeping across the logo once it lands */
.brand-inner::after {
    content: '';
    position: absolute;
    top: 0; left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.55) 45%, transparent 90%);
    transform: skewX(-20deg);
    z-index: 2;
    pointer-events: none;
    animation: logoShine 3.2s ease-in-out 1.1s infinite;
    mix-blend-mode: overlay;
}
@keyframes logoShine {
    0% { left: -60%; opacity: 0; }
    8% { opacity: 0.9; }
    28% { left: 130%; opacity: 0; }
    100% { left: 130%; opacity: 0; }
}

/* Soft pulsing halo behind the logo */
.brand-inner::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(56,189,248,0.22) 0%, rgba(34,197,94,0.12) 45%, transparent 75%);
    border-radius: 50%;
    z-index: 0;
    animation: haloPulse 3.4s ease-in-out 0.9s infinite;
}
@keyframes haloPulse {
    0%, 100% { transform: scale(0.92); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

h1, h2, h3 { color: #fff; margin-top: 0; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    backdrop-filter: blur(6px);
    animation: fadeUp 0.5s ease both;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ride-card {
    text-align: center;
    cursor: default;
    transition: transform 0.28s cubic-bezier(.2,.8,.2,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.ride-card:hover {
    transform: translateY(-6px) scale(1.015);
    box-shadow: 0 14px 34px rgba(34,197,94,0.16);
    border-color: rgba(34,197,94,0.4);
}
.ride-card .icon {
    font-size: 40px;
    display: inline-block;
    animation: floaty 3.2s ease-in-out infinite;
}
.ride-card:nth-of-type(2) .icon { animation-delay: .3s; }
.ride-card:nth-of-type(3) .icon { animation-delay: .6s; }
.ride-card h3 { margin: 8px 0 4px; }
.ride-card .price { color: var(--green); font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.ride-card .avail { color: var(--text-dim); font-size: 13px; margin-bottom: 14px; }

/* Stagger ride cards on the home page */
.ride-card:nth-of-type(1) { animation-delay: 0.05s; }
.ride-card:nth-of-type(2) { animation-delay: 0.15s; }
.ride-card:nth-of-type(3) { animation-delay: 0.25s; }

.btn {
    display: inline-block;
    width: 100%;
    padding: 13px 16px;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    transition: transform 0.15s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}
.btn:active { transform: scale(0.96); }

.btn-green {
    background: linear-gradient(180deg, #34d05a, var(--green-dark));
    color: #06210f;
    box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.btn-green:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(34,197,94,0.4); }

.btn-disabled {
    background: #2a3947;
    color: #6b7d8f;
    cursor: not-allowed;
}
.btn-disabled:hover { transform: none; }
.btn-disabled:active { transform: none; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

.btn-red {
    background: linear-gradient(180deg, #f87171, #dc2626);
    color: #2b0808;
    box-shadow: 0 4px 16px rgba(220,38,38,0.25);
}
.btn-red:hover { filter: brightness(1.08); transform: translateY(-2px); }

.btn-small {
    width: auto;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--text-dim);
    margin: 14px 0 6px;
}

input[type=text], input[type=tel], input[type=password], input[type=file], select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: #16232f;
    color: var(--text);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type=text]:focus, input[type=tel]:focus, input[type=password]:focus, select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(34,197,94,0.15);
}

input::placeholder { color: #5c7285; }

.checkbox-row {
    display: flex;
    gap: 10px;
    background: #16232f;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
    font-size: 13px;
    color: var(--text-dim);
    align-items: flex-start;
    transition: border-color 0.2s ease;
}
.checkbox-row:has(input:checked) { border-color: rgba(34,197,94,0.4); }

.checkbox-row input { margin-top: 3px; accent-color: var(--green); }

.pay-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}
.pay-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}
.pay-tab:hover { border-color: rgba(34,197,94,0.5); transform: translateY(-1px); }
.pay-tab.active { border-color: var(--green); color: var(--green); background: rgba(34,197,94,0.08); box-shadow: 0 0 0 3px rgba(34,197,94,0.08); }

.qr-box { text-align: center; animation: fadeUp 0.35s ease both; }
.qr-box img {
    width: 220px;
    max-width: 80%;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
    transition: transform 0.25s ease;
}
.qr-box img:hover { transform: scale(1.03); }
.qr-number {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #16232f;
    border: 1px solid var(--card-border);
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    margin-top: 6px;
}
.copy-btn {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.15s ease;
}
.copy-btn:hover { color: #7dd3fc; }
.copy-btn:active { transform: scale(0.92); }
.copy-btn.copied { color: var(--green); }

.status-box {
    text-align: center;
    padding: 24px 12px;
    animation: fadeUp 0.4s ease both;
}
.spinner {
    width: 36px; height: 36px;
    border: 3px solid var(--card-border);
    border-top-color: var(--green);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: spin 0.9s linear infinite;
    box-shadow: 0 0 16px rgba(34,197,94,0.15);
}
@keyframes spin { to { transform: rotate(360deg); } }

.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    margin-right: 6px;
    animation: pulseDot 1.4s ease-in-out infinite;
}
@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.15); }
}

.success-box { text-align: center; padding: 20px 8px; animation: fadeUp 0.45s ease both; }
.success-icon {
    font-size: 48px;
    margin-bottom: 8px;
    display: inline-block;
    animation: popIn 0.55s cubic-bezier(.26,1.4,.6,1) both;
}
@keyframes popIn {
    0% { transform: scale(0) rotate(-20deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(6deg); }
    100% { transform: scale(1) rotate(0); opacity: 1; }
}

/* Live ride meter (ride.php) */
.meter-box {
    background: radial-gradient(circle at 50% 0%, rgba(34,197,94,0.12), transparent 70%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 26px 16px;
    margin: 18px 0 24px;
}
.meter-label {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.meter-timer {
    font-size: 44px;
    font-weight: 800;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    animation: meterGlow 2s ease-in-out infinite;
}
@keyframes meterGlow {
    0%, 100% { text-shadow: 0 0 12px rgba(34,197,94,0.15); }
    50% { text-shadow: 0 0 22px rgba(34,197,94,0.35); }
}
.meter-amount-label {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 16px;
}
.meter-amount {
    font-size: 26px;
    font-weight: 700;
    color: var(--green);
    margin-top: 2px;
}

/* Amount due box (payment.php) */
.amount-due-box {
    text-align: center;
    background: rgba(34,197,94,0.07);
    border: 1px solid rgba(34,197,94,0.3);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    animation: fadeUp 0.4s ease both;
}
.amount-due-label {
    color: var(--text-dim);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.amount-due-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--green);
    margin: 4px 0;
}
.amount-due-sub {
    color: var(--text-dim);
    font-size: 13px;
}

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
table.data-table th, table.data-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--card-border);
}
table.data-table th { color: var(--text-dim); font-weight: 600; font-size: 12px; text-transform: uppercase; }
table.data-table tr { transition: background 0.15s ease; }
table.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}
.badge-pending { background: rgba(250,204,21,0.15); color: #facc15; }
.badge-active { background: rgba(34,197,94,0.15); color: #22c55e; }
.badge-done { background: rgba(148,163,184,0.15); color: #94a3b8; }

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.top-nav a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    margin-left: 14px;
    position: relative;
    transition: color 0.2s ease;
}
.top-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -3px;
    width: 0; height: 1px;
    background: var(--green);
    transition: width 0.2s ease;
}
.top-nav a:hover { color: var(--text); }
.top-nav a:hover::after { width: 100%; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-box {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 16px;
    animation: fadeUp 0.45s ease both;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-box:hover { transform: translateY(-3px); border-color: rgba(34,197,94,0.35); }
.stat-grid .stat-box:nth-child(1) { animation-delay: 0.03s; }
.stat-grid .stat-box:nth-child(2) { animation-delay: 0.09s; }
.stat-grid .stat-box:nth-child(3) { animation-delay: 0.15s; }
.stat-grid .stat-box:nth-child(4) { animation-delay: 0.21s; }
.stat-grid .stat-box:nth-child(5) { animation-delay: 0.27s; }
.stat-box .num { font-size: 24px; font-weight: 700; color: var(--green); }
.stat-box .lbl { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

.error-msg {
    background: rgba(248,113,113,0.12);
    border: 1px solid rgba(248,113,113,0.35);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}
.info-msg {
    background: rgba(56,189,248,0.1);
    border: 1px solid rgba(56,189,248,0.3);
    color: #7dd3fc;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 14px;
}

.section-title {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
}

a { color: var(--accent); }

.tag-note {
    font-size: 12px;
    color: var(--text-dim);
    margin-top: -6px;
    margin-bottom: 6px;
}

/* City skyline silhouette anchoring the bottom of the home page */
.skyline {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(11,22,34,0) 0%, rgba(11,22,34,0.9) 100%),
        repeating-linear-gradient(90deg,
            #0e1c2b 0 40px,
            #0e1c2b 40px calc(40px + 1px),
            transparent calc(40px + 1px) 80px
        );
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, black 35%);
    mask-image: linear-gradient(180deg, transparent 0%, black 35%);
    opacity: 0.9;
}

/* Small ambient bounce for emoji within button labels */
.btn span.emoji {
    display: inline-block;
    animation: floaty 2.4s ease-in-out infinite;
}
