/* ================================================================
   Gopu - Stylesheet
   Modern, accessible, glass-morphism design
   ================================================================ */

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

:root {
    --bg-dark: #0a0a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.1);
    --bg-glass: rgba(255, 255, 255, 0.08);
    --bg-glass-strong: rgba(255, 255, 255, 0.12);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glass-strong: rgba(255, 255, 255, 0.2);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-muted: #6a6a80;

    --accent-blue: #4285f4;
    --accent-blue-glow: rgba(66, 133, 244, 0.3);
    --accent-green: #34a853;
    --accent-green-glow: rgba(52, 168, 83, 0.3);
    --accent-red: #ea4335;
    --accent-red-glow: rgba(234, 67, 53, 0.3);
    --accent-yellow: #fbbc04;
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.3);

    --gradient-hero: linear-gradient(135deg, #4285f4, #a855f7, #ea4335);
    --gradient-btn: linear-gradient(135deg, #4285f4, #6366f1);
    --gradient-btn-hover: linear-gradient(135deg, #5a9cf5, #818cf8);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow-blue: 0 0 20px var(--accent-blue-glow);
    --shadow-glow-green: 0 0 20px var(--accent-green-glow);
    --shadow-glow-red: 0 0 20px var(--accent-red-glow);
    --shadow-glow-purple: 0 0 20px var(--accent-purple-glow);

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.2s ease;
    --transition-slow: 0.4s ease;
}

/* ── Gender Themes ───────────────────────────────────────────── */
/* Pink theme for girls */
body.theme-pink {
    --bg-dark: #1a0a14;
    --accent-blue: #f472b6;
    --accent-blue-glow: rgba(244, 114, 182, 0.3);
    --accent-purple: #ec4899;
    --accent-purple-glow: rgba(236, 72, 153, 0.3);
    --gradient-hero: linear-gradient(135deg, #ec4899, #f472b6, #fb7185);
    --gradient-btn: linear-gradient(135deg, #ec4899, #f472b6);
    --gradient-btn-hover: linear-gradient(135deg, #f472b6, #fb7185);
}
body.theme-pink .gradient-orb.orb-1 { background: radial-gradient(circle, rgba(236,72,153,0.35), transparent 70%); }
body.theme-pink .gradient-orb.orb-2 { background: radial-gradient(circle, rgba(244,114,182,0.25), transparent 70%); }
body.theme-pink .gradient-orb.orb-3 { background: radial-gradient(circle, rgba(251,113,133,0.2), transparent 70%); }
body.theme-pink .mic-btn.recording { box-shadow: 0 0 30px rgba(236,72,153,0.5); }
body.theme-pink .status-dot.connected { background: #f472b6; box-shadow: 0 0 8px rgba(244,114,182,0.5); }

/* Blue / purple theme for boys (default-like, but more saturated) */
body.theme-blue {
    --bg-dark: #070a1a;
    --accent-blue: #6366f1;
    --accent-blue-glow: rgba(99, 102, 241, 0.3);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    --gradient-hero: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
    --gradient-btn: linear-gradient(135deg, #6366f1, #8b5cf6);
    --gradient-btn-hover: linear-gradient(135deg, #818cf8, #a78bfa);
}
body.theme-blue .gradient-orb.orb-1 { background: radial-gradient(circle, rgba(99,102,241,0.35), transparent 70%); }
body.theme-blue .gradient-orb.orb-2 { background: radial-gradient(circle, rgba(139,92,246,0.25), transparent 70%); }
body.theme-blue .gradient-orb.orb-3 { background: radial-gradient(circle, rgba(167,139,250,0.2), transparent 70%); }
body.theme-blue .mic-btn.recording { box-shadow: 0 0 30px rgba(99,102,241,0.5); }
body.theme-blue .status-dot.connected { background: #818cf8; box-shadow: 0 0 8px rgba(129,140,248,0.5); }

html, body {
    height: 100%;
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Screen Management ───────────────────────────────────────── */
.screen {
    position: fixed;
    inset: 0;
    display: none;
    flex-direction: column;
    z-index: 1;
}
.screen.active {
    display: flex;
}

/* ── Gradient Orbs (Background) ──────────────────────────────── */
.landing-bg, .session-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none !important;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
    pointer-events: none !important;
}

.orb-1 {
    width: 500px; height: 500px;
    background: var(--accent-blue);
    top: -10%; left: -5%;
    animation-delay: 0s;
}
.orb-2 {
    width: 400px; height: 400px;
    background: var(--accent-purple);
    top: 50%; right: -10%;
    animation-delay: -7s;
}
.orb-3 {
    width: 350px; height: 350px;
    background: var(--accent-red);
    bottom: -5%; left: 30%;
    animation-delay: -14s;
    opacity: 0.25;
}

.orb-session-1 {
    width: 600px; height: 600px;
    background: var(--accent-blue);
    top: -20%; right: -10%;
    opacity: 0.15;
}
.orb-session-2 {
    width: 400px; height: 400px;
    background: var(--accent-purple);
    bottom: -10%; left: -5%;
    opacity: 0.12;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* ================================================================
   LANDING SCREEN
   ================================================================ */

.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-icon {
    font-size: 28px;
}
.logo-text {
    font-size: 22px;
    font-weight: 700;
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 32px;
    text-align: center;
    gap: 32px;
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
}

/* ── Subject Grid ────────────────────────────────────────────── */
.subject-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    max-width: 750px;
    width: 100%;
}

.subject-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(12px);
    color: var(--text-primary);
    font-family: var(--font-main);
}

.subject-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-blue);
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-4px);
}

.subject-card:active {
    transform: translateY(-1px);
}

.subject-icon {
    font-size: 32px;
}

.subject-name {
    font-size: 14px;
    font-weight: 600;
}

.subject-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.landing-footer {
    padding: 16px 32px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================================================
   SESSION SCREEN
   ================================================================ */

/* ── Session Header ──────────────────────────────────────────── */
.session-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    z-index: 10;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}
.icon-btn:hover {
    background: var(--bg-glass-strong);
    border-color: var(--border-glass-strong);
}

.session-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.session-subject {
    font-size: 16px;
    font-weight: 600;
}

.session-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent-yellow);
    animation: pulse-dot 2s ease-in-out infinite;
}
.status-dot.connected {
    background: var(--accent-green);
}
.status-dot.error {
    background: var(--accent-red);
    animation: none;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.session-timer {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    padding: 6px 12px;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
}

/* ── Chat Area ───────────────────────────────────────────────── */
.session-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
    margin: 0 auto;
}

/* ── Chat Bubbles ────────────────────────────────────────────── */
.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    line-height: 1.6;
    animation: msg-in 0.3s ease;
    word-wrap: break-word;
}

@keyframes msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg.tutor {
    align-self: flex-start;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-glass);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.chat-msg.student {
    align-self: flex-end;
    background: var(--gradient-btn);
    border-bottom-right-radius: 4px;
    color: #fff;
}

.chat-msg.system {
    align-self: center;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    padding: 8px;
    text-align: center;
}

.chat-msg .msg-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    opacity: 0.7;
}

.chat-msg.tutor .msg-label { color: var(--accent-blue); }
.chat-msg.student .msg-label { color: rgba(255,255,255,0.7); }

/* Image in chat */
.chat-msg img {
    max-width: 100%;
    max-height: 300px;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px 0;
}
.typing-indicator span {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* ── Camera Preview ──────────────────────────────────────────── */
.camera-preview {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 90%);
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    z-index: 20;
    box-shadow: var(--shadow-lg);
}

.camera-preview video {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.camera-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: var(--bg-glass);
}

.capture-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    border: 3px solid white;
    background: var(--accent-blue);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    font-family: var(--font-main);
}
.capture-btn:hover {
    background: #5a9cf5;
    transform: scale(1.05);
}

