/* ── Design Read ──
   A precision-crafted, high-contrast Indian fintech utility with subtle micro-textures, 
   warm tinted stone neutrals, crisp geometric typography (Satoshi), tactile elevation, 
   and zero generic boilerplate.
*/

/* ── Reset & Variables ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #F8FAFC;
    --bg-subtle: #F1F5F9;
    --card: #FFFFFF;
    --card-border: rgba(15, 23, 42, 0.08);
    --border: #E2E8F0;
    --border-hover: #CBD5E1;
    --border-focus: #4F46E5;
    
    --text: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;

    --accent: #4F46E5;
    --accent-hover: #4338CA;
    --accent-pressed: #3730A3;
    --accent-subtle: rgba(79, 70, 229, 0.08);

    --success: #059669;
    --success-hover: #047857;
    --success-pressed: #065F46;
    --success-subtle: rgba(5, 150, 105, 0.08);

    --error: #DC2626;
    --error-subtle: rgba(220, 38, 38, 0.08);

    --r-lg: 20px;
    --r-md: 14px;
    --r-sm: 10px;
    --r-pill: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-card: 0 1px 3px 0 rgba(15, 23, 42, 0.03), 0 12px 36px -4px rgba(15, 23, 42, 0.07);
    --shadow-btn: 0 2px 8px -1px rgba(79, 70, 229, 0.28);
    --shadow-pay: 0 3px 12px -2px rgba(5, 150, 105, 0.32);

    --font: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

body {
    font-family: var(--font);
    background-color: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* Subtle background ambient aura */
.ambient-glow {
    position: fixed;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 380px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.07) 0%, rgba(248, 250, 252, 0) 70%);
    pointer-events: none;
    z-index: 0;
}

/* ── Container & Views ── */
.view {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 32px 16px 48px;
    min-height: 100dvh;
    position: relative;
    z-index: 1;
}

.view[hidden] {
    display: none !important;
}

.container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

/* ── Brand Header ── */
.brand-header {
    text-align: center;
    margin-bottom: 28px;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--card);
    border: 1px solid var(--card-border);
    padding: 4px 12px;
    border-radius: var(--r-pill);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent);
    box-shadow: var(--shadow-sm);
    margin-bottom: 12px;
}

.brand-title {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
}

.brand-title span {
    color: var(--accent);
}

.brand-subtitle {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 320px;
    margin-inline: auto;
}

/* ── Card Base ── */
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-card);
    padding: 28px 24px;
    position: relative;
}

/* ── Form Fields ── */
.field {
    margin-bottom: 22px;
}

.field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.field-hint {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: var(--r-sm);
    transition: color 0.15s;
}

.btn-text:hover {
    color: var(--error);
}

.field-error {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--error);
    margin-top: 6px;
    min-height: 16px;
}

/* Single Text Inputs */
.field input[type="text"],
.field input[type="number"] {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 16px; /* Prevents auto-zoom on iOS */
    color: var(--text);
    background: var(--card);
    outline: none;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.field input[type="text"]::placeholder,
.field input[type="number"]::placeholder {
    color: var(--text-muted);
}

.field input[type="text"]:focus,
.field input[type="number"]:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.14);
}

.field input.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12);
}

/* ── UPI Split Input Group ── */
.upi-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--card);
    position: relative;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.upi-input-group:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.14);
}

.upi-input-group.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12);
}

.upi-input-group input[type="text"] {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: none;
    font-family: var(--font);
    font-size: 16px;
    color: var(--text);
    background: transparent;
    outline: none;
}

.upi-separator {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 0 4px;
    flex-shrink: 0;
    user-select: none;
}

/* ── Custom Select Component (Matches UI) ── */
.custom-select-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 48px;
    padding: 0 12px;
    border: none;
    border-left: 1.5px solid var(--border);
    background: var(--bg-subtle);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
    transition: background-color 0.15s ease;
    border-top-right-radius: calc(var(--r-md) - 1.5px);
    border-bottom-right-radius: calc(var(--r-md) - 1.5px);
}

.custom-select-trigger:hover {
    background: #E2E8F0;
}

