/* Biology Banks - Premium CSS (Arabic RTL) */
:root {
     --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
     --primary-color: #10b981;
     --primary-dark: #059669;
     --secondary-color: #0d9488;
     --accent-blue: #0891b2;
     --accent-purple: #7c3aed;
     --accent-pink: #ec4899;
     --accent-cyan: #06b6d4;
     --accent-green: #10b981;
     --accent-orange: #f59e0b;
     --success: #10b981;
     --success-light: rgba(16, 185, 129, 0.15);
     --error: #ef4444;
     --error-light: rgba(239, 68, 68, 0.15);
     --warning: #f59e0b;
     --warning-light: rgba(245, 158, 11, 0.15);
     --white: #ffffff;
     --gray-50: #f9fafb;
     --gray-100: #f3f4f6;
     --gray-200: #e5e7eb;
     --gray-300: #d1d5db;
     --gray-400: #9ca3af;
     --gray-500: #6b7280;
     --gray-600: #4b5563;
     --gray-700: #374151;
     --gray-800: #1f2937;
     --gray-900: #111827;
     --glass-bg: rgba(255, 255, 255, 0.9);
     --glass-border: rgba(255, 255, 255, 0.3);
     --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
     --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
     --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
     --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
     --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
     --font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
     --transition-fast: 0.08s ease-out;
     --transition-base: 0.12s ease-out;
     --transition-slow: 0.2s ease-out;
     --radius-sm: 8px;
     --radius-md: 12px;
     --radius-lg: 16px;
     --radius-xl: 24px;
     --radius-full: 9999px;
}

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

html {
     scroll-behavior: smooth;
}

body {
     font-family: var(--font-family);
     background: var(--primary-gradient);
     min-height: 100vh;
     color: var(--gray-800);
     line-height: 1.7;
     overflow-x: hidden;
     -webkit-font-smoothing: antialiased;
}

.animated-bg {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     pointer-events: none;
     z-index: 0;
     overflow: hidden;
}

.floating-shape {
     position: absolute;
     border-radius: 50%;
     opacity: 0.3;
     animation: float 20s infinite ease-in-out;
}

.shape-1 {
     width: 400px;
     height: 400px;
     background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
     top: -100px;
     right: -100px;
}

.shape-2 {
     width: 300px;
     height: 300px;
     background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
     top: 50%;
     left: -50px;
     animation-delay: -5s;
}

.shape-3 {
     width: 350px;
     height: 350px;
     background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, transparent 70%);
     bottom: -100px;
     right: 30%;
     animation-delay: -10s;
}

@keyframes float {

     0%,
     100% {
          transform: translate(0, 0);
     }

     50% {
          transform: translate(0, -100px);
     }
}

@keyframes fadeIn {
     from {
          opacity: 0;
     }

     to {
          opacity: 1;
     }
}

@keyframes slideUp {
     from {
          opacity: 0;
          transform: translateY(30px);
     }

     to {
          opacity: 1;
          transform: translateY(0);
     }
}

@keyframes slideIn {
     from {
          opacity: 0;
          transform: translateX(-20px);
     }

     to {
          opacity: 1;
          transform: translateX(0);
     }
}

@keyframes pulse {

     0%,
     100% {
          transform: scale(1);
     }

     50% {
          transform: scale(1.05);
     }
}

@keyframes spin {
     from {
          transform: rotate(0deg);
     }

     to {
          transform: rotate(360deg);
     }
}

.animate-fade-in {
     animation: fadeIn 0.2s ease-out forwards;
}

.animate-slide-up {
     animation: slideUp 0.2s ease-out forwards;
     opacity: 0;
}

.app-container {
     position: relative;
     z-index: 1;
     min-height: 100vh;
     padding: 20px;
}

.glass-card {
     background: var(--glass-bg);
     backdrop-filter: blur(20px);
     -webkit-backdrop-filter: blur(20px);
     border: 1px solid var(--glass-border);
     border-radius: var(--radius-xl);
     box-shadow: var(--glass-shadow);
}