.icon-btn-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}
.icon-btn-sm:hover {
    background: var(--bg-glass-strong);
}

/* ── Image Preview ───────────────────────────────────────────── */
.image-preview {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 90%);
    background: var(--bg-dark);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    overflow: hidden;
    z-index: 20;
    box-shadow: var(--shadow-lg);
}

.image-preview img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    background: #111;
}

.image-preview-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-glass);
}

.btn-primary {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--gradient-btn);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font-main);
}
.btn-primary:hover {
    background: var(--gradient-btn-hover);
    box-shadow: var(--shadow-glow-blue);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* ── Bottom Controls ─────────────────────────────────────────── */
.session-controls {
    padding: 12px 20px 20px;
    background: var(--bg-glass);
    border-top: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.text-input-area {
    display: flex;
    gap: 8px;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.text-input-area input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-main);
    outline: none;
    transition: all var(--transition);
}
.text-input-area input:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-glow);
}
.text-input-area input::placeholder {
    color: var(--text-muted);
}

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

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 80px;
    font-family: var(--font-main);
}
.action-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glass-strong);
}
.action-btn .material-icons-round {
    font-size: 22px;
}
.action-btn .btn-label {
    font-size: 11px;
    font-weight: 500;
}

/* Microphone button states */
.mic-btn {
    border-color: var(--accent-blue);
}
.mic-btn:hover {
    box-shadow: var(--shadow-glow-blue);
}
.mic-btn.recording {
    background: var(--accent-red);
    border-color: var(--accent-red);
    animation: pulse-mic 1.5s ease-in-out infinite;
    color: white;
}

