/* =========================================================
   UPI QR CODE GENERATOR
   Premium Responsive Stylesheet
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --upi-primary: #4f46e5;
    --upi-primary-dark: #4338ca;
    --upi-secondary: #6366f1;

    --upi-green: #16a34a;
    --upi-green-light: #dcfce7;

    --text-dark: #111827;
    --text-main: #1f2937;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --border-light: #edf2f7;

    --background: #f8fafc;
    --white: #ffffff;

    --shadow-sm:
        0 4px 12px rgba(15, 23, 42, 0.06);

    --shadow-md:
        0 12px 35px rgba(15, 23, 42, 0.09);

    --shadow-lg:
        0 25px 60px rgba(15, 23, 42, 0.12);

    --radius-lg: 22px;
    --radius-md: 14px;
    --radius-sm: 10px;

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;

    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

    color: var(--text-main);

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #ffffff 70%
        );

    line-height: 1.6;
}


button,
input {
    font-family: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}


/* =========================================================
   GLOBAL CONTAINER
========================================================= */

.container {

    width: 100%;

    max-width: 1120px;

    margin: 0 auto;

    padding-left: 20px;
    padding-right: 20px;

}


/* =========================================================
   HERO
========================================================= */

.upi-hero {

    position: relative;

    padding:
        72px
        0
        55px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(99, 102, 241, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at 85% 10%,
            rgba(79, 70, 229, 0.10),
            transparent 30%
        );

}


.upi-hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    right: -150px;

    border-radius: 50%;

    background:
        rgba(99, 102, 241, 0.05);

    pointer-events: none;

}


/* =========================================================
   HERO CONTENT
========================================================= */

.upi-hero-content {

    max-width: 760px;

    margin:
        0 auto
        38px;

    text-align: center;

}


.upi-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        7px
        13px;

    border:
        1px solid
        rgba(79, 70, 229, 0.15);

    border-radius: 999px;

    background:
        rgba(79, 70, 229, 0.06);

    color:
        var(--upi-primary);

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.08em;

}


.upi-badge-icon {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 21px;
    height: 21px;

    border-radius: 50%;

    color: #ffffff;

    background:
        var(--upi-primary);

    font-size: 12px;

    font-weight: 800;

}


.upi-hero h1 {

    margin:
        17px
        0
        12px;

    color:
        var(--text-dark);

    font-size:
        clamp(34px, 5vw, 52px);

    line-height: 1.08;

    letter-spacing: -0.035em;

    font-weight: 800;

}


.upi-hero-content > p {

    max-width: 680px;

    margin:
        0 auto;

    color:
        var(--text-muted);

    font-size: 17px;

    line-height: 1.7;

}


/* =========================================================
   MAIN GENERATOR CARD
========================================================= */

.upi-generator {

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        440px;

    max-width: 1040px;

    margin: 0 auto;

    background:
        var(--white);

    border:
        1px solid
        rgba(226, 232, 240, 0.95);

    border-radius:
        var(--radius-lg);

    box-shadow:
        var(--shadow-lg);

    overflow: hidden;

}


/* =========================================================
   FORM PANEL
========================================================= */

.upi-form-panel {

    padding: 42px;

}


.panel-header {

    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 34px;

}


.panel-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 14px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--upi-primary),
            var(--upi-secondary)
        );

    box-shadow:
        0 8px 20px
        rgba(79, 70, 229, 0.22);

}


.panel-icon span {

    font-size: 22px;

    font-weight: 800;

}


.panel-header h2 {

    margin: 0 0 2px;

    color: var(--text-dark);

    font-size: 20px;

    line-height: 1.3;

}


.panel-header p {

    margin: 0;

    color: var(--text-muted);

    font-size: 13px;

}


/* =========================================================
   FORM GROUP
========================================================= */

.upi-form-group {

    margin-bottom: 22px;

}


.upi-form-group label {

    display: flex;

    align-items: center;

    gap: 6px;

    margin-bottom: 8px;

    color: #334155;

    font-size: 13px;

    font-weight: 700;

}


.required {

    color:
        #dc2626;

}


.optional {

    color:
        #94a3b8;

    font-size: 11px;

    font-weight: 500;

}


/* =========================================================
   INPUT
========================================================= */

.input-wrap {

    position: relative;

}


.input-icon {

    position: absolute;

    left: 15px;

    top: 50%;

    transform:
        translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 22px;

    color:
        #94a3b8;

    font-size: 14px;

    font-weight: 700;

    pointer-events: none;

}


