/* ==========================================================================
   MYCANTEEN PREMIUM DESIGN SYSTEM
   ========================================================================== */

:root {
    --primary: #7c3aed;
    --primary-hover: #6d28d9;
    --primary-glow: rgba(124, 58, 237, 0.2);
    --secondary: #0284c7;
    --secondary-glow: rgba(2, 132, 199, 0.15);
    --accent: #e11d48;

    --bg-dark: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.95);
    --panel-bg: rgba(241, 245, 249, 0.9);
    --input-bg: #ffffff;
    --border-color: rgba(226, 232, 240, 0.9);
    --border-focus: rgba(124, 58, 237, 0.6);

    --text-main: #0f172a;
    --text-muted: #475569;
    --text-subtle: #64748b;

    --success: #10b981;
    --warning: #d97706;
    --danger: #ef4444;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Glowing Orbs Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 30%, #f1f5f9 0%, #e2e8f0 100%);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: orbMove 18s infinite alternate ease-in-out;
}

.orb-1 {
    width: 450px;
    height: 450px;
    background: #ddd6fe;
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: #bae6fd;
    bottom: -150px;
    right: -100px;
    animation-delay: -6s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: #fbcfe8;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    opacity: 0.25;
    animation-delay: -12s;
}

@keyframes orbMove {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(60px, 80px) scale(1.15);
    }

    100% {
        transform: translate(-40px, 50px) scale(0.9);
    }
}

/* App Container Layout */
.app-container {
    width: 100%;
    max-width: 1120px;
    padding: 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header Navbar */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #0f172a;
}

.brand-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--secondary);
}

.nav-right-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-admin-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-fast);
}

.btn-admin-nav:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
    transform: translateY(-1px);
}

.btn-admin-portal {
    width: 100%;
    background: rgba(225, 29, 72, 0.1);
    border: 1px solid rgba(225, 29, 72, 0.25);
    color: var(--accent);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-admin-portal:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 18px rgba(225, 29, 72, 0.3);
    transform: translateY(-1px);
}

.db-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    font-size: 13px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 8px var(--success);
}

.user-count-chip {
    background: rgba(139, 92, 246, 0.2);
    color: var(--primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

/* Main Content Box */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    margin: 20px 0;
}

/* Glassmorphic Auth Card */
.auth-card {
    width: 100%;
    display: flex;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.15);
    min-height: 600px;
    position: relative;
    transition: var(--transition-smooth);
}

/* Left Art Panel */
.art-panel {
    flex: 1;
    background: linear-gradient(135deg, #6d28d9, #4338ca);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid var(--border-color);
}

.art-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.15), transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    width: fit-content;
}

.art-title {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.25;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #ffffff;
}

.art-subtitle {
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
    font-weight: 500;
}

.art-toggle-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#artToggleText {
    font-size: 14px;
    color: var(--text-muted);
}

.btn-secondary-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    width: fit-content;
}

.btn-secondary-glow:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.art-features {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.feature-tag {
    font-size: 12px;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-tag i {
    color: var(--secondary);
    margin-right: 4px;
}

/* Right Forms Panel */
.forms-panel {
    flex: 1.1;
    padding: 44px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Tab Switcher */
.tab-switcher {
    position: relative;
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 4px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    color: #fff;
}

.tab-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border-radius: 10px;
    z-index: 1;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Forms Wrapper */
.forms-wrapper {
    position: relative;
    min-height: 420px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    transform: translateX(30px);
    transition: var(--transition-smooth);
}

.auth-form.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: all;
    transform: translateX(0);
}

.form-header h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Input Fields */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

label {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.forgot-link,
.terms-link {
    color: var(--secondary);
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.forgot-link:hover,
.terms-link:hover {
    text-decoration: underline;
    color: var(--primary);
}

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

.field-icon {
    position: absolute;
    left: 14px;
    color: var(--text-subtle);
    font-size: 15px;
    transition: var(--transition-fast);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"] {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 12px 14px 12px 42px;
    border-radius: var(--radius-md);
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: var(--transition-fast);
}

.phone-field-wrapper input[type="tel"] {
    padding-left: 84px;
}

.phone-prefix {
    position: absolute;
    left: 38px;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(2, 132, 199, 0.1);
    border: 1px solid rgba(2, 132, 199, 0.25);
    padding: 2px 7px;
    border-radius: 6px;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.5px;
}

input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: #ffffff;
}

input:focus+.field-icon,
.input-field:focus-within .field-icon {
    color: var(--primary);
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-password:hover {
    color: var(--text-main);
}

.match-icon {
    position: absolute;
    right: 14px;
    color: var(--success);
    font-size: 16px;
}

.error-msg {
    font-size: 12px;
    color: var(--danger);
    min-height: 16px;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* Password Strength Indicator */
.strength-meter-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.strength-fill.weak {
    width: 33%;
    background: var(--danger);
}

.strength-fill.medium {
    width: 66%;
    background: var(--warning);
}

.strength-fill.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 11px;
    color: var(--text-subtle);
}

/* Checkbox */
.form-options {
    display: flex;
    align-items: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 28px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    user-select: none;
}

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

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 18px;
    width: 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    transition: var(--transition-fast);
}

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

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

.checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 9px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

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

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    border: none;
    color: #fff;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px var(--primary-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #9333ea, #7c3aed);
}

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

.btn-outline-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-outline-danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--danger);
}

