/* ========================================
   MBTI Quiz - Professional & Cozy Design
   A warm, inviting experience
   ======================================== */

/* CSS Variables - Warm & Cozy Palette */
:root {
    /* Primary Colors - Warm & Inviting */
    --primary: #7c6aef;
    --primary-light: #a599f7;
    --primary-dark: #5b4bc9;
    --primary-glow: rgba(124, 106, 239, 0.15);

    /* Accent Colors */
    --accent-warm: #f6a560;
    --accent-rose: #f2a0b3;
    --accent-mint: #7dd3c0;
    --accent-lavender: #c4b5fd;

    /* Neutral - Warm Grays */
    --bg-cream: #faf8f5;
    --bg-warm: #f5f1eb;
    --card-bg: #ffffff;
    --text-primary: #3d3852;
    --text-secondary: #6b6685;
    --text-muted: #9994a8;
    --border-soft: rgba(124, 106, 239, 0.12);

    /* Feedback Colors */
    --success: #5cb589;
    --success-light: #e8f5ef;
    --warning: #e9a54b;
    --warning-light: #fef6e8;

    /* Effects */
    --shadow-soft: 0 2px 8px rgba(61, 56, 82, 0.06);
    --shadow-medium: 0 4px 20px rgba(61, 56, 82, 0.08);
    --shadow-elevated: 0 8px 30px rgba(61, 56, 82, 0.12);
    --shadow-glow: 0 4px 24px rgba(124, 106, 239, 0.2);

    /* Spacing */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: var(--primary-light);
    color: white;
}

/* Container */
.container {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px;
}

/* ========================================
   Pages & Layout
   ======================================== */

.page {
    display: none;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

.page.active {
    display: flex;
    flex-direction: column;
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Buttons - Soft & Inviting
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-soft), 0 4px 12px rgba(124, 106, 239, 0.25);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium), 0 6px 20px rgba(124, 106, 239, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 2px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.btn-secondary:hover:not(:disabled) {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-glow);
}

/* ========================================
   Landing Page - Warm Welcome
   ======================================== */

#landing {
    background: linear-gradient(160deg, #f8f6ff 0%, var(--bg-cream) 50%, #fff5eb 100%);
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#landing::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

#landing::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(246, 165, 96, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero {
    text-align: center;
    max-width: 560px;
    position: relative;
    z-index: 1;
    padding: 40px 20px;
}

/* Decorative Icon */
.hero-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-lavender) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: var(--shadow-medium);
    animation: float 4s ease-in-out infinite;
}

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

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero .subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

/* Features Pills */
.features {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--card-bg);
    padding: 12px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-soft);
    transition: all var(--transition-normal);
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.feature .icon {
    font-size: 1.1rem;
}

/* Start Button Special */
#landing .btn-primary {
    padding: 18px 48px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.disclaimer {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Trust Indicators */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-soft);
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.trust-badge .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.trust-badge .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Disclaimer Banner */
.disclaimer-banner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 32px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(124, 106, 239, 0.05) 100%);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-lg);
    text-align: left;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.disclaimer-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-content {
    flex: 1;
}

.disclaimer-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.disclaimer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}

.disclaimer-text-en {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    padding-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

@media (max-width: 480px) {
    .disclaimer-banner {
        padding: 14px 16px;
        gap: 10px;
    }

    .disclaimer-icon {
        font-size: 1.1rem;
    }

    .disclaimer-title {
        font-size: 0.8rem;
    }

    .disclaimer-text {
        font-size: 0.75rem;
    }

    .disclaimer-text-en {
        font-size: 0.7rem;
    }
}

/* ========================================
   Quiz Page - Focused & Calm
   ======================================== */

#quiz {
    background: var(--bg-cream);
    padding-top: 20px;
}

.quiz-header {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, var(--bg-cream) 80%, transparent 100%);
    padding: 16px 0 32px;
    z-index: 10;
}

/* Progress Section */
.progress-section {
    margin-bottom: 8px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.progress-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 4px 12px;
    border-radius: 20px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: var(--border-soft);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 10px;
    transition: width var(--transition-smooth);
    width: 0%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
}

/* Encouragement Message */
.encouragement {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 8px 16px;
    background: var(--card-bg);
    border-radius: var(--radius-sm);
    margin-top: 12px;
    border: 1px solid var(--border-soft);
}