.custom-select-trigger .select-chevron {
    color: var(--text-secondary);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.custom-select-trigger[aria-expanded="true"] {
    background: #E2E8F0;
}

.custom-select-trigger[aria-expanded="true"] .select-chevron {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    max-height: 290px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--r-md);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 20px 40px -4px rgba(15, 23, 42, 0.14);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 1000;
    padding: 6px 0;
    animation: popoverSlideDown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.custom-select-menu[hidden] {
    display: none !important;
}

.custom-select-menu::-webkit-scrollbar {
    width: 5px;
}
.custom-select-menu::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

.menu-group-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    padding: 8px 14px 4px;
    user-select: none;
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    margin: 2px 6px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
    user-select: none;
}

.menu-item:hover,
.menu-item.highlighted {
    background: var(--bg-subtle);
    color: var(--accent);
}

.menu-item.selected {
    background: var(--accent-subtle);
    color: var(--accent);
    font-weight: 700;
}

.menu-item-info {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.menu-item-handle {
    font-weight: 700;
    color: inherit;
}

.menu-item-tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-subtle);
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.menu-item.selected .menu-item-tag {
    background: rgba(79, 70, 229, 0.12);
    border-color: rgba(79, 70, 229, 0.2);
    color: var(--accent);
}

.menu-item-check {
    color: var(--accent);
    flex-shrink: 0;
}

@keyframes popoverSlideDown {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Visually Hidden Utility ── */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#upi-custom-bank {
    max-width: 110px;
    height: 48px;
    padding: 0 10px;
    border: none;
    border-left: 1.5px solid var(--border);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    background: var(--bg-subtle);
    outline: none;
}

#upi-custom-bank[hidden] {
    display: none !important;
}

/* ── Amount Input Group & Preset Chips ── */
.amount-input-group {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--card);
    overflow: hidden;
    transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.amount-input-group:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3.5px rgba(79, 70, 229, 0.14);
}

.amount-input-group.invalid {
    border-color: var(--error);
    box-shadow: 0 0 0 3.5px rgba(220, 38, 38, 0.12);
}

.currency-symbol {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0 14px;
    background: var(--bg-subtle);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1.5px solid var(--border);
    flex-shrink: 0;
}

.amount-input-group input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: none !important;
    box-shadow: none !important;
    font-size: 18px !important;
    font-weight: 700;
    color: var(--text);
    background: transparent;
    outline: none;
}

/* Quick Amount Chips */
.amount-chips {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.chip {
    flex: 1;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    background: var(--card);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-subtle);
}

.chip.active {
    border-color: var(--accent);
    background: var(--accent);
    color: #FFFFFF;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    padding: 0 20px;
    border: none;
    border-radius: var(--r-md);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background-color: var(--accent);
    color: #FFFFFF;
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

.btn-primary:active {
    background-color: var(--accent-pressed);
}

.btn-secondary {
    background-color: var(--bg-subtle);
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background-color: #E2E8F0;
    border-color: var(--border-hover);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    color: var(--text);
    background-color: var(--bg-subtle);
}

.btn-pay {
    background-color: var(--success);
    color: #FFFFFF;
    height: 54px;
    font-size: 16px;
    font-weight: 700;
    box-shadow: var(--shadow-pay);
}

.btn-pay:hover {
    background-color: var(--success-hover);
}

.btn-pay:active {
    background-color: var(--success-pressed);
}

/* ── Result Card ── */
.result-card {
    margin-top: 20px;
    border-color: rgba(5, 150, 105, 0.25);
    background: linear-gradient(180deg, #FFFFFF 0%, #FAFCFB 100%);
    animation: fadeSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.status-indicator {
    width: 36px;
    height: 36px;
    border-radius: var(--r-pill);
    background: var(--success-subtle);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.2;
}

.result-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.link-box {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    background: var(--bg-subtle);
    padding: 4px;
    margin-bottom: 16px;
    gap: 6px;
}

.link-box input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 12px;
    border: none;
    background: transparent;
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    outline: none;
    text-overflow: ellipsis;
}

.btn-copy {
    height: 38px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
}

.btn-copy:hover {
    background: #FFFFFF;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-copy.copied {
    background: var(--success-subtle);
    color: var(--success);
    border-color: rgba(5, 150, 105, 0.3);
}

.result-actions {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 10px;
}

/* ── Pay Card View ── */
.pay-card {
    text-align: center;
    padding: 32px 24px;
}

.pay-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pay-brand {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
}

.pay-brand span {
    color: var(--accent);
}

.pay-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: var(--r-pill);
}

.pay-secure-badge svg {
    color: var(--accent);
}

/* ── Remark as Card Title ── */
.pay-title-section {
    margin-bottom: 14px;
}

.pay-subtitle {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.pay-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1.2;
    word-break: break-word;
    max-width: 320px;
    margin-inline: auto;
}

.pay-amount-section {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 24px;
}

.currency-sign {
    font-size: 30px;
    font-weight: 600;
    color: var(--text-muted);
}

.amount-number {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--text);
}

