/* ==========================================================
   MAM BANK WEBSITE  -  style.css
   Sirf HTML + CSS se bani professional bank website
   ========================================================== */

/* ---------- CSS VARIABLES (colors ek jagah par) ---------- */
:root {
    --red: #8b0000;          /* MAM ka dark red */
    --red-dark: #6b0000;     /* darker red for hover */
    --dark: #000000;         /* pure black */
    --grey: #6b6b76;         /* grey text */
    --light: #f8f8f8;        /* near-white background */
    --white: #ffffff;
    --border: #e3e5ec;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ---------- RESET + BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: var(--white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

/* ==========================================================
   TOP UTILITY BAR (phone / email / search)
   ========================================================== */
.top-bar {
    background: var(--dark);
    color: #cfcfd6;
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.top-bar a {
    color: #cfcfd6;
    margin-right: 18px;
}

.top-bar a:hover {
    color: var(--white);
}

/* ==========================================================
   CONTAINER (page ko center karne ke liye)
   ========================================================== */
.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}

/* ==========================================================
   HEADER / NAVBAR
   ========================================================== */
.site-header {
    background: var(--white);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

/* ---- Logo ---- */
.logo {
    display: flex;
    align-items: center;
    gap: 50px;
}

.logo-mark {
    width: 50px;
    height: 50px;
    background: var(--red);
    color: var(--white);
    font-weight: bold;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    letter-spacing: 1px;
}

.logo-img {
    height: 120px;
    width: auto;
    border-radius: 50%;
    object-fit: contain;
}

.logo-img-login {
    height: 110px;
}

.logo-text {
    font-size: 30px;
    font-weight: bold;
    color: var(--dark);
    letter-spacing: 1px;
}

.logo-text span {
    color: var(--red);
}

/* ---- Nav links ---- */
.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    list-style: none;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    padding: 6px 0;
    position: relative;
    transition: color 0.25s var(--ease-out);
}

/* underline slide-in animation */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* ---- Login button ---- */
.btn-login {
    background: var(--red);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 14px;
    transition: 0.2s;
}

.btn-login:hover {
    background: var(--red-dark);
}

/* ==========================================================
   BUTTONS (general)
   ========================================================== */
.btn {
    display: inline-block;
    padding: 13px 28px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 15px;
    transition: 0.2s;
    cursor: pointer;
    border: none;
}

.btn-red {
    background: var(--red);
    color: var(--white);
}

.btn-red:hover {
    background: var(--red-dark);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--red);
}

.btn-dark {
    background: var(--dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--red);
}

/* ==========================================================
   HERO BANNER (home page ka bada section)
   ========================================================== */