/* Quiz Content Card */
.quiz-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-elevated);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
}

.quiz-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-light), var(--primary), var(--accent-lavender));
}

.question-container {
    min-height: 320px;
    animation: fadeSlideIn 0.4s ease;
}

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

/* Question Number Badge */
.question-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--primary);
    background: var(--primary-glow);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
    font-weight: 600;
}

.question-text {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 32px;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Options - Friendly Cards */
.options {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.option {
    display: flex;
    align-items: flex-start;
    padding: 20px 24px;
    background: var(--bg-warm);
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.option:hover {
    border-color: var(--primary-light);
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

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

.option.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 106, 239, 0.08) 0%, rgba(196, 181, 253, 0.08) 100%);
    box-shadow: var(--shadow-glow);
}

.option input {
    display: none;
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-soft);
    border-radius: 50%;
    margin-right: 16px;
    margin-top: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
    background: var(--card-bg);
    position: relative;
    z-index: 1;
}

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

.option.selected .option-radio {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.option.selected .option-radio::after {
    content: '';
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: popIn 0.2s ease;
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.option-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

/* Navigation */
.quiz-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    gap: 16px;
}

.quiz-navigation .btn {
    min-width: 140px;
}

/* ========================================
   Result Page - Celebration!
   ======================================== */

#result {
    background: linear-gradient(180deg, #f8f6ff 0%, var(--bg-cream) 30%);
    padding: 40px 0 60px;
}

.result-header {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeSlideUp 0.6s ease;
}

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

.result-header h1 {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.type-badge {
    display: inline-block;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--accent-lavender) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: 4px;
    animation: typeReveal 0.8s ease;
}

@keyframes typeReveal {
    from {
        opacity: 0;
        transform: scale(0.8);
        letter-spacing: 20px;
    }
    to {
        opacity: 1;
        transform: scale(1);
        letter-spacing: 4px;
    }
}

.type-name {
    font-size: 1.6rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Result Cards */
.result-content > div {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.8);
    animation: fadeSlideUp 0.5s ease backwards;
}

.result-content > div:nth-child(1) { animation-delay: 0.1s; }
.result-content > div:nth-child(2) { animation-delay: 0.15s; }
.result-content > div:nth-child(3) { animation-delay: 0.2s; }
.result-content > div:nth-child(4) { animation-delay: 0.25s; }
.result-content > div:nth-child(5) { animation-delay: 0.3s; }
.result-content > div:nth-child(6) { animation-delay: 0.35s; }
.result-content > div:nth-child(7) { animation-delay: 0.4s; }

.result-content h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.result-content h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--accent-lavender));
    border-radius: 2px;
}

/* Dimensions - Visual Bars */
.dimension {
    margin-bottom: 28px;
    padding: 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-md);
}

.dimension:last-child {
    margin-bottom: 0;
}

.dim-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 12px;
    font-weight: 600;
}

.dim-labels span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dim-labels span:first-child {
    color: var(--primary);
}

.dim-labels span:last-child {
    color: var(--accent-warm);
}

.dim-labels .dominant {
    background: currentColor;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.dim-bar-container {
    position: relative;
    height: 12px;
    background: var(--border-soft);
    border-radius: 6px;
    overflow: visible;
}

.dim-bar-fill-left {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 6px 0 0 6px;
    transition: width var(--transition-smooth);
}

.dim-bar-fill-right {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(246, 165, 96, 0.5) 0%, var(--accent-warm) 100%);
    border-radius: 0 6px 6px 0;
    transition: width var(--transition-smooth);
}

.dim-marker {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--card-bg);
    border: 4px solid var(--text-primary);
    border-radius: 50%;
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    box-shadow: var(--shadow-medium);
}

.dim-marker::after {
    content: '';
    position: absolute;
    inset: 4px;
    background: var(--primary);
    border-radius: 50%;
    transition: background var(--transition-normal);
}

.dimension.lean-right .dim-marker::after {
    background: var(--accent-warm);
}

.dim-scores {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-top: 8px;
}

.dim-scores span {
    color: var(--text-muted);
    font-weight: 500;
    transition: all var(--transition-normal);
}

.dim-scores span.dominant {
    color: var(--text-primary);
    font-weight: 700;
}