.input-wrap input {

    width: 100%;

    height: 50px;

    padding:
        0
        15px
        0
        45px;

    border:
        1.5px solid
        var(--border);

    border-radius:
        var(--radius-sm);

    outline: none;

    color:
        var(--text-dark);

    background:
        #ffffff;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


.input-wrap input::placeholder {

    color:
        #a3afbf;

}


.input-wrap input:hover {

    border-color:
        #cbd5e1;

}


.input-wrap input:focus {

    border-color:
        var(--upi-primary);

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.09);

    background:
        #ffffff;

}


.upi-form-group small {

    display: block;

    margin-top: 7px;

    color:
        #94a3b8;

    font-size: 11px;

}


/* =========================================================
   AMOUNT
========================================================= */

.amount-icon {

    color:
        var(--upi-primary);

    font-size: 17px;

}


.amount-wrap input {

    font-weight: 600;

}


/* Remove number arrows */

.amount-wrap input::-webkit-outer-spin-button,
.amount-wrap input::-webkit-inner-spin-button {

    -webkit-appearance: none;

    margin: 0;

}


.amount-wrap input[type="number"] {

    -moz-appearance: textfield;

}


/* =========================================================
   LIVE STATUS
========================================================= */

.live-status {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 28px;

    padding:
        10px
        12px;

    border-radius:
        9px;

    color:
        #166534;

    background:
        #f0fdf4;

    font-size: 11px;

    font-weight: 600;

}


.live-dot {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background:
        #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34, 197, 94, 0.10);

}


/* =========================================================
   PREVIEW PANEL
========================================================= */

.upi-preview-panel {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding:
        30px;

    background:
        linear-gradient(
            180deg,
            #f8fafc 0%,
            #f1f5f9 100%
        );

    border-left:
        1px solid
        var(--border);

}


/* =========================================================
   PREVIEW TOP
========================================================= */

.preview-top {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 18px;

}


.preview-label {

    color:
        #64748b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.09em;

}


.live-label {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        #15803d;

    font-size: 9px;

    font-weight: 800;

    letter-spacing:
        0.08em;

}


.live-label span {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        #22c55e;

}


/* =========================================================
   QR BOX
========================================================= */

.upi-qr-box {

    position: relative;

    width: 100%;

    min-height: 326px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 24px;

    border:
        1px solid
        #e2e8f0;

    border-radius:
        18px;

    background:
        #ffffff;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.06);

}


/* =========================================================
   QR PLACEHOLDER
========================================================= */

.qr-placeholder {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

}


.placeholder-qr {

    width: 112px;
    height: 112px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 5px;

    padding: 8px;

    margin-bottom: 18px;

    border:
        2px solid
        #e2e8f0;

    border-radius:
        8px;

    opacity: 0.7;

}


.placeholder-qr div {

    border-radius: 2px;

    background:
        #cbd5e1;

}


.placeholder-qr div:nth-child(1),
.placeholder-qr div:nth-child(5),
.placeholder-qr div:nth-child(9) {

    background:
        #94a3b8;

}


.qr-placeholder strong {

    color:
        #64748b;

    font-size: 13px;

}


.qr-placeholder p {

    margin:
        5px 0 0;

    color:
        #94a3b8;

    font-size: 11px;

}


/* =========================================================
   GENERATED QR
========================================================= */

.qr-code-container {

    width: 260px;

    height: 260px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    background:
        #ffffff;

}


.qr-code-container img,
.qr-code-container canvas {

    display: block;

    width: 260px !important;

    height: 260px !important;

    max-width: 100%;

}


/* =========================================================
   QR PAYMENT DETAILS
========================================================= */

.qr-payment-details {

    width: 100%;

    margin-top: 15px;

    text-align: center;

}


.scan-title {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    color:
        var(--text-dark);

    font-size: 15px;

    font-weight: 800;

}


.scan-icon {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 22px;
    height: 22px;

    border-radius: 7px;

    color:
        var(--upi-primary);

    background:
        rgba(79, 70, 229, 0.09);

    font-size: 14px;

}


.generated-payee {

    margin-top: 3px;

    color:
        #64748b;

    font-size: 12px;

}


.generated-amount {

    margin-top: 3px;

    color:
        var(--text-dark);

    font-size: 17px;

    font-weight: 800;

}


/* =========================================================
   QR ACTIONS
========================================================= */

.qr-actions {

    width: 100%;

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 9px;

    margin-top: 18px;

}


