/* =========================================================
   KERALA LOTTERY - CUSTOMER APP
   Main App CSS
========================================================= */

:root {

    --primary: #126cf3;
    --primary-dark: #0b57d0;

    --green: #168a55;
    --green-dark: #0f6d43;

    --orange: #f59e0b;
    --red: #dc3545;

    --purple: #6419f7;

    --text: #1e293b;
    --muted: #64748b;

    --border: #e7ebf0;

    --background: #f6f8fb;

    --white: #ffffff;

    --shadow:
        0 6px 25px rgba(15, 23, 42, .06);

}


/* =========================================================
   RESET
========================================================= */

* {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    padding: 0;

    background: var(--background);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    font-size: 15px;

    line-height: 1.5;

}


a {

    color: inherit;

}


button,
input,
select,
textarea {

    font-family: inherit;

}


/* =========================================================
   APP SHELL
========================================================= */

.app-shell {

    width: 100%;

    min-height: 100vh;

}


.app-main {

    width: 100%;

    max-width: 1180px;

    margin: 0 auto;

    padding: 0 20px 30px;

}


/* =========================================================
   HEADER
========================================================= */

.app-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 20px;

    background: rgba(255,255,255,.96);

    border-bottom: 1px solid var(--border);

    backdrop-filter: blur(10px);

}


.header-left {

    display: flex;

    align-items: center;

}


.brand {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--primary);

    text-decoration: none;

    font-size: 19px;

    font-weight: 800;

}


.brand i {

    font-size: 25px;

}


.header-actions {

    display: flex;

    align-items: center;

    gap: 7px;

}


.header-actions a {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: #475569;

    text-decoration: none;

    transition: .2s ease;

}


.header-actions a:hover {

    background: #eff6ff;

    color: var(--primary);

}


.header-actions i {

    font-size: 19px;

}


/* =========================================================
   SEARCH
========================================================= */

.search-box {

    max-width: 1180px;

    margin: 0 auto;

    padding: 0 20px;

    max-height: 0;

    overflow: hidden;

    transition:
        max-height .25s ease,
        padding .25s ease;

}


.search-box.open {

    max-height: 90px;

    padding-top: 12px;

    padding-bottom: 12px;

}


.search-box form {

    display: flex;

    width: 100%;

    position: relative;

}


.search-box input {

    width: 100%;

    height: 44px;

    padding: 0 50px 0 14px;

    border: 1px solid #d9e0e8;

    border-radius: 10px;

    outline: none;

    background: #fff;

    font-size: 14px;

}


.search-box input:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(18,108,243,.10);

}


.search-box button {

    position: absolute;

    top: 4px;

    right: 4px;

    width: 36px;

    height: 36px;

    border: 0;

    border-radius: 8px;

    background: var(--primary);

    color: #fff;

    cursor: pointer;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    margin-top: 20px;

    padding: 42px 25px;

    border-radius: 22px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #126cf3,
            #6419f7
        );

    color: #fff;

    box-shadow:
        0 12px 30px rgba(18,108,243,.18);

}


.hero h1 {

    margin: 0;

    font-size: clamp(30px, 5vw, 46px);

    font-weight: 800;

    letter-spacing: -.5px;

}


.hero p {

    margin: 10px 0 22px;

    font-size: 16px;

    opacity: .94;

}


.pill-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 42px;

    padding: 0 20px;

    border-radius: 999px;

    background: #fff;

    color: var(--primary);

    text-decoration: none;

    font-weight: 800;

    border: 0;

    transition: .2s ease;

}


.pill-btn:hover {

    transform: translateY(-1px);

    box-shadow:
        0 7px 20px rgba(0,0,0,.15);

}


/* =========================================================
   SECTION
========================================================= */

.section {

    margin-top: 30px;

}


.section-title {

    margin: 0 0 15px;

    font-size: 23px;

    font-weight: 800;

    color: var(--text);

}


/* =========================================================
   GRID
========================================================= */

.grid-2 {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}


/* =========================================================
   SERVICE CARDS
========================================================= */

.service-card {

    min-height: 190px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 22px;

    text-align: center;

    background: var(--white);

    border: 1px solid var(--border);

    border-radius: 17px;

    box-shadow: var(--shadow);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.service-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 10px 30px rgba(15,23,42,.09);

}


.service-card h3 {

    margin: 12px 0 14px;

    font-size: 17px;

    font-weight: 800;

}


.round-icon {

    width: 62px;

    height: 62px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #fff;

    font-size: 25px;

    flex-shrink: 0;

}


/* =========================================================
   GRADIENTS
========================================================= */

.gradient-ticket {

    background:
        linear-gradient(
            135deg,
            #126cf3,
            #4285f4
        );

}


.gradient-track {

    background:
        linear-gradient(
            135deg,
            #0f9d58,
            #20b26b
        );

}


.gradient-result {

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #f97316
        );

}


.gradient-contact {

    background:
        linear-gradient(
            135deg,
            #6419f7,
            #9333ea
        );

}


.theme-green {

    background:
        linear-gradient(
            135deg,
            #168a55,
            #22a96a
        );

}


.theme-orange {

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #f97316
        );

}


.theme-blue {

    background:
        linear-gradient(
            135deg,
            #126cf3,
            #4285f4
        );

}


/* =========================================================
   CARD BUTTON
========================================================= */

.card-btn {

    width: 100%;

    min-height: 40px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 6px;

    padding: 0 15px;

    border-radius: 9px;

    color: #fff;

    text-decoration: none;

    font-size: 13px;

    font-weight: 800;

    transition: .2s ease;

}


.card-btn:hover {

    color: #fff;

    transform: translateY(-1px);

    filter: brightness(.96);

}