/* Traits Grid */
.traits-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.trait-column h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.trait-column:first-child h3::before {
    background: var(--success);
}

.trait-column:last-child h3::before {
    background: var(--warning);
}

.trait-column ul {
    list-style: none;
}

.trait-column li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-soft);
}

.trait-column li:last-child {
    border-bottom: none;
}

.trait-column li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.trait-column:first-child li::before {
    background: var(--success-light);
    border: 2px solid var(--success);
}

.trait-column:last-child li::before {
    background: var(--warning-light);
    border: 2px solid var(--warning);
}

/* Info Cards */
.info-card p,
.description-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.98rem;
}

/* Extra Info Card - Famous People & Compatible Types */
.extra-info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.famous-people h3,
.compatible-types h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.famous-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.famous-list .person {
    background: var(--bg-warm);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border: 1px solid var(--border-soft);
}

.compat-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.compat-list .type-tag {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Tips Card */
.tips-card ul {
    list-style: none;
    counter-reset: tips;
}

.tips-card li {
    position: relative;
    padding: 16px 16px 16px 50px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    counter-increment: tips;
}

.tips-card li:last-child {
    margin-bottom: 0;
}

.tips-card li::before {
    content: counter(tips);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent-lavender) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

/* Motto Card */
.motto-card {
    background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(196, 181, 253, 0.15) 100%) !important;
    text-align: center;
    border: 2px solid var(--primary-light) !important;
}

.motto-card blockquote {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--primary);
    line-height: 1.6;
    margin: 0;
}

.motto-card blockquote::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-light);
    display: block;
    line-height: 1;
    margin-bottom: -10px;
}

/* Rarity Badge in Header */
.rarity-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .extra-info-card {
        grid-template-columns: 1fr;
    }
}

/* Result Actions */
.result-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 20px 0 0 !important;
    margin-bottom: 0 !important;
}

.result-actions .btn {
    flex: 1;
    max-width: 220px;
    padding: 18px 24px;
}

/* ========================================
   Mobile Responsive
   ======================================== */

@media (max-width: 640px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 16px;
    }

    /* Landing */
    .hero {
        padding: 24px 16px;
    }

    .hero-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .features {
        gap: 8px;
    }

    .feature {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .trust-badges {
        gap: 16px;
    }

    .trust-badge .number {
        font-size: 1.2rem;
    }

    /* Quiz */
    .quiz-content {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .question-text {
        font-size: 1.15rem;
    }

    .option {
        padding: 16px 18px;
    }

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

    .quiz-navigation {
        flex-direction: column-reverse;
    }

    .quiz-navigation .btn {
        width: 100%;
        min-width: auto;
    }

    /* Result */
    .type-badge {
        font-size: 3rem;
        letter-spacing: 2px;
    }

    .type-name {
        font-size: 1.3rem;
    }

    .result-content > div {
        padding: 20px;
    }

    .traits-card {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .result-actions .btn {
        max-width: 100%;
    }

    .dim-bar {
        height: 28px;
    }

    .dim-labels {
        font-size: 0.8rem;
    }
}

/* ========================================
   Animations & Utilities
   ======================================== */

/* Smooth fade transitions */
.fade-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: all var(--transition-smooth);
}

/* Loading spinner */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pulse animation for emphasis */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-warm);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--border-soft);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========================================
   Accessibility Styles
   ======================================== */

/* Skip Link - Hidden by default, visible on focus */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top var(--transition-fast);
    box-shadow: var(--shadow-elevated);
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

/* Screen Reader Only - Hidden visually but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states for accessibility - Enhanced */
.btn:focus-visible,
.option:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--primary-glow);
}

/* Focus for share buttons */
.share-btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--primary-glow);
}

/* Focus for links */
a:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Focus for footer links */
.footer-links a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
}

/* Focus for dimension cards on landing */
.dimension-card:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* Keyboard Navigation Hint */
.keyboard-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 8px 16px;
    background: var(--bg-warm);
    border-radius: var(--radius-sm);
    border: 1px dashed var(--border-soft);
}

.keyboard-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    box-shadow: 0 2px 0 var(--border-soft);
}

/* Hide keyboard hint on mobile */
@media (max-width: 640px) {
    .keyboard-hint {
        display: none;
    }
}

