/* ═══════════════════════════════════════════
   ADC CLUB — PREMIUM DESIGN SYSTEM
   ═══════════════════════════════════════════ */

:root {
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Primary palette */
    --color-primary: #4f46e5;
    --color-primary-hover: #4338ca;
    --color-primary-light: #e0e7ff;
    --color-primary-glow: rgba(79, 70, 229, 0.35);

    /* Accents */
    --color-success: #10b981;
    --color-success-hover: #059669;
    --color-success-light: #ecfdf5;
    --color-error: #ef4444;
    --color-error-light: #fef2f2;
    --color-warning: #f59e0b;

    /* Neutrals */
    --color-text-main: #1e293b;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;
    --color-card-bg: rgba(255, 255, 255, 0.82);
    --color-input-bg: #f8fafc;
    --color-input-border: #cbd5e1;
    --color-page-bg: #eef2ff;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px rgba(79, 70, 229, 0.12);

    /* Transitions */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    line-height: 1.6;
    padding: 16px;
    overflow-x: hidden;

    /* Animated gradient background */
    background: var(--color-page-bg);
    background-image:
        radial-gradient(ellipse at 0% 0%, hsla(243, 100%, 88%, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 0%, hsla(180, 100%, 88%, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, hsla(260, 100%, 90%, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, hsla(220, 100%, 90%, 0.4) 0%, transparent 50%);
    background-size: 200% 200%;
    background-attachment: fixed;
    animation: bgShift 20s ease infinite;
}

@keyframes bgShift {
    0%, 100% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

/* Blurred club-building backdrop — sits above the gradient, below content.
   The image is pre-blurred; 0.35 opacity lets the animated gradient tint it. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url('club-bg.jpg') center center / cover no-repeat;
    opacity: 0.5;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   APP CONTAINER — Fade-in on load
   ═══════════════════════════════════════════ */
.app-container {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 20px auto;
    animation: fadeSlideUp 0.6s var(--ease-out) both;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.app-header {
    text-align: center;
    padding: 18px 16px;
    /* Frosted scrim so header text stays readable over the blurred photo */
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.3px;
    line-height: 1.15;
    color: var(--color-text-main);
}

/* Language Switcher — Segmented Control */
.language-switcher {
    display: flex;
    background: rgba(226, 232, 240, 0.5);
    padding: 3px;
    border-radius: 30px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(203, 213, 225, 0.4);
}

.lang-btn {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 20px;
    font-family: var(--font-family);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
}

.lang-btn.active {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.lang-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.app-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-text-main);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.app-header p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    max-width: 420px;
    margin: 0 auto 16px;
}

/* ═══════════════════════════════════════════
   FEE BADGE & AMOUNT DISPLAY
   ═══════════════════════════════════════════ */
.fee-badge {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 12px;
}

.amount-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.amount-value {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--color-primary), #7c3aed, #06b6d4);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientText 4s ease infinite;
}

@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.amount-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ═══════════════════════════════════════════
   TRUST BADGES
   ═══════════════════════════════════════════ */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: rgba(255, 255, 255, 0.6);
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    backdrop-filter: blur(4px);
}

.trust-item i {
    color: var(--color-primary);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   GLASSMORPHISM CARDS
   ═══════════════════════════════════════════ */
.form-card, .success-card {
    background: var(--color-card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: cardFadeIn 0.5s var(--ease-out) both;
    animation-delay: 0.15s;
}

@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
}

/* ═══════════════════════════════════════════
   STEP SECTIONS & BADGES
   ═══════════════════════════════════════════ */
.step-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.step-badge {
    align-self: flex-start;
    background: linear-gradient(135deg, var(--color-primary), #7c3aed);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 14px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.step-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.step-description {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ═══════════════════════════════════════════
   PAYMENT TABS — Segmented Control
   ═══════════════════════════════════════════ */
.payment-tabs {
    display: flex;
    background: var(--color-input-bg);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    gap: 4px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 11px;
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.tab-btn.active {
    background: white;
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.tab-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.tab-btn i {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    display: none;
    animation: tabFadeIn 0.3s var(--ease-out);
}

.tab-content.active {
    display: block;
}

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════
   PAYMENT BOX & QR CODE
   ═══════════════════════════════════════════ */
.payment-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 8px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8), rgba(238, 242, 255, 0.6));
    border-radius: 18px;
    border: 1px dashed var(--color-input-border);
}

/* QR Container with animated corner brackets */
.qr-container {
    position: relative;
    width: 180px;
    height: 180px;
    background: white;
    border-radius: 16px;
    padding: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Corner brackets via gradients on pseudo-elements */
.qr-container::before,
.qr-container::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 3px solid var(--color-primary);
    z-index: 2;
    animation: cornerPulse 2s ease-in-out infinite;
}

.qr-container::before {
    top: 6px;
    left: 6px;
    border-right: none;
    border-bottom: none;
    border-radius: 6px 0 0 0;
}

.qr-container::after {
    bottom: 6px;
    right: 6px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 6px 0;
}

@keyframes cornerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 1;
}

/* Scan line */
.qr-overlay-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, transparent 5%, var(--color-primary) 50%, transparent 95%);
    animation: qrScan 2.8s ease-in-out infinite;
    box-shadow: 0 0 12px var(--color-primary-glow);
    z-index: 3;
}

@keyframes qrScan {
    0% { top: 8px; }
    50% { top: calc(100% - 8px); }
    100% { top: 8px; }
}

.upi-action {
    width: 100%;
}

.upi-info {
    text-align: center;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upi-info > span {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.copy-box {
    display: inline-flex;
    align-items: center;
    background: white;
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid var(--color-border);
    gap: 10px;
    transition: border-color 0.2s;
}

.copy-box:hover {
    border-color: var(--color-primary);
}

.copy-box code {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.3px;
}

.copy-btn {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    transition: all 0.2s var(--ease-out);
    padding: 2px;
    display: flex;
    align-items: center;
}

.copy-btn:hover {
    color: var(--color-primary);
    transform: scale(1.15);
}

.copy-btn:active {
    transform: scale(0.9);
}

.copy-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ═══════════════════════════════════════════
   FORM PROGRESS STEPPER
   ═══════════════════════════════════════════ */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 0 4px;
}

.progress-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    background: var(--color-input-bg);
    color: var(--color-text-muted);
    border: 2px solid var(--color-border);
    transition: all 0.35s var(--ease-out);
    flex-shrink: 0;
}

.progress-step.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
    animation: stepPulse 2s ease-in-out infinite;
}

