/* ===== CSS VARIABLES ===== */
:root {
    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #6366f1;
    --secondary: #ec4899;
    --accent: #06b6d4;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --bg-light: #fafafa;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    
    --border: #e5e7eb;
    --border-focus: #4f46e5;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.01);
    --shadow-colored: 0 10px 40px -10px rgba(79, 70, 229, 0.15);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

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

/* ===== BACKGROUND EFFECTS - CLEAN MINIMAL ===== */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 90% 0%, rgba(79, 70, 229, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(236, 72, 153, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.06);
    top: -100px;
    right: -50px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: rgba(236, 72, 153, 0.04);
    bottom: -50px;
    left: -50px;
}

.shape-3 {
    display: none;
}

/* ===== GLASSMORPHISM - CLEAN WHITE ===== */
.glass {
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-xl);
}

/* ===== ADMIN TRIGGER ===== */
.admin-trigger {
    position: fixed;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.admin-trigger:hover {
    opacity: 0.3;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: var(--radius-md);
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===== LOGO / EVENT HEADER SECTION ===== */
.logo-section {
    text-align: center;
    margin-bottom: 32px;
    width: 100%;
}

/* Organisations row */
.orgs-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.org-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--primary);
    color: #fff;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-colored);
}

.org-badge i {
    font-size: 1rem;
}

.org-cross {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Main title */
.brand-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

/* Theme 5 SECRETS */
.event-theme {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 16px;
    text-align: left;
    box-shadow: 0 8px 24px -4px rgba(21, 128, 61, 0.35);
}

.theme-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    min-width: 48px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.theme-content {
    flex: 1;
}

.theme-secrets {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.08em;
    line-height: 1;
    margin-bottom: 4px;
}

.theme-content p {
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Event info bar */
.event-info-bar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
    text-align: left;
}

.event-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-primary);
}

.event-info-item i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
}

/* Tagline */
.tagline {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    font-style: italic;
    padding: 0 8px;
}

/* ===== ZOOM BANNER ===== */
.zoom-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a73e8;
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.zoom-banner img { filter: brightness(0) invert(1); }

/* ===== COUNTDOWN ===== */
.countdown-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 54px;
}
.cd-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.cd-unit {
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cd-sep {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.4;
    margin-bottom: 12px;
}

/* ===== ZOOM FLOATING BADGE ===== */
.zoom-float {
    position: fixed;
    bottom: 24px;
    right: 20px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border-radius: 50px;
    padding: 14px 24px;
    text-decoration: none;
    box-shadow: 0 10px 32px rgba(37,99,235,0.5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform 0.2s, box-shadow 0.2s;
    animation: zoomPulse 2.5s infinite;
    border: 2px solid rgba(255,255,255,0.2);
}
.zoom-float:hover { 
    transform: translateY(-4px) scale(1.02); 
    box-shadow: 0 14px 40px rgba(37,99,235,0.6); 
}
.zoom-float-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.05rem;
}
.zoom-icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.zoom-float-sub { font-size: 0.78rem; opacity: 0.9; font-weight: 500; }
@keyframes zoomPulse {
    0%,100% { box-shadow: 0 10px 32px rgba(37,99,235,0.5); }
    50% { box-shadow: 0 10px 48px rgba(37,99,235,0.8); }
}

/* ===== LIVE INDICATOR (during seminar) ===== */
.zoom-live-pulse {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: 2px solid #fca5a5;
    animation: liveRedPulse 1.5s infinite;
    padding: 16px 22px;
}
.zoom-live-pulse:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 14px 40px rgba(220,38,38,0.6);
}
@keyframes liveRedPulse {
    0%,100% { box-shadow: 0 10px 32px rgba(220,38,38,0.5); }
    50% { box-shadow: 0 10px 48px rgba(220,38,38,0.9); }
}
.live-indicator {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #dc2626;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: liveBlink 1s infinite;
}
@keyframes liveBlink {
    0%,100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ===== FORM CARD ===== */
.form-card {
    width: 100%;
    padding: 40px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}


.form-header {
    text-align: center;
    margin-bottom: 28px;
}

.form-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: color var(--transition-fast);
}

.form-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    background: var(--bg-light);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

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

.form-group input.error {
    border-color: var(--error);
    background: rgba(239, 68, 68, 0.03);
}

.form-group input.success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.03);
}

.error-message {
    display: block;
    font-size: 0.8rem;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
}

/* ===== TOGGLE PASSWORD ===== */
.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color var(--transition-fast);
}

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

/* ===== BUTTONS ===== */
.btn-submit {
    width: 100%;
    padding: 16px 24px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-colored);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 30px -10px rgba(79, 70, 229, 0.3);
}

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

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

.btn-submit.loading .btn-text,
.btn-submit.loading i {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
}

.btn-submit.loading .btn-loader {
    opacity: 1;
    visibility: visible;
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-secondary {
    padding: 12px 20px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-fast);
    margin-top: 20px;
}

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

/* ===== SUCCESS CARD ===== */
.success-card {
    width: 100%;
    padding: 48px 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i {
    font-size: 36px;
    color: white;
}

.success-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ===== CLOSED CARD (Registration Closed) ===== */
.closed-card {
    width: 100%;
    padding: 48px 32px;
    background: var(--bg-white);
    border: 2px solid var(--warning);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.closed-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(245,158,11,0.35);
}

.closed-icon i {
    font-size: 40px;
    color: white;
}

.closed-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.closed-card p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ===== FOOTER ===== */
.footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== MODAL ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 400px;
    padding: 32px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    z-index: 1;
    transform: scale(0.95) translateY(10px);
    transition: transform var(--transition-normal);
}

.modal:not(.hidden) .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--error);
    color: white;
}

.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.modal-header i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-white);
    border: 1px solid var(--border);
    padding: 14px 24px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    z-index: 3000;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.toast:not(.hidden) {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    color: var(--primary);
    font-size: 1.1rem;
}

/* ===== UTILITIES ===== */
.hidden {
    display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px;
    }
    
    .form-card,
    .success-card {
        padding: 24px;
    }
    
    .logo {
        width: 64px;
        height: 64px;
    }
    
    .logo i {
        font-size: 28px;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
    }
}

/* ===== DONATION SECTION ===== */
.donation-section {
    width: 100%;
    padding: 32px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fff 100%);
    border: 1px solid #fbcfe8;
    border-radius: var(--radius-xl);
    margin-top: 32px;
    text-align: center;
}

.donation-header {
    margin-bottom: 16px;
}

.donation-header i {
    font-size: 40px;
    color: #ec4899;
    margin-bottom: 12px;
}

.donation-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
}

.donation-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.donation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-donate {
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-fast);
    border: none;
}

.btn-donate-primary {
    background: #ec4899;
    color: white;
}

.btn-donate-primary:hover {
    background: #db2777;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

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

.btn-donate-secondary:hover {
    border-color: #ec4899;
    color: #ec4899;
}

/* ===== DONATION MODAL ===== */
.donation-type {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary);
    background: var(--primary);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.amount-btn {
    padding: 16px;
    background: var(--bg-light);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.amount-btn:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.amount-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

#customAmount.active {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ===== ANIMATIONS ===== */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease;
}
