/* ============================================================
   assets/css/style.css
   RankFactory Landing Page Styles
   ============================================================ */

/* ── CSS Variables ── */
:root {
    --ink:        #0b0c10;
    --paper:      #f5f2eb;
    --primary:       #1064dd;
    --primary-light: #3490dc59;
    --amber:      #c97a10;
    --slate:      #09035b;
    --slate-mid:  #2d3555;
    --muted:      #6b7280;
    --white:      #ffffff;
    --success:    #22c55e;
    --wa-green:   #25D366;
    --radius:     16px;
    --radius-sm:  8px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ── Base ── */
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ── HEADER ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--ink);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(232,160,32,0.2);
    padding: 0 5vw;
}

.header-inner {
    max-width: 1200px;
    margin: auto;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo img{
    height: 50px;
    width: auto;
}

.logo-text span { color: var(--primary); }

.header-cta {
    background: var(--slate);
    color: var(--primary);
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-family: 'Syne', sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,34,53,0.3);
}

/* ── HERO ── */
.hero {
    position: relative;
    padding: 50px 5vw 50px;
    overflow: hidden;
    /* min-height: min-content; */
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(232,160,32,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(30,34,53,0.08) 0%, transparent 70%);
    z-index: -1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 10%; right: 8%;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 1.5px solid rgba(232,160,32,0.18);
    animation: spin 30s linear infinite;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 15%; right: 12%;
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(232,160,32,0.12);
    animation: spin 20s linear infinite reverse;
}

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

.hero-inner {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(232,160,32,0.12);
    border: 1px solid rgba(232,160,32,0.3);
    color: var(--amber);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 24px;
    animation: fadeUp 0.5s ease both;
}

.pill-dot {
    width: 7px; height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.08;
    color: var(--slate);
    margin-bottom: 22px;
    animation: fadeUp 0.5s 0.1s ease both;
}

h1 .accent {
    color: var(--primary);
    position: relative;
}

h1 .accent::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 36px;
    animation: fadeUp 0.5s 0.2s ease both;
}

.stats-row {
    display: flex;
    gap: 36px;
    animation: fadeUp 0.5s 0.3s ease both;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--slate);
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
    margin-top: 2px;
}

.stat-sep {
    width: 1px;
    background: rgba(30,34,53,0.12);
    align-self: stretch;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── FORM CARD ── */
.form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 38px;
    box-shadow:
        0 0 0 1px rgba(30,34,53,0.06),
        0 24px 60px rgba(30,34,53,0.12),
        0 4px 12px rgba(232,160,32,0.08);
    animation: fadeUp 0.5s 0.15s ease both;
    position: relative;
    overflow: hidden;
}

.form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}

.form-title {
    font-family: 'Syne', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 6px;
}

.form-sub {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

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

label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate);
    margin-bottom: 6px;
}

label .req { color: var(--primary); margin-left: 2px; }

input, select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid rgba(30,34,53,0.12);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--ink);
    background: var(--paper);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}

input::placeholder { color: #b0b7c3; }

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,160,32,0.14);
    background: var(--white);
}

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

.error-msg {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 18px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, var(--slate) 0%, var(--slate-mid) 100%);
    color: var(--paper);
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Syne', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}

.submit-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 100%);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(30,34,53,0.35);
}

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

.form-note {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
}

/* ── SUCCESS CARD ── */
.success-card {
    background: var(--white);
    border-radius: 24px;
    padding: 40px 32px 36px;
    box-shadow:
        0 0 0 1px rgba(30,34,53,0.06),
        0 24px 60px rgba(30,34,53,0.13);
    text-align: center;
    animation: fadeUp 0.5s ease both;
    position: relative;
    overflow: hidden;
}
 
/* Animated shimmer rainbow top bar */
.success-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #25D366 0%, #e8a020 25%, #ff0069 50%, #ff0000 75%, #25D366 100%);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}
 
