
:root {
    --primary: #1e40af;
    --primary-dark: #0f2a6d;
    --glass: rgba(255, 255, 255, 0.95);
    --bg-light: #f2f4f7;
    --text-dark: #333;
    --accent: #fbbf24;
    --celebration: #d946ef;
    --success: #059669;
}

* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: var(--bg-light);
    scroll-behavior: smooth;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- TICKER --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--celebration);
    color: white;
    padding: 8px 0;
    position: fixed;
    top: 55px;
    z-index: 999;
    font-weight: bold;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

@keyframes ticker {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

/* --- HERO & LOGIN --- */
.banner {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1200&q=80') no-repeat center center/cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 40px;
}

.login-container {
    background: var(--glass);
    padding: 25px;
    border-radius: 15px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

/* --- SECTIONS --- */
section {
    background: #fff;
    margin: 20px auto;
    padding: 30px 15px;
    border-radius: 15px;
    max-width: 1100px;
    width: 95%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.section-title {
    text-align: center;
    color: var(--primary-dark);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 8px auto;
}

/* --- GRID CARDS --- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    justify-content: center;
}

.card {
    background: #f9fafb;
    padding: 15px;
    text-align: center;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position:top;
    margin-bottom: 10px;
    border: 2px solid var(--primary);
}

.card h4 {
    margin: 5px 0;
    font-size: 14px;
    color: #111;
}
.card p {
    margin: 0;
    font-size: 11px;
    color: #666;
    font-weight: bold;
}

.badge {
    background: #dbeafe;
    color: var(--primary);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
}

/* --- PAYMENT SECTION --- */
.payment-box {
    text-align: center;
    padding: 20px;
    border: 2px dashed var(--success);
    border-radius: 15px;
    background: #f0fdf4;
}

.qr-code {
    width: 220px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 15px 0;
}

.upi-id {
    background: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    border: 1px solid #ddd;
    display: inline-block;
}

/* --- TABLE --- */
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    min-width: 400px;
}
th {
    background: var(--primary-dark);
    color: white;
    padding: 12px;
    font-size: 13px;
}
td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 13px;
}

/* --- MOBILE VIEW (FORCE FULL WIDTH CARDS IF NEEDED) --- */
@media (max-width: 480px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-links {
        display: none;
    }
    .banner {
        padding-top: 160px;
    }
}

footer {
    background: var(--primary-dark);
    color: #fff;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.payment-card {
    text-align: center;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.payment-card:hover {
    transform: scale(1.02);
    border-color: var(--primary);
}

.pay-title {
    margin: 0 0 10px 0;
    font-weight: bold;
    color: var(--success);
    font-size: 14px;
    text-transform: uppercase;
}

.qr-code {
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.upi-id {
    background: #f8fafc;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    color: var(--primary-dark);
    display: inline-block;
    font-size: 13px;
}

.upi-text {
    font-size: 11px;
    color: #64748b;
    margin-top: 8px;
    font-family: monospace;
}

@media (max-width: 600px) {
    .qr-grid {
        grid-template-columns: 1fr; /* Full width on mobile */
    }
}