/* High contrast focus for better visibility */
@media (prefers-contrast: high) {
    .btn:focus-visible,
    .option:focus-visible,
    .share-btn:focus-visible,
    a:focus-visible {
        outline: 4px solid var(--text-primary);
        outline-offset: 4px;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-icon {
        animation: none;
    }
}

/* ========================================
   Share Buttons Section
   ======================================== */

.share-section {
    background: var(--card-bg) !important;
    border-radius: var(--radius-lg);
    padding: 28px;
    text-align: center;
    animation: fadeSlideUp 0.5s ease backwards;
    animation-delay: 0.45s;
}

.share-section h3 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.share-section h3::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(180deg, var(--primary), var(--accent-lavender));
    border-radius: 2px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    min-width: 90px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.share-btn:hover::before {
    opacity: 1;
}

.share-btn:hover {
    transform: translateY(-3px);
}

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

.share-icon {
    font-size: 1.5rem;
    line-height: 1;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* WhatsApp Button */
.share-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.share-whatsapp:hover {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.share-whatsapp .share-icon::before {
    content: '';
}

/* Twitter/X Button */
.share-twitter {
    background: linear-gradient(135deg, #1DA1F2 0%, #0d8ddb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.share-twitter:hover {
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

/* Facebook Button */
.share-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d65d9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.share-facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.4);
}

/* Copy Link Button */
.share-copy {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(124, 106, 239, 0.3);
}

.share-copy:hover {
    box-shadow: 0 6px 20px rgba(124, 106, 239, 0.4);
}

.share-copy.copied {
    background: linear-gradient(135deg, var(--success) 0%, #4aa677 100%);
    box-shadow: 0 4px 12px rgba(92, 181, 137, 0.3);
}

/* Copy Feedback Toast */
.copy-feedback {
    display: none;
    margin-top: 16px;
    padding: 12px 24px;
    background: var(--success);
    color: white;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.3s ease;
}

.copy-feedback.show {
    display: inline-block;
}

/* Result Page Disclaimer */
.result-disclaimer {
    margin-top: 32px;
    padding: 16px 20px;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: var(--radius-lg);
    text-align: center;
}

.result-disclaimer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.result-disclaimer strong {
    color: var(--text-secondary);
}

.result-disclaimer-en {
    font-size: 0.75rem;
    font-style: italic;
    margin-top: 8px !important;
    padding-top: 8px;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    opacity: 0.85;
}

@media (max-width: 480px) {
    .result-disclaimer {
        padding: 14px 16px;
        margin-top: 24px;
    }

    .result-disclaimer p {
        font-size: 0.75rem;
    }

    .result-disclaimer-en {
        font-size: 0.7rem;
    }
}

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

/* Mobile Responsive for Share Buttons */
@media (max-width: 640px) {
    .share-buttons {
        gap: 10px;
    }

    .share-btn {
        min-width: 75px;
        padding: 14px 16px;
    }

    .share-icon {
        font-size: 1.3rem;
    }

    .share-label {
        font-size: 0.7rem;
    }

    .share-section {
        padding: 20px;
    }
}

@media (max-width: 400px) {
    .share-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .share-btn {
        width: 100%;
        flex-direction: row;
        gap: 8px;
        padding: 12px 16px;
        min-width: auto;
    }

    .share-label {
        font-size: 0.75rem;
    }
}

/* Print styles */
@media print {
    .quiz-navigation,
    .result-actions,
    .share-section,
    .btn {
        display: none !important;
    }
}

/* ========================================
   About MBTI Section
   ======================================== */

.about-mbti {
    margin-top: 60px;
    padding: 40px 0;
    position: relative;
    z-index: 1;
}

.about-header {
    text-align: center;
    margin-bottom: 40px;
}

.about-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.about-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 16px;
}

.about-intro:last-child {
    margin-bottom: 0;
}

/* Dimension Cards Grid */
.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.dimension-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255,255,255,0.8);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent-lavender) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.dimension-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
}

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

.dimension-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.dim-letter {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(124, 106, 239, 0.25);
}

.dim-vs {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: lowercase;
}

.dimension-card h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.dimension-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.dimension-card p strong {
    color: var(--primary);
    font-weight: 600;
}

/* Types Overview */
.types-overview {
    background: linear-gradient(135deg, var(--primary-glow) 0%, rgba(196, 181, 253, 0.15) 100%);
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
}