@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.2); }
    50% { box-shadow: 0 0 0 6px rgba(79, 70, 229, 0); }
}

.progress-step.completed {
    background: linear-gradient(135deg, var(--color-success), #059669);
    border-color: var(--color-success);
    color: white;
    animation: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.progress-line {
    width: 32px;
    height: 2px;
    background: var(--color-border);
    transition: background 0.35s var(--ease-out);
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   FORM ELEMENTS
   ═══════════════════════════════════════════ */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 8px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    animation: formGroupFadeIn 0.4s var(--ease-out) both;
}

.form-group:nth-child(1) { animation-delay: 0.05s; }
.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.15s; }
.form-group:nth-child(4) { animation-delay: 0.2s; }

@keyframes formGroupFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-text-main);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.25s;
    z-index: 1;
}

input[type="text"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 13px 40px 13px 42px;
    min-height: 48px;
    border-radius: 12px;
    border: 1.5px solid var(--color-input-border);
    background-color: var(--color-input-bg);
    font-family: var(--font-family);
    font-size: 0.92rem;
    color: var(--color-text-main);
    outline: none;
    transition: all 0.25s var(--ease-out);
}

textarea {
    min-height: 80px;
    resize: vertical;
    padding-right: 40px;
}

.textarea-wrapper .input-icon {
    top: 15px;
}

.textarea-wrapper .input-valid-icon {
    top: 15px;
}

/* Focus states */
input:focus, textarea:focus {
    border-color: var(--color-primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

input:focus ~ .input-icon,
textarea:focus ~ .input-icon {
    color: var(--color-primary);
}

/* Invalid states */
input.invalid, textarea.invalid {
    border-color: var(--color-error);
    background-color: var(--color-error-light);
}

input.invalid:focus, textarea.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* Valid checkmark icon */
.input-valid-icon {
    position: absolute;
    right: 14px;
    color: var(--color-success);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s var(--ease-spring);
    pointer-events: none;
}

.input-valid-icon.visible {
    opacity: 1;
    transform: scale(1);
}

.help-text {
    font-size: 0.73rem;
    color: var(--color-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.field-error {
    font-size: 0.73rem;
    color: var(--color-error);
    margin-top: 2px;
    display: none;
}

.field-error.visible {
    display: block;
    animation: shakeError 0.4s var(--ease-out);
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    min-height: 50px;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

/* Pay Button — Dark gradient */
.btn-pay {
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 41, 59, 0.3);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.35);
}

.btn-pay:active {
    transform: translateY(0);
}

/* Success Button — Green gradient with shimmer */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-success:hover:not(:disabled)::after {
    left: 100%;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.35);
}

.btn-success:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Outline Button */
.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
}

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

/* WhatsApp Button */
.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

/* Spinner */
.spinner {
    display: none;
    font-size: 1.1rem;
}

.spinner.visible {
    display: inline-block;
}

/* ═══════════════════════════════════════════
   SUCCESS CARD
   ═══════════════════════════════════════════ */
.success-card {
    text-align: center;
    align-items: center;
    padding: 36px 28px;
    position: relative;
    overflow: hidden;
}

.success-icon-container {
    margin-bottom: 8px;
}

.success-icon-bg {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-success), #059669);
    color: white;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    animation: successPop 0.5s var(--ease-spring) forwards;
    position: relative;
}

