:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --accent: #FF6B35;
    --success: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-gradient: linear-gradient(135deg, #f6f9fc 0%, #eef2f7 100%);
    --card-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

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

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

.payment-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

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

.logo img {
    height: 40px;
}

.logo span {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--secondary);
}

@media (max-width: 600px) {
    .payment-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .logo { justify-content: center; }
}

.back-link:hover {
    transform: translateX(-5px);
}

/* Card */
.card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 850px) {
    .card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 40px;
    }
}

/* Payment Info */
.payment-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
}

#planName {
    color: var(--primary);
    font-weight: 700;
}

.price-tag {
    font-weight: 800;
    color: var(--text-dark);
}

/* QR Section */
.qr-section {
    text-align: center;
    background: #f9fafb;
    padding: 30px;
    border-radius: 20px;
    border: 2px dashed #e5e7eb;
}

.qr-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.payment-qr {
    max-width: 250px;
    height: auto;
    display: block;
}

.qr-hint {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 480px) {
    .payment-qr {
        max-width: 100%;
    }
    .qr-section {
        padding: 20px 15px;
    }
    .payment-info h1 {
        font-size: 1.6rem;
    }
}

/* Flowchart */
.instructions-section h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.flowchart {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.step-connector {
    width: 2px;
    height: 30px;
    background: #e5e7eb;
    margin-left: 15px;
}

/* UPI Direct Pay */
.upi-direct-pay {
    margin-top: 25px;
    text-align: center;
}

.btn-upi {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-upi:hover {
    background: #333;
    transform: translateY(-2px);
}

.upi-info {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Action Section */
.action-section {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    background: #f0fdf4;
    border-radius: 18px;
    border: 1px solid #dcfce7;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp img {
    height: 22px;
}

.support-text {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--text-light);
}

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

/* Footer */
.payment-footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.6s ease-out;
}