.payee-box {
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 14px 16px;
    margin-bottom: 24px;
    text-align: left;
}

.payee-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.payee-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.verified-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--success);
}

.payee-name-row {
    margin-bottom: 2px;
}

.payee-name-row[hidden] {
    display: none !important;
}

.payee-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text);
    line-height: 1.25;
    word-break: break-word;
}

.payee-name-row:not([hidden]) ~ .payee-id-row .payee-vpa {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-secondary);
}

.payee-id-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.payee-vpa {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
}

.btn-copy-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r-pill);
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-secondary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.btn-copy-pill:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-copy-pill.copied {
    background: var(--success-subtle);
    border-color: var(--success);
    color: var(--success);
}

.mobile-pay-wrap {
    margin-bottom: 20px;
}

.upi-apps-container {
    margin-top: 14px;
}

.upi-apps-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: center;
}

.upi-app-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.btn-app-quick {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 4px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.btn-app-quick:hover {
    border-color: var(--accent);
    background: var(--bg-subtle);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.btn-app-quick:active {
    transform: scale(0.96);
}

.app-icon-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-sm);
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.btn-app-quick:hover .app-icon-wrap {
    transform: scale(1.06);
    border-color: rgba(79, 70, 229, 0.25);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.app-logo-svg {
    display: block;
    flex-shrink: 0;
}

.app-name {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* QR Code Section */
.qr-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.qr-frame {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    padding: 12px;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    position: relative;
}

.qr-canvas-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-canvas-wrap canvas,
.qr-canvas-wrap img {
    display: block;
    border-radius: var(--r-sm);
    max-width: 100%;
    height: auto;
}

.desktop-hint {
    display: none;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.qr-caption-mobile {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 10px;
    text-align: center;
}

.pay-actions {
    margin-top: 20px;
}

/* Self Payment Alert */
.pay-note-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #FFFBEB;
    border: 1.5px solid #FDE68A;
    border-radius: var(--r-md);
    padding: 12px 14px;
    margin-top: 20px;
    text-align: left;
}

.pay-note-alert .note-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 1px;
}

.pay-note-alert .note-content {
    font-size: 12px;
    line-height: 1.45;
    color: #92400E;
}

.pay-note-alert .note-content strong {
    display: block;
    color: #78350F;
    font-weight: 700;
    margin-bottom: 2px;
}

.pay-note-alert .note-vpa {
    font-weight: 700;
    color: #78350F;
}

/* ── Error View ── */
.error-card {
    text-align: center;
    padding: 40px 24px;
}

.error-badge {
    width: 64px;
    height: 64px;
    border-radius: var(--r-pill);
    background: var(--error-subtle);
    color: var(--error);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.error-title {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 8px;
}

.error-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ── Footer ── */
.app-footer {
    text-align: center;
    margin-top: 28px;
}

.footer-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
}

.footer-link:hover {
    text-decoration: underline;
}

.footer-meta {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.02em;
}

/* ── Toast Notification ── */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: #0F172A;
    color: #FFFFFF;
    padding: 10px 18px;
    border-radius: var(--r-pill);
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 9999;
    white-space: nowrap;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ── Desktop Adaptations ── */
@media (min-width: 768px) {
    .container {
        max-width: 480px;
    }

    .mobile-pay-wrap {
        display: none;
    }

    .desktop-hint {
        display: block;
    }

    .qr-caption-mobile {
        display: none;
    }
}

/* ── Animation Keyframes ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