.registration-section {
     min-height: 100vh;
     display: flex;
     align-items: center;
     justify-content: center;
     padding: 20px;
}

.registration-card {
     max-width: 450px;
     width: 100%;
     overflow: hidden;
}

.card-header {
     padding: 40px 30px;
     text-align: center;
     background: var(--primary-gradient);
     position: relative;
}

.logo-icon {
     font-size: 4rem;
     margin-bottom: 15px;
     display: block;
     animation: pulse 2s infinite ease-in-out;
}

.header-title {
     font-size: 2rem;
     font-weight: 800;
     color: var(--white);
     margin-bottom: 8px;
}

.header-subtitle {
     color: rgba(255, 255, 255, 0.9);
     font-size: 1rem;
     font-weight: 600;
     margin-bottom: 5px;
}

.header-desc {
     color: rgba(255, 255, 255, 0.75);
     font-size: 0.9rem;
}

.card-body {
     padding: 35px 30px;
}

.registration-form {
     display: flex;
     flex-direction: column;
     gap: 24px;
}

.form-group {
     display: flex;
     flex-direction: column;
     gap: 8px;
}

.form-label {
     font-weight: 600;
     color: var(--gray-700);
     font-size: 0.95rem;
     display: flex;
     align-items: center;
     gap: 8px;
}

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

.form-input {
     padding: 16px 20px;
     border: 2px solid var(--gray-200);
     border-radius: var(--radius-md);
     font-size: 1rem;
     font-family: var(--font-family);
     transition: all var(--transition-base);
     background: var(--white);
}

.form-input:focus {
     outline: none;
     border-color: var(--primary-color);
     box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

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

.btn-primary {
     background: var(--primary-gradient);
     color: var(--white);
     box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
     background: var(--white);
     color: var(--gray-700);
     border: 2px solid var(--gray-200);
}

.btn-secondary:hover {
     background: var(--gray-50);
     border-color: var(--gray-300);
     transform: translateY(-2px);
}

.btn-glow {
     animation: pulse 2s infinite ease-in-out;
}

.btn-glow:hover {
     animation: none;
}

.btn-icon {
     font-size: 1.1rem;
     transition: transform var(--transition-base);
}

.btn:hover .btn-icon {
     transform: translateX(-3px);
}

.btn-nav {
     background: var(--white);
     color: var(--gray-700);
     border: 2px solid var(--gray-200);
     padding: 12px 20px;
}

.btn-nav:hover {
     background: var(--gray-50);
     border-color: var(--primary-color);
     color: var(--primary-color);
}

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

.btn-finish {
     background: linear-gradient(135deg, var(--accent-blue) 0%, #0284c7 100%);
     color: var(--white);
     box-shadow: 0 4px 15px rgba(8, 145, 178, 0.4);
     display: none;
}

.btn-finish:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(8, 145, 178, 0.5);
}

.btn-bank {
     background: var(--primary-gradient);
     color: var(--white);
     width: 100%;
     margin-top: 20px;
     padding: 14px 24px;
}

.btn-bank:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.btn-arrow {
     transition: transform var(--transition-base);
}

.btn-bank:hover .btn-arrow {
     transform: translateX(-5px);
}

.btn-home {
     background: rgba(255, 255, 255, 0.2);
     color: var(--white);
     border: none;
     width: 44px;
     height: 44px;
     padding: 0;
     border-radius: 50%;
     font-size: 1.2rem;
}

.btn-home:hover {
     background: rgba(255, 255, 255, 0.3);
}

.bank-selection-section {
     padding: 40px 20px;
     max-width: 1200px;
     margin: 0 auto;
}

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

.welcome-avatar {
     font-size: 4rem;
     margin-bottom: 15px;
     animation: pulse 2s infinite ease-in-out;
}

.welcome-title {
     font-size: 2.5rem;
     font-weight: 800;
     color: var(--white);
     margin-bottom: 10px;
}

.highlight-text {
     background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
}

.welcome-subtitle {
     color: rgba(255, 255, 255, 0.85);
     font-size: 1.15rem;
}

.progress-overview {
     margin-bottom: 40px;
     padding: 25px;
}

.section-title {
     font-size: 1.2rem;
     font-weight: 700;
     color: var(--gray-800);
     margin-bottom: 20px;
     display: flex;
     align-items: center;
     gap: 10px;
}

.progress-stats {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 20px;
}

.progress-stat {
     text-align: center;
     padding: 20px;
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
     border-radius: var(--radius-lg);
     transition: all var(--transition-base);
}

.progress-stat:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-md);
}