.qr-action {

    min-height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding:
        10px
        12px;

    border:
        1px solid
        var(--border);

    border-radius:
        10px;

    color:
        #475569;

    background:
        #ffffff;

    font-size: 12px;

    font-weight: 700;

    transition:
        all 0.2s ease;

}


.qr-action span {

    font-size: 14px;

}


.qr-action:hover {

    border-color:
        #c7d2fe;

    color:
        var(--upi-primary);

    background:
        #f8f7ff;

    transform:
        translateY(-1px);

}


.qr-action-primary {

    border-color:
        var(--upi-primary);

    color:
        #ffffff;

    background:
        var(--upi-primary);

    box-shadow:
        0 5px 15px
        rgba(79, 70, 229, 0.20);

}


.qr-action-primary:hover {

    color:
        #ffffff;

    border-color:
        var(--upi-primary-dark);

    background:
        var(--upi-primary-dark);

}


/* =========================================================
   PAYMENT LINK
========================================================= */

.payment-link-area {

    width: 100%;

    margin-top: 20px;

    padding-top: 18px;

    border-top:
        1px solid
        var(--border);

}


.payment-link-area > label {

    display: block;

    margin-bottom: 7px;

    color:
        #64748b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.05em;

    text-transform:
        uppercase;

}


.payment-link-row {

    display: flex;

    gap: 7px;

}


.payment-link-row input {

    min-width: 0;

    flex: 1;

    height: 42px;

    padding:
        0
        11px;

    border:
        1px solid
        var(--border);

    border-radius:
        9px;

    outline: none;

    color:
        #64748b;

    background:
        #f8fafc;

    font-size: 10px;

}


.payment-link-row button {

    flex: 0 0 auto;

    height: 42px;

    padding:
        0
        14px;

    border:
        1px solid
        #c7d2fe;

    border-radius:
        9px;

    color:
        var(--upi-primary);

    background:
        #eef2ff;

    font-size: 11px;

    font-weight: 700;

    transition:
        all 0.2s ease;

}


.payment-link-row button:hover {

    background:
        #e0e7ff;

}


.open-upi-button {

    width: 100%;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    margin-top: 9px;

    border:
        1px solid
        #bbf7d0;

    border-radius:
        9px;

    color:
        #15803d;

    background:
        #f0fdf4;

    font-size: 11px;

    font-weight: 700;

    transition:
        all 0.2s ease;

}


.open-upi-button:hover {

    background:
        #dcfce7;

    border-color:
        #86efac;

}


.copy-status {

    min-height: 16px;

    margin:
        5px
        0
        0;

    text-align: center;

    color:
        #16a34a;

    font-size: 10px;

    font-weight: 600;

}


/* =========================================================
   ERROR
========================================================= */

.qr-error {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    color:
        #dc2626;

    padding: 30px;

}


.qr-error strong {

    font-size: 14px;

}


.qr-error span {

    margin-top: 5px;

    color:
        #94a3b8;

    font-size: 11px;

}

/* =========================================================
   UPI QR PAYMENT CARD
========================================================= */

.upi-qr-card {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 34px 30px 38px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}


/* =========================================================
   BRAND
========================================================= */

.qr-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.qr-brand-logo {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 14px;
}

.qr-brand-name {
    color: #111827;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.4px;
}


/* =========================================================
   SCAN HEADING
========================================================= */

