:root {
    --bg-color: #0d0d0d;
    --card-bg: #1c1c1e;
    --text-color: #ffffff;
    --text-muted: #a1a1aa;
    --primary-color: #00e676;
    --primary-hover: #00c853;
    --danger-color: #ef4444;
    --border-radius: 16px;
    --btn-radius: 50px;
    --spacing: 20px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --max-width: 500px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

#app {
    width: 100%;
    max-width: var(--max-width);
    padding: var(--spacing);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Typography */
h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-align: center;
}

h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

p.sub-copy {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

/* Components */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--btn-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 4px 15px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 230, 118, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--card-bg);
    color: var(--text-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    background-color: rgba(0, 230, 118, 0.05);
}

/* Option Cards */
.options-grid {
    display: grid;
    grid-gap: 12px;
}

.option-card {
    background-color: var(--card-bg);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
}

.option-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.option-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(0, 230, 118, 0.1);
}

.option-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* Gender Selection Special */
.gender-options {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 2rem;
}

.gender-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 10px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    border: 2px solid transparent;
}

.gender-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    aspect-ratio: 9/16;
    object-fit: cover;
}

.gender-card:hover {
    border-color: var(--primary-color);
    transform: scale(1.02);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--card-bg);
    border-radius: 10px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    width: 0%;
    transition: width 0.5s ease;
}

/* Charts & Stats */
.chart-container {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
    width: 100%;
    padding-top: 20px;
}

.bar {
    flex: 1;
    background: var(--card-bg);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s ease;
    background: linear-gradient(to top, #2e2e2e, #444);
}

.bar.highlight {
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.bar-label {
    position: absolute;
    bottom: -25px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Expert Profile */
.expert-profile {
    text-align: center;
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.expert-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

/* Footer */
footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
    font-size: 0.8rem;
    color: #555;
    padding-bottom: 20px;
}

footer a {
    color: #777;
    margin: 0 5px;
    text-decoration: none;
}

/* Utility */
.highlight-text {
    color: var(--primary-color);
    font-weight: bold;
}

.hidden {
    display: none;
}

/* Loading Animation */
.loading-circle {
    width: 60px;
    height: 60px;
    border: 5px solid var(--card-bg);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Sales Page */
.sales-card {
    background: var(--card-bg);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 5px 10px;
    border-bottom-left-radius: 10px;
}