@keyframes pulse-mic {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-red-glow); }
    50% { box-shadow: 0 0 0 12px transparent; }
}

.end-btn {
    border-color: var(--accent-red);
    color: var(--accent-red);
}
.end-btn:hover {
    background: var(--accent-red);
    color: white;
    box-shadow: var(--shadow-glow-red);
}

/* ── Toast Notifications ─────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.toast {
    padding: 12px 20px;
    background: var(--bg-glass-strong);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 13px;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
    animation: toast-in 0.3s ease, toast-out 0.3s ease forwards;
    animation-delay: 0s, 3s;
    max-width: 350px;
}

.toast.error {
    border-color: var(--accent-red);
    background: rgba(234, 67, 53, 0.15);
}

.toast.success {
    border-color: var(--accent-green);
    background: rgba(52, 168, 83, 0.15);
}

@keyframes toast-in {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes toast-out {
    from { opacity: 1; }
    to { opacity: 0; transform: translateY(-10px); }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-glass-strong);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .landing-header {
        padding: 14px 16px;
    }
    .landing-main {
        padding: 0 16px;
        gap: 24px;
    }
    .subject-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .subject-card {
        padding: 14px 8px;
    }
    .subject-icon {
        font-size: 26px;
    }
    .hero-subtitle {
        font-size: 14px;
    }
    .action-btn {
        min-width: 64px;
        padding: 8px 14px;
    }
    .badge {
        display: none;
    }
    .chat-msg {
        max-width: 92%;
    }
}

/* ── Audio Visualizer ────────────────────────────────────────── */
.audio-visualizer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 24px;
    padding: 0 8px;
}

.audio-visualizer .bar {
    width: 3px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 2px;
    animation: audio-bar 0.8s ease-in-out infinite alternate;
}
.audio-visualizer .bar:nth-child(1) { animation-delay: 0s; }
.audio-visualizer .bar:nth-child(2) { animation-delay: 0.1s; }
.audio-visualizer .bar:nth-child(3) { animation-delay: 0.2s; }
.audio-visualizer .bar:nth-child(4) { animation-delay: 0.3s; }
.audio-visualizer .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes audio-bar {
    from { height: 4px; }
    to { height: 20px; }
}

/* ── Recording Indicator ─────────────────────────────────────── */
.recording-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(234, 67, 53, 0.1);
    border: 1px solid rgba(234, 67, 53, 0.3);
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
}

.recording-dot {
    width: 10px;
    height: 10px;
    background: #ea4335;
    border-radius: 50%;
    animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.recording-status {
    font-size: 0.85rem;
    color: #ea4335;
    font-weight: 500;
}

/* ── Live Speech Bubble ──────────────────────────────────────── */
.chat-msg.student.speech-live {
    border-left: 3px solid var(--accent-blue);
    opacity: 0.85;
}

.chat-msg.student.speech-live .msg-content {
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
}

/* ── Processing / Thinking Indicator ─────────────────────────── */
.processing-msg .typing-indicator {
    padding: 12px 16px;
}

/* ── Sign-In Form ────────────────────────────────────────────── */
.signin-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 40px 20px 20px;
    z-index: 1;
    position: relative;
    overflow-y: auto;
}

.signin-form {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 24px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass-strong);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 12px var(--accent-blue-glow);
}

.form-group select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Gender selector cards */
.gender-selector {
    display: flex;
    gap: 12px;
}

.gender-option {
    flex: 1;
    cursor: pointer;
}

.gender-option input[type="radio"] {
    display: none;
}

.gender-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px 8px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-glass);
    background: var(--bg-glass);
    transition: all var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.gender-emoji {
    font-size: 2rem;
}

.gender-option input:checked + .girl-card {
    border-color: #ec4899;
    background: rgba(236, 72, 153, 0.15);
    color: #f9a8d4;
    box-shadow: 0 0 16px rgba(236, 72, 153, 0.25);
}

.gender-option input:checked + .boy-card {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    box-shadow: 0 0 16px rgba(99, 102, 241, 0.25);
}

.gender-option input:checked + .other-card {
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.15);
    color: #c4b5fd;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.25);
}

.gender-card:hover {
    border-color: var(--border-glass-strong);
    background: var(--bg-glass-strong);
}

