/* GLOBAL STYLES */
:root {
    --bg-color: #0c0d14; /* Darker space background */
    --primary-pink: #FF007A;
    --primary-cyan: #00F2EA;
    --text-light: #ffffff;
    --text-dark: #121212;
    --text-muted: #a0a0a0;
    --panel-bg: rgba(25, 27, 38, 0.4); /* Adjusted panel color */
    --panel-border: rgba(255, 255, 255, 0.1);
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-light);
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* STARRY BACKGROUND */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

@keyframes twinkle-slow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

@keyframes twinkle-fast {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 1; }
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: -1;
}

.stars-small {
    width: 1px;
    height: 1px;
    background: transparent;
    box-shadow: 
        635px 956px #FFF, 1284px 1103px #FFF, 153px 1275px #FFF, 1494px 1228px #FFF, 497px 1195px #FFF, 
        1332px 421px #FFF, 928px 779px #FFF, 420px 860px #FFF, 966px 313px #FFF, 827px 215px #FFF, 
        148px 823px #FFF, 882px 56px #FFF, 217px 587px #FFF, 147px 999px #FFF, 119px 233px #FFF, 
        729px 123px #FFF, 948px 470px #FFF, 154px 907px #FFF, 100px 185px #FFF, 999px 109px #FFF, 
        599px 899px #FFF, 843px 817px #FFF, 637px 197px #FFF, 79px 604px #FFF, 549px 247px #FFF, 
        435px 561px #FFF, 300px 108px #FFF, 521px 112px #FFF, 555px 18px #FFF, 835px 747px #FFF, 
        584px 943px #FFF, 406px 303px #FFF, 799px 899px #FFF, 901px 819px #FFF, 731px 165px #FFF, 
        101px 900px #FFF, 219px 024px #FFF, 1456px 678px #FFF, 789px 234px #FFF, 345px 567px #FFF;
    animation: twinkle 3s infinite ease-in-out;
}

.stars-medium {
    width: 2px;
    height: 2px;
    background: transparent;
    box-shadow: 
        339px 404px #FFF, 114px 928px #FFF, 801px 583px #FFF, 135px 235px #FFF, 374px 969px #FFF, 
        946px 573px #FFF, 459px 289px #FFF, 381px 758px #FFF, 53px 83px #FFF, 693px 802px #FFF, 
        108px 97px #FFF, 183px 131px #FFF, 856px 82px #FFF, 530px 426px #FFF, 959px 185px #FFF, 
        915px 930px #FFF, 189px 21px #FFF, 548px 210px #FFF, 845px 179px #FFF, 901px 184px #FFF,
        1234px 567px #FFF, 678px 890px #FFF, 456px 123px #FFF, 789px 345px #FFF, 234px 678px #FFF;
    animation: twinkle-slow 4s infinite ease-in-out;
}

.stars-large {
    width: 3px;
    height: 3px;
    background: transparent;
    box-shadow: 
        732px 431px #FFF, 829px 004px #FFF, 634px 505px #FFF, 238px 157px #FFF, 281px 992px #FFF, 
        170px 60px #FFF, 378px 897px #FFF, 142px 633px #FFF, 906px 183px #FFF, 349px 109px #FFF,
        567px 234px #FFF, 890px 456px #FFF, 123px 789px #FFF, 456px 012px #FFF, 789px 345px #FFF;
    animation: twinkle-fast 2s infinite ease-in-out;
}

/* LAYOUT */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    background: radial-gradient(ellipse at bottom, rgba(38, 0, 77, 0.3), transparent 60%);
}

header {
    flex-shrink: 0;
    padding: 12px 16px;
}

main {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    overflow-y: auto;
}

footer {
    flex-shrink: 0;
    padding: 16px;
    margin-top: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.footer-content, .main-content {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

/* HEADER */
.header-inner {
    display: flex;
    justify-content: center; /* Centered since there's no switcher */
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-light);
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(to bottom right, var(--primary-pink), var(--primary-cyan));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon svg { width: 16px; height: 16px; color: white; }
.logo-text { font-size: 1.125rem; font-weight: 700; }

/* TABS */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* HOME TAB */
.home-tab { text-align: center; }
.home-tab h1 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px rgba(0, 242, 234, 0.5), 0 0 5px rgba(255, 0, 122, 0.5);
}
.home-tab .timer-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.timer-container {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(5px);
}
.timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'monospace';
}
.timer-part {
    font-size: 3rem;
    font-weight: 700;
    min-width: 2ch;
}
.timer-separator {
    font-size: 2.5rem;
    color: var(--primary-cyan);
    animation: pulse 1.5s infinite ease-in-out;
}
.badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.badge {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(5px);
}
.badge svg { width: 12px; height: 12px; color: var(--primary-cyan); }

/* HOW IT WORKS TAB */
.panel {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.panel-title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}
.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 16px;
}
.step-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(to bottom right, var(--primary-pink), var(--primary-cyan));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.step-icon svg { width: 28px; height: 28px; color: white; }
.step-title { font-weight: 500; margin-bottom: 4px; }
.step-desc { font-size: 0.75rem; color: var(--text-muted); }

/* REVIEWS TAB */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    border-radius: 16px;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(to bottom right, var(--primary-pink), var(--primary-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.author-name { font-weight: 500; }
.author-location { font-size: 0.75rem; color: var(--text-muted); }
.review-rating { display: flex; gap: 2px; }
.review-rating svg { width: 16px; height: 16px; color: var(--primary-cyan); }
.review-text { font-size: 0.875rem; font-style: italic; color: var(--text-muted); }

/* FAQ TAB */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
}
.faq-question svg {
    width: 20px;
    height: 20px;
    color: var(--primary-cyan);
    transition: transform 0.3s ease;
}
.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-answer p {
    padding: 0 12px 12px;
    font-size: 0.875rem;
    color: var(--text-muted);
}
.faq-item.open .faq-answer {
    max-height: 100px; /* Adjust if needed */
}

/* FOOTER & NAVIGATION */
.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 56px;
    background: linear-gradient(45deg, var(--primary-pink), #ff1744, var(--primary-pink));
    background-size: 200% 200%;
    border: none;
    border-radius: 16px;
    color: var(--text-light);
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 16px;
    box-shadow: 0 8px 30px rgba(255, 0, 122, 0.4);
    animation: shimmer 2s ease-in-out infinite alternate;
    position: relative;
    overflow: hidden;
}
.cta-button svg { width: 20px; height: 20px; }

.bottom-nav {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 8px;
    display: flex;
    justify-content: space-around;
}
.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    width: 64px;
    height: 56px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}
.nav-button.active { color: var(--text-light); }
.nav-button svg {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}
.nav-button span { font-size: 0.75rem; font-weight: 500; }
.nav-button .active-indicator {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--primary-pink), #9c004a);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.nav-button.active .active-indicator { opacity: 1; }

/* ANIMATIONS */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}