.qr-scan-heading {
    margin-top: 10px;
    color: #111827;
    font-size: 38px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.qr-scan-subtitle {
    margin-top: 8px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}


/* =========================================================
   QR CONTAINER
========================================================= */

.upi-qr-card .upi-qr-box {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    margin: 22px auto 0;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    overflow: hidden;
}


/* =========================================================
   GENERATED QR
========================================================= */

.qr-code-render {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-render canvas,
.qr-code-render img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.upi-qr-card .qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.upi-qr-card .qr-placeholder strong {
    margin-top: 18px;
    color: #111827;
    font-size: 16px;
}

.upi-qr-card .qr-placeholder p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 14px;
}


/* =========================================================
   PAYMENT DETAILS
========================================================= */

.upi-qr-card .qr-payment-details {
    margin-top: 22px;
    text-align: center;
}

.upi-qr-card .generated-payee {
    color: #111827;
    font-size: 25px;
    line-height: 1.3;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.upi-qr-card .generated-upi-id {
    margin-top: 7px;
    color: #475569;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.upi-qr-card .generated-amount {
    margin-top: 10px;
    color: #111827;
    font-size: 31px;
    line-height: 1.2;
    font-weight: 800;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .upi-qr-card {
        padding: 26px 18px 30px;
        border-radius: 22px;
    }

    .qr-brand-logo {
        width: 64px;
        height: 64px;
        border-radius: 16px;
    }

    .qr-brand-name {
        font-size: 21px;
    }

    .qr-scan-heading {
        font-size: 31px;
    }

    .qr-scan-subtitle {
        font-size: 14px;
    }

    .upi-qr-card .upi-qr-box {
        max-width: 360px;
        padding: 11px;
        border-radius: 15px;
    }

    .upi-qr-card .generated-payee {
        font-size: 22px;
    }

    .upi-qr-card .generated-upi-id {
        font-size: 16px;
    }

    .upi-qr-card .generated-amount {
        font-size: 28px;
    }

}

/* =========================================================
   TRUST ROW
========================================================= */

.upi-trust-row {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap:
        12px
        28px;

    padding:
        23px
        0
        0;

}


.trust-item {

    display: flex;

    align-items: center;

    gap: 7px;

    color:
        #64748b;

    font-size: 11px;

    font-weight: 600;

}


.trust-icon {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    border-radius: 50%;

    color:
        #15803d;

    background:
        #dcfce7;

    font-size: 10px;

    font-weight: 800;

}


/* =========================================================
   INFO SECTION
========================================================= */

.upi-info-section {

    padding:
        85px
        0;

    background:
        #ffffff;

}


.upi-section-heading {

    max-width: 680px;

    margin:
        0 auto
        45px;

    text-align: center;

}


.section-tag {

    display: inline-block;

    color:
        var(--upi-primary);

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.1em;

}


.upi-section-heading h2 {

    margin:
        10px
        0
        10px;

    color:
        var(--text-dark);

    font-size:
        clamp(26px, 4vw, 36px);

    line-height: 1.2;

    letter-spacing:
        -0.025em;

}


.upi-section-heading p {

    margin: 0;

    color:
        var(--text-muted);

    font-size: 14px;

}


/* =========================================================
   STEPS
========================================================= */

.upi-steps {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    max-width: 1000px;

    margin:
        0 auto;

}


.upi-step {

    padding:
        28px;

    border:
        1px solid
        var(--border);

    border-radius:
        16px;

    background:
        #ffffff;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.upi-step:hover {

    transform:
        translateY(-3px);

    box-shadow:
        var(--shadow-sm);

}


.step-number {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin-bottom: 18px;

    border-radius: 11px;

    color:
        var(--upi-primary);

    background:
        #eef2ff;

    font-size: 11px;

    font-weight: 800;

}


.upi-step h3 {

    margin:
        0
        0
        7px;

    color:
        var(--text-dark);

    font-size: 16px;

}


.upi-step p {

    margin: 0;

    color:
        var(--text-muted);

    font-size: 13px;

    line-height: 1.7;

}


/* =========================================================
   CONTENT SECTION
========================================================= */

.upi-content-section {

    padding:
        75px
        0;

    background:
        #f8fafc;

}


.upi-content-container {

    max-width: 820px;

}


.upi-content-container h2 {

    margin:
        9px
        0
        20px;

    color:
        var(--text-dark);

    font-size:
        clamp(26px, 4vw, 34px);

    line-height: 1.25;

}


.upi-content-container p {

    margin:
        0
        0
        17px;

    color:
        #64748b;

    font-size: 14px;

    line-height: 1.85;

}


/* =========================================================
   FAQ
========================================================= */

.upi-faq-section {

    padding:
        80px
        0;

    background:
        #ffffff;

}


.upi-faq-list {

    max-width: 820px;

    margin:
        0 auto;

}


.upi-faq-list details {

    border-bottom:
        1px solid
        var(--border);

}


.upi-faq-list summary {

    position: relative;

    padding:
        21px
        35px
        21px
        0;

    color:
        var(--text-dark);

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    list-style: none;

}


.upi-faq-list summary::-webkit-details-marker {

    display: none;

}


.upi-faq-list summary::after {

    content: "+";

    position: absolute;

    right: 3px;

    top: 50%;

    transform:
        translateY(-50%);

    color:
        var(--upi-primary);

    font-size: 20px;

    font-weight: 400;

}


.upi-faq-list details[open] summary::after {

    content: "−";

}


.upi-faq-list details p {

    margin:
        -5px
        0
        20px;

    padding-right: 40px;

    color:
        var(--text-muted);

    font-size: 13px;

    line-height: 1.8;

}


/* =========================================================
   FINAL CTA
========================================================= */

.upi-final-cta {

    padding:
        85px
        20px;

    text-align: center;

    color:
        #ffffff;

    background:
        linear-gradient(
            135deg,
            #4338ca,
            #4f46e5 55%,
            #6366f1
        );

}


.upi-final-cta .section-tag {

    color:
        rgba(255,255,255,0.75);

}


.upi-final-cta h2 {

    margin:
        10px
        0
        10px;

    font-size:
        clamp(27px, 4vw, 38px);

    line-height: 1.2;

    letter-spacing:
        -0.025em;

}


.upi-final-cta p {

    margin:
        0
        25px;

    color:
        rgba(255,255,255,0.80);

    font-size: 14px;

}


.upi-cta-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding:
        0
        22px;

    border-radius:
        10px;

    color:
        #3730a3;

    background:
        #ffffff;

    font-size: 13px;

    font-weight: 800;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;

}


.upi-cta-button:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 30px
        rgba(15, 23, 42, 0.22);

}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 900px) {

    .upi-generator {

        grid-template-columns:
            1fr
            380px;

    }

    .upi-form-panel {

        padding:
            32px;

    }

    .upi-preview-panel {

        padding:
            25px;

    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 760px) {

    .container {

        padding-left: 15px;
        padding-right: 15px;

    }


    .upi-hero {

        padding:
            45px
            0
            40px;

    }


    .upi-hero-content {

        margin-bottom:
            28px;

    }


    .upi-hero h1 {

        font-size:
            34px;

    }


    .upi-hero-content > p {

        font-size:
            14px;

        line-height:
            1.65;

    }


    .upi-generator {

        display: block;

        border-radius:
            18px;

    }


    .upi-form-panel {

        padding:
            27px
            20px
            24px;

    }


    .panel-header {

        margin-bottom:
            25px;

    }


    .upi-preview-panel {

        padding:
            20px;

        border-top:
            1px solid
            var(--border);

        border-left:
            none;

    }


    .upi-qr-box {

        min-height:
            310px;

    }


    .upi-trust-row {

        gap:
            12px
            18px;

    }


    .trust-item {

        font-size:
            10px;

    }


    .upi-info-section,
    .upi-content-section,
    .upi-faq-section {

        padding:
            60px
            0;

    }


    .upi-steps {

        grid-template-columns:
            1fr;

        gap:
            13px;

    }


    .upi-step {

        padding:
            22px;

    }


    .upi-final-cta {

        padding:
            65px
            20px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .upi-hero {

        padding-top:
            35px;

    }


    .upi-hero h1 {

        font-size:
            30px;

    }


    .upi-badge {

        font-size:
            9px;

    }


    .upi-form-panel {

        padding:
            24px
            16px;

    }


    .upi-preview-panel {

        padding:
            16px;

    }


    .upi-qr-box {

        min-height:
            290px;

        padding:
            15px;

    }


    .qr-code-container {

        width:
            240px;

        height:
            240px;

    }


    .qr-code-container img,
    .qr-code-container canvas {

        width:
            240px !important;

        height:
            240px !important;

    }


    .qr-actions {

        grid-template-columns:
            1fr 1fr;

    }


    .qr-action {

        font-size:
            11px;

        padding:
            9px 6px;

    }


    .payment-link-row {

        flex-direction:
            column;

    }


    .payment-link-row button {

        width:
            100%;

    }


    .upi-trust-row {

        flex-direction:
            column;

        align-items:
            flex-start;

        width:
            fit-content;

        margin:
            0 auto;

    }

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
a:focus-visible,
summary:focus-visible {

    outline:
        3px solid
        rgba(79, 70, 229, 0.25);

    outline-offset:
        2px;

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        transition:
            none !important;

        animation:
            none !important;

    }

}

/* =========================================================
   HEADER
========================================================= */

.site-header {

    position: sticky;

    top: 0;

    z-index: 100;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid
        rgba(226, 232, 240, 0.8);

    backdrop-filter:
        blur(14px);

    -webkit-backdrop-filter:
        blur(14px);

}


.header-inner {

    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.logo {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        var(--text-dark);

    font-size: 15px;

    font-weight: 800;

    letter-spacing:
        -0.02em;

}


.logo-icon {

    width: 34px;
    height: 34px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 10px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--upi-primary),
            var(--upi-secondary)
        );

    font-size: 17px;

    font-weight: 800;

    box-shadow:
        0 5px 14px
        rgba(79, 70, 229, 0.20);

}


.logo-text {

    white-space: nowrap;

}


.main-nav {

    display: flex;

    align-items: center;

    gap: 6px;

}


.main-nav a {

    padding:
        8px
        12px;

    border-radius: 8px;

    color:
        #64748b;

    font-size: 12px;

    font-weight: 600;

    transition:
        color 0.2s ease,
        background 0.2s ease;

}


.main-nav a:hover {

    color:
        var(--upi-primary);

    background:
        #f5f3ff;

}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    border-top:
        1px solid
        var(--border);

    background:
        #0f172a;

    color:
        #ffffff;

}


