@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=DM+Sans:wght@200;300;400;500;600;700&display=swap');

:root {
    --gold-light: #f5d078;
    --gold-mid: #c9a84c;
    --gold-dark: #8b6914;
    --bg: #ffffff;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
}

html, body {
    background: var(--bg);
    color: #0a0a0b;
    font-family: 'DM Sans', sans-serif;
    overscroll-behavior: none;
    overflow: hidden;
    height: 100%;
    width: 100%;
}

#app { width: 100%; height: 100%; position: relative; }

/* Screens */
.screen {
    position: absolute; inset: 0;
    display: none; flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.screen.active { display: flex; }

/* First screen (main) white background */
#screen-main {
    background: #ffffff;
    overflow-y: auto;
}
#screen-main .main-content {
    flex-shrink: 0;
}

.screen-inner {
    display: flex; flex-direction: column;
    height: 100%; padding: 24px 24px 40px;
    position: relative; z-index: 10;
}
.screen-inner.scrollable { overflow-y: auto; }

/* Background glows */
.bg-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.top-glow { top: -20%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%); }
.bottom-glow { bottom: 0; right: -20%; width: 400px; height: 400px; background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%); }
.top-glow-right { top: -10%; right: -20%; width: 320px; height: 320px; background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%); }
.top-glow-large { top: -10%; left: 50%; transform: translateX(-50%); width: 384px; height: 384px; background: radial-gradient(ellipse, rgba(201,168,76,0.15) 0%, transparent 70%); }
.bottom-glow-left { bottom: 0; left: -10%; width: 256px; height: 256px; background: radial-gradient(ellipse, rgba(201,168,76,0.07) 0%, transparent 70%); }

/* Status bar */
.status-bar {
    position: relative; z-index: 10;
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 24px 8px;
}
.brand-label { font-size: 11px; color: rgba(0,0,0,0.4); letter-spacing: 3px; text-transform: uppercase; }
.vip-badge { display: flex; align-items: center; gap: 6px; }
.vip-badge span { font-size: 10px; color: rgba(201,168,76,0.9); letter-spacing: 3px; text-transform: uppercase; }

.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-mid); animation: pulse 2s infinite; }

/* Main content */
.main-content {
    position: relative; z-index: 10;
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 0 24px;
}

/* Orbital */
.orbital-container {
    position: relative; width: 208px; height: 208px; margin-bottom: 32px;
    animation: float 6s ease-in-out infinite;
}
.orbit-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(201,168,76,0.15);
}
.ring-outer { inset: 0; animation: orbitSlow 25s linear infinite; }
.ring-middle { inset: 16px; border-color: rgba(201,168,76,0.25); animation: orbitReverse 18s linear infinite; }
.ring-inner { inset: 32px; border-color: rgba(201,168,76,0.4); }
.center-sphere {
    position: absolute; inset: 48px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.8), rgba(201,168,76,0.25) 40%, rgba(250,250,250,0.9));
    border: 1px solid rgba(201,168,76,0.5);
    box-shadow: 0 0 30px rgba(201,168,76,0.15), 0 0 60px rgba(201,168,76,0.05);
    display: flex; align-items: center; justify-content: center;
}
.center-sphere span { font-size: 10px; font-weight: 600; letter-spacing: 3px; color: rgba(0,0,0,0.7); text-transform: uppercase; }
.orbiting-dot {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%) translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%;
    background: linear-gradient(135deg, #c9a84c, #f5d078);
    box-shadow: 0 0 8px rgba(201,168,76,0.8);
    animation: orbitSlow 8s linear infinite;
}

/* Title */
.main-title { text-align: center; margin-bottom: 12px; }
.dyson-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-size: 60px; font-weight: 300; letter-spacing: 12px;
    line-height: 1; text-transform: uppercase;
    background: linear-gradient(180deg, #1a1a1a 0%, #444 60%, #666 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gold-line { height: 1px; margin: 12px auto 8px; background: linear-gradient(90deg, transparent, #c9a84c 30%, #f5d078 50%, #c9a84c 70%, transparent); }
.subtitle { font-size: 10px; letter-spacing: 5px; color: rgba(255,255,255,0.3); text-transform: uppercase; }

/* Partner badge */
.partner-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: rgba(201,168,76,0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px; padding: 8px 20px; margin-top: 16px; margin-bottom: 24px;
}
.partner-badge span { font-size: 11px; letter-spacing: 3px; color: rgba(0,0,0,0.5); text-transform: uppercase; font-weight: 500; }
.partner-logo-img { height: 80px; max-width: 280px; object-fit: contain; }
.dot-gold { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-mid); }
.dot-gold-sm { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-mid); }