.progress-stat .stat-value {
     display: block;
     font-size: 2rem;
     font-weight: 800;
     color: var(--primary-color);
     margin-bottom: 5px;
}

.progress-stat .stat-label {
     font-size: 0.9rem;
     color: var(--gray-600);
     font-weight: 500;
}

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

.bank-card {
     position: relative;
     padding: 0;
     cursor: pointer;
     transition: all var(--transition-base);
     overflow: hidden;
}

.bank-card:hover {
     transform: translateY(-10px);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.bank-card-glow {
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 5px;
     opacity: 0.8;
}

.bank-1-glow {
     background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
}

.bank-2-glow {
     background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.bank-3-glow {
     background: linear-gradient(90deg, var(--accent-orange), var(--accent-pink));
}

.bank-card .bank-header {
     padding: 25px 25px 15px;
     display: flex;
     align-items: center;
     gap: 15px;
}

.bank-icon {
     font-size: 2.5rem;
}

.bank-number {
     font-size: 0.85rem;
     font-weight: 600;
     color: var(--gray-500);
     text-transform: uppercase;
     letter-spacing: 1px;
}

.bank-title {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--gray-800);
     padding: 0 25px;
     margin-bottom: 15px;
}

.bank-info {
     display: flex;
     gap: 15px;
     padding: 0 25px;
     margin-bottom: 15px;
     flex-wrap: wrap;
}

.info-item {
     display: flex;
     align-items: center;
     gap: 6px;
     font-size: 0.9rem;
     color: var(--gray-600);
     background: var(--gray-100);
     padding: 8px 14px;
     border-radius: var(--radius-full);
}

.info-icon {
     font-size: 1rem;
}

.bank-topics {
     display: flex;
     gap: 8px;
     flex-wrap: wrap;
     padding: 0 25px;
}

.topic-tag {
     font-size: 0.8rem;
     font-weight: 500;
     color: var(--primary-color);
     background: rgba(16, 185, 129, 0.1);
     padding: 6px 12px;
     border-radius: var(--radius-full);
}

.bank-card .btn-bank {
     margin: 25px;
     margin-top: 20px;
}

.app-footer {
     text-align: center;
     padding: 30px 20px;
     color: rgba(255, 255, 255, 0.7);
     font-size: 0.9rem;
}

.question-page {
     padding: 20px;
}

.question-container {
     max-width: 900px;
     margin: 0 auto;
     overflow: hidden;
}

.question-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 20px 25px;
     background: var(--primary-gradient);
     flex-wrap: wrap;
     gap: 15px;
}

.header-left {
     display: flex;
     align-items: center;
     gap: 15px;
}

.user-info {
     display: flex;
     flex-direction: column;
}

.user-name {
     font-size: 1.1rem;
     font-weight: 600;
     color: var(--white);
}

.bank-indicator {
     font-size: 0.85rem;
     color: rgba(255, 255, 255, 0.8);
}

.progress-section {
     display: flex;
     align-items: center;
     gap: 20px;
     flex: 1;
     justify-content: flex-end;
}

.progress-ring-container {
     position: relative;
     display: flex;
     align-items: center;
     justify-content: center;
}

.progress-ring {
     transform: rotate(-90deg);
}

.progress-ring-bg {
     stroke: rgba(255, 255, 255, 0.2);
}

.progress-ring-fill {
     stroke: var(--white);
     stroke-linecap: round;
     stroke-dasharray: 125.6;
     stroke-dashoffset: 125.6;
     transition: stroke-dashoffset var(--transition-base);
}

