@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800;900&family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #D50032;
    --primary-dark: #A30026;
    --primary-glow: rgba(213, 0, 50, 0.4);
    --accent: #FF6B35;
    --bg: #0B0C10;
    --bg-card: #1A1D23;
    --bg-elevated: #22262E;
    --text: #F0F0F0;
    --text-light: #F0F0F0;
    --text-muted: #8A8F99;
    --text-dim: #5A5E68;
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --radius: 16px;
    --radius-sm: 10px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== PARTICLES ===== */
#particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

#particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px 50px;
    overflow: hidden;
    background: linear-gradient(135deg, #0B0C10 0%, #1A0D12 40%, #0B0C10 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(213,0,50,0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 30%, rgba(213,0,50,0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(255,107,53,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: heroIn 1.2s ease-out forwards;
}

@keyframes heroIn {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.hero-logo {
    height: 100px;
    width: auto;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(213,0,50,0.3));
    transition: transform 0.4s ease;
}

.hero-logo-wrap:hover .hero-logo {
    transform: scale(1.08);
}

.hero-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(213,0,50,0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #FFFFFF 0%, #FFB3B3 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.15;
    margin-bottom: 16px;
}

.hero-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(213, 0, 50, 0.12);
    border-color: rgba(213, 0, 50, 0.3);
    color: var(--text);
    transform: translateY(-2px);
}

.badge svg {
    width: 14px;
    height: 14px;
    color: var(--primary);
    flex-shrink: 0;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 40px;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    position: relative;
    z-index: 4;
    padding: 0 20px 60px;
    margin-top: -30px;
    display: flex;
    justify-content: center;
}