.hero {
    background: linear-gradient(120deg, #8b0000 0%, #6b0000 100%);
    color: var(--white);
    padding: 70px 0;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 300px;
}

.hero-text h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hero-text p {
    font-size: 17px;
    opacity: 0.92;
    margin-bottom: 26px;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* ---- Hero side: CSS se bana debit card ---- */
.hero-card {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-card img {
    max-width: 380px;
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.bank-card {
    width: 340px;
    height: 210px;
    background: linear-gradient(135deg, #1d1d2b 0%, #2c2c40 100%);
    border-radius: 18px;
    padding: 22px;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

/* card ke upar chipta hua red shade */
.bank-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 180px;
    height: 180px;
    background: var(--red);
    border-radius: 50%;
    opacity: 0.85;
}

.bank-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bank-card .chip {
    width: 48px;
    height: 36px;
    background: linear-gradient(135deg, #f5c96b, #d9a13a);
    border-radius: 7px;
    margin-top: 28px;
}

.bank-card .card-number {
    margin-top: 20px;
    font-size: 19px;
    letter-spacing: 3px;
    font-family: "Courier New", monospace;
}

.bank-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 13px;
}

/* ==========================================================
   SECTION HEADINGS
   ========================================================== */
.section {
    padding: 70px 0;
}

.section-light {
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 10px;
}

.section-title h2 span {
    color: var(--red);
}

.section-title p {
    color: var(--grey);
    max-width: 620px;
    margin: 0 auto;
}

/* ==========================================================
   SERVICES GRID (home page cards)
   ========================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--red);
    transition: transform 0.25s, box-shadow 0.25s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.service-icon {
    width: 66px;
    height: 66px;
    background: var(--light);
    color: var(--red);
    font-size: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.service-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--grey);
    font-size: 14px;
}

.service-card a {
    display: inline-block;
    margin-top: 14px;
    color: var(--red);
    font-weight: bold;
    font-size: 14px;
}

.service-card a:hover {
    text-decoration: underline;
}

/* ==========================================================
   STATS BAND (numbers wala section)
   ========================================================== */
.stats-band {
    background: var(--dark);
    color: var(--white);
    padding: 55px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat h3 {
    font-size: 40px;
    color: var(--red);
}

.stat p {
    font-size: 15px;
    opacity: 0.8;
    margin-top: 4px;
}

/* ==========================================================
   PRODUCTS CARDS (accounts / loans)
   ========================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
    transition: 0.25s;
}

.product-card:hover {
    border-color: var(--red);
    box-shadow: var(--shadow);
}

.product-card .tag {
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.product-card h3 {
    font-size: 19px;
    margin-bottom: 8px;
}

.product-card p {
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 16px;
}

.product-card .price {
    font-size: 26px;
    font-weight: bold;
    color: var(--dark);
}

.product-card .price span {
    font-size: 13px;
    color: var(--grey);
    font-weight: normal;
}

/* ==========================================================
   WHY CHOOSE US (icon row)
   ========================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-item {
    text-align: center;
    padding: 24px 12px;
}

.why-item .icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.why-item h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.why-item p {
    color: var(--grey);
    font-size: 13px;
}

/* ==========================================================
   NEWSLETTER BAND
   ========================================================== */
.newsletter {
    background: linear-gradient(120deg, #8b0000, #6b0000);
    color: var(--white);
    padding: 40px 0;
}

.newsletter .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.newsletter h3 {
    font-size: 22px;
    margin-bottom: 4px;
}

.newsletter form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.newsletter input {
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    width: 260px;
    font-size: 14px;
}

.newsletter .btn {
    padding: 12px 24px;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
    background: #000000;
    color: #b9b9c4;
    font-size: 14px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
    padding: 55px 0 35px;
}

.footer-main h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 16px;
}

.footer-main ul {
    list-style: none;
}

.footer-main li {
    margin-bottom: 9px;
}

.footer-main a:hover {
    color: var(--white);
}

.footer-brand p {
    margin-top: 12px;
    max-width: 300px;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

/* ==========================================================
   PAGE BANNER (inner pages ka heading)
   ========================================================== */
.page-banner {
    background: linear-gradient(120deg, #8b0000, #6b0000);
    color: var(--white);
    padding: 45px 0;
    text-align: center;
}

.page-banner h1 {
    font-size: 34px;
    margin-bottom: 6px;
}

.page-banner p {
    opacity: 0.9;
    font-size: 15px;
}

/* ==========================================================
   ABOUT PAGE
   ========================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-grid img {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.about-grid h2 {
    font-size: 26px;
    margin-bottom: 12px;
    color: var(--dark);
}

.about-grid p {
    color: var(--grey);
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    margin-top: 10px;
}

.about-list li {
    padding: 6px 0;
    font-weight: 600;
}

.about-list li::before {
    content: "✔ ";
    color: var(--red);
    font-weight: bold;
}

/* ---- Mission / Vision boxes ---- */
.mv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mv-box {
    background: var(--white);
    border-left: 5px solid var(--red);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.mv-box h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--dark);
}

.mv-box p {
    color: var(--grey);
}

/* ---- History timeline ---- */
.timeline {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--red);
}

.timeline-item {
    padding: 0 0 30px 40px;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--red);
    border-radius: 50%;
    border: 3px solid var(--white);
}

.timeline-item .year {
    font-weight: bold;
    color: var(--red);
    font-size: 16px;
}

.timeline-item p {
    color: var(--grey);
}

/* ==========================================================
   SERVICES PAGE (detailed cards)
   ========================================================== */
.service-full {
    display: flex;
    gap: 22px;
    background: var(--white);
    border-radius: 12px;
    padding: 26px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    align-items: flex-start;
}

.service-full .icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: var(--light);
    color: var(--red);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-full h3 {
    font-size: 19px;
    margin-bottom: 6px;
}

.service-full p {
    color: var(--grey);
    font-size: 14px;
}

.service-full .btn {
    margin-top: 12px;
    padding: 9px 18px;
    font-size: 13px;
}

/* ---- Accounts table ---- */
.acc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
}

.acc-table th {
    background: var(--dark);
    color: var(--white);
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.acc-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.acc-table tr:nth-child(even) {
    background: var(--light);
}

.acc-table tr:hover {
    background: #fff3f5;
}

/* ==========================================================
   CONTACT PAGE
   ========================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px;
}

.contact-info .info-card {
    display: flex;
    gap: 14px;
    background: var(--white);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.contact-info .icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--red);
    color: var(--white);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-info h4 {
    margin-bottom: 4px;
}

.contact-info p {
    color: var(--grey);
    font-size: 14px;
}

/* ---- Contact form ---- */
.contact-form {
    background: var(--white);
    border-radius: 12px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

/* ==========================================================
   RESPONSIVE (mobile par layout adjust hota hai)
   ========================================================== */
@media (max-width: 900px) {
    .services-grid,
    .products-grid,
    .why-grid,
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .about-grid,
    .mv-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .nav-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .services-grid,
    .products-grid,
    .why-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 30px;
    }

    .section-title h2 {
        font-size: 25px;
    }
}

/* ==========================================================
   LOGIN PAGE (login.html)
   ========================================================== */
.login-body {
    background: linear-gradient(135deg, #000000 0%, #8b0000 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    padding: 38px 34px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.login-card .logo {
    justify-content: center;
    margin-bottom: 6px;
}

.login-card h2 {
    text-align: center;
    margin: 10px 0 4px;
    color: var(--dark);
    font-size: 24px;
}

.login-card .sub {
    text-align: center;
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 24px;
}

.login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 20px;
    margin-top: -6px;
}

.login-row label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--grey);
}

.login-row a {
    color: var(--red);
    font-weight: bold;
}

.login-row a:hover {
    text-decoration: underline;
}

.btn-login-full {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login-full:hover {
    background: var(--red-dark);
}

.login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--grey);
}

.login-footer a {
    color: var(--red);
    font-weight: bold;
}

.login-note {
    background: var(--light);
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 12px;
    color: var(--grey);
    text-align: center;
    margin-top: 18px;
    border: 1px solid var(--border);
}

/* ==========================================================
   GALLERY PAGE (gallery.html)
   ========================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    height: 230px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.gallery-item .art {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 58px;
    transition: transform 0.4s;
}

.gallery-item:hover .art {
    transform: scale(1.1);
}

.gallery-item .caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    color: var(--white);
    padding: 34px 16px 13px;
    font-weight: bold;
    font-size: 15px;
}

/* photos ki jagah CSS gradients */
.art-1 { background: linear-gradient(135deg, #8b0000, #ff6a7e); }
.art-2 { background: linear-gradient(135deg, #000000, #4a4a6b); }
.art-3 { background: linear-gradient(135deg, #0f4c81, #6ab3f0); }
.art-4 { background: linear-gradient(135deg, #1d7a3f, #8fe09a); }
.art-5 { background: linear-gradient(135deg, #7a1fbf, #d0a4ff); }
.art-6 { background: linear-gradient(135deg, #b07400, #ffd166); }
.art-7 { background: linear-gradient(135deg, #0e7c86, #7fe0e8); }
.art-8 { background: linear-gradient(135deg, #6b0000, #d63a52); }

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

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   INTERNET BANKING DASHBOARD (dashboard.html)
   ========================================================== */
.dash-body {
    background: #f4f5f7;
    min-height: 100vh;
}

/* ---- Dashboard header (black bar) ---- */
.dash-header {
    background: var(--dark);
    color: var(--white);
    padding: 12px 0;
}

.dash-header-inner {
    width: 94%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.dash-logo-img {
    height: 54px;
    width: auto;
    border-radius: 50%;
    display: block;
}

.dash-title {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
}

.dash-user {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
}

.dash-logout {
    background: var(--red);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    transition: 0.2s;
}

.dash-logout:hover {
    background: var(--red-dark);
}

/* ---- Layout: sidebar + main ---- */
.dash-wrap {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 26px 0 50px;
}

.dash-sidebar {
    width: 230px;
    flex-shrink: 0;
    background: var(--dark);
    border-radius: 12px;
    padding: 14px 10px;
    position: sticky;
    top: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-sidebar a {
    color: #cfcfd6;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s;
}

.dash-sidebar a:hover {
    background: var(--red);
    color: var(--white);
}

.dash-main {
    flex: 1;
    min-width: 0;
}

/* ---- Dashboard sections ---- */
.dash-section {
    margin-bottom: 34px;
    scroll-margin-top: 16px;
}

.dash-section h2 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 4px;
}

.dash-section .dash-sub {
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 18px;
}

/* ---- Balance cards ---- */
.balance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.balance-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--red);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.balance-label {
    font-size: 13px;
    color: var(--grey);
    font-weight: bold;
}

.balance-amount {
    font-size: 24px;
    font-weight: bold;
    color: var(--dark);
}

.balance-sub {
    font-size: 12px;
    color: var(--grey);
}

/* ---- Quick actions ---- */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 8px;
}

.quick-btn {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    color: var(--dark);
    transition: 0.2s;
}

.quick-btn:hover {
    border-color: var(--red);
    color: var(--red);
    box-shadow: var(--shadow);
}

/* ---- Generic dash card + forms ---- */
.dash-card {
    background: var(--white);
    border-radius: 12px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.dash-card h3 {
    font-size: 19px;
    margin-bottom: 4px;
    color: var(--dark);
}

.dash-card p {
    color: var(--grey);
    font-size: 14px;
    margin-bottom: 18px;
}

.dash-form .form-group {
    margin-bottom: 16px;
}

.dash-form input,
.dash-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    background: var(--white);
}

.dash-form input:focus,
.dash-form select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

/* ---- Credit card info boxes ---- */
.card-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 8px;
}

.card-info > div {
    background: var(--light);
    border-radius: 8px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
}

.card-info-label {
    font-size: 12px;
    color: var(--grey);
    font-weight: bold;
}

.text-red {
    color: var(--red);
    font-weight: bold;
}

.dash-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

/* ---- Bills grid ---- */
.bills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ---- Transaction history table ---- */
.table-wrap {
    overflow-x: auto;
}

.dash-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.dash-table th {
    background: var(--dark);
    color: var(--white);
    padding: 13px 14px;
    text-align: left;
    font-size: 13px;
}

.dash-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.dash-table tr:nth-child(even) {
    background: var(--light);
}

/* Credit / Debit badges */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.badge-credit {
    background: #e3f5e8;
    color: #1d7a3f;
}

.badge-debit {
    background: #fdeaea;
    color: var(--red);
}

.amount-credit {
    color: #1d7a3f;
    font-weight: bold;
}

.amount-debit {
    color: var(--red);
    font-weight: bold;
}

/* ---- Dashboard responsive ---- */
@media (max-width: 900px) {
    .dash-wrap {
        flex-direction: column;
    }

    .dash-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
    }

    .dash-sidebar a {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .balance-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .bills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .balance-grid {
        grid-template-columns: 1fr;
    }

    .quick-actions {
        grid-template-columns: 1fr;
    }

    .card-info {
        grid-template-columns: 1fr;
    }

    .dash-title {
        font-size: 16px;
    }
}

/* ==========================================================
   ANIMATIONS (professional — pure CSS, koyi JS nahi)
   ========================================================== */

:root {
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);  /* smooth professional easing */
}

/* ---- Keyframes ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

/* ==========================================================
   LOAD ANIMATIONS (page khulte hi — upar ke sections)
   `backwards` is liye use kiya taake animation ke baad
   hover wale effects (lift) bhi kaam karte rahen
   ========================================================== */

/* Home hero */
.hero-text h1       { animation: fadeInUp 0.8s var(--ease-out) backwards; }
.hero-text p        { animation: fadeInUp 0.8s 0.15s var(--ease-out) backwards; }
.hero-buttons       { animation: fadeInUp 0.8s 0.3s var(--ease-out) backwards; }
.hero-card          { animation: fadeInUp 1s 0.2s var(--ease-out) backwards; }

/* hero mein cards ka halka sa float (continuous) */
.hero-card img {
    animation: floatY 5s ease-in-out 1.3s infinite;
}

/* Page banner (inner pages) */
.page-banner h1     { animation: fadeInUp 0.7s var(--ease-out) backwards; }
.page-banner p      { animation: fadeInUp 0.7s 0.15s var(--ease-out) backwards; }

/* Login card */
.login-card         { animation: zoomIn 0.5s var(--ease-out) backwards; }

/* Dashboard balance cards (staggered — ek ek kar ke upar aate hain) */
.balance-grid .balance-card             { animation: fadeInUp 0.6s var(--ease-out) backwards; }
.balance-grid .balance-card:nth-child(2) { animation-delay: 0.1s; }
.balance-grid .balance-card:nth-child(3) { animation-delay: 0.2s; }
.balance-grid .balance-card:nth-child(4) { animation-delay: 0.3s; }

/* ==========================================================
   SCROLL REVEAL (scroll karne par fade in — Chrome/Edge)
   `@supports` wrap: dusre browsers mein bas normally dikhta hai
   Sirf opacity animate karta hai taake hover lift na toote
   ========================================================== */
@keyframes revealFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@supports (animation-timeline: view()) {
    .section-title,
    .service-card,
    .product-card,
    .why-item,
    .gallery-item,
    .mv-box,
    .timeline-item,
    .contact-info .info-card,
    .contact-form,
    .acc-table,
    .service-full,
    .stats-grid,
    .dash-card,
    .quick-actions,
    .bills-grid {
        animation: revealFade linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 30%;
    }
}

/* ==========================================================
   HOVER EFFECTS (professional lift + smooth)
   ========================================================== */

/* smooth transitions (jo cards mein pehle nahi the) */
.product-card,
.why-item,
.mv-box,
.contact-info .info-card,
.service-full,
.balance-card,
.dash-card {
    transition: transform 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out),
                border-color 0.3s var(--ease-out);
}

/* hover par card upar uth jata hai */
.product-card:hover,
.why-item:hover,
.mv-box:hover,
.contact-info .info-card:hover,
.service-full:hover,
.balance-card:hover,
.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* ---- Buttons: shine sweep effect (light left se right) ---- */
.btn,
.btn-login,
.btn-login-full,
.dash-logout {
    position: relative;
    overflow: hidden;
}

.btn::after,
.btn-login::after,
.btn-login-full::after,
.dash-logout::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transform: translateX(-130%);
    transition: transform 0.55s var(--ease-out);
}

.btn:hover::after,
.btn-login:hover::after,
.btn-login-full:hover::after,
.dash-logout:hover::after {
    transform: translateX(130%);
}

/* ---- Contact icons: hover par thoda bounce ---- */
.contact-info .icon {
    transition: transform 0.3s var(--ease-out);
}

.contact-info .info-card:hover .icon {
    transform: scale(1.12) rotate(-8deg);
}

/* ---- Gallery captions: hover par upar slide ---- */
.gallery-item .caption {
    transform: translateY(8px);
    transition: transform 0.3s var(--ease-out);
}

.gallery-item:hover .caption {
    transform: translateY(0);
}

/* ---- Form inputs: smooth focus ---- */
.form-group input,
.form-group select,
.form-group textarea,
.dash-form input,
.dash-form select {
    transition: border-color 0.25s var(--ease-out),
                box-shadow 0.25s var(--ease-out);
}

/* ---- Dashboard sidebar: hover par slight slide ---- */
.dash-sidebar a {
    transition: background 0.25s var(--ease-out),
                color 0.25s var(--ease-out),
                padding-left 0.25s var(--ease-out);
}

.dash-sidebar a:hover {
    padding-left: 18px;
}

/* ==========================================================
   ACCESSIBILITY: users jo motion nahi chahte unke liye
   saari animations band (professional practice)
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