.success-icon-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--color-success);
    animation: ringExpand 1s var(--ease-out) forwards;
    opacity: 0;
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes ringExpand {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

.success-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.success-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    max-width: 380px;
}

/* ═══════════════════════════════════════════
   SUMMARY RECEIPT CARD
   ═══════════════════════════════════════════ */
.summary-card {
    width: 100%;
    background: var(--color-input-bg);
    border-radius: 14px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    text-align: left;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid var(--color-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.summary-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: right;
    word-break: break-all;
}

.highlight {
    font-weight: 600;
    color: var(--color-warning);
    background: rgba(245, 158, 11, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 8px;
}

/* ═══════════════════════════════════════════
   CONFETTI
   ═══════════════════════════════════════════ */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 10;
}

.confetti-piece {
    position: absolute;
    top: -10px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
    opacity: 0.9;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    80% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(450px) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════
   TOAST NOTIFICATION
   ═══════════════════════════════════════════ */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 14px;
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    color: white;
    background: var(--color-text-main);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    transition: transform 0.4s var(--ease-spring), opacity 0.4s;
    opacity: 0;
    pointer-events: none;
}

.toast-notification.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.toast-notification.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-notification.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-icon {
    font-size: 1.1rem;
    display: flex;
}

.toast-message {
    white-space: nowrap;
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   MEMBERSHIP TIERS / EXISTING MEMBER / OFFLINE
   ═══════════════════════════════════════════ */
.tier-selector {
    display: flex;
    gap: 8px;
}

.tier-option {
    flex: 1;
    cursor: pointer;
}

.tier-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.tier-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: 100%;
    padding: 12px 6px;
    border: 2px solid var(--color-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    transition: all 0.2s var(--ease-out);
}

.tier-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-align: center;
}

.tier-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-main);
}

.tier-option input:checked + .tier-card {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15);
}

.tier-option input:checked + .tier-card .tier-name {
    color: var(--color-primary);
}

.tier-option input:focus-visible + .tier-card {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.existing-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    cursor: pointer;
    padding: 2px;
}

.existing-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.existing-notice,
.offline-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.5;
}

.existing-notice {
    background: var(--color-primary-light);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: var(--color-text-main);
}

.offline-note {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-main);
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 4px;
}

.existing-notice i {
    color: var(--color-primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.offline-note i {
    color: #d97706;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Generated QR (canvas/img) fills its container */
.qr-image canvas,
.qr-image img {
    width: 100% !important;
    height: 100% !important;
}

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.app-footer {
    text-align: center;
    font-size: 0.72rem;
    color: var(--color-text-muted);
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 10px;
    padding-bottom: 20px;
}

.footer-sub {
    opacity: 0.6;
}

/* ═══════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 520px) {
    body {
        padding: 8px;
        align-items: flex-start;
    }

    .app-container {
        gap: 16px;
        margin: 8px auto;
    }

    .app-header h1 {
        font-size: 1.45rem;
    }

    .app-header p {
        font-size: 0.85rem;
    }

    .amount-value {
        font-size: 2.4rem;
    }

    .form-card, .success-card {
        padding: 20px;
        gap: 22px;
        border-radius: 20px;
    }

    .payment-box {
        padding: 16px;
    }

    .qr-container {
        width: 155px;
        height: 155px;
    }

    .form-row {
        flex-direction: column;
        gap: 18px;
    }

    .btn {
        padding: 13px 16px;
        font-size: 0.88rem;
    }

    input[type="text"],
    input[type="tel"],
    textarea {
        padding: 11px 36px 11px 38px;
        font-size: 0.88rem;
    }

    .input-icon {
        left: 12px;
    }

    .input-valid-icon {
        right: 12px;
    }

    .progress-step {
        width: 32px;
        height: 32px;
        font-size: 0.78rem;
    }

    .progress-line {
        width: 24px;
    }

    .trust-badges {
        gap: 8px;
    }

    .trust-item {
        padding: 4px 10px;
        font-size: 0.72rem;
    }
}