@keyframes shimmer {
    to { background-position: 200% center; }
}
 
/* ── Confetti burst ── */
.confetti-ring {
    position: absolute;
    top: 36px; left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    pointer-events: none;
}
 
.confetti-ring span {
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    animation: confettiPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
 
.confetti-ring span:nth-child(1) { background: #e8a020; animation-delay: 0.05s; --dx: -52px; --dy: -44px; }
.confetti-ring span:nth-child(2) { background: #25D366; animation-delay: 0.10s; --dx:   0px; --dy: -58px; }
.confetti-ring span:nth-child(3) { background: #ff0069; animation-delay: 0.12s; --dx:  52px; --dy: -44px; }
.confetti-ring span:nth-child(4) { background: #3b82f6; animation-delay: 0.07s; --dx: -48px; --dy:  14px; }
.confetti-ring span:nth-child(5) { background: #ff0000; animation-delay: 0.15s; --dx:  48px; --dy:  14px; }
.confetti-ring span:nth-child(6) { background: #a855f7; animation-delay: 0.09s; --dx:   0px; --dy:  24px; }
 
@keyframes confettiPop {
    from { opacity: 1; transform: translate(0, 0) scale(0); }
    to   { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1); }
}
 
.success-icon {
    width: 76px; height: 76px;
    background: linear-gradient(135deg, #fef9c3, #fef08a);
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    font-size: 34px;
    box-shadow: 0 0 0 6px rgba(232,160,32,0.1), 0 8px 24px rgba(232,160,32,0.2);
    animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
 
@keyframes popIn {
    from { opacity: 0; transform: scale(0.4) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
 
.success-title {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: var(--slate);
    margin-bottom: 8px;
}
 
.success-sub {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 24px;
}
 
/* ── ACTION DIVIDER ── */
.action-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 16px;
}
 
.action-divider::before,
.action-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(30,34,53,0.1);
}
 
.action-divider span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--muted);
    white-space: nowrap;
    text-transform: uppercase;
}
 
/* ── APP STORE BUTTONS ── */
.app-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

.btn-web {
    background: linear-gradient(135deg, #1e2235 0%, #2d3555 100%);
    border-color: rgba(232,160,32,0.3);
    color: #e8a020;
}
 
.btn-store {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: 12px;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
 
.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    filter: brightness(1.08);
}
 
.btn-store:active { transform: translateY(0); }
 
/* Google Play — official deep green */
.btn-android {
    background: linear-gradient(135deg, #01875f 0%, #01573d 100%);
    border-color: rgba(1,135,95,0.4);
    color: #fff;
}
 
/* Apple App Store — classic black */
.btn-apple {
    background: linear-gradient(135deg, #1c1c1e 0%, #000 100%);
    border-color: rgba(255,255,255,0.08);
    color: #fff;
}
 
.store-icon {
    width: 24px; height: 24px;
    flex-shrink: 0;
    opacity: 0.9;
}
 
.store-text { text-align: left; }
 
.store-text small {
    display: block;
    font-size: 10px;
    opacity: 0.65;
    font-weight: 400;
    line-height: 1.2;
}
 
.store-text strong {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}
 
/* ── LOGIN INFO CARD ── */
.login-info-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1.5px solid #bae6fd;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 16px 0 4px;
    text-align: left;
}
 
.info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
 
.info-lock { font-size: 16px; }
 
.info-header strong {
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0369a1;
}
 
.info-body { display: flex; flex-direction: column; }
 
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
}
 
.info-divider {
    height: 1px;
    background: rgba(3,105,161,0.12);
}
 
.info-label {
    font-size: 12px;
    color: #0369a1;
    font-weight: 500;
    opacity: 0.8;
}
 
.info-value {
    font-size: 12px;
    font-weight: 600;
    color: #0c4a6e;
    background: rgba(3,105,161,0.08);
    padding: 3px 8px;
    border-radius: 20px;
}
 
/* ── SOCIAL GRID ── */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
}
 
.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 14px 8px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 11px;
    font-weight: 700;
    border: 1.5px solid transparent;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
    letter-spacing: 0.3px;
}
 
.social-btn svg {
    width: 22px; height: 22px;
}
 
.social-btn:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}
 
.social-btn:active { transform: translateY(0); }
 
/* WhatsApp — brand green */
.s-whatsapp {
    background: linear-gradient(145deg, #25D366 0%, #128c7e 100%);
    border-color: rgba(37,211,102,0.35);
    box-shadow: 0 4px 14px rgba(37,211,102,0.25);
}
.s-whatsapp:hover { box-shadow: 0 8px 22px rgba(37,211,102,0.35); }
 
/* Instagram — official gradient */
.s-instagram {
    background: linear-gradient(135deg, #405de6 0%, #5851db 15%, #833ab4 35%, #c13584 55%, #e1306c 75%, #fd1d1d 90%, #f77737 100%);
    border-color: rgba(200,60,140,0.3);
    box-shadow: 0 4px 14px rgba(193,53,132,0.3);
}
.s-instagram:hover { box-shadow: 0 8px 22px rgba(193,53,132,0.4); }
 
/* YouTube — brand red */
.s-youtube {
    background: linear-gradient(145deg, #ff0000 0%, #cc0000 100%);
    border-color: rgba(255,0,0,0.3);
    box-shadow: 0 4px 14px rgba(255,0,0,0.2);
}
.s-youtube:hover { box-shadow: 0 8px 22px rgba(255,0,0,0.35); }

/* ── FEATURES SECTION ── */
.features {
    padding: 90px 5vw;
    background: var(--slate);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: -60px; left: 50%;
    transform: translateX(-50%);
    width: 800px; height: 200px;
    background: radial-gradient(ellipse, rgba(232,160,32,0.15) 0%, transparent 70%);
}

.features-inner { max-width: 1200px; margin: auto; }

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 14px;
}

.section-title {
    font-family: 'Syne', sans-serif;
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 60px;
    max-width: 500px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 32px 28px;
    transition: background 0.2s, transform 0.2s;
}

.feature-card:hover {
    background: rgba(232,160,32,0.08);
    border-color: rgba(232,160,32,0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 18px;
    display: block;
}

.feature-name {
    font-family: 'Syne', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);
}

/* ── FOOTER ── */
footer {
    background: var(--ink);
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 36px 5vw;
    font-size: 14px;
}

footer a { color: var(--primary); text-decoration: none; }

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .features-grid, .t-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    h1 { font-size: 36px; }
}

@media (max-width: 600px) {
    .stats-row { gap: 20px; }
    .form-card, .success-card { padding: 30px 22px; }
    .features { padding: 60px 5vw; }
}

.small-add-btn { 
    background: var(--primary); 
    color: white; 
    border: none; 
    padding: 0 15px; 
    border-radius: 8px; 
    cursor: pointer; 
    font-size: 20px; 
}
.custom-modal { 
    position: fixed; 
    inset: 0; 
    background: rgba(0,0,0,0.6); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    z-index: 999; 
}
.modal-content { 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    width: 90%; 
    max-width: 400px; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.2); 
}
.modal-input { 
    width: 100%; 
    margin-bottom: 15px; 
    padding: 10px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
}
.modal-actions { 
    display: flex; 
    gap: 10px; 
}
.cancel-btn { 
    background: #eee; 
    border: none; 
    padding: 10px 20px; 
    border-radius: 6px; 
    cursor: pointer; flex: 1; 
}

/* ── FORM REQUIREMENTS ── */
.form-requirements {
    margin: 20px 0 16px;
    padding: 14px 16px;
    background: #f8f7ff;
    border: 1.5px dashed #a5b4fc;
    border-radius: 12px;
}

.req-title {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #4338ca;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.req-steps { display: flex; flex-direction: column; gap: 8px; }

.req-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 8px;
    transition: border-color 0.2s;
}

.req-step.is-done { border-color: #86efac; background: #f0fdf4; }

.req-check { font-size: 14px; flex-shrink: 0; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1); }
.req-check.checked { transform: scale(1.2); }

.req-step-label { font-size: 12px; font-weight: 500; color: #374151; flex: 1; }
.req-step.is-done .req-step-label { color: #15803d; }

.confirm-btn {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    border: 1.5px solid #6366f1;
    background: transparent;
    color: #6366f1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    flex-shrink: 0;
}

.confirm-btn:hover { background: #6366f1; color: #fff; transform: translateY(-1px); }
.confirm-btn--wa   { border-color: #25D366; color: #128c7e; }
.confirm-btn--wa:hover { background: #25D366; color: #fff; }
.confirm-btn.is-done { background: #dcfce7; border-color: #86efac; color: #166534; pointer-events: none; }

.req-progress {
    height: 4px;
    background: #e0e7ff;
    border-radius: 10px;
    margin-top: 12px;
    overflow: hidden;
}

.req-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    border-radius: 10px;
    transition: width 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* Submit locked/unlocked */
.submit-btn--locked  { opacity: 0.45; cursor: not-allowed; }
.submit-btn--unlocked { animation: unlockPop 0.35s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes unlockPop { from { transform: scale(0.97); } to { transform: scale(1); } }

/* ── append to style.css ── */

/* Schedule image */
.schedule-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid rgba(30,34,53,0.08);
    box-shadow: 0 4px 16px rgba(30,34,53,0.08);
    margin-bottom: 4px;
}

.schedule-img {
    width: 100%;
    display: block;
    transition: transform 0.3s ease;
}

.schedule-card:hover .schedule-img { transform: scale(1.02); }

/* Community nudge row */
.community-nudge {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.nudge-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    text-decoration: none;
    border: 1.5px solid;
    transition: transform 0.15s, filter 0.15s;
    white-space: nowrap;
}

.nudge-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }

.nudge-wa {
    background: rgba(37,211,102,0.08);
    border-color: rgba(37,211,102,0.4);
    color: #128c7e;
}

.nudge-yt {
    background: rgba(255,0,0,0.06);
    border-color: rgba(255,0,0,0.25);
    color: #cc0000;
}

/* YouTube embed */
.yt-embed-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.yt-embed-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Schedule footer */
.schedule-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #1e2235, #2d3555);
    border-top: 1px solid rgba(255,255,255,0.06);
}

.schedule-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #2d8cff, #1a6fd4);
    color: #fff;
    border-radius: 8px;
    font-family: 'Syne', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.15s, box-shadow 0.15s;
}

.schedule-join-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(45,140,255,0.4);
}

.schedule-zoom-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.zoom-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.zoom-label {
    font-size: 10px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    white-space: nowrap;
}

.zoom-value {
    font-size: 11px;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    color: #e8a020;
    background: rgba(232,160,32,0.1);
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.secondary-outline-btn {
    margin-top: 12px;
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--ink);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}


/* When in success mode, make the inner container a single column */
.hero-inner.success-mode {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 800px; /* Optional: Constrain width so it doesn't look too stretched */
    margin: 0 auto;
    float: none;
}

.hero-inner.success-mode #register {
    width: 100% !important;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Ensure the success card itself looks good at full width */
.hero-inner.success-mode .success-card {
    width: 100%;
    margin: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Optional: extra pop */
}

/* Mobile check: ensure it stays centered */
@media (max-width: 768px) {
    .hero {
        padding: 20px 5px !important;
    }
    .hero-inner.success-mode {
        padding: 5px;
    }
}

@media (max-width:541px) {
    .app-buttons {
        grid-template-columns: 1fr 1fr;
    }

    .social-grid {
        grid-template-columns: 1fr;
    }

    .community-nudge {
        flex-direction: column;
    }
}