.footer-main {

    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        1fr
        1fr;

    gap:
        70px;

    padding:
        55px
        20px;

}


.footer-brand {

    max-width: 390px;

}


.footer-logo {

    color:
        #ffffff;

}


.footer-brand p {

    margin:
        17px
        0
        0;

    color:
        #94a3b8;

    font-size:
        12px;

    line-height:
        1.8;

}


.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.footer-column h3 {

    margin:
        0
        0
        15px;

    color:
        #ffffff;

    font-size:
        12px;

    font-weight:
        800;

}


.footer-column a {

    margin-bottom:
        9px;

    color:
        #94a3b8;

    font-size:
        12px;

    transition:
        color 0.2s ease;

}


.footer-column a:hover {

    color:
        #ffffff;

}


.footer-bottom {

    border-top:
        1px solid
        rgba(255,255,255,0.08);

}


.footer-bottom-inner {

    min-height:
        55px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color:
        #64748b;

    font-size:
        10px;

}


/* =========================================================
   GLOBAL CONSISTENCY
========================================================= */

input,
button {

    font-size:
        13px;

}


button {

    -webkit-tap-highlight-color:
        transparent;

}


.upi-form-group {

    min-width:
        0;

}


.input-wrap {

    width:
        100%;

}


.input-wrap input {

    display:
        block;

}