.progress-text {
     position: absolute;
     font-size: 0.7rem;
     font-weight: 700;
     color: var(--white);
}

.progress-bar-container {
     display: none;
}

.question-content {
     padding: 30px;
     min-height: 300px;
}

.loading-spinner {
     display: flex;
     flex-direction: column;
     align-items: center;
     justify-content: center;
     padding: 60px;
     color: var(--gray-500);
}

.spinner {
     width: 40px;
     height: 40px;
     border: 3px solid var(--gray-200);
     border-top-color: var(--primary-color);
     border-radius: 50%;
     animation: spin 1s linear infinite;
     margin-bottom: 15px;
}

.question-card {
     animation: slideIn 0.15s ease-out;
}

.question-meta {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 20px;
     flex-wrap: wrap;
}

.question-number-badge {
     background: var(--primary-gradient);
     color: var(--white);
     padding: 8px 18px;
     border-radius: var(--radius-full);
     font-weight: 600;
     font-size: 0.9rem;
}

.question-topic-badge {
     background: var(--gray-100);
     color: var(--gray-600);
     padding: 8px 14px;
     border-radius: var(--radius-full);
     font-size: 0.85rem;
     font-weight: 500;
}

.question-text {
     font-size: 1.25rem;
     line-height: 1.8;
     color: var(--gray-800);
     margin-bottom: 25px;
     padding: 20px;
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 150, 105, 0.05) 100%);
     border-radius: var(--radius-lg);
     border-right: 4px solid var(--primary-color);
}

.options-container {
     display: grid;
     gap: 12px;
}

.option-btn {
     display: flex;
     align-items: center;
     background: var(--white);
     border: 2px solid var(--gray-200);
     padding: 18px 20px;
     border-radius: var(--radius-md);
     text-align: right;
     cursor: pointer;
     transition: all var(--transition-base);
     font-size: 1.05rem;
     font-family: var(--font-family);
}

.option-btn:hover {
     border-color: var(--primary-color);
     background: rgba(16, 185, 129, 0.03);
     transform: translateX(-5px);
}