/* Prompt */
.prompt-text { text-align: center; }
.shimmer-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px; font-weight: 300; color: rgba(0,0,0,0.8);
    animation: goldShimmer 3s ease-in-out infinite;
}
.event-info { font-size: 11px; color: rgba(0,0,0,0.4); letter-spacing: 3px; text-transform: uppercase; margin-top: 8px; }

/* CTA */
.cta-section { position: relative; z-index: 10; padding: 0 24px 40px; flex-shrink: 0; }
.cta-bottom { margin-top: auto; padding-top: 24px; }

.btn-gold {
    display: flex; align-items: center; justify-content: center; width: 100%;
    background: linear-gradient(135deg, #c9a84c 0%, #f5d078 50%, #c9a84c 100%);
    background-size: 200% auto;
    border: none; border-radius: 14px;
    color: #0a0a0b; font-family: 'DM Sans', sans-serif;
    font-weight: 700; font-size: 15px; letter-spacing: 1.5px;
    text-transform: uppercase; padding: 16px 32px;
    cursor: pointer; transition: all 0.3s; position: relative; overflow: hidden;
}
.btn-content { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 25px rgba(201,168,76,0.35); }
.btn-gold:active { transform: scale(0.98); }
.btn-gold:disabled { opacity: 0.35; pointer-events: none; }

.dots-indicator { display: flex; justify-content: center; gap: 8px; margin-top: 20px; }
.dots-indicator .dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(0,0,0,0.15); }
.dots-indicator .dot.active { width: 20px; border-radius: 4px; background: linear-gradient(135deg, #c9a84c, #f5d078); }

/* Header row */
.header-row { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.back-btn {
    width: 36px; height: 36px; border-radius: 12px;
    background: rgba(0,0,0,0.04); backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: center;
    color: rgba(0,0,0,0.4); cursor: pointer; transition: color 0.3s;
}
.back-btn:hover { color: rgba(0,0,0,0.8); }
.step-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px; padding: 6px 16px;
}
.step-badge span { font-size: 10px; color: var(--gold-mid); letter-spacing: 2px; text-transform: uppercase; }

/* Section title */
.section-title { margin-bottom: 24px; }
.section-title h2 { font-family: 'Cormorant Garamond', serif; font-size: 36px; font-weight: 300; line-height: 1.2; margin-bottom: 8px; color: #0a0a0b; }
.section-title p { font-size: 13px; color: rgba(0,0,0,0.5); line-height: 1.5; }

/* Role cards */
.role-cards { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.role-card {
    width: 100%; text-align: left; border-radius: 16px; padding: 20px;
    display: flex; align-items: center; gap: 16px;
    background: rgba(0,0,0,0.02); border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer; transition: all 0.3s;
}
.role-card.selected[data-role="blogger"] { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.3); }
.role-card.selected[data-role="guest"] { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.15); }
.role-card.selected { transform: scale(1.01); }

.role-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,0.04); border: 1px solid rgba(0,0,0,0.08); flex-shrink: 0;
    color: rgba(0,0,0,0.5);
}
.role-card.selected .role-icon { background: rgba(201,168,76,0.08); border-color: rgba(201,168,76,0.3); color: var(--gold-mid); }

