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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #00a86b 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}

.header-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 600;
}

.header h1 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

.header-subtitle {
    font-size: 1.3em;
    opacity: 0.95;
    font-weight: 500;
}

.progress-container {
    background: #f0f0f0;
    padding: 20px 40px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    color: #666;
    font-weight: bold;
}

.content {
    padding: 40px;
}

.welcome-screen {
    text-align: center;
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.welcome-icon {
    font-size: 5em;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.welcome-screen h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 15px;
    font-weight: 700;
}

.welcome-description {
    font-size: 1.15em;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.welcome-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 15px;
    min-width: 140px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.15);
    border-color: #2a5298;
}

.feature-icon {
    font-size: 2.5em;
}

.feature-item span:last-child {
    font-size: 1em;
    color: #555;
    font-weight: 600;
}

.welcome-screen ul {
    text-align: right;
    margin: 30px auto;
    max-width: 500px;
    list-style: none;
}

.welcome-screen li {
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #667eea;
}

.welcome-screen li strong {
    color: #667eea;
}

.page-container {
    display: none;
}

.page-container.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.question-block {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 2px solid #e9ecef;
}

.question-block:last-of-type {
    border-bottom: none;
    margin-bottom: 30px;
}

.question-number {
    color: #667eea;
    font-weight: bold;
    margin-left: 10px;
}

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

.question-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.question-title {
    font-size: 1.6em;
    color: #333;
    margin-bottom: 25px;
    text-align: right;
    font-weight: bold;
    line-height: 1.5;
}

.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.option {
    padding: 20px;
    background: #f8f9fa;
    border: 3px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1.05em;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
}

.option-icon {
    font-size: 1.8em;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.option-text {
    flex: 1;
}

.option:hover {
    background: #e9ecef;
    border-color: #2a5298;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 82, 152, 0.2);
}

.option:hover .option-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.2);
}

.option.selected {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border-color: #2a5298;
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.3);
}

.option.selected .option-icon {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.btn {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 60, 114, 0.4);
    background: linear-gradient(135deg, #2a5298 0%, #1e3c72 100%);
}

.btn-start {
    padding: 14px 40px;
    font-size: 1.1em;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.loading-screen {
    display: none;
    text-align: center;
    padding: 60px 20px;
}

.loading-screen.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.loading-content {
    max-width: 600px;
    margin: 0 auto;
}

.ai-brain {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 40px;
}

.brain-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    animation: brainPulse 1.5s ease-in-out infinite;
}

.brain-circle:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0s;
}

.brain-circle:nth-child(2) {
    bottom: 0;
    left: 0;
    animation-delay: 0.5s;
}

.brain-circle:nth-child(3) {
    bottom: 0;
    right: 0;
    animation-delay: 1s;
}

@keyframes brainPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

.loading-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-text {
    font-size: 1.3em;
    color: #666;
    margin-bottom: 30px;
}

.progress-dots {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    animation: dotBounce 1.4s ease-in-out infinite;
}

.dot:nth-child(1) {
    animation-delay: 0s;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3c72 0%, #2a5298 100%);
    width: 0%;
    animation: loadingProgress 4s ease-in-out forwards;
    border-radius: 10px;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    25% {
        width: 30%;
    }
    50% {
        width: 60%;
    }
    75% {
        width: 85%;
    }
    100% {
        width: 100%;
    }
}

.loading-status {
    font-size: 1.1em;
    color: #999;
    font-style: italic;
}

.results {
    display: none;
}

.results.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.results h2 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-intro {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 50px;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.investment-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease forwards;
    opacity: 0;
}

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

.investment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.investment-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, currentColor);
}

.investment-card.gold {
    border-color: #FFD700;
    color: #FFD700;
}