.option-btn.selected {
     border-color: var(--primary-color);
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.option-btn.correct {
     border-color: var(--success);
     background: var(--success-light);
}

.option-btn.correct .option-letter {
     background: var(--success);
}

.option-btn.incorrect {
     border-color: var(--error);
     background: var(--error-light);
}

.option-btn.incorrect .option-letter {
     background: var(--error);
}

.option-letter {
     display: flex;
     align-items: center;
     justify-content: center;
     width: 36px;
     height: 36px;
     background: var(--primary-gradient);
     color: var(--white);
     border-radius: 50%;
     margin-left: 15px;
     font-weight: 600;
     flex-shrink: 0;
     transition: all var(--transition-base);
}

.answer-feedback {
     margin: 0 30px 20px;
     padding: 20px;
     animation: slideUp 0.15s ease-out;
}

.answer-feedback.correct {
     background: var(--success-light);
     border: 1px solid rgba(16, 185, 129, 0.3);
}

.answer-feedback.incorrect {
     background: var(--error-light);
     border: 1px solid rgba(239, 68, 68, 0.3);
}

.feedback-header {
     display: flex;
     align-items: center;
     gap: 12px;
     margin-bottom: 15px;
}

.feedback-icon {
     width: 40px;
     height: 40px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     font-size: 1.2rem;
     font-weight: 700;
}

.answer-feedback.correct .feedback-icon {
     background: var(--success);
     color: var(--white);
}

.answer-feedback.incorrect .feedback-icon {
     background: var(--error);
     color: var(--white);
}

.feedback-title {
     font-size: 1.2rem;
     font-weight: 700;
}

.answer-feedback.correct .feedback-title {
     color: var(--success);
}

.answer-feedback.incorrect .feedback-title {
     color: var(--error);
}

.feedback-body {
     display: flex;
     flex-direction: column;
     gap: 12px;
}

.feedback-row {
     display: flex;
     gap: 10px;
     font-size: 0.95rem;
}

.feedback-label {
     color: var(--gray-500);
     min-width: 110px;
}

.feedback-value {
     font-weight: 500;
     color: var(--gray-700);
}

.feedback-value.correct {
     color: var(--success);
}

.explanation-box {
     display: flex;
     gap: 12px;
     padding: 15px;
     background: var(--white);
     border-radius: var(--radius-md);
     margin-top: 10px;
}

.explanation-icon {
     font-size: 1.5rem;
     flex-shrink: 0;
}

.explanation-content {
     font-size: 0.95rem;
     line-height: 1.6;
}

.explanation-content strong {
     color: var(--primary-color);
     display: block;
     margin-bottom: 5px;
}

.explanation-content p {
     color: var(--gray-600);
     margin: 0;
}

.question-footer {
     background: var(--gray-50);
     padding: 20px 25px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     flex-wrap: wrap;
     gap: 15px;
}

.nav-buttons {
     display: flex;
     gap: 10px;
}

.results-page {
     padding: 20px;
}

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

.results-header {
     background: var(--primary-gradient);
     padding: 40px 30px;
     text-align: center;
     color: var(--white);
}

.results-icon {
     font-size: 4rem;
     margin-bottom: 15px;
     animation: pulse 2s infinite ease-in-out;
}

.results-header h1 {
     font-size: 2.2rem;
     font-weight: 800;
     margin-bottom: 10px;
}

.user-greeting {
     font-size: 1.1rem;
     opacity: 0.9;
}

.results-main {
     padding: 40px 30px;
}

.score-display {
     text-align: center;
     margin-bottom: 40px;
}

.score-circle {
     position: relative;
     width: 180px;
     height: 180px;
     margin: 0 auto 25px;
}

.score-ring {
     transform: rotate(-90deg);
}

.score-ring-bg {
     stroke: var(--gray-200);
}

.score-ring-fill {
     stroke-linecap: round;
     stroke-dasharray: 490;
     stroke-dashoffset: 490;
     transition: stroke-dashoffset 1.5s ease;
}

.score-inner {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     display: flex;
     align-items: baseline;
}

.score-number {
     font-size: 3.5rem;
     font-weight: 800;
     background: var(--primary-gradient);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
}

.score-percent {
     font-size: 1.5rem;
     font-weight: 600;
     color: var(--gray-400);
}

.score-message h2 {
     font-size: 1.5rem;
     color: var(--gray-800);
     margin-bottom: 8px;
}

.score-message p {
     color: var(--gray-500);
     font-size: 1rem;
}

.stats-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
     gap: 15px;
     margin-bottom: 30px;
}

.stat-card {
     padding: 25px 20px;
     border-radius: var(--radius-lg);
     text-align: center;
     transition: all var(--transition-base);
}

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

.correct-card {
     background: var(--success-light);
}

.incorrect-card {
     background: var(--error-light);
}

.skipped-card {
     background: var(--warning-light);
}

.time-card {
     background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
}

.stat-card .stat-icon {
     font-size: 2rem;
     display: block;
     margin-bottom: 10px;
}

.stat-card .stat-value {
     font-size: 2rem;
     font-weight: 800;
     color: var(--gray-800);
     display: block;
     margin-bottom: 5px;
}

.stat-card .stat-label {
     font-size: 0.85rem;
     color: var(--gray-500);
     font-weight: 500;
}

.bank-scores {
     padding: 25px;
     margin-bottom: 30px;
}

.bank-scores-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 15px;
}

.bank-score-item {
     display: flex;
     flex-direction: column;
     align-items: center;
     text-align: center;
     padding: 20px;
     background: var(--gray-50);
     border-radius: var(--radius-lg);
     transition: all var(--transition-base);
}

.bank-score-item:hover {
     transform: translateY(-3px);
     box-shadow: var(--shadow-md);
}

.bank-score-icon {
     font-size: 2rem;
     margin-bottom: 10px;
}

.bank-name {
     font-size: 0.9rem;
     color: var(--gray-500);
     margin-bottom: 8px;
}

