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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    text-align: center;
    margin-bottom: 30px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.screen {
    display: none;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

.screen.active {
    display: block;
}

.welcome-content {
    text-align: center;
}

.language-selector {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 9998; /* Ensure language selector container is positioned above other content */
}

.language-selector h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.language-dropdown-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.language-dropdown {
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    min-width: 220px;
    transition: all 0.3s ease;
}

.language-dropdown:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

.language-dropdown option {
    padding: 10px;
    font-size: 1rem;
    background: white;
    color: #333;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom dropdown styles */
.custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 220px;
    z-index: 9999; /* Ensure dropdown container is on top */
}

.dropdown-selected {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: 2px solid #667eea;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    position: relative;
    z-index: 9999;
}

.dropdown-selected:hover {
    border-color: #764ba2;
    box-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

.dropdown-arrow {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #667eea;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10000; /* Higher z-index to appear above all content */
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.custom-dropdown.open .dropdown-options {
    display: block;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    gap: 10px;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

.dropdown-option.selected {
    background-color: #667eea;
    color: white;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.hidden-select {
    display: none;
}

/* Question count section styles */
.question-count-section {
    margin: 30px 0;
    text-align: center;
}

.question-count-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.question-count-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.accuracy-note {
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
    padding: 10px 20px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.language-charts-section {
    margin-top: 30px;
}

.language-charts-section h3 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.language-chart-wrapper {
    text-align: center;
}

.language-chart-wrapper canvas {
    max-width: 100%;
    height: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
}

.welcome-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2rem;
}

.welcome-content p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #555;
}

.welcome-content ul {
    text-align: left;
    max-width: 500px;
    margin: 0 auto 20px;
}

.welcome-content li {
    margin-bottom: 8px;
    color: #666;
}

.btn-primary, .btn-secondary {
    padding: 12px 30px;
    font-size: 1.1rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
    font-weight: 600;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #dee2e6;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.btn-primary:disabled, .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Success button styling for share button */
.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

/* Special styling for retake test button */
#retake-test {
    font-size: 1.2rem;
    padding: 15px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: all 0.4s ease;
}

#retake-test::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

#retake-test:hover::before {
    left: 100%;
}

#retake-test:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

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

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 20px;
}

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

.question-counter {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
}

#question-container {
    margin-bottom: 30px;
}

#question-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
    line-height: 1.6;
}

#question-image {
    text-align: center;
    margin-bottom: 25px;
}

#question-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

#answers-container {
    display: grid;
    gap: 12px;
}

.answer-option {
    padding: 15px 20px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.answer-option:hover {
    background: #e9ecef;
    border-color: #667eea;
    transform: translateX(5px);
}

.answer-option.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.test-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.results-content {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

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

.results-content h2 {
    color: #333;
    margin-bottom: 40px;
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.results-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.iq-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 25px;
    margin: 40px auto;
    max-width: 400px;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: pulseGlow 0.8s ease-out;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.1);
        transform: scale(0.95);
    }
    100% {
        box-shadow: 0 15px 35px rgba(102, 126, 234, 0.3);
        transform: scale(1);
    }
}

.iq-score::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.iq-score:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

#iq-value {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    display: block;
    position: relative;
    z-index: 2;
}

.iq-label {
    font-size: 1.4rem;
    opacity: 0.95;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

#iq-interpretation {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 35px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-left: 5px solid;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    animation: slideInLeft 0.8s ease-out 0.3s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#iq-interpretation h3 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 700;
}

#iq-interpretation p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: left;
}

.test-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px auto;
    max-width: 600px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.test-summary p {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    font-size: 1.1rem;
    color: #555;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.test-summary p:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.test-summary span {
    font-weight: 700;
    color: #667eea;
    font-size: 1.3rem;
}

.action-buttons {
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.action-buttons button {
    margin: 0 10px;
}

.action-buttons button:first-child {
    margin-left: 0;
}

.action-buttons button:last-child {
    margin-right: 0;
}

.charts-section {
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.charts-section h3 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
}

.charts-section h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.chart-wrapper {
    text-align: center;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.chart-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.chart-wrapper h4 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4rem;
    font-weight: 600;
}

.chart-wrapper canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fafafa;
    transition: transform 0.3s ease;
}

.chart-wrapper:hover canvas {
    transform: scale(1.02);
}

.stats-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin: 40px auto;
    max-width: 800px;
}