.investment-card.gold::before {
    background: linear-gradient(90deg, #FFD700, #FFA500);
}

.investment-card.oil {
    border-color: #2C3E50;
    color: #2C3E50;
}

.investment-card.oil::before {
    background: linear-gradient(90deg, #2C3E50, #34495e);
}

.investment-card.crypto {
    border-color: #F7931A;
    color: #F7931A;
}

.investment-card.crypto::before {
    background: linear-gradient(90deg, #F7931A, #FF6B35);
}

.investment-card.stocks {
    border-color: #00A86B;
    color: #00A86B;
}

.investment-card.stocks::before {
    background: linear-gradient(90deg, #00A86B, #00D084);
}

.investment-card.real-estate {
    border-color: #8B4513;
    color: #8B4513;
}

.investment-card.real-estate::before {
    background: linear-gradient(90deg, #8B4513, #A0522D);
}

.investment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.investment-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.investment-icon {
    font-size: 4em;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.1));
}

.investment-title {
    font-size: 2em;
    color: #333;
    font-weight: bold;
    margin: 0;
}

.investment-percentage {
    font-size: 3.5em;
    font-weight: bold;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.investment-description {
    color: #666;
    font-size: 1.15em;
    line-height: 1.8;
    margin-bottom: 25px;
    text-align: right;
}

.investment-pros {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 25px;
    border-radius: 15px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.investment-pros h4 {
    color: #28a745;
    margin-bottom: 15px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.investment-pros h4::before {
    content: "✨";
    font-size: 1.2em;
}

.investment-pros ul {
    list-style: none;
    text-align: right;
    display: grid;
    gap: 12px;
}

.investment-pros li {
    padding: 12px 15px;
    color: #555;
    background: white;
    border-radius: 8px;
    transition: all 0.2s ease;
    border-right: 3px solid #28a745;
}

.investment-pros li:hover {
    transform: translateX(-5px);
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.1);
}

.investment-pros li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-left: 10px;
    font-size: 1.2em;
}

.restart-btn {
    background: white;
    color: #1e3c72;
    border: 2px solid #1e3c72;
    margin-top: 40px;
    padding: 12px 35px;
    font-size: 1em;
}

.restart-btn:hover {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(30, 60, 114, 0.4);
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 1.5em;
    }

    .header-subtitle {
        font-size: 1.1em;
    }

    .header-badge {
        font-size: 0.8em;
        padding: 6px 15px;
    }

    .content {
        padding: 20px;
    }

    .question-title {
        font-size: 1.3em;
    }

    .question-image {
        height: 200px;
    }

    .question-block {
        margin-bottom: 40px;
        padding-bottom: 30px;
    }

    .investment-percentage {
        font-size: 2.5em;
    }

    .options {
     
    }

    .option {
        padding: 15px;
        font-size: 14px;
        gap: 8px;
    }

    .option-icon {
        font-size: 1.5em;
    }

    .option-text {
        font-size: 0.95em;
    }

    .investment-card {
        padding: 25px;
        margin: 20px 0;
    }

    .investment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .investment-info {
        width: 100%;
    }

    .investment-icon {
        font-size: 3em;
    }

    .investment-title {
        font-size: 1.5em;
    }

    .investment-percentage {
        font-size: 2.8em !important;
        align-self: flex-end;
    }

    .investment-description {
        font-size: 1em;
    }

    .investment-pros {
        padding: 20px;
    }

    .investment-pros h4 {
        font-size: 1.1em;
    }

    .investment-pros li {
        padding: 10px 12px;
        font-size: 0.95em;
    }

    .results h2 {
        font-size: 2em;
    }

    .results-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .loading-screen {
        padding: 40px 20px;
    }

    .ai-brain {
        width: 100px;
        height: 100px;
        margin-bottom: 30px;
    }

    .brain-circle {
        width: 30px;
        height: 30px;
    }

    .loading-title {
        font-size: 1.8em;
    }

    .loading-text {
        font-size: 1.1em;
    }

    .loading-status {
        font-size: 1em;
    }

    .welcome-screen {
        padding: 40px 20px;
    }

    .welcome-icon {
        font-size: 4em;
    }

    .welcome-screen h2 {
        font-size: 1.8em;
    }

    .welcome-description {
        font-size: 1em;
    }

    .welcome-features {
        gap: 15px;
    }

    .feature-item {
        min-width: 100px;
        padding: 15px;
    }

    .feature-icon {
        font-size: 2em;
    }

    .feature-item span:last-child {
        font-size: 0.9em;
    }

    .btn-start {
        padding: 12px 30px;
        font-size: 1em;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .option {
        font-size: 1em;
        padding: 18px;
    }
}