.bank-score {
     font-size: 1.5rem;
     font-weight: 700;
     color: var(--primary-color);
}

.answers-review {
     margin-bottom: 30px;
}

.answers-container {
     max-height: 500px;
     overflow-y: auto;
     padding-left: 10px;
}

.answers-container::-webkit-scrollbar {
     width: 6px;
}

.answers-container::-webkit-scrollbar-track {
     background: var(--gray-100);
     border-radius: 3px;
}

.answers-container::-webkit-scrollbar-thumb {
     background: var(--gray-300);
     border-radius: 3px;
}

.answer-item {
     background: var(--white);
     border: 2px solid var(--gray-200);
     padding: 20px;
     border-radius: var(--radius-md);
     margin-bottom: 12px;
     transition: all var(--transition-base);
}

.answer-item:hover {
     box-shadow: var(--shadow-md);
}

.answer-item.correct {
     border-color: var(--success);
     background: var(--success-light);
}

.answer-item.incorrect {
     border-color: var(--error);
     background: var(--error-light);
}

.answer-item.skipped {
     border-color: var(--warning);
     background: var(--warning-light);
}

.answer-header {
     display: flex;
     justify-content: space-between;
     align-items: flex-start;
     margin-bottom: 12px;
     gap: 15px;
}

.answer-question {
     font-weight: 500;
     color: var(--gray-700);
     line-height: 1.5;
     flex: 1;
}

.answer-question strong {
     color: var(--primary-color);
}

.answer-status {
     display: inline-flex;
     align-items: center;
     gap: 5px;
     padding: 5px 12px;
     border-radius: var(--radius-full);
     font-size: 0.8rem;
     font-weight: 600;
     flex-shrink: 0;
}

.answer-status.correct {
     background: var(--success);
     color: var(--white);
}

.answer-status.incorrect {
     background: var(--error);
     color: var(--white);
}

.answer-status.skipped {
     background: var(--warning);
     color: var(--white);
}

.answer-details {
     font-size: 0.9rem;
     color: var(--gray-600);
     line-height: 1.6;
}

.answer-details>div {
     margin-bottom: 5px;
}

.answer-details .explanation {
     margin-top: 10px;
     padding: 12px;
     background: rgba(16, 185, 129, 0.05);
     border-radius: var(--radius-sm);
     border-right: 3px solid var(--primary-color);
}

.answer-details .explanation strong {
     color: var(--primary-color);
}

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

.results-footer {
     text-align: center;
     padding: 20px;
     border-top: 1px solid var(--gray-200);
     color: var(--gray-500);
     font-size: 0.9rem;
}

@media (max-width: 768px) {
     .app-container {
          padding: 15px;
     }

     .welcome-title {
          font-size: 1.8rem;
     }

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

     .progress-stats {
          grid-template-columns: 1fr;
          gap: 10px;
     }

     .progress-stat {
          padding: 15px;
     }

     .progress-stat .stat-value {
          font-size: 1.5rem;
     }

     .question-header {
          flex-direction: column;
          align-items: stretch;
     }

     .header-left {
          justify-content: space-between;
     }

     .progress-section {
          justify-content: center;
     }

     .progress-bar-container {
          display: block;
          flex: 1;
     }

     .progress-bar {
          height: 8px;
          background: rgba(255, 255, 255, 0.2);
          border-radius: var(--radius-full);
          overflow: hidden;
     }

     .progress-fill {
          height: 100%;
          background: var(--white);
          border-radius: var(--radius-full);
          transition: width var(--transition-base);
     }

     .progress-label {
          color: rgba(255, 255, 255, 0.8);
          font-size: 0.85rem;
          margin-top: 5px;
          display: block;
          text-align: center;
     }

     .question-content {
          padding: 20px;
     }

     .question-text {
          font-size: 1.1rem;
          padding: 15px;
     }

     .option-btn {
          padding: 15px;
          font-size: 1rem;
     }

     .option-letter {
          width: 32px;
          height: 32px;
          margin-left: 12px;
     }

     .answer-feedback {
          margin: 0 15px 15px;
          padding: 15px;
     }

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

     .nav-buttons {
          width: 100%;
          flex-direction: column;
     }

     .btn-nav,
     .btn-finish {
          width: 100%;
     }

     .stats-grid {
          grid-template-columns: repeat(2, 1fr);
     }

     .bank-scores-grid {
          grid-template-columns: 1fr;
     }

     .score-circle {
          width: 150px;
          height: 150px;
     }

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

     .actions {
          flex-direction: column;
     }

     .actions .btn {
          width: 100%;
     }
}

