@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;600;700&display=swap');

:root {
    --brand: #f67a1f;
    --brand-dark: #d45e10;
    --brand-light: #ffb56a;
    --accent: #ff9a42;
    --ink: #2d251f;
    --muted: #756357;
    --bg-1: #fff5ec;
    --bg-2: #ffe2c8;
    --card: #ffffff;
    --line: rgba(45, 37, 31, 0.12);
    --success: #2f8f5b;
    --danger: #d94b2b;
    --shadow: 0 20px 40px rgba(245, 121, 31, 0.16);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Manrope', 'Trebuchet MS', sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 15% 10%, #ffffff 0%, var(--bg-1) 40%, var(--bg-2) 100%);
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
}

.brand {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}

.tagline {
    margin-top: 0.5rem;
    color: var(--muted);
}

.topbar {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fff1e2 100%);
    border-bottom: 1px solid var(--line);
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
}

.page-title {
    margin: 0.35rem 0 0;
    font-size: 1.5rem;
}

.eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.14rem;
    color: var(--muted);
}

.small {
    font-size: 0.85rem;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
}

.nav a:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.content {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.5rem;
    display: grid;
    gap: 1.25rem;
}

.app-content {
    padding-bottom: 6rem;
}

.auth .content {
    max-width: 460px;
}

.card {
    background: var(--card);
    border-radius: 18px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    animation: floatIn 0.6s ease both;
}

.card h2 {
    margin-top: 0;
}

.grid {
    display: grid;
    gap: 1rem;
}

.grid.two {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid.three {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.balance-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #fff5e8, #ffffff);
}

.balance {
    font-size: 2rem;
    margin: 0.35rem 0;
}

.balance-meta {
    text-align: right;
}

.action-card {
    background: linear-gradient(135deg, rgba(255, 173, 92, 0.2), rgba(255, 255, 255, 0.9));
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.offer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    background: linear-gradient(120deg, rgba(255, 154, 66, 0.25), rgba(255, 255, 255, 0.95));
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(245, 121, 31, 0.12);
    color: var(--brand-dark);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form input,
.form select,
.form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.65rem 0.8rem;
    font-size: 1rem;
    background: #fff;
    color: var(--ink);
}

.form textarea {
    min-height: 90px;
    resize: vertical;
}

.form .field {
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group input {
    flex: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:active {
    transform: translateY(1px) scale(0.99);
}

.btn:hover {
    background: var(--brand-dark);
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--brand);
    color: var(--brand-dark);
}

.btn.ghost {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
}

.icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--brand), var(--accent));
    color: #fff;
    font-weight: 700;
}

.btn.danger {
    background: var(--danger);
}

.inline {
    display: inline-block;
}

.mini-input {
    width: 90px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.5rem;
    margin: 0 0.4rem;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.alert.error {
    background: rgba(217, 75, 43, 0.12);
    color: var(--danger);
}

.alert.success {
    background: rgba(47, 143, 91, 0.14);
    color: var(--success);
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th,
 td {
    text-align: left;
    padding: 0.75rem;
    border-bottom: 1px solid var(--line);
}

th {
    color: var(--muted);
    font-weight: 600;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.stat strong {
    font-size: 1.4rem;
}

.muted {
    color: var(--muted);
}

.footer {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
    color: var(--muted);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.link {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-title h3 {
    margin: 0;
}

.plan-card {
    display: grid;
    gap: 1rem;
}

.plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
}

.plan-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.upi-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.upi-card {
    display: grid;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.9rem;
    background: #fff;
}

.upi-card input[type="radio"] {
    accent-color: var(--brand);
}

.upi-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.upi-qr {
    width: 100%;
    max-height: 180px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px dashed var(--line);
    background: #fffaf6;
}

.kyc-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.2rem;
    border-radius: 16px;
    background: rgba(245, 121, 31, 0.12);
    border: 1px solid rgba(245, 121, 31, 0.3);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(45, 37, 31, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 50;
}

.modal.show {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow);
    text-align: center;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0.75rem 0.5rem 1rem;
    gap: 0.35rem;
    z-index: 20;
    box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.06);
}

.nav-item {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
}

.nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: rgba(245, 121, 31, 0.12);
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

@keyframes floatIn {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (min-width: 780px) {
    .topbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .content {
        padding: 2rem;
    }

    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
        max-width: 520px;
        border-radius: 18px 18px 0 0;
    }
}