/* =========================================================
   LOTTERY CARD
========================================================= */

.lottery-card {

    position: relative;

    padding: 22px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 17px;

    box-shadow: var(--shadow);

    transition:
        transform .2s ease,
        box-shadow .2s ease;

}


.lottery-card:hover {

    transform: translateY(-3px);

    box-shadow:
        0 12px 32px rgba(15,23,42,.10);

}


.lottery-card h3 {

    margin: 0;

    font-size: 20px;

    font-weight: 800;

}


.lottery-card p {

    margin: 8px 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.55;

}


/* =========================================================
   OFFER
========================================================= */

.offer-wrap {

    margin-top: 30px;

}


.offer-card {

    padding: 30px 24px;

    border-radius: 18px;

    text-align: center;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #f59e0b,
            #ef4444
        );

    box-shadow:
        0 10px 28px rgba(239,68,68,.15);

}


.offer-card h2 {

    margin: 0 0 8px;

    font-size: 24px;

    font-weight: 800;

}


.offer-card p {

    margin: 0 0 18px;

    opacity: .95;

}


/* =========================================================
   STATISTICS
========================================================= */

.stats {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

}


.stat-card {

    padding: 22px 15px;

    text-align: center;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 15px;

    box-shadow: var(--shadow);

}


.stat-number {

    font-size: 29px;

    line-height: 1;

    margin-bottom: 7px;

}


.stat-label {

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;

}


/* =========================================================
   WINNERS
========================================================= */

.winner-list {

    display: grid;

    gap: 12px;

}


.winner-card {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 15px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 14px;

    box-shadow: var(--shadow);

}


.winner-icon {

    width: 48px;

    height: 48px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: #fff;

    font-size: 20px;

    flex-shrink: 0;

}


.winner-info {

    min-width: 0;

}


.winner-name {

    font-weight: 800;

}


.winner-amount {

    margin-top: 3px;

    color: var(--green);

    font-size: 13px;

}


/* =========================================================
   UPDATES
========================================================= */

.update-list {

    display: grid;

    gap: 10px;

}


.update {

    padding: 14px 16px;

    border-radius: 10px;

    font-size: 13px;

    font-weight: 700;

}


.update.info {

    background: #eff6ff;

    color: #1d4ed8;

}


.update.success {

    background: #ecfdf5;

    color: #047857;

}


/* =========================================================
   REVIEWS
========================================================= */

.review-card {

    padding: 20px;

    background: #fff;

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow: var(--shadow);

}


.stars {

    color: #f59e0b;

    font-size: 18px;

    letter-spacing: 2px;

}


.review-text {

    margin: 10px 0;

    color: #475569;

    font-size: 14px;

    line-height: 1.65;

}


.review-user {

    color: var(--muted);

    font-size: 12px;

    font-weight: 700;

}


/* =========================================================
   HELP
========================================================= */

.help-card {

    margin-top: 30px;

    padding: 30px 20px;

    text-align: center;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #126cf3,
            #6419f7
        );

    color: #fff;

    box-shadow:
        0 10px 28px rgba(18,108,243,.15);

}


.help-card h3 {

    margin: 0 0 7px;

    font-size: 23px;

    font-weight: 800;

}


.help-card p {

    margin: 0 0 17px;

    opacity: .92;

}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    max-width: 1180px;

    margin: 0 auto;

    padding: 30px 20px;

    text-align: center;

    color: var(--muted);

}


.footer p {

    margin: 0 0 10px;

    color: var(--text);

    font-weight: 800;

}


.footer-links {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 17px;

    margin-bottom: 10px;

}


.footer-links a {

    color: var(--muted);

    text-decoration: none;

    font-size: 13px;

}


.footer-links a:hover {

    color: var(--primary);

}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-lottery {

    padding: 50px 20px;

    text-align: center;

    background: #fff;

    border: 1px dashed #cbd5e1;

    border-radius: 16px;

    color: var(--muted);

}


.empty-lottery i {

    display: block;

    margin-bottom: 10px;

    font-size: 45px;

    color: #94a3b8;

}


.empty-lottery p {

    margin: 0;

}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 800px) {

    .app-main {

        padding-left: 15px;

        padding-right: 15px;

    }


    .grid-2 {

        gap: 14px;

    }


    .hero {

        padding: 35px 20px;

    }


    .section {

        margin-top: 25px;

    }

}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 600px) {

    body {

        font-size: 14px;

    }


    .app-header {

        height: 62px;

        padding: 0 14px;

    }


    .brand {

        font-size: 17px;

    }


    .brand i {

        font-size: 22px;

    }


    .header-actions a {

        width: 36px;

        height: 36px;

    }


    .app-main {

        padding:
            0 12px 25px;

    }


    .hero {

        margin-top: 14px;

        padding: 30px 17px;

        border-radius: 18px;

    }


    .hero h1 {

        font-size: 30px;

    }


    .hero p {

        font-size: 14px;

    }


    .section-title {

        font-size: 20px;

    }


    .grid-2 {

        grid-template-columns: 1fr;

    }


    .service-card {

        min-height: 170px;

    }


    .lottery-card {

        padding: 18px;

    }


    .stats {

        grid-template-columns:
            1fr;

    }


    .stat-card {

        padding: 18px;

    }


    .offer-card {

        padding: 25px 17px;

    }


    .help-card {

        padding: 25px 17px;

    }


    .footer {

        padding:
            25px 15px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .brand span {

        display: none;

    }


    .hero h1 {

        font-size: 27px;

    }


    .hero p {

        font-size: 13px;

    }


    .section-title {

        font-size: 19px;

    }

}