@media (max-width: 480px) {
     .header-title {
          font-size: 1.5rem;
     }

     .logo-icon {
          font-size: 3rem;
     }

     .card-header {
          padding: 30px 20px;
     }

     .card-body {
          padding: 25px 20px;
     }

     .bank-title {
          font-size: 1.3rem;
     }

     .progress-ring-container {
          display: none;
     }

     .progress-bar-container {
          display: block;
     }

     .results-header {
          padding: 30px 20px;
     }

     .results-main {
          padding: 25px 20px;
     }

     .results-header h1 {
          font-size: 1.8rem;
     }
}

@media (min-width: 1200px) {
     .banks-grid {
          grid-template-columns: repeat(3, 1fr);
     }

     .stats-grid {
          grid-template-columns: repeat(4, 1fr);
     }
}
/* ============================================
   INLINE NAME ENTRY STYLES
   ============================================ */
.inline-registration {
     padding: 20px 25px;
     margin-bottom: 25px;
     text-align: center;
}

.name-entry {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 15px;
}

.name-label {
     font-size: 1.5rem;
     font-weight: 600;
     color: var(--gray-700);
     display: flex;
     align-items: center;
     gap: 8px;
     flex-wrap: wrap;
     justify-content: center;
}

.label-icon {
     font-size: 1.8rem;
     animation: wave 2s infinite;
}

@keyframes wave {
     0%, 100% { transform: rotate(0deg); }
     25% { transform: rotate(20deg); }
     75% { transform: rotate(-10deg); }
}

.highlight-name {
     background: var(--primary-gradient);
     -webkit-background-clip: text;
     -webkit-text-fill-color: transparent;
     background-clip: text;
     font-weight: 800;
     font-size: 1.6rem;
     transition: all var(--transition-base);
}

.highlight-name.name-updated {
     transform: scale(1.1);
}

.name-input-group {
     display: flex;
     gap: 10px;
     max-width: 350px;
     width: 100%;
}

.name-input {
     flex: 1;
     padding: 12px 18px;
     border: 2px solid var(--gray-200);
     border-radius: var(--radius-full);
     font-size: 1rem;
     font-family: var(--font-family);
     transition: all var(--transition-base);
     background: var(--white);
     text-align: center;
}

.name-input:focus {
     outline: none;
     border-color: var(--primary-color);
     box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.name-input.input-error {
     border-color: var(--error);
     animation: shake 0.3s ease;
}

@keyframes shake {
     0%, 100% { transform: translateX(0); }
     25% { transform: translateX(-5px); }
     75% { transform: translateX(5px); }
}

.btn-save {
     width: 48px;
     height: 48px;
     padding: 0;
     border-radius: 50%;
     background: var(--primary-gradient);
     color: var(--white);
     border: none;
     font-size: 1.2rem;
     cursor: pointer;
     transition: all var(--transition-base);
     display: flex;
     align-items: center;
     justify-content: center;
}

.btn-save:hover {
     transform: scale(1.1);
     box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-save.btn-success {
     background: var(--success);
     animation: pulse 0.3s ease;
}

@media (max-width: 480px) {
     .name-label {
          font-size: 1.2rem;
     }
     .highlight-name {
          font-size: 1.3rem;
     }
     .name-input-group {
          flex-direction: column;
     }
     .btn-save {
          width: 100%;
          border-radius: var(--radius-full);
          height: 44px;
     }
}
