/*
 * IFSCTeam — Dark Mode Theme v10.0
 * Pure Black, Clean, Professional
 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;600;700&display=swap');

:root {
    /* Pure Dark Palette */
    --bg-root:        #000000;
    --bg-surface:     #0a0a0a;
    --bg-card:        #111111;
    --bg-elevated:    #1a1a1a;

    /* Brand Colors */
    --brand:          #2563eb;
    --brand-light:    #3b82f6;
    --brand-dark:     #1d4ed8;
    --brand-glow:     rgba(59, 130, 246, 0.15);
    --accent:         #22c55e;
    --success:        #22c55e;
    --warning:        #f59e0b;

    /* Text */
    --text-100:       #ffffff;
    --text-200:       #e5e5e5;
    --text-300:       #a3a3a3;
    --text-muted:     #737373;

    /* Borders */
    --border-subtle:  #1a1a1a;
    --border-card:    #262626;
    --border-focus:   #3b82f6;

    /* Shadows */
    --shadow-card:    0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-glow:    0 0 20px rgba(59, 130, 246, 0.15);
    --shadow-premium: 0 8px 24px rgba(0, 0, 0, 0.6);

    /* Fonts */
    --font:           'Inter', -apple-system, sans-serif;
    --font-heading:   'Outfit', 'Inter', sans-serif;
    --font-mono:      'JetBrains Mono', monospace;

    /* Radius */
    --r-sm:  8px;
    --r-md:  12px;
    --r-lg:  16px;
    --r-xl:  24px;
    --r-pill: 9999px;
}

/* ======================== RESET ======================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg-root);
    color: var(--text-200);
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ======================== SCROLLBAR ======================== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-root); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ======================== HEADER ======================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 70px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--brand-light);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 800;
    color: var(--text-100);
    letter-spacing: -0.02em;
}
.logo-text span { color: var(--brand-light); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 6px 14px;
    border-radius: var(--r-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-300);
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text-100); background: rgba(255,255,255,0.05); }
.nav-link.active { color: var(--text-100); background: rgba(59,130,246,0.12); }

/* Header Right */
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.live-dot {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-card);
    border-radius: var(--r-sm);
    padding: 8px;
    cursor: pointer;
    color: var(--text-200);
}

/* Mobile Drawer */
.mobile-nav {
    display: none;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 16px 24px;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-200);
    border-bottom: 1px solid var(--border-subtle);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--text-100); }

@media (max-width: 768px) {
    .site-nav { display: none; }
    .live-badge { display: none; }
    .mobile-toggle { display: flex; }
}

/* ======================== HERO ======================== */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 24px 60px;
    overflow: hidden;
    text-align: center;
}

/* Map bg */
.hero-map-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-map-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.08;
    filter: saturate(0.3) brightness(0.6);
    mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 40%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 50%, black 40%, transparent 90%);
}
.hero-map-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--bg-root) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
}

/* Status pill */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #111;
    border: 1px solid #333;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-300);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* Hero headline */
.hero-h1 {
    font-family: var(--font-heading);
    font-size: clamp(38px, 6vw, 72px);
    font-weight: 900;
    color: var(--text-100);
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 24px;
}
.hero-h1 span { color: var(--brand-light); }

.hero-sub {
    font-size: clamp(15px, 2vw, 17px);
    color: var(--text-300);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ======================== SEARCH ======================== */
.search-shell {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    z-index: 10;
}
.search-inner {
    display: flex;
    align-items: center;
    background: #111;
    border: 2px solid #262626;
    border-radius: var(--r-pill);
    padding: 6px 6px 6px 22px;
    gap: 12px;
    transition: border-color 0.2s;
}
.search-inner:focus-within {
    border-color: var(--brand-light);
    background: #0a0a0a;
}
.search-inner svg { flex-shrink: 0; color: var(--text-muted); }
.search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-100);
    font-family: var(--font);
    padding: 12px 0;
}
.search-input::placeholder { color: var(--text-muted); font-weight: 400; }
.search-btn {
    background: var(--brand-light);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-family: var(--font);
    flex-shrink: 0;
}
.search-btn:hover { background: var(--brand); }