.role-info { flex: 1; min-width: 0; }
.role-title { font-size: 17px; font-weight: 500; margin-bottom: 4px; color: #0a0a0b; }
.role-desc { font-size: 12px; color: rgba(0,0,0,0.5); line-height: 1.4; }

.role-check {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
    background: rgba(0,0,0,0.04); border: 1.5px solid rgba(0,0,0,0.15);
    transition: all 0.3s; display: flex; align-items: center; justify-content: center;
}
.role-card.selected .role-check {
    background: linear-gradient(135deg, #c9a84c, #f5d078); border: none;
}
.role-card.selected .role-check::after {
    content: '✓'; font-size: 12px; font-weight: bold; color: #0a0a0b;
}

/* Form */
.role-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 50px; padding: 6px 16px; margin-top: 12px;
    font-size: 12px; color: var(--gold-mid);
}

.form-fields { display: flex; flex-direction: column; gap: 16px; }
.field label {
    display: block; font-size: 10px; letter-spacing: 2px;
    color: rgba(0,0,0,0.45); text-transform: uppercase;
    margin-bottom: 8px; margin-left: 4px;
}
.field input {
    width: 100%; background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.1); border-radius: 14px;
    padding: 14px 16px; color: #0a0a0b; font-family: 'DM Sans', sans-serif;
    font-size: 15px; outline: none; transition: all 0.3s;
}
.field input::placeholder { color: rgba(0,0,0,0.3); }
.field input:focus { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.04); box-shadow: 0 0 0 3px rgba(201,168,76,0.08); }

.error-msg {
    display: none; border-radius: 12px; padding: 12px 16px;
    font-size: 13px; color: #ef4444;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
}
.error-msg.show { display: block; }

.privacy-note { text-align: center; font-size: 10px; color: rgba(0,0,0,0.3); margin-top: 16px; line-height: 1.6; }

/* Invitation */
.success-header { text-align: center; margin-bottom: 24px; }
.congrats-label { font-size: 11px; letter-spacing: 4px; color: var(--gold-mid); text-transform: uppercase; margin-bottom: 8px; }
.success-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; line-height: 1.3; color: #0a0a0b; }

