/* CSS Variables for Theme */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3d;
    --bg-card: #252a4a;
    --accent-cyan: #00f0ff;
    --accent-green: #00ff88;
    --accent-red: #ff0055;
    --accent-purple: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: #b8b8d0;
    --text-muted: #8a8aa3;
    --border-color: #2d3259;
    --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1035 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated background gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.screen {
    display: none;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
    z-index: 1;
}

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

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

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

/* Loading Screen */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

.cyber-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--accent-cyan);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

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

.progress-bar {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    margin: 1.5rem 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Typography */
.cyber-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.8)); }
}

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: clamp(1rem, 3vw, 1.2rem);
    margin-bottom: 2rem;
}

/* Cards */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.card {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent-cyan);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.card p {
    color: var(--text-secondary);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 400px;
    margin: 1.5rem auto;
    display: block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-phishing, .btn-safe {
    border: none;
    padding: 1.25rem;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0.5rem;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.btn-phishing {
    background: linear-gradient(45deg, #ff0055, #ff4444);
    color: white;
}

.btn-safe {
    background: linear-gradient(45deg, #00ff88, #00cc66);
    color: white;
}

.btn-phishing:hover, .btn-safe:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-phishing:hover {
    box-shadow: 0 8px 25px rgba(255, 0, 85, 0.5);
}

.btn-safe:hover {
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.btn-phishing.active, .btn-safe.active {
    transform: scale(1.05);
    box-shadow: 0 0 30px currentColor;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.btn-secondary:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-secondary.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.btn-confirm {
    background: linear-gradient(45deg, var(--accent-purple), #6a0dad);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    width: 100%;
    font-weight: 600;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(138, 43, 226, 0.5);
}

/* Share buttons */
.btn-share, .btn-portfolio {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.9rem, 2vw, 1rem);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.btn-share:hover {
    border-color: var(--accent-green);
    background: var(--accent-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
}

.btn-portfolio:hover {
    border-color: var(--accent-cyan);
    background: var(--accent-cyan);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Consent Section */
.consent-section {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.consent-text ul {
    list-style: none;
    margin-top: 1rem;
}

.consent-text li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
}

/* Checkbox */
.checkbox-container {
    display: block;
    position: relative;
    padding-left: 2.5rem;
    margin: 1.5rem 0;
    cursor: pointer;
    font-size: clamp(0.9rem, 2vw, 1rem);
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent-cyan);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 8px;
    top: 4px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* Test Interface */
.test-container {
    max-width: 1000px;
    margin: 0 auto;
}

.progress-header {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.mode-indicator {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: bold;
    white-space: nowrap;
}

/* Email Container */
.email-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.email-header {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.email-meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.email-from, .email-subject {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.email-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    color: #333;
    font-family: 'Courier New', monospace;
    line-height: 1.8;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Custom scrollbar */
.email-content::-webkit-scrollbar {
    width: 8px;
}

.email-content::-webkit-scrollbar-track {
    background: #e0e0e0;
}

.email-content::-webkit-scrollbar-thumb {
    background: var(--accent-cyan);
    border-radius: 4px;
}

/* AI Prediction Box */
.ai-prediction-box {
    background: linear-gradient(135deg, var(--bg-secondary), #2d1b69);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    border: 2px solid var(--accent-purple);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

.ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-header h4 {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.confidence-badge {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: bold;
}

.verdict-text {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    display: block;
    margin: 1rem 0;
}

.phishing-text {
    color: var(--accent-red);
}

.safe-text {
    color: var(--accent-green);
}

.confidence-meter {
    width: 100%;
    height: 12px;
    background: var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    margin: 1rem 0;
}

.confidence-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-cyan), var(--accent-green));
    border-radius: 6px;
    transition: width 0.5s ease;
}

/* Decision Panel */
.decision-panel {
    background: var(--bg-card);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.decision-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.confidence-section label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.confidence-labels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    color: var(--text-muted);
    text-align: center;
}

.slider {
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: var(--border-color);
    outline: none;
    margin-bottom: 1rem;
}

.slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    transition: transform 0.2s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent-cyan);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    border: none;
}

.confidence-display {
    text-align: center;
    font-weight: bold;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--accent-cyan);
}

.mode-questions {
    margin: 1.5rem 0;
}

.question {
    text-align: center;
}

.question p {
    margin-bottom: 1rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

/* Timer */
.timer-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    background: var(--bg-card);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    border: 2px solid var(--border-color);
    font-weight: bold;
    box-shadow: var(--shadow-card);
    z-index: 1000;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Survey Form */
.survey-form {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group select, .form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2vw, 1rem);
    transition: border-color 0.3s ease;
}

.form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.rating-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.rating-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

.rating-btn:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.rating-btn.active {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    border-color: var(--accent-cyan);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: var(--accent-cyan);
}

.radio-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    accent-color: var(--accent-cyan);
}

/* Results Screen */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.stat-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.stat-value {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card:nth-child(1) .stat-value {
    color: var(--accent-cyan);
}

.stat-card:nth-child(2) .stat-value {
    color: var(--accent-green);
}

.stat-card:nth-child(3) .stat-value {
    color: var(--accent-purple);
}

.stat-label {
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.results-details {
    margin: 3rem 0;
}

.results-details h3 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-size: clamp(1.3rem, 3vw, 1.5rem);
}

.performance-breakdown {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.mode-performance div {
    padding: 0.75rem 0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.results-actions > * {
    flex: 1;
    min-width: 200px;
}

.research-note {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--accent-cyan);
    margin-top: 2rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Instructions */
.instructions-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
}

.instruction-section {
    margin-bottom: 2rem;
}

.instruction-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.test-modes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.mode-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-card);
}

.mode-header {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.mode-header h4 {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.mode-header.human-only {
    background: linear-gradient(45deg, #8a2be2, #4b0082);
}

.mode-header.ai-only {
    background: linear-gradient(45deg, #ff0055, #cc0044);
}

.mode-header.hybrid {
    background: linear-gradient(45deg, #00f0ff, #0088cc);
}

.mode-card ul {
    list-style: none;
}

.mode-card li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.mode-card li:before {
    content: "✓ ";
    color: var(--accent-cyan);
    font-weight: bold;
    margin-right: 0.5rem;
}

.tips-section {
    margin-top: 2rem;
}

.tips-section h3 {
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
    font-size: clamp(1.2rem, 3vw, 1.4rem);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.tip {
    background: var(--bg-secondary);
    padding: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tip:hover {
    border-color: var(--accent-cyan);
    transform: translateY(-3px);
}

.tip strong {
    color: var(--accent-cyan);
    display: block;
    margin-bottom: 0.5rem;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.tip p {
    color: var(--text-secondary);
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0.75rem;
    }

    .screen {
        padding: 0.5rem;
    }

    .decision-buttons {
        flex-direction: column;
    }

    .btn-phishing, .btn-safe {
        margin: 0.5rem 0;
    }

    .question-buttons {
        flex-direction: column;
    }

    .question-buttons .btn-secondary {
        width: 100%;
        margin: 0.5rem 0;
    }

    .timer-container {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .test-modes {
        grid-template-columns: 1fr;
    }

    .results-actions {
        flex-direction: column;
    }

    .results-actions > * {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .confidence-labels {
        grid-template-columns: repeat(5, 1fr);
        font-size: 0.65rem;
    }

    .rating-buttons {
        flex-direction: column;
    }

    .rating-btn {
        width: 100%;
        min-width: 0;
    }

    .email-content {
        padding: 1.5rem;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .timer-container,
    .btn-primary,
    .btn-secondary,
    .btn-confirm {
        display: none;
    }
}
