/* ----------------------------------------------------
   Ltutor — GLOBAL DESIGN SYSTEM & VARIABLES
   ---------------------------------------------------- */
:root {
    --bg-base: #080914;
    --bg-card: rgba(18, 20, 38, 0.5);
    --border-light: rgba(255, 255, 255, 0.07);
    --border-glow: rgba(124, 77, 255, 0.3);
    
    /* Core Harmonies (HSL curated values) */
    --color-primary: #8a2be2;
    --color-primary-glow: rgba(138, 43, 226, 0.4);
    --color-accent: #00f2fe;
    --color-accent-glow: rgba(0, 242, 254, 0.3);
    
    --color-success: #00e676;
    --color-success-bg: rgba(0, 230, 118, 0.1);
    --color-error: #ff1744;
    --color-error-bg: rgba(255, 23, 68, 0.1);
    --color-info: #2979ff;
    --color-info-bg: rgba(41, 121, 255, 0.1);
    --color-warning: #ffd600;
    --color-warning-bg: rgba(255, 214, 0, 0.1);
    
    --text-main: #f5f6fa;
    --text-muted: #8f92a1;
    --text-highlight: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ----------------------------------------------------
   ANIMATED GLOWING BACKGROUND (WOW Factor)
   ---------------------------------------------------- */
.bg-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.45;
    mix-blend-mode: screen;
    animation: float-slow 20s infinite alternate ease-in-out;
}

.sphere-1 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-primary) 0%, rgba(0,0,0,0) 70%);
    top: -5%;
    left: -10%;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-accent) 0%, rgba(0,0,0,0) 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #e040fb 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, -40px) scale(1.1); }
    100% { transform: translate(-30px, 60px) scale(0.95); }
}

/* ----------------------------------------------------
   LAYOUTS AND CONTAINERS
   ---------------------------------------------------- */
.app-container {
    width: 100%;
    height: 100%;
    max-width: 480px; /* Looks beautiful on mobile screens */
    background: rgba(10, 11, 22, 0.7);
    border: 1px solid var(--border-light);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-light);
    border-radius: 24px;
}

.active-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
}

.hidden-screen {
    display: none !important;
}

/* ----------------------------------------------------
   ONBOARDING SCREEN
   ---------------------------------------------------- */
.hero-section {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 24px;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.logo-icon {
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--color-accent));
    animation: pulse-logo 2s infinite ease-in-out;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--text-highlight) 30%, #a285ff 60%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 320px;
    margin: 0 auto;
}

.setup-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.setup-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Grid Selector System */
.grid-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.grid-selector.col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.selector-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.selector-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.selector-item.selected {
    background: rgba(138, 43, 226, 0.12);
    border-color: var(--color-primary);
    box-shadow: 0 0 16px var(--color-primary-glow);
}

.selector-item .flag {
    font-size: 1.8rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.selector-item .level-badge {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.5px;
}

.selector-item .label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

.selector-item.selected .label {
    color: var(--text-highlight);
}

/* Primary Premium Button */
.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6200ea 100%);
    border: none;
    border-radius: 18px;
    padding: 16px 24px;
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.4);
}

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

.primary-btn .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.primary-btn:hover .arrow {
    transform: translateX(4px);
}

/* Glow Effect */
.glow-effect {
    position: relative;
    overflow: hidden;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    transform: rotate(25deg);
    animation: shimmer-btn 4s infinite linear;
}

@keyframes shimmer-btn {
    0% { left: -60%; }
    30% { left: 140%; }
    100% { left: 140%; }
}

.footer-links {
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 20px;
    margin-bottom: 10px;
}

.icon-link-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.icon-link-btn:hover {
    color: var(--text-highlight);
    background: rgba(255,255,255,0.03);
}

.icon-svg {
    width: 20px;
    height: 20px;
}

/* ----------------------------------------------------
   ACTIVE SESSION SCREEN
   ---------------------------------------------------- */
#session-screen {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.session-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(11, 12, 23, 0.4);
    z-index: 10;
}

.glass-icon-btn {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.glass-icon-btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    transform: scale(1.05);
}

.session-info {
    text-align: center;
}

.session-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-muted);
}