/* Start Learning button */
.btn-start-learning {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    margin-top: 8px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--gradient-btn);
    color: white;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-start-learning:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.btn-start-learning:active {
    transform: translateY(0);
}

/* ── Auth Tabs ───────────────────────────────────────────────── */
.auth-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    padding: 4px;
    margin-bottom: 8px;
}

.auth-tab {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.auth-tab.active {
    background: var(--gradient-btn);
    color: white;
    box-shadow: var(--shadow-sm);
}

.auth-tab:not(.active):hover {
    color: var(--text-primary);
    background: var(--bg-glass-strong);
}

/* ── Logout Button ───────────────────────────────────────────── */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1px solid var(--border-glass-strong);
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    backdrop-filter: blur(10px);
}

.btn-logout .material-icons-round {
    font-size: 18px;
}

.btn-logout:hover {
    background: rgba(234, 67, 53, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

/* Welcome greeting on landing page */
.welcome-greeting {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: -8px;
}

.welcome-greeting .user-name {
    color: var(--accent-blue);
    font-weight: 600;
}

/* ── Language Bar (Landing Page) ─────────────────────────────── */
.language-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
}

.lang-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.lang-label .material-icons-round {
    font-size: 18px;
}

.lang-select {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass-strong);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 13px;
    outline: none;
    cursor: pointer;
    transition: border var(--transition), box-shadow var(--transition);
}

.lang-select:focus {
    border-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue-glow);
}

.lang-select option {
    background: #1a1a2e;
    color: var(--text-primary);
}

/* ================================================================
   Review Screen & Performance Report Styles (Separate Cards & Animated)
   ================================================================ */

@keyframes cardEnter {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes pulseLiveDot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.8);
    }
}

@keyframes scoreRingGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.35));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(52, 211, 153, 0.65));
    }
}

.review-screen,
#reviewScreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior-y: contain !important;
    background: radial-gradient(circle at 50% 0%, #151833 0%, var(--bg-dark) 70%) !important;
    z-index: 50 !important;
}

.screen#reviewScreen.active,
#reviewScreen.active {
    display: block !important;
}

body.screen-review-active,
html.screen-review-active {
    overflow-y: auto !important;
}

/* Custom sleek scrollbar for review screen */
#reviewScreen::-webkit-scrollbar {
    width: 9px;
}
#reviewScreen::-webkit-scrollbar-track {
    background: rgba(10, 10, 26, 0.7);
}
#reviewScreen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    border: 2px solid rgba(10, 10, 26, 0.7);
}
#reviewScreen::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.7);
}
#reviewScreen {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.25) rgba(10, 10, 26, 0.7);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    border-bottom: 1px solid var(--border-glass);
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.review-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    margin-left: 12px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pulseLiveDot 1.8s infinite ease-in-out;
}

.review-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-review-outline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass-strong);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
}

.btn-review-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-blue);
    transform: translateY(-1px);
    color: white;
}

.btn-review-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: var(--radius-md);
    background: var(--gradient-btn);
    border: none;
    color: white;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
    transition: all var(--transition);
}

.btn-review-primary:hover {
    background: var(--gradient-btn-hover);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6);
    transform: translateY(-1px);
}

.review-main {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 24px 36px;
    flex: 1;
}

/* Loading State */
.review-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 20px;
    max-width: 520px;
    margin: 0 auto;
}

.review-spinner-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-spinner {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent-blue);
    border-right-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.9s cubic-bezier(0.5, 0.1, 0.5, 0.9) infinite;
}

.spinner-center-icon {
    position: absolute;
    font-size: 26px;
    color: #a5b4fc;
    animation: pulseLiveDot 2s infinite ease-in-out;
}

.review-loading h2 {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff, #c7d2fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.review-loading p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* Staggered Entrance Animation */
.animate-card {
    animation: cardEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Top Hero & Score Card */
.review-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, rgba(30, 32, 60, 0.7), rgba(16, 18, 38, 0.85));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.review-hero-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #818cf8, #c084fc);
}

.review-hero-left {
    flex: 1;
    min-width: 0;
}

.review-meta-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.review-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.review-chip .material-icons-round {
    font-size: 13px;
}

.chip-student {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    color: #c7d2fe;
}

.chip-subject {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: #e9d5ff;
}

.chip-duration {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    color: #bae6fd;
}

.chip-status {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34d399;
    animation: pulseLiveDot 1.5s infinite;
}

.review-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.review-summary {
    font-size: 12.5px;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 680px;
    margin-bottom: 12px;
}

.hero-topics-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hero-topics-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-topics-label .material-icons-round {
    font-size: 14px;
    color: var(--accent-purple);
}