.types-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 16px;
}

.types-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.types-label {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.types-overview p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
}

/* About MBTI Mobile Responsive */
@media (max-width: 640px) {
    .about-mbti {
        margin-top: 48px;
        padding: 32px 0;
    }

    .about-header h2 {
        font-size: 1.6rem;
    }

    .about-intro {
        font-size: 0.95rem;
    }

    .dimensions-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dimension-card {
        padding: 24px 20px;
    }

    .dim-letter {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .dimension-card h3 {
        font-size: 0.95rem;
    }

    .dimension-card p {
        font-size: 0.85rem;
    }

    .types-overview {
        padding: 24px 20px;
    }

    .types-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
    background: linear-gradient(180deg, #ebe7e0 0%, #e2ddd4 100%);
    border-top: 1px solid var(--border-soft);
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.footer-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.footer-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-style: italic;
}

.footer-links h4,
.footer-disclaimer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-normal);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-disclaimer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-disclaimer p + p {
    margin-top: 12px;
}

.footer-disclaimer-en {
    font-size: 0.8rem !important;
    font-style: italic;
    opacity: 0.85;
    padding-top: 10px;
    border-top: 1px solid var(--border-soft);
    margin-top: 12px;
}

.footer-bottom {
    background: rgba(124, 106, 239, 0.08);
    border-top: 1px solid var(--border-soft);
    padding: 20px 24px;
    text-align: center;
}

.footer-copyright {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.footer-love {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Footer Mobile Responsive */
@media (max-width: 640px) {
    .site-footer {
        margin-top: 48px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 20px 24px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-logo {
        font-size: 1.6rem;
    }

    .footer-links ul {
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-disclaimer p {
        font-size: 0.8rem;
    }

    .footer-bottom {
        padding: 16px 20px;
    }

    .footer-copyright {
        font-size: 0.8rem;
    }

    .footer-love {
        font-size: 0.75rem;
    }
}

@media (max-width: 400px) {
    .footer-links ul {
        flex-direction: column;
        gap: 12px;
    }
}

/* ========================================
   Loading Overlay
   ======================================== */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 56, 82, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-content {
    text-align: center;
    padding: 40px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-elevated);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border-soft);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 0.8s linear infinite;
}

.loading-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========================================
   Confirmation Modal
   ======================================== */

.confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 56, 82, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
    padding: 24px;
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-elevated);
    animation: scaleIn 0.3s ease;
}

.confirm-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-lavender) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
    box-shadow: var(--shadow-medium);
}

.confirm-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-actions .btn {
    flex: 1;
    max-width: 150px;
    padding: 14px 24px;
}

/* ========================================
   Saved Result Banner
   ======================================== */

.saved-result-banner {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-medium);
    border: 2px solid var(--primary-light);
    animation: fadeSlideIn 0.4s ease;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.banner-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 106, 239, 0.25);
}

.banner-text {
    flex: 1;
    text-align: left;
}

.banner-title {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.banner-title strong {
    color: var(--primary);
    font-weight: 700;
}

.banner-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.banner-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-view-result {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: none;
    box-shadow: 0 4px 12px rgba(124, 106, 239, 0.25);
}

.btn-view-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 106, 239, 0.35);
}

.btn-retake {
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid var(--border-soft);
    box-shadow: var(--shadow-soft);
}

.btn-retake:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: var(--primary-glow);
}

/* Saved Result Banner Mobile Responsive */
@media (max-width: 640px) {
    .saved-result-banner {
        padding: 20px;
    }

    .banner-content {
        flex-direction: column;
        text-align: center;
    }

    .banner-text {
        text-align: center;
    }

    .banner-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

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

    .btn-view-result,
    .btn-retake {
        width: 100%;
        padding: 14px 20px;
    }
}

/* Confirmation Modal Mobile Responsive */
@media (max-width: 640px) {
    .confirm-modal-content {
        padding: 32px 24px;
        margin: 16px;
    }

    .confirm-icon {
        width: 64px;
        height: 64px;
        font-size: 2rem;
    }

    .confirm-title {
        font-size: 1.2rem;
    }

    .confirm-message {
        font-size: 0.95rem;
    }

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

    .confirm-actions .btn {
        max-width: none;
        width: 100%;
    }
}