.text-gold {
    background: linear-gradient(135deg, #c9a84c 0%, #f5d078 50%, #c9a84c 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.invitation-card {
    width: 100%; border-radius: 24px; overflow: hidden;
    background: #fafafa; border: 1px solid rgba(201,168,76,0.35);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08), 0 0 30px rgba(201,168,76,0.1);
}
.card-gold-bar { height: 3px; background: linear-gradient(90deg, transparent, #c9a84c 30%, #f5d078 50%, #c9a84c 70%, transparent); }

.card-header {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    padding: 16px 20px; border-bottom: 0.5px solid rgba(201,168,76,0.12);
}
.card-header-separator {
    font-size: 16px; color: rgba(201,168,76,0.6); font-weight: 300;
}
.card-dyson {
    font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; letter-spacing: 6px;
    background: linear-gradient(180deg, #1a1a1a 0%, #444 60%, #666 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.card-partner {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px; padding: 6px 12px;
    font-size: 10px; letter-spacing: 1.5px; color: rgba(255,255,255,0.6); text-transform: uppercase; font-weight: 500;
}
.card-partner-logo { height: 48px; max-width: 160px; object-fit: contain; }

.card-body { padding: 16px 20px; }
.card-event-title { font-size: 10px; letter-spacing: 3px; color: var(--gold-mid); text-transform: uppercase; margin-bottom: 8px; }

.card-user-info { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.user-avatar {
    width: 44px; height: 44px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; color: var(--gold-mid);
    background: rgba(201,168,76,0.12); border: 0.5px solid rgba(201,168,76,0.25); flex-shrink: 0;
}
.user-details { flex: 1; min-width: 0; }
.user-name { font-size: 18px; font-weight: 500; line-height: 1.2; color: #0a0a0b; }
.user-tg { font-size: 12px; color: rgba(0,0,0,0.4); }
.user-role-badge {
    background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25);
    border-radius: 8px; padding: 4px 10px;
    font-size: 10px; color: var(--gold-mid); font-weight: 500;
}

.event-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.detail-row { display: flex; align-items: center; gap: 12px; }
.detail-icon {
    width: 32px; height: 32px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(201,168,76,0.1); border: 0.5px solid rgba(201,168,76,0.2); flex-shrink: 0;
    color: var(--gold-mid);
}
.detail-content { flex: 1; min-width: 0; }
.detail-label { font-size: 9px; color: rgba(0,0,0,0.4); text-transform: uppercase; letter-spacing: 1px; }
.detail-value { font-size: 13px; color: rgba(0,0,0,0.85); font-weight: 500; }

.qr-section { display: flex; justify-content: center; margin-top: 16px; }
.qr-placeholder { text-align: center; }
.vip-access-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.25);
    border-radius: 8px; padding: 6px 10px; margin-top: 8px;
}
.vip-access-badge span { font-size: 9px; color: var(--gold-mid); letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

.card-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 20px; border-top: 0.5px solid rgba(201,168,76,0.1);
}
.footer-left { font-size: 12px; color: rgba(0,0,0,0.5); }
.footer-right { font-size: 9px; color: rgba(0,0,0,0.3); text-align: right; line-height: 1.4; }

.after-card { text-align: center; margin-top: 24px; }
.wish-text { font-size: 14px; color: rgba(0,0,0,0.5); line-height: 1.5; }

.hint-box {
    display: flex; align-items: center; gap: 12px; margin-top: 20px;
    background: rgba(0,0,0,0.03); backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 16px; padding: 16px 20px;
}
.hint-icon { display: flex; align-items: center; justify-content: center; color: var(--gold-mid); flex-shrink: 0; }
.hint-box p { font-size: 12px; color: rgba(0,0,0,0.5); line-height: 1.5; }

/* Animations */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes orbitSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbitReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes goldShimmer { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.animate-fade-up { animation: fadeUp 0.6s ease-out both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Scrollbar */
::-webkit-scrollbar { width: 2px; }
::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.3); border-radius: 10px; }

/* Event period section in invitation */
.event-period {
    margin-top: 12px;
    padding: 12px 20px;
    border-top: 0.5px solid rgba(201,168,76,0.1);
}

/* Venue logo in invitation details */
.venue-logo {
    height: 36px;
    max-width: 100px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

/* Main brand logo (replaces DYSON text) */
.main-brand-logo {
    height: 80px;
    max-width: 280px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Brand logo in invitation card header */
.card-brand-logo {
    height: 44px;
    max-width: 150px;
    object-fit: contain;
}

/* Main screen white theme overrides */
#screen-main .top-glow { background: radial-gradient(ellipse, rgba(201,168,76,0.06) 0%, transparent 70%); }
#screen-main .bottom-glow { background: radial-gradient(ellipse, rgba(201,168,76,0.03) 0%, transparent 70%); }

/* Mobile responsive */
@media (max-height: 700px) {
    .orbital-container { width: 140px; height: 140px; margin-bottom: 20px; }
    .main-brand-logo { height: 50px; }
    .partner-badge { margin-top: 10px; margin-bottom: 16px; }
    .partner-logo-img { height: 50px; }
    .shimmer-text { font-size: 22px; }
    .cta-section { padding: 0 24px 24px; }
    .status-bar { padding: 10px 24px 4px; }
}

@media (max-height: 600px) {
    .orbital-container { width: 110px; height: 110px; margin-bottom: 14px; }
    .main-brand-logo { height: 40px; }
    .partner-badge { margin-top: 8px; margin-bottom: 12px; padding: 6px 14px; }
    .partner-logo-img { height: 40px; }
    .shimmer-text { font-size: 20px; }
    .main-content { padding: 0 16px; }
    .cta-section { padding: 0 16px 16px; }
}

@media (max-width: 380px) {
    .orbital-container { width: 140px; height: 140px; margin-bottom: 16px; }
    .main-brand-logo { height: 50px; }
    .partner-logo-img { height: 50px; }
    .section-title h2 { font-size: 28px; }
    .shimmer-text { font-size: 22px; }
}


/* Download invitation button */
.btn-download-invite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    margin-bottom: 20px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(201,168,76,0.12) 0%, rgba(201,168,76,0.06) 100%);
    border: 1px solid rgba(201,168,76,0.3);
    color: var(--gold-mid);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-download-invite:hover {
    background: linear-gradient(135deg, rgba(201,168,76,0.2) 0%, rgba(201,168,76,0.1) 100%);
    border-color: rgba(201,168,76,0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(201,168,76,0.15);
}
.btn-download-invite:active {
    transform: translateY(0);
    box-shadow: none;
}
.btn-download-invite:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
.btn-download-invite svg {
    flex-shrink: 0;
}