.status-dot.pulsing {
    background-color: var(--color-accent);
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* ----------------------------------------------------
   VISUALIZER DYNAMIC ORB (State Indicator)
   ---------------------------------------------------- */
.visualizer-container {
    height: 190px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(180deg, rgba(8,9,20,0.4) 0%, rgba(8,9,20,0) 100%);
}

.visualizer-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    transition: var(--transition-smooth);
}

.orb-core {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(25, 27, 56, 0.9) 0%, rgba(11, 12, 23, 0.9) 100%);
    border: 2px solid var(--border-light);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.05), 0 10px 24px rgba(0,0,0,0.4);
    z-index: 10;
    transition: var(--transition-smooth);
}

#orb-emoji {
    font-size: 1.7rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    transition: var(--transition-smooth);
}

/* SVGWaves inside circle */
.radial-wave-svg {
    position: absolute;
    width: 170%;
    height: 170%;
    pointer-events: none;
    z-index: 2;
}

.wave-circle {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1px;
    transform-origin: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

/* States implementation */
.visualizer-circle.idle .ring-1 {
    opacity: 0.15;
    transform: scale(1);
}

.visualizer-circle.listening {
    background: radial-gradient(circle, rgba(0, 242, 254, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
}
.visualizer-circle.listening .orb-core {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}
.visualizer-circle.listening .wave-circle {
    stroke: var(--color-accent);
    opacity: 0.3;
    animation: scale-pulsate 2s infinite linear;
}
.visualizer-circle.listening .ring-2 { animation-delay: 0.5s; }
.visualizer-circle.listening .ring-3 { animation-delay: 1.0s; }
.visualizer-circle.listening .ring-4 { animation-delay: 1.5s; }

.visualizer-circle.thinking .orb-core {
    border-color: #ffd600;
}
.visualizer-circle.thinking .wave-circle {
    stroke: #ffd600;
    opacity: 0.4;
    animation: rotate-orbit 3s infinite linear;
    stroke-dasharray: 20, 10;
}

.visualizer-circle.speaking {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
}
.visualizer-circle.speaking .orb-core {
    border-color: var(--color-primary);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}
.visualizer-circle.speaking .wave-circle {
    stroke: var(--color-primary);
    opacity: 0.45;
    animation: dynamic-burst 1.6s infinite cubic-bezier(0.21, 0.6, 0.35, 1);
}
.visualizer-circle.speaking .ring-2 { animation-delay: 0.4s; }
.visualizer-circle.speaking .ring-3 { animation-delay: 0.8s; }
.visualizer-circle.speaking .ring-4 { animation-delay: 1.2s; }

@keyframes scale-pulsate {
    0% { transform: scale(0.7); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

@keyframes rotate-orbit {
    0% { transform: rotate(0deg) scale(0.9); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(0.9); }
}

@keyframes dynamic-burst {
    0% { transform: scale(0.6); opacity: 0.9; stroke-width: 3px; }
    100% { transform: scale(1.6); opacity: 0; stroke-width: 0.5px; }
}

/* ----------------------------------------------------
   TRANSCRIPT CONTAINER (GORGEOUS TYPOGRAPHY)
   ---------------------------------------------------- */
.transcript-wrapper {
    flex-grow: 1;
    margin: 0 20px 20px 20px;
    padding: 16px 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-radius: 20px;
    border-color: var(--border-light);
    box-shadow: inset 0 4px 20px rgba(0, 0, 0, 0.2);
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.05) transparent;
}

.transcript-wrapper::-webkit-scrollbar {
    width: 4px;
}
.transcript-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
}

/* Intro Text styles */
.welcome-chat-msg {
    text-align: center;
    margin: auto;
    max-width: 300px;
}
.chat-intro-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Chat bubble styling */
.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 90%;
    margin-bottom: 4px;
    animation: fade-bubble 0.3s forwards ease-out;
}

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

.chat-msg.user {
    align-self: flex-end;
}

.chat-msg.assistant {
    align-self: flex-start;
}

.msg-sender {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
    padding-left: 6px;
}

.user .msg-sender {
    color: var(--color-accent);
    align-self: flex-end;
    padding-right: 6px;
}

.assistant .msg-sender {
    color: var(--color-primary);
}

.msg-body {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.user .msg-body {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.2);
    border-bottom-right-radius: 4px;
    color: var(--text-highlight);
}

.assistant .msg-body {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-bottom-left-radius: 4px;
    color: var(--text-main);
}

/* ----------------------------------------------------
   CORRECTION CARDS STYLES (PREMIUM HIGHLIGHTS)
   ---------------------------------------------------- */
.correction-card {
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(18, 19, 36, 0.8);
    margin: 10px 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slide-correction 0.4s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slide-correction {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.correction-header {
    background: linear-gradient(90deg, rgba(138, 43, 226, 0.2) 0%, rgba(0,0,0,0) 100%);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.correction-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #e040fb;
    letter-spacing: 0.5px;
}

.correction-content {
    display: flex;
    flex-direction: column;
}

/* Individual list fields inside correction card */
.c-row {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.c-row:last-child {
    border-bottom: none;
}

.c-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.c-text {
    font-size: 0.95rem;
    line-height: 1.45;
}

/* Red Row (Said) */
.c-said {
    background: var(--color-error-bg);
}
.c-said .c-label {
    color: var(--color-error);
}
.c-said .c-text {
    color: #ffd8dd;
    text-decoration: line-through;
    opacity: 0.85;
}

/* Green Row (Correct) */
.c-correct {
    background: var(--color-success-bg);
}
.c-correct .c-label {
    color: var(--color-success);
}
.c-correct .c-text {
    color: #d1ffd6;
    font-weight: 600;
}

/* Violet Row (Why) */
.c-why {
    background: rgba(138, 43, 226, 0.07);
}
.c-why .c-label {
    color: #d3adf7;
}
.c-why .c-text {
    color: #ebd9ff;
}

/* Blue Row (Practice) */
.c-practice {
    background: var(--color-info-bg);
}
.c-practice .c-label {
    color: var(--color-info);
}
.c-practice .c-text {
    color: #d6e4ff;
    font-style: italic;
}

/* ----------------------------------------------------
   MIC CONTROLS BAR & TRANSITION BUTTONS
   ---------------------------------------------------- */
.mic-controls-bar {
    padding: 16px 20px 24px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--border-light);
    background: rgba(11, 12, 23, 0.5);
    z-index: 10;
}

.mic-btn {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--color-primary) 0%, #6200ea 100%);
    color: white;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(138, 43, 226, 0.4);
    transition: var(--transition-smooth);
}

.mic-btn:hover {
    transform: scale(1.06) translateY(-2px);
    box-shadow: 0 12px 30px rgba(138, 43, 226, 0.5);
}

.mic-btn:active {
    transform: scale(0.96);
}

.mic-btn.active {
    background: linear-gradient(135deg, var(--color-error) 0%, #d50000 100%);
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.4);
}

.mic-icon-container {
    position: relative;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.mic-icon-svg {
    width: 100%;
    height: 100%;
}

.mic-icon-svg.hidden {
    display: none !important;
}

/* Ripple wave around mic */
.mic-ripple {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--color-primary);
    opacity: 0.3;
    z-index: 1;
    transform: scale(1);
    transition: var(--transition-smooth);
}

.mic-btn.active .mic-ripple {
    background: var(--color-error);
    animation: ripple-out 1.2s infinite ease-out;
}

@keyframes ripple-out {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* ----------------------------------------------------
   SETTINGS MODAL & SLIDE UP
   ---------------------------------------------------- */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end; /* Mobile native bottom sheet look */
    z-index: 100;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-container {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    max-height: 85%;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: var(--text-highlight);
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Form fields elements */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

/* Password wrapper input */
.input-password-wrapper {
    position: relative;
    width: 100%;
}

.input-password-wrapper input {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px 44px 14px 16px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
}

.input-password-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(138,43,226,0.2);
}

.visibility-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.help-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.help-text a {
    color: var(--color-accent);
    text-decoration: none;
}

.help-text a:hover {
    text-decoration: underline;
}

/* Custom dropdown styled */
.custom-select {
    width: 100%;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    /* Webkit reset */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%238f92a1' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    transition: var(--transition-smooth);
}

.custom-select:focus {
    border-color: var(--color-primary);
}

/* Custom sliders values */
.range-slider {
    display: flex;
    align-items: center;
    gap: 12px;
}

.range-slider input[type="range"] {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: rgba(255,255,255,0.08);
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-accent-glow);
    transition: var(--transition-smooth);
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

#speech-rate-val {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-accent);
    min-width: 36px;
}

/* Slide Up animations */
.animate-slide-up {
    animation: slide-up 0.35s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
