:root {
    --primary-color: #8e44ad;
    --primary-light: #9b59b6;
    --primary-dark: #703688;
    --secondary-color: #3498db;
    --accent-color: #f39c12;
    --text-color: #333;
    --text-light: #666;
    --text-secondary: #777;
    --text-white: #fff;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #f1f1f1;
    --border-color: #e0e0e0;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --error-color: #e74c3c;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'SF Pro Display', 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.mobile-container {
    width: 375px;
    height: 812px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Status Bar */
.status-bar {
    height: 44px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
    font-size: 14px;
    font-weight: 600;
}

.status-bar-icons {
    display: flex;
    gap: 6px;
}

/* Navigation Bar */
.nav-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 84px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    font-size: 10px;
    padding: 10px 0;
    width: 25%;
    transition: var(--transition);
}

.nav-item i {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Splash Screen */
.splash-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: calc(100% - 44px - 84px);
    padding: 20px;
    text-align: center;
}

.logo-container {
    margin-bottom: 40px;
}

.app-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.app-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.app-tagline {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 40px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 10px rgba(142, 68, 173, 0.3);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(142, 68, 173, 0.4);
}

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

.btn-secondary:hover, .btn-secondary:focus {
    background-color: rgba(142, 68, 173, 0.05);
}

.feature-highlights {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-top: 20px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.feature i {
    font-size: 24px;
    color: var(--primary-color);
}

.feature span {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

/* Animation */
.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(142, 68, 173, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(142, 68, 173, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(142, 68, 173, 0);
    }
}

/* Test screens */
.test-container {
    height: calc(100% - 44px - 84px);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.test-header {
    text-align: center;
    margin-bottom: 30px;
}

.test-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.test-subtitle {
    font-size: 14px;
    color: var(--text-light);
}

.progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--bg-dark);
    border-radius: 3px;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    width: 30%; /* Adjust based on progress */
}

.question-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.question-number {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.question-text {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.option:hover {
    border-color: var(--primary-light);
    background-color: rgba(142, 68, 173, 0.05);
}

.option.selected {
    border-color: var(--primary-color);
    background-color: rgba(142, 68, 173, 0.1);
}

.option-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.option.selected .option-radio {
    border-color: var(--primary-color);
}

.option.selected .option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.option-text {
    font-size: 16px;
}

.test-nav-buttons {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
}

.btn-test-nav {
    padding: 12px 25px;
    font-size: 14px;
}

/* Results Screen */
.results-container {
    height: calc(100% - 44px - 84px);
    padding: 20px;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.results-header {
    margin-bottom: 30px;
}

.results-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.results-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.score-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.score-label {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.score-value {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.score-max {
    font-size: 24px;
    color: var(--text-light);
}

.score-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.1;
}

.score-interpretation {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.results-details {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.details-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.details-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-color);
}

.results-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.share-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.social-icon:hover {
    transform: scale(1.1);
    background-color: var(--primary-light);
    color: var(--text-white);
}

/* Onboarding */
.onboarding-container {
    height: calc(100% - 44px);
    display: flex;
    flex-direction: column;
}

.onboarding-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.onboarding-image {
    width: 60%;
    max-width: 250px;
    margin: 0 auto 40px;
}

.onboarding-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.onboarding-description {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.onboarding-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}

.pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.pagination-dot.active {
    background-color: var(--primary-color);
    width: 20px;
    border-radius: 4px;
}

.onboarding-buttons {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-top: 1px solid var(--border-color);
}

.btn-onboarding {
    padding: 12px 25px;
    font-size: 14px;
}

/* Paywall */
.paywall-container {
    height: calc(100% - 44px);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.paywall-header {
    text-align: center;
    margin-bottom: 30px;
}

.paywall-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.paywall-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.premium-features {
    margin-bottom: 30px;
}

.premium-feature {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(142, 68, 173, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    color: var(--primary-color);
    font-size: 18px;
}

.feature-info {
    flex: 1;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-light);
}

.subscription-plans {
    margin-bottom: 30px;
}

.plan-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    background-color: var(--bg-light);
    border-radius: 50px;
    padding: 4px;
}

.plan-option {
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.plan-option.active {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.plan-card {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    display: flex;
    align-items: center;
}

.plan-card.selected {
    border-color: var(--primary-color);
    background-color: rgba(142, 68, 173, 0.05);
}

.plan-radio {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-card.selected .plan-radio {
    border-color: var(--primary-color);
}

.plan-card.selected .plan-radio::after {
    content: '';
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.plan-details {
    flex: 1;
}

.plan-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.plan-price {
    font-size: 14px;
    color: var(--text-light);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--text-white);
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.paywall-actions {
    margin-top: auto;
}

.payment-button {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 15px;
}

.payment-button:hover {
    background-color: var(--primary-dark);
}

.terms-text {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
}

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

.close-paywall {
    text-align: center;
    margin-top: 20px;
}

.btn-close {
    background: none;
    border: none;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: underline;
}