.stats-info > div {
    background: white;
    padding: 30px 20px;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    border-top: 4px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

.stats-info > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.stats-info strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.stats-info span {
    color: #667eea;
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.language-charts-section {
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 1.1s both;
}

.language-charts-section h3 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    position: relative;
}

.language-charts-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.language-chart-wrapper {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent;
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
    text-align: center;
}

.language-chart-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.language-chart-wrapper canvas {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    background: #fafafa;
}

.stats-info div {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.review-content h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

#review-container {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.review-question {
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #e9ecef;
}

.review-question.correct {
    background: #d4edda;
    border-color: #28a745;
}

.review-question.incorrect {
    background: #f8d7da;
    border-color: #dc3545;
}

.review-question-text {
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.review-answer {
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.review-answer.user-answer {
    background: #cce5ff;
    border: 1px solid #99d3ff;
}

.review-answer.correct-answer {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.review-answer.user-wrong {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    
    .container {
        padding: 10px;
    }
    
    .screen {
        padding: 20px;
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
    
    .test-summary {
        grid-template-columns: 1fr;
    }
    
    .stats-info {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .iq-score {
        padding: 30px 20px;
        margin: 30px auto;
    }
    
    #iq-value {
        font-size: 4rem;
    }
    
    .results-content h2 {
        font-size: 2.2rem;
    }
    
    .charts-section h3 {
        font-size: 1.8rem;
    }
    
    .chart-wrapper {
        padding: 20px 15px;
    }
    
    .stats-info > div {
        padding: 20px 15px;
    }
    
    #iq-interpretation {
        padding: 25px 20px;
    }
    
    .disclaimer {
        padding: 20px;
        margin: 30px auto 20px;
        font-size: 0.9rem;
    }
}

/* Disclaimer styling */
.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #f39c12;
    border-radius: 15px;
    padding: 25px;
    margin: 50px auto 30px;
    text-align: center;
    font-size: 1rem;
    color: #8b6914;
    max-width: 600px;
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.2);
    animation: fadeInUp 0.8s ease-out 1.3s both;
    position: relative;
    overflow: hidden;
}

.disclaimer::before {
    content: '⚠️';
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
    animation: pulse 2s infinite;
}

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

/* Enhanced Welcome Page Styles */
.welcome-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.free-notice {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.free-notice::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.free-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.badge-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.badge-text {
    font-size: 1.4rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.free-description {
    font-size: 1rem;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

.main-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.welcome-title {
    color: #333;
    margin-bottom: 15px;
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-description {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.features-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.features-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.feature-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.feature-item span {
    color: #555;
    font-weight: 500;
    font-size: 0.95rem;
}

.instructions-section {
    margin: 30px 0;
    padding: 25px;
    background: rgba(118, 75, 162, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(118, 75, 162, 0.1);
}

.instructions-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
}

.instructions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: left;
    border: 1px solid rgba(118, 75, 162, 0.1);
    transition: all 0.3s ease;
}

.instruction-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.15);
    border-color: rgba(118, 75, 162, 0.3);
}

.instruction-number {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.instruction-item span {
    color: #555;
    font-weight: 500;
    line-height: 1.5;
}

.start-button-container {
    margin-top: 40px;
    padding: 20px;
}

.btn-start {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-start::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s;
}

.btn-start:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
}

.btn-start:hover::before {
    left: 100%;
}

.btn-start:active {
    transform: translateY(-1px);
}

/* Language Selector Improvements */
.language-selector {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item {
        padding: 12px;
    }
    
    .instruction-item {
        padding: 12px 15px;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .welcome-title {
        font-size: 1.8rem;
    }
    
    .btn-start {
        padding: 15px 40px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 10px;
    }
    
    .feature-item {
        gap: 8px;
        padding: 10px;
    }
    
    .feature-icon {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .instruction-number {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .free-badge {
        flex-direction: column;
        gap: 5px;
    }
    
    .badge-text {
        font-size: 1.2rem;
    }
}

/* Share Modal Styles */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: scale(0.8) translateY(-20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.share-modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.3s ease;
    text-align: center;
}

.share-modal-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.5rem;
}

.share-modal-content p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 1rem;
}

.share-url-container {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    align-items: center;
}

#share-url-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: monospace;
    background: #f8f9fa;
}

.copy-btn {
    padding: 12px 20px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.close-modal {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.close-modal:hover {
    background: #545b62;
    transform: translateY(-1px);
}

/* Responsive styles for share modal */
@media (max-width: 768px) {
    .share-modal-content {
        padding: 20px;
        margin: 20px;
    }
    
    .share-url-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #share-url-input {
        font-size: 0.8rem;
    }
}