.container {
    width: 100%;
    max-width: 640px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 40px;
    box-shadow: var(--shadow);
    animation: cardSlideUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes cardSlideUp {
    to { opacity: 1; transform: translateY(0); }
}

.section-header {
    text-align: center;
    margin-bottom: 36px;
}

.section-number {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(213, 0, 50, 0.1);
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== FORM ===== */
form {
    width: 100%;
}

.form-group {
    margin-bottom: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 540px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Floating label input */
.input-wrap {
    position: relative;
}

.input-wrap input {
    width: 100%;
    padding: 18px 16px 8px;
    background: var(--bg-elevated);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    outline: none;
}

.input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(213, 0, 50, 0.15);
    background: rgba(213, 0, 50, 0.03);
}

.input-wrap input.error {
    border-color: #FF4444;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.12);
}

.input-wrap input:valid:not(:placeholder-shown):not(.error) {
    border-color: rgba(255, 255, 255, 0.12);
}

.input-wrap label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    color: var(--text-dim);
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.input-wrap input:focus ~ label,
.input-wrap input:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
}

.input-wrap input.error ~ label {
    color: #FF4444;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.input-wrap input:focus ~ .input-highlight {
    left: 0;
    width: 100%;
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0 24px;
    color: var(--text-dim);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider span {
    white-space: nowrap;
}

/* ===== PAYMENT CARD ===== */
.payment-card {
    background: linear-gradient(135deg, rgba(213, 0, 50, 0.06), rgba(213, 0, 50, 0.02));
    border: 1px solid rgba(213, 0, 50, 0.15);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.payment-card:hover {
    border-color: rgba(213, 0, 50, 0.25);
    box-shadow: 0 4px 20px rgba(213, 0, 50, 0.08);
}

.payment-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.payment-header svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-header strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.payment-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.bkash-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.bkash-label {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.bkash-number-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bkash-number {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: rgba(213, 0, 50, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: rgba(40, 167, 69, 0.12);
    border-color: #28a745;
    color: #28a745;
}

.copy-btn svg {
    flex-shrink: 0;
}

/* ===== SUBMIT BUTTON ===== */
.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(213, 0, 50, 0.35);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.submit-btn .btn-icon {
    display: inline-flex;
    transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
    transform: translateX(4px);
}

.submit-btn.loading .btn-icon,
.submit-btn.loading .btn-text {
    display: none;
}

.btn-loader {
    display: none;
    align-items: center;
    gap: 5px;
}

.submit-btn.loading .btn-loader {
    display: flex;
}

.loader-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: loaderBounce 1.2s ease-in-out infinite;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes loaderBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    animation: toastIn 0.35s ease-out forwards;
    pointer-events: auto;
    max-width: 420px;
    backdrop-filter: blur(12px);
}

.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}

.toast.error {
    background: rgba(220, 53, 69, 0.92);
    color: #fff;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.toast.success {
    background: rgba(40, 167, 69, 0.92);
    color: #fff;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.toast svg {
    flex-shrink: 0;
}

@keyframes toastIn {
    0% { opacity: 0; transform: translateX(40px) scale(0.95); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
    0% { opacity: 1; transform: translateX(0) scale(1); }
    100% { opacity: 0; transform: translateX(40px) scale(0.95); }
}

/* ===== FOOTER ===== */
.site-footer {
    position: relative;
    z-index: 4;
    text-align: center;
    padding: 30px 20px 40px;
    color: var(--text-dim);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}

.footer-dev {
    margin-top: 6px;
    font-size: 0.78rem;
    opacity: 0.7;
}

.footer-dev a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.footer-dev a:hover {
    text-decoration: underline;
}

/* ===== CONFETTI ===== */
.confetti-piece {
    position: fixed;
    width: 10px;
    height: 10px;
    top: -10px;
    z-index: 9999;
    pointer-events: none;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(110vh) rotate(720deg) scale(0.3); opacity: 0; }
}

/* ===== PAYMENT GATEWAY CARD ===== */
.payment-gateway-card {
    background: linear-gradient(135deg, rgba(213, 0, 50, 0.07), rgba(213, 0, 50, 0.02));
    border: 1px solid rgba(213, 0, 50, 0.2);
    padding: 0;
    overflow: hidden;
}

.paystation-banner {
    display: block;
    width: 100%;
    height: auto;
}

.payment-info {
    padding: 20px 20px 22px;
    text-align: center;
}

.payment-info strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 14px;
    letter-spacing: 0.02em;
}

.gateway-note {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 12px 14px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin: 0;
}

/* ===== PAYMENT ALERT BANNER ===== */
.payment-alert-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(234, 179, 8, 0.07);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: var(--radius-sm);
    color: #fbbf24;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 24px;
    animation: msgIn 0.4s ease-out;
}

.payment-alert-banner svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ===== TERMS CHECKBOX ===== */
.terms-row {
    margin-bottom: 20px;
}

.terms-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    position: relative;
    padding-left: 34px;
    user-select: none;
}

.terms-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 1px;
    height: 22px;
    width: 22px;
    background: rgba(255,255,255,0.04);
    border: 2px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s;
}

.terms-checkbox:hover input ~ .checkmark {
    border-color: var(--primary);
}

.terms-checkbox input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkmark:after {
    content: '';
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.terms-checkbox input:checked ~ .checkmark:after {
    display: block;
}

.terms-checkbox a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.terms-checkbox a:hover {
    color: #ff4d6a;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.2s ease-out;
}

.modal-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    max-width: 560px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px 28px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: modalIn 0.25s ease-out;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--text-light);
}

.modal-box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.modal-body p {
    margin-bottom: 14px;
}

.modal-body ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.modal-body li {
    margin-bottom: 10px;
}

.modal-body li:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
    .hero {
        padding: 60px 20px 40px;
    }

    .hero-logo {
        height: 80px;
    }

    .hero-logo-glow {
        width: 110px;
        height: 110px;
    }

    .container {
        padding: 32px 22px;
        border-radius: 12px;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .payment-card {
        padding: 16px;
    }

    .badge {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .gateway-badges {
        gap: 6px;
    }

    .gw-badge {
        font-size: 0.78rem;
        padding: 4px 10px;
    }

    .action-btns {
        flex-direction: column;
    }
}