.topics-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.topic-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2.5px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-blue);
}

/* Right Score Meter */
.review-hero-right {
    flex-shrink: 0;
}

.review-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    min-width: 145px;
    text-align: center;
}

.score-circle-outer {
    position: relative;
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.score-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-bg-circle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 7;
}

.score-fg-circle {
    fill: none;
    stroke: url(#scoreGradient);
    stroke: #34d399;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    transition: stroke-dashoffset 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    animation: scoreRingGlow 3s infinite ease-in-out;
}

.score-inner-text {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.score-number {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.score-max {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

.score-badge-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.15);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.35);
    margin-bottom: 3px;
    letter-spacing: 0.2px;
}

.score-label-text {
    font-size: 9.5px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 4 Core Pillars Grid (Separate Distinct Cards) */
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

@media (max-width: 820px) {
    .review-grid {
        grid-template-columns: 1fr;
    }
    .review-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .review-hero-right {
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Individual Distinct Card */
.review-card {
    background: linear-gradient(145deg, rgba(24, 26, 48, 0.75), rgba(16, 17, 34, 0.85));
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.review-card:hover {
    transform: translateY(-3px);
}

/* 1. Strengths Card (Emerald) */
.card-strengths {
    border: 1px solid rgba(16, 185, 129, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(16, 185, 129, 0.05);
}
.card-strengths:hover {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(16, 185, 129, 0.15);
}
.icon-strengths {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.tag-strengths {
    color: #34d399;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

/* 2. Weaknesses Card (Amber) */
.card-weaknesses {
    border: 1px solid rgba(245, 158, 11, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(245, 158, 11, 0.05);
}
.card-weaknesses:hover {
    border-color: rgba(245, 158, 11, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(245, 158, 11, 0.15);
}
.icon-weaknesses {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.tag-weaknesses {
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* 3. Steps Card (Sky Blue) */
.card-steps {
    border: 1px solid rgba(14, 165, 233, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(14, 165, 233, 0.05);
}
.card-steps:hover {
    border-color: rgba(14, 165, 233, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(14, 165, 233, 0.15);
}
.icon-steps {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}
.tag-steps {
    color: #38bdf8;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.25);
}

/* 4. Goals Card (Purple) */
.card-goals {
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 15px rgba(168, 85, 247, 0.05);
}
.card-goals:hover {
    border-color: rgba(168, 85, 247, 0.45);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(168, 85, 247, 0.15);
}
.icon-goals {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}
.tag-goals {
    color: #c084fc;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Card Header */
.card-top-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon .material-icons-round {
    font-size: 20px;
}

.card-heading-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-heading-group h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

.card-subtag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: var(--radius-full);
    display: inline-block;
    width: fit-content;
}

/* Individual Content Rows in Lists */
.review-list, .review-steps-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.review-list li, .review-steps-list li {
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 11px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.review-list li:hover, .review-steps-list li:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateX(2px);
}

/* Custom Bullet Badges */
.list-strengths li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.list-weaknesses li::before {
    content: "!";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

.list-goals li::before {
    content: "★";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Ordered Steps List Counter */
.review-steps-list {
    counter-reset: step-counter;
}

.review-steps-list li {
    counter-increment: step-counter;
}

.review-steps-list li::before {
    content: counter(step-counter);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.22);
    color: #38bdf8;
    font-size: 10px;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Footer Action Bar */
.review-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.btn-print-review {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    padding: 7px 13px;
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-print-review:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    background: var(--bg-glass);
}

.btn-print-review .material-icons-round {
    font-size: 15px;
}

.review-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* End & Review Button highlight */
.end-review-btn {
    min-width: 120px !important;
    background: linear-gradient(135deg, rgba(234, 67, 53, 0.85), rgba(220, 38, 38, 0.95)) !important;
    border-color: rgba(239, 68, 68, 0.5) !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3) !important;
}

.end-review-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.5) !important;
    transform: translateY(-2px);
}

/* Print Styles */
@media print {
    body {
        background: white !important;
        color: black !important;
        overflow: visible !important;
    }
    .landing-bg, .gradient-orb, .review-header-actions, .review-footer-bar {
        display: none !important;
    }
    .review-screen {
        position: static !important;
        background: white !important;
        color: black !important;
    }
    .review-hero-card, .review-card {
        background: #f9fafb !important;
        border: 1px solid #e5e7eb !important;
        color: black !important;
        box-shadow: none !important;
        break-inside: avoid;
    }
    .review-title, .card-heading-group h3, .review-list li, .review-steps-list li {
        color: black !important;
    }
}