/* =========================================================
   QR DETAILS POLISH
========================================================= */

.qr-payment-details {

    min-height:
        47px;

}


.generated-payee {

    max-width:
        100%;

    overflow:
        hidden;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;

}


.generated-amount:empty {

    display:
        none;

}


/* =========================================================
   MOBILE HEADER + FOOTER
========================================================= */

@media (max-width: 760px) {

    .header-inner {

        min-height:
            62px;

    }


    .logo {

        font-size:
            14px;

    }


    .logo-icon {

        width:
            32px;

        height:
            32px;

        flex-basis:
            32px;

        font-size:
            16px;

    }


    .main-nav {

        gap:
            1px;

    }


    .main-nav a {

        padding:
            7px 8px;

        font-size:
            10px;

    }


    .footer-main {

        grid-template-columns:
            1fr 1fr;

        gap:
            35px
            25px;

        padding:
            42px
            20px;

    }


    .footer-brand {

        grid-column:
            1 / -1;

        max-width:
            100%;

    }


    .footer-bottom-inner {

        min-height:
            65px;

        flex-direction:
            column;

        justify-content:
            center;

        gap:
            3px;

    }

}


@media (max-width: 430px) {

    .main-nav a {

        font-size:
            9px;

        padding:
            6px 5px;

    }


    .logo-text {

        max-width:
            145px;

        overflow:
            hidden;

        text-overflow:
            ellipsis;

    }


    .footer-main {

        grid-template-columns:
            1fr;

    }


    .footer-brand {

        grid-column:
            auto;

    }

}

.menu-toggle {
display:none;
width:42px;
height:42px;
padding:8px;
border:0;
background:transparent;
cursor:pointer;
align-items:center;
justify-content:center;
flex-direction:column;
gap:5px;
}

.menu-toggle span {
display:block;
width:22px;
height:2px;
background:currentColor;
border-radius:2px;
transition:transform .2s ease,opacity .2s ease;
}

@media (max-width:768px) {
.header-inner {
position:relative;
}

.menu-toggle {
display:flex;
}

.main-nav {
display:none;
position:absolute;
top:100%;
left:0;
right:0;
padding:12px 16px;
background:#fff;
border-top:1px solid #eee;
box-shadow:0 8px 20px rgba(0,0,0,.08);
z-index:1000;
}

.main-nav.menu-open {
display:flex;
flex-direction:column;
gap:0;
}

.main-nav a {
display:block;
padding:13px 10px;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
transform:translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
opacity:0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
transform:translateY(-7px) rotate(-45deg);
}
}

@media (min-width:769px) {
.main-nav {
display:flex;
}
}