/* Suggestions Dropdown */
.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid #333;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.7);
    z-index: 999;
}
.suggestion-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: inherit;
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: #1a1a1a; }
.suggestion-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.suggestion-logo svg { width: 100%; height: 100%; }
.suggestion-info { flex: 1; min-width: 0; text-align: left; }
.suggestion-bank { font-size: 13px; font-weight: 700; color: var(--text-100); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestion-branch { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.suggestion-ifsc { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--brand-light); background: rgba(59,130,246,0.1); padding: 3px 10px; border-radius: 6px; flex-shrink: 0; }

@media (max-width: 640px) {
    .search-inner { flex-direction: column; border-radius: var(--r-xl); padding: 12px; align-items: stretch; }
    .search-inner svg { display: none; }
    .search-input { font-size: 16px; text-align: center; padding: 10px 0; }
    .search-btn { border-radius: var(--r-lg); padding: 14px; font-size: 16px; }
}

/* ======================== STATS ROW ======================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    max-width: 620px;
    margin: 40px auto 0;
}
.stat-cell {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: var(--r-md);
    padding: 18px;
    text-align: center;
}
.stat-num { font-size: 22px; font-weight: 800; color: var(--text-100); letter-spacing: -0.02em; }
.stat-label { font-size: 10px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px; }

/* ======================== SECTIONS ======================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 24px;
}
.section-divider { border: none; border-top: 1px solid var(--border-subtle); }

.section-header { margin-bottom: 36px; }
.section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--brand-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-100);
    letter-spacing: -0.02em;
}
.section-title span { color: var(--brand-light); }

/* ======================== BANK LOGOS ======================== */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}
.bank-card {
    background: #111;
    border: 1px solid #222;
    border-radius: var(--r-md);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}
.bank-card:hover {
    border-color: #444;
    transform: translateY(-3px);
    background: #1a1a1a;
    box-shadow: var(--shadow-card);
}
.bank-logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--r-sm);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bank-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.bank-name { font-size: 10px; font-weight: 700; color: var(--text-300); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; }
.bank-card:hover .bank-name { color: var(--text-100); }

@media (max-width: 1024px) { .banks-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .banks-grid { grid-template-columns: repeat(3, 1fr); } }

/* ======================== STATE CARDS ======================== */
.states-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.state-card {
    background: #111;
    border: 1px solid #222;
    border-radius: var(--r-md);
    padding: 22px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: all 0.2s ease;
    text-decoration: none;
}
.state-card:hover {
    border-color: #444;
    background: #1a1a1a;
    transform: translateX(4px);
}
.state-name { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: var(--text-100); margin-bottom: 4px; }
.state-meta { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.state-arrow { color: #555; flex-shrink: 0; transition: all 0.2s; }
.state-card:hover .state-arrow { color: var(--text-100); transform: translateX(4px); }

@media (max-width: 900px) { .states-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .states-grid { grid-template-columns: 1fr; } }

/* ======================== FOOTER ======================== */
.site-footer {
    background: #050505;
    border-top: 1px solid #1a1a1a;
    padding: 60px 24px 36px;
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p { font-size: 13px; color: var(--text-300); line-height: 1.7; margin: 14px 0 20px; max-width: 260px; }
.trust-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #111;
    border: 1px solid #222;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.trust-badge .dot { width: 5px; height: 5px; border-radius: 50%; }

.footer-col h4 { font-size: 11px; font-weight: 700; color: var(--text-100); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { font-size: 13px; color: var(--text-300); transition: color 0.15s; }
.footer-col ul a:hover { color: var(--text-100); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-muted); }
.footer-bottom span { color: var(--brand-light); font-weight: 600; }

@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
    .footer-inner { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ======================== UTILITY CLASSES (cross-page) ======================== */

/* hero-mesh: Used in search, directory, details, about, contact, kb pages */
.hero-mesh {
    background: var(--bg-root);
    min-height: 100vh;
}

/* card-premium: Used in search.php, directory.php, states.php, about-us.php */
.card-premium {
    background: #111;
    border: 1px solid #222;
    border-radius: var(--r-lg);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-card);
}
.card-premium:hover {
    border-color: #444;
    transform: translateY(-3px);
    box-shadow: var(--shadow-premium);
}

/* glass-card: Used in details.php, 404.php */
.glass-card {
    background: #111;
    border: 1px solid #222;
    border-radius: var(--r-md);
    transition: all 0.2s;
}
.glass-card:hover { border-color: #444; }

/* glass-panel: Used in details.php */
.glass-panel {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: var(--r-lg);
}

/* glass-ultra: Used in about-us.php, contact.php, kb pages */
.glass-ultra {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: var(--r-lg);
}

/* sky-glow: Used in states.php */
.sky-glow { box-shadow: 0 0 20px rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.25) !important; }

/* btn-shimmer: Used in search.php, contact.php */
.btn-shimmer {
    background: var(--brand-light);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-shimmer:hover { background: var(--brand); }

/* text-glow */
.text-glow { text-shadow: 0 0 20px rgba(59, 130, 246, 0.3); }

/* ======================== ANIMATIONS ======================== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}