/* Divider & Social Auth */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-subtle);
}

.social-auth {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 10px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   USER DASHBOARD STYLES (LOGGED IN STATE)
   ========================================================================== */

.dashboard-card {
    width: 100%;
    max-width: 800px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 32px;
    animation: fadeIn 0.4s ease-out forwards;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.user-avatar-wrapper {
    position: relative;
}

.dash-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--input-bg);
    padding: 2px;
    box-shadow: 0 0 20px var(--primary-glow);
}

.online-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border: 2px solid var(--bg-dark);
    border-radius: 50%;
}

.user-welcome {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.welcome-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#dashUserName {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: #fff;
}

.user-email-tag {
    font-size: 14px;
    color: var(--text-muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.dash-info-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 11px;
    color: var(--text-subtle);
    font-weight: 500;
    text-transform: uppercase;
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-top: 2px;
}

.text-success {
    color: var(--success);
}

.dashboard-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

/* ==========================================================================
   MODAL & TOAST NOTIFICATIONS
   ========================================================================== */

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 20px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
}

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(17, 24, 39, 0.95);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    min-width: 300px;
    color: #fff;
    font-size: 14px;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--secondary);
}

.toast-icon {
    font-size: 18px;
}

.toast.success .toast-icon {
    color: var(--success);
}

.toast.error .toast-icon {
    color: var(--danger);
}

.toast.info .toast-icon {
    color: var(--secondary);
}

/* Footer */
.footer {
    text-align: center;
    font-size: 12px;
    color: var(--text-subtle);
    margin-top: 16px;
}

/* Utility Animations & Helpers */
.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.92);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .auth-card {
        flex-direction: column;
        min-height: auto;
    }

    .art-panel {
        padding: 32px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }

    .art-title {
        font-size: 28px;
    }

    .forms-panel {
        padding: 32px 24px;
    }
}

@media (max-width: 500px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .social-auth {
        flex-direction: column;
    }
}

/* ==========================================================================
   PHONEPE STYLE SUCCESS OVERLAY & ANIMATIONS
   ========================================================================== */

.phonepe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 13, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease-out forwards;
}

.phonepe-card {
    background: linear-gradient(145deg, rgba(26, 16, 48, 0.95), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 36px 28px;
    box-shadow: 0 30px 80px rgba(95, 37, 159, 0.45), 0 0 50px rgba(0, 200, 83, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: scaleUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* PhonePe Animated Green Circle & Checkmark */
.phonepe-checkmark-wrapper {
    position: relative;
    width: 90px;
    height: 90px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sonar-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--success);
    opacity: 0;
    animation: sonarExpand 1.8s infinite ease-out;
}

.ring-1 {
    width: 90px;
    height: 90px;
}

.ring-2 {
    width: 90px;
    height: 90px;
    animation-delay: 0.5s;
}

@keyframes sonarExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.65);
        opacity: 0;
    }
}

.phonepe-circle {
    width: 76px;
    height: 76px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
    z-index: 2;
}

.checkmark-svg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: block;
    stroke-width: 3.5;
    stroke: #ffffff;
    stroke-miterlimit: 10;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3.5;
    stroke-miterlimit: 10;
    stroke: #ffffff;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* PhonePe Header Text */
.phonepe-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(95, 37, 159, 0.3);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #c4b5fd;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.phonepe-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.phonepe-amount {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.free-tag {
    font-size: 11px;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
}

/* Receipt Detail Card */
.phonepe-receipt {
    width: 100%;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.receipt-label {
    color: var(--text-muted);
}

.receipt-value {
    color: #ffffff;
    font-weight: 600;
}

.ref-code {
    font-family: monospace;
    color: var(--secondary);
    letter-spacing: 0.5px;
}

/* Progress & Button */
.phonepe-redirect-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.redirect-timer-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

#countdownSec {
    color: var(--secondary);
    font-weight: 700;
    font-size: 15px;
}

.redirect-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.redirect-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--success));
    transition: width 0.1s linear;
}

.btn-phonepe-home {
    width: 100%;
    background: linear-gradient(135deg, #673ab7, #5f259f);
    border: none;
    color: #ffffff;
    padding: 13px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(103, 58, 183, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-phonepe-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(103, 58, 183, 0.7);
    background: linear-gradient(135deg, #7c4dff, #673ab7);
}

/* Confetti Burst */
.confetti-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 8px;
    height: 14px;
    top: -20px;
    opacity: 0.9;
    border-radius: 2px;
    animation: confettiFall 3s infinite linear;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(450px) rotate(720deg);
        opacity: 0;
    }
}