/* AMT Bus Booking - Devotional Blue Theme for Hindu God */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Tamil:wght@400;500;600;700&display=swap');

:root {
    --primary: #1a237e;
    --primary-dark: #0d1259;
    --primary-light: #3949ab;
    --primary-lighter: #7986cb;
    --primary-bg: #e8eaf6;
    --accent: #ff6f00;
    --accent-light: #ffa726;
    --gold: #d4a017;
    --gold-light: #f5d060;
    --saffron: #ff7043;
    --secondary: #0277bd;
    --success: #2e7d32;
    --danger: #c62828;
    --warning: #f9a825;
    --info: #0277bd;
    --light: #f0f2f8;
    --dark: #1a1a2e;
    --white: #ffffff;
    --gray: #757575;
    --gray-light: #e0e0e0;
    --border: #c5cae9;
    --shadow: 0 2px 12px rgba(26,35,126,0.1);
    --shadow-lg: 0 6px 24px rgba(26,35,126,0.18);
    --radius: 8px;
    --radius-lg: 14px;
    --font-ta: 'Noto Sans Tamil', 'Latha', sans-serif;
    --font-en: 'Segoe UI', Roboto, sans-serif;
    --seat-male: #1976d2;
    --seat-female: #e91e63;
    --seat-booked: #9e9e9e;
    --seat-selected: #43a047;
    --seat-blocked: #b71c1c;
    --seat-held: #ff8f00;
    --seat-available: #c5cae9;
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    --gradient-gold: linear-gradient(135deg, #d4a017 0%, #f5d060 100%);
    --gradient-devotional: linear-gradient(135deg, #0d1259 0%, #1a237e 30%, #283593 60%, #3949ab 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-en);
    color: var(--dark);
    background: var(--light);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body.lang-ta { font-family: var(--font-ta); font-size: 1.05rem; }

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== TOP HEADER BAR ===== */
.top-header {
    background: var(--gradient-devotional);
    color: var(--white);
    padding: 12px 0;
    border-bottom: 3px solid var(--gold);
    position: relative;
    overflow: hidden;
}
.top-header::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(245,208,96,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.top-header .container {
    display: flex; align-items: center; justify-content: space-between; min-height: 70px;
    position: relative; z-index: 1;
}
.top-header-left {
    display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.top-header-left img {
    width: 120px; height: 120px; border-radius: 50%;
    border: 2px solid var(--gold); object-fit: cover;
    background: #fff;
}
.top-header-center { text-align: center; flex: 1; padding: 0 15px; }
.top-header-center h1 {
    font-size: 1.65rem; font-family: var(--font-ta); color: var(--gold-light);
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5); letter-spacing: 1px;
    line-height: 1.3;
}
.top-header-center .tagline-top {
    font-size: 1.1rem; color: var(--gold); font-family: var(--font-ta);
    font-weight: 700; letter-spacing: 1.5px; margin-bottom: 2px;
}
.top-header-center .tagline {
    font-size: 0.85rem; color: var(--primary-lighter); font-family: var(--font-ta);
    margin-top: 2px; letter-spacing: 0.5px;
}
.top-header-center .reg-num {
    font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 3px; letter-spacing: 0.5px;
}
.top-header-right { text-align: right; font-size: 0.85rem; min-width: 170px; flex-shrink: 0; }
.top-header-right .date-display { font-weight: 600; color: var(--gold-light); font-size: 0.82rem; }
.top-header-right .time-display { font-size: 1.1rem; color: var(--white); font-weight: 700; letter-spacing: 1px; margin-top: 2px; }

/* ===== NAVBAR ===== */
.navbar {
    background: var(--dark); color: var(--white); padding: 0;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.navbar .container { display: flex; align-items: center; justify-content: center; min-height: 48px; }
.nav-toggle {
    display: none; background: none; border: none; color: var(--white);
    font-size: 1.5rem; cursor: pointer; padding: 5px; position: absolute; left: 15px;
}
.nav-menu {
    display: flex; list-style: none; gap: 2px; align-items: center; justify-content: center;
}
.nav-menu a {
    color: rgba(255,255,255,0.85); padding: 12px 18px; transition: all 0.3s;
    font-size: 0.9rem; display: block; border-bottom: 3px solid transparent;
}
.nav-menu a:hover, .nav-menu a.active {
    color: var(--gold-light); background: rgba(255,255,255,0.05); border-bottom-color: var(--gold);
}
.nav-menu .btn-book {
    background: var(--gradient-gold); color: var(--dark); font-weight: 700;
    border-radius: var(--radius); padding: 8px 20px; margin-left: 10px; border-bottom: none;
}
.nav-menu a.btn-book:hover { background: var(--gradient-gold); box-shadow: 0 0 15px rgba(212,160,23,0.5); color: var(--dark) !important; }
.lang-switch {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.3);
    color: var(--white); padding: 5px 12px; border-radius: 4px; cursor: pointer;
    font-size: 0.85rem; margin-left: 10px;
}
.lang-switch option {
    background: white; color: #333;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: linear-gradient(90deg, #0d1259, #1a237e, #0d1259);
    color: var(--gold-light); padding: 8px 0; overflow: hidden; font-size: 0.9rem;
    border-bottom: 1px solid var(--primary-light);
}
.announcement-bar .scroll-text {
    display: inline-block; white-space: nowrap;
    animation: scroll-left 60s linear infinite; padding-left: 100%;
}
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

/* ===== HERO CAROUSEL ===== */
.carousel { position: relative; overflow: hidden; background: var(--dark); }
.carousel-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(30px) brightness(0.4); transform: scale(1.2); transition: background-image 0.6s ease; z-index: 0; }
.carousel-inner { display: flex; transition: transform 0.6s ease; position: relative; z-index: 1; }
.carousel-item { min-width: 100%; position: relative; }
.carousel-item img { width: 100%; height: auto; max-height: 500px; object-fit: contain; }
.carousel-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(26,35,126,0.7); color: var(--white); border: none;
    padding: 0; cursor: pointer; font-size: 1.2rem; z-index: 10;
    border-radius: 50%; transition: all 0.3s; width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
}
.carousel-btn:hover { background: var(--primary); box-shadow: 0 0 15px rgba(57,73,171,0.5); }
.carousel-btn.prev { left: 15px; }
.carousel-btn.next { right: 15px; }

/* ===== HERO SECTION (no banners fallback) ===== */
.hero-section {
    position: relative; overflow: hidden; min-height: 420px;
    background: var(--gradient-devotional);
    display: flex; align-items: center; justify-content: center;
}
.hero-section::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(212,160,23,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(212,160,23,0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(57,73,171,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1; text-align: center; padding: 40px 20px;
}
.hero-logo {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid var(--gold); background: #fff;
    object-fit: cover; margin-bottom: 18px;
    box-shadow: 0 0 25px rgba(212,160,23,0.25);
}
.hero-title {
    font-size: 2.4rem; font-family: var(--font-ta); color: var(--gold-light);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5); margin-bottom: 6px;
    line-height: 1.3;
}
.hero-subtitle {
    font-size: 1.2rem; color: var(--primary-lighter); font-family: var(--font-ta);
    margin-bottom: 8px; letter-spacing: 1px;
}
.hero-desc {
    font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 600px; margin: 0 auto 25px;
    line-height: 1.6;
}
.hero-cta {
    display: inline-block; padding: 15px 55px; background: var(--gradient-gold);
    color: var(--dark); font-weight: 700; font-size: 1.2rem; border-radius: 50px;
    box-shadow: 0 4px 20px rgba(212,160,23,0.45); transition: all 0.3s;
    border: none; cursor: pointer; text-decoration: none;
    text-transform: uppercase; letter-spacing: 1px;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 35px rgba(212,160,23,0.65); color: var(--dark); }
.hero-divider {
    width: 80px; height: 2px; background: var(--gold); margin: 12px auto; border-radius: 2px; opacity: 0.6;
}
.hero-reg {
    font-size: 0.8rem; color: rgba(255,255,255,0.45); margin-top: 15px; letter-spacing: 0.5px;
}

.carousel-placeholder {
    width: 100%; height: 380px; background: var(--gradient-devotional);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: var(--white); text-align: center; padding: 30px; position: relative; overflow: hidden;
}
.carousel-placeholder::before {
    content: ''; position: absolute; font-size: 8rem; opacity: 0.06;
    top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.carousel-placeholder h1 {
    font-size: 2.5rem; font-family: var(--font-ta); color: var(--gold-light);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.4); margin-bottom: 10px;
}
.carousel-placeholder p { font-size: 1.1rem; opacity: 0.9; color: var(--primary-lighter); }

/* ===== BOOK NOW CTA ===== */
.cta-panel {
    background: var(--gradient-devotional); padding: 40px 0; text-align: center;
    position: relative; overflow: hidden;
}
.cta-panel::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(245,208,96,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.cta-panel h3 { color: var(--gold-light); font-size: 1.3rem; margin-bottom: 15px; font-family: var(--font-ta); position: relative; }
.btn-book-now {
    display: inline-block; padding: 15px 55px; background: var(--gradient-gold);
    color: var(--dark); font-weight: 700; font-size: 1.15rem; border-radius: 50px;
    box-shadow: 0 4px 20px rgba(212,160,23,0.4); transition: all 0.3s;
    border: none; cursor: pointer; text-decoration: none; position: relative;
}
.btn-book-now:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(212,160,23,0.6); color: var(--dark); }

/* ===== HIGHLIGHTS STRIP ===== */
.highlights-strip {
    background: var(--white); border-bottom: 1px solid var(--border);
    padding: 25px 0;
}
.highlights-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
}
.highlight-item {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.highlight-icon {
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; background: var(--primary-bg); color: var(--primary);
    border: 2px solid var(--border);
}
.highlight-icon .hi-svg { display: flex; }
.highlight-icon .hi-svg svg { width: 24px; height: 24px; }
.highlight-text { font-size: 0.85rem; font-weight: 600; color: var(--dark); }
.highlight-sub { font-size: 0.75rem; color: var(--gray); }

/* ===== SECTIONS ===== */
.section { padding: 50px 0; }
.section-alt { background: var(--white); }
.section-title {
    text-align: center; margin-bottom: 40px; font-size: 1.8rem; color: var(--primary); position: relative;
}
.section-title::after {
    content: ''; display: block; width: 60px; height: 3px;
    background: var(--gold); margin: 10px auto 0; border-radius: 2px;
}

/* ===== HOME 3 CARDS ===== */
.home-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; padding: 0 15px; }
.home-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden; transition: all 0.4s; position: relative;
    border: 1px solid var(--border);
}
.home-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: var(--gradient-gold);
}
.home-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.home-card-icon {
    text-align: center; padding: 30px 20px 10px; font-size: 2.8rem;
    position: relative;
}
.home-card-body { padding: 0 24px 28px; text-align: center; }
.home-card-body h3 { color: var(--primary); font-size: 1.15rem; margin-bottom: 10px; font-weight: 700; }
.home-card-body p { color: var(--gray); font-size: 0.9rem; line-height: 1.7; }
.home-card-body .btn { margin-top: 15px; }

/* ===== CARDS ===== */
.card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }
.card-title { font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; color: var(--primary); }
.card-text { color: var(--gray); font-size: 0.95rem; }
.card-img { width: 100%; height: 200px; object-fit: cover; }

/* ===== GRID ===== */
.grid { display: grid; gap: 25px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ===== BUTTONS ===== */
.btn {
    display: inline-block; padding: 10px 24px; border: none; border-radius: var(--radius);
    cursor: pointer; font-size: 0.95rem; font-weight: 500; text-align: center;
    transition: all 0.3s; text-decoration: none; line-height: 1.4;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); box-shadow: 0 2px 10px rgba(26,35,126,0.3); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #01579b; color: var(--white); }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #1b5e20; color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #b71c1c; color: var(--white); }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-gold { background: var(--gradient-gold); color: var(--dark); font-weight: 600; }
.btn-gold:hover { box-shadow: 0 3px 12px rgba(212,160,23,0.4); color: var(--dark); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 4px 10px; font-size: 0.78rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn-whatsapp { background: #25D366; color: var(--white); font-weight: 600; border-radius: 50px; padding: 10px 25px; }
.btn-whatsapp:hover { background: #128C7E; color: var(--white); }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; font-size: 0.9rem; color: var(--dark); }
.form-control {
    width: 100%; padding: 10px 14px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s; font-family: inherit; background: var(--white);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,35,126,0.12); }
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a237e' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 35px;
}
.form-row { display: flex; gap: 15px; }
.form-row .form-group { flex: 1; }
.form-text { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }
.form-label-bilingual { display: flex; gap: 8px; align-items: center; }
.lang-tag { font-size: 0.65rem; padding: 1px 6px; border-radius: 3px; font-weight: 600; }
.lang-tag.en { background: #e3f2fd; color: #1565c0; }
.lang-tag.ta { background: #fce4ec; color: #c62828; }

/* ===== AUTH PAGES ===== */
.auth-wrapper {
    min-height: calc(100vh - 180px); display: flex; align-items: center; justify-content: center;
    padding: 30px 15px; background: var(--dark); position: relative; overflow: hidden;
}
.auth-wrapper::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(26, 32, 44, 0.55); z-index: 1;
}
.auth-wrapper .carousel { height: 100%; }
.auth-wrapper .carousel-inner { height: 100%; }
.auth-wrapper .carousel-item { height: 100%; }
.auth-wrapper .carousel-item img { height: 100% !important; max-height: none !important; object-fit: cover !important; }
.auth-card {
    background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 440px; padding: 40px 35px; border-top: 4px solid var(--primary);
    position: relative; z-index: 2;
}
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-header img { width: 50px; height: 50px; border-radius: 50%; margin-bottom: 10px; border: 2px solid var(--gold); object-fit: cover; background: #fff; }
.auth-header h2 { color: var(--primary); font-size: 1.4rem; margin-bottom: 4px; }
.auth-header p { color: var(--gray); font-size: 0.9rem; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; }

/* ===== ALERTS ===== */
.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.9rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.alert-error { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.alert-warning { background: #fff8e1; color: #f57f17; border: 1px solid #fff9c4; }
.alert-info { background: #e8eaf6; color: #1a237e; border: 1px solid #c5cae9; }

/* ===== TABLES ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
table th { background: var(--primary); color: var(--white); padding: 8px 10px; text-align: left; font-weight: 500; font-size: 0.82rem; white-space: nowrap; }
table td { padding: 7px 10px; border-bottom: 1px solid var(--border); font-size: 0.82rem; }
table tbody tr:hover { background: var(--primary-bg); }

/* ===== SEAT LAYOUT ===== */
.bus-view-container {
    position: relative; background: var(--white); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); padding: 20px;
}
.bus-outline {
    position: relative; max-width: 380px; margin: 0 auto;
    background: linear-gradient(180deg, #dce0f0 0%, #e8eaf6 30%, #f0f2f8 100%);
    border: 3px solid #5c6bc0; border-radius: 40px 40px 12px 12px;
    padding: 0; overflow: hidden;
    box-shadow: 0 4px 20px rgba(26,35,126,0.15), inset 0 0 30px rgba(255,255,255,0.3);
}
/* Bus windshield */
.bus-outline::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%;
    height: 8px; background: linear-gradient(90deg, transparent 0%, rgba(92,107,192,0.4) 20%, rgba(144,202,249,0.5) 50%, rgba(92,107,192,0.4) 80%, transparent 100%);
    border-radius: 0 0 50% 50%;
    z-index: 1;
}
/* Left side mirror */
.bus-outline::after {
    content: '';
    position: absolute; top: 28px; left: -10px; width: 8px; height: 18px;
    background: #5c6bc0; border-radius: 4px 0 0 4px;
}
.bus-driver-area {
    text-align: right; padding: 12px 20px 8px; margin-bottom: 0;
    border-bottom: 2px dashed rgba(92,107,192,0.3);
    font-size: 0.8rem; color: var(--gray);
    background: linear-gradient(180deg, rgba(92,107,192,0.12) 0%, transparent 100%);
    position: relative;
}
.bus-driver-area .driver-icon { font-size: 1.5rem; }
/* Bus door indicator */
.bus-door {
    position: absolute; left: -3px; top: 50%; transform: translateY(-50%);
    width: 6px; height: 30px; background: var(--gold); border-radius: 0 4px 4px 0;
}
/* Bus rear */
.bus-rear {
    padding: 8px; text-align: center; font-size: 0.7rem; color: rgba(92,107,192,0.5);
    border-top: 2px dashed rgba(92,107,192,0.2); letter-spacing: 3px;
    background: linear-gradient(0deg, rgba(92,107,192,0.08) 0%, transparent 100%);
}
/* Bus body stripe */
.bus-body-stripe {
    height: 4px; background: linear-gradient(90deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    margin: 0; opacity: 0.6;
}
/* Seat container inside bus */
.bus-seats-container {
    padding: 15px 20px;
}

.seat-grid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.seat-row { display: flex; gap: 6px; align-items: center; }
.seat {
    width: 44px; height: 44px; border-radius: 8px 8px 4px 4px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: all 0.2s;
    border: 2px solid transparent; user-select: none; position: relative;
}
.seat .seat-icon { font-size: 1rem; line-height: 1; }
.seat .seat-num { font-size: 0.6rem; line-height: 1; margin-top: 1px; }

.seat.available { background: var(--seat-available); color: var(--primary); border-color: #9fa8da; }
.seat.available:hover { background: #9fa8da; transform: scale(1.1); border-color: var(--primary); }
.seat.male { background: var(--seat-male); color: var(--white); border-color: #1565c0; }
.seat.male:hover { background: #1565c0; transform: scale(1.1); }
.seat.female { background: var(--seat-female); color: var(--white); border-color: #c2185b; }
.seat.female:hover { background: #c2185b; transform: scale(1.1); }
.seat.booked { background: var(--seat-booked); color: var(--white); cursor: not-allowed; opacity: 0.6; border-color: #757575; }
.seat.selected { background: var(--seat-selected); color: var(--white); border-color: #2e7d32; transform: scale(1.08); box-shadow: 0 0 10px rgba(67,160,71,0.4); }
.seat.blocked { background: var(--seat-blocked); color: var(--white); cursor: not-allowed; border-color: #b71c1c; }
.seat.held { background: var(--seat-held); color: var(--dark); cursor: not-allowed; border-color: #ef6c00; }
.seat.aisle { background: transparent; cursor: default; width: 25px; border: none; }

.seat-step { width: 100%; height: 3px; background: var(--border); margin: 5px 0; border-radius: 2px; }
.seat-legend {
    display: flex; flex-wrap: wrap; gap: 15px; justify-content: center; margin-top: 15px;
    padding: 12px; background: var(--primary-bg); border-radius: var(--radius);
}
.seat-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--dark); }
.seat-legend-color { width: 22px; height: 22px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

/* ===== BUS SELECTOR ===== */
.bus-list { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; }
.bus-card { padding: 15px 25px; background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.3s; text-align: center; min-width: 120px; }
.bus-card:hover { border-color: var(--primary); background: var(--primary-bg); }
.bus-card.active { border-color: var(--primary); background: var(--primary-bg); box-shadow: 0 0 10px rgba(26,35,126,0.2); }
.bus-card .bus-label { font-weight: 600; font-size: 1rem; color: var(--primary); }

/* ===== TRIP CARDS ===== */
.trip-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 16px 20px;
    box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
    margin-bottom: 15px; transition: all 0.3s; border-left: 5px solid var(--primary);
    position: relative; overflow: hidden;
}
.trip-card::before {
    content: ''; position: absolute; top: 0; right: 0; width: 120px; height: 100%;
    background: linear-gradient(135deg, transparent 40%, rgba(26,35,126,0.03) 100%);
    pointer-events: none;
}
.trip-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-left-color: var(--gold); }

/* Date Badge */
.trip-date-badge {
    background: linear-gradient(135deg, #1a1a2e, #16213e); color: #fff;
    border-radius: 10px; padding: 8px 12px; text-align: center; min-width: 60px; flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(26,35,126,0.25);
}
.tdb-day { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1; }
.tdb-month { display: block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; opacity: 0.85; }
.tdb-year { display: block; font-size: 0.6rem; opacity: 0.6; }

/* Trip Info */
.trip-info { flex: 1; min-width: 0; }
.trip-info h3 { font-size: 1.1rem; color: var(--primary); }
.trip-info p { font-size: 0.9rem; color: var(--gray); margin-top: 4px; }
.trip-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trip-from, .trip-to { font-weight: 700; font-size: 1rem; color: #1a1a2e; }
.trip-arrow { color: var(--gold); font-size: 0.9rem; }
.trip-price { margin-top: 6px; }
.trip-price-tag {
    background: linear-gradient(135deg, #00b894, #00cec9); color: #fff;
    padding: 2px 10px; border-radius: 12px; font-weight: 800; font-size: 0.9rem;
}
.trip-price small { color: var(--gray); font-size: 0.75rem; margin-left: 4px; }
.trip-time { margin-top: 4px; font-size: 0.8rem; color: #666; }
.trip-meta-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* Trip Action */
.trip-action { text-align: center; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }

/* ===== AVAILABILITY ===== */
.availability-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.availability-badge.high { background: #e8f5e9; color: #2e7d32; }
.availability-badge.medium { background: #fff8e1; color: #f57f17; }
.availability-badge.low { background: #ffebee; color: #c62828; }
.availability-strip {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 16px 24px; display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 12px; transition: all 0.3s;
    border-left: 4px solid var(--primary);
}
.availability-strip:hover { box-shadow: var(--shadow); border-left-color: var(--gold); }
.availability-strip .trip-avail { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.availability-strip .trip-avail strong { color: var(--primary); }

/* ===== PASSENGER FORM ===== */
.passenger-entry {
    background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 15px; margin-bottom: 12px; position: relative; border-left: 3px solid var(--primary);
}
.passenger-header {
    display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.passenger-entry .seat-ref {
    background: var(--primary);
    color: var(--white); padding: 2px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 600;
}
.passenger-entry .seat-gender-tag {
    padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600;
}
.seat-gender-tag.male { background: #e3f2fd; color: #1565c0; }
.seat-gender-tag.female { background: #fce4ec; color: #c62828; }
.passenger-entry .remove-passenger {
    position: absolute; top: 10px; right: 10px; background: var(--danger);
    color: var(--white); border: none; width: 28px; height: 28px; border-radius: 50%;
    cursor: pointer; font-size: 0.9rem; display: flex; align-items: center; justify-content: center;
}

/* ===== BOOKING SUMMARY ===== */
.summary-section { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 25px; margin-bottom: 20px; }
.summary-section h3 { color: var(--primary); margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid var(--gold); }
.summary-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row .label { color: var(--gray); font-weight: 500; }
.summary-row .value { font-weight: 600; color: var(--dark); }
.summary-total {
    background: var(--primary-bg); padding: 15px 20px; border-radius: var(--radius);
    display: flex; justify-content: space-between; align-items: center; margin-top: 15px;
    font-size: 1.2rem; border: 2px solid var(--primary);
}
.summary-total .amount { color: var(--primary); font-weight: 700; font-size: 1.5rem; }

/* ===== PAYMENT ===== */
.payment-options { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }
.payment-option { flex: 1; min-width: 140px; padding: 20px; border: 2px solid var(--border); border-radius: var(--radius-lg); text-align: center; cursor: pointer; transition: all 0.3s; }
.payment-option:hover { border-color: var(--primary); }
.payment-option.active { border-color: var(--primary); background: var(--primary-bg); }
.payment-option .icon { font-size: 2rem; margin-bottom: 8px; }
.qr-code-container { text-align: center; padding: 20px; }
.qr-code-container img { max-width: 250px; border: 4px solid var(--primary); border-radius: 8px; }
.upi-buttons { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 15px; }
.upi-btn {
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 25px;
    border-radius: 50px; font-weight: 600; font-size: 0.95rem;
    border: none; cursor: pointer; transition: all 0.3s; text-decoration: none;
}
.upi-btn.phonepe { background: #5f259f; color: white; }
.upi-btn.phonepe:hover { background: #4a1d7a; color: white; }
.upi-btn.gpay { background: #4285F4; color: white; }
.upi-btn.gpay:hover { background: #3367d6; color: white; }
.upi-btn.bhim { background: #00838f; color: white; }
.upi-btn.bhim:hover { background: #006064; color: white; }
.upi-btn.paytm { background: #00B9F1; color: white; }
.upi-btn.paytm:hover { background: #0097c4; color: white; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--gray-light); padding: 40px 0 20px; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer h4 { color: var(--gold-light); margin-bottom: 15px; font-size: 1.1rem; }
.footer p, .footer li { font-size: 0.9rem; line-height: 1.8; }
.footer ul { list-style: none; }
.footer ul a { color: var(--gray-light); }
.footer ul a:hover { color: var(--gold-light); }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #333; font-size: 0.85rem; color: var(--gray); }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: calc(100vh - 110px); }
.admin-sidebar { width: 210px; background: var(--dark); color: var(--white); padding: 15px 0; flex-shrink: 0; }
.admin-sidebar a { display: block; padding: 9px 18px; color: var(--gray-light); font-size: 0.85rem; transition: all 0.3s; border-left: 3px solid transparent; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: var(--white); border-left-color: var(--gold); }
.admin-content { flex: 1; padding: 18px; background: var(--light); overflow-y: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.admin-header h2 { color: var(--primary); font-size: 1.3rem; }
.admin-content .card-body { padding: 15px; }
.admin-content .card-title { font-size: 1.05rem; margin-bottom: 8px; }
.admin-content .card-text { font-size: 0.85rem; }
.admin-content .card:hover { transform: none; }

/* ===== PAGINATION ===== */
.pagination { display: flex; justify-content: center; gap: 5px; margin-top: 25px; }
.pagination a, .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; transition: all 0.3s; color: var(--primary); }
.pagination a:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.pagination .active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(13,18,89,0.6); z-index: 2000; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); border-top: 4px solid var(--primary); }
.modal-header { padding: 20px 25px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-size: 1.2rem; color: var(--primary); }
.modal-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--gray); }
.modal-body { padding: 25px; }
.modal-footer { padding: 15px 25px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ===== BADGE ===== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; }
.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #ffebee; color: #c62828; }
.badge-warning { background: #fff8e1; color: #f57f17; }
.badge-info { background: #e8eaf6; color: #1a237e; }

/* ===== SPINNER ===== */
.spinner { display: inline-block; width: 24px; height: 24px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; z-index: 999;
    width: 60px; height: 60px; border-radius: 50%; background: #25D366;
    color: white; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    transition: all 0.3s; text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 25px rgba(37,211,102,0.5); color: white; }

/* ===== PENDING BOOKING PULSE ===== */
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,152,0,0.4); }
    50% { box-shadow: 0 0 15px 5px rgba(255,152,0,0.2); }
}

/* ===== RECEIPT PREVIEW ===== */
.receipt-thumb {
    width: 40px; height: 40px; object-fit: cover;
    border-radius: 4px; border: 1px solid var(--border); cursor: pointer;
}
.btn-whatsapp.btn-sm { padding: 4px 10px; font-size: 0.8rem; }

/* ===== ABOUT PAGE DYNAMIC CARDS ===== */
.about-card-row { display: flex; gap: 30px; align-items: center; margin-bottom: 30px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.about-card-row.img-right { flex-direction: row-reverse; }
.about-card-img { flex: 0 0 300px; max-width: 300px; height: 220px; overflow: hidden; }
.about-card-img img { width: 100%; height: 100%; object-fit: cover; }
.about-card-content { flex: 1; padding: 25px; }
.about-card-content h3 { color: var(--primary); margin-bottom: 12px; font-size: 1.2rem; }
.about-card-content p { color: var(--gray); line-height: 1.7; }

/* ===== MISSION LIST ===== */
.mission-list { list-style: none; padding: 0; }
.mission-list li { padding: 14px 0 14px 35px; position: relative; font-size: 1rem; border-bottom: 1px solid var(--border); }
.mission-list li::before { content: '🙏'; position: absolute; left: 0; }

/* ===== BUS LAYOUT DESIGNER ===== */
.designer-grid { display: grid; grid-template-columns: repeat(7, 50px); gap: 5px; padding: 20px; background: #f5f5f5; border-radius: var(--radius); justify-content: center; }
.designer-cell { width: 50px; height: 50px; border: 2px dashed var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 0.7rem; text-align: center; }
.designer-cell:hover { border-color: var(--primary); background: var(--primary-bg); }
.designer-cell.has-seat { border-style: solid; background: var(--seat-available); border-color: var(--primary); font-weight: 600; }
.designer-cell.aisle-cell { background: #eee; border-color: transparent; cursor: default; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 15px; }
.mb-3 { margin-bottom: 30px; }
.p-2 { padding: 20px; }
.p-3 { padding: 30px; }
.d-flex { display: flex; }
.gap-1 { gap: 6px; }
.gap-2 { gap: 20px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.hidden { display: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-menu { display: none; position: absolute; top: 48px; left: 0; right: 0; background: var(--dark); flex-direction: column; padding: 10px; gap: 2px; box-shadow: var(--shadow-lg); z-index: 1001; }
    .nav-menu.open { display: flex; }
    .nav-menu a { padding: 10px 15px; border-bottom: none; }
    .top-header .container { flex-wrap: wrap; gap: 5px; }
    .top-header-left img { width: 50px; height: 50px; }
    .top-header-center h1 { font-size: 1.1rem; }
    .top-header-right { display: none; }
    .home-cards, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; gap: 0; }
    .carousel-item img, .carousel-placeholder { height: 220px; }
    .carousel-placeholder h1 { font-size: 1.5rem; }
    .hero-section { min-height: 320px; }
    .hero-logo { width: 65px; height: 65px; margin-bottom: 12px; }
    .hero-title { font-size: 1.6rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cta { padding: 12px 40px; font-size: 1rem; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .section { padding: 30px 0; }
    .section-title { font-size: 1.4rem; }
    .auth-card { padding: 25px 20px; }
    .trip-card { flex-direction: column; text-align: center; gap: 15px; }
    .payment-options { flex-direction: column; }
    .summary-row { flex-direction: column; gap: 2px; }
    .about-card-row, .about-card-row.img-right { flex-direction: column; }
    .about-card-img { flex: auto; max-width: 100%; height: 180px; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 10px 0; display: flex; flex-wrap: wrap; gap: 2px; }
    .admin-sidebar a { padding: 8px 12px; font-size: 0.8rem; border-left: none; border-bottom: 2px solid transparent; }
    .admin-sidebar a.active { border-bottom-color: var(--gold); }
    .admin-content { padding: 12px; overflow-x: auto; }
    .admin-content table { display: block; overflow-x: auto; white-space: nowrap; }
    .admin-header { flex-direction: column; gap: 10px; align-items: flex-start; }
    .seat { width: 38px; height: 38px; }
    .seat.aisle { width: 18px; }
    .bus-outline { border-radius: 30px 30px 10px 10px; }
    .bus-outline::after { display: none; }
    .bus-list { justify-content: center; }
    table { font-size: 0.8rem; }
    table th, table td { padding: 8px 10px; }
    .upi-buttons { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
    .container { padding: 0 10px; }
    .seat { width: 34px; height: 34px; font-size: 0.6rem; }
    .seat-row { gap: 4px; }
    .bus-seats-container { padding: 10px 12px; }
    .top-header-center h1 { font-size: 0.95rem; }
    .hero-title { font-size: 1.3rem; }
    .hero-logo { width: 55px; height: 55px; }
    .highlights-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .whatsapp-float { width: 50px; height: 50px; font-size: 1.6rem; bottom: 15px; right: 15px; }
}

/* Print Styles */
.print-only { display: none; }
@media print {
    .no-print, .admin-sidebar, .top-header, .bottom-header, .footer,
    .whatsapp-float, .admin-header, .d-flex.gap-1.flex-wrap.mb-2,
    form[method="GET"], .btn-whatsapp, .modal-overlay { display: none !important; }
    .print-only { display: block !important; }
    .admin-layout { display: block !important; }
    .admin-content { margin: 0 !important; padding: 10px !important; max-width: 100% !important; }
    body { background: white !important; font-size: 11pt; }
    .summary-section { border: 1px solid #ccc !important; box-shadow: none !important; margin-bottom: 15px; padding: 10px; }
    table { width: 100%; border-collapse: collapse; font-size: 10pt; }
    table th, table td { border: 1px solid #ccc; padding: 5px 8px; }
    table th { background: #f0f0f0 !important; }
    .table-wrapper { overflow: visible !important; }
    .badge { border: 1px solid #999; padding: 2px 6px; }
    a { text-decoration: none; color: inherit; }
    @page { margin: 10mm; }
}
