/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Quicksand:wght@400;600;700&family=Cookie&family=Fredoka:wght@400;600&family=Bangers&family=Indie+Flower&display=swap');

/* Font Utilities for Pet Name */
.font-quicksand { font-family: 'Quicksand', sans-serif; }
.font-cookie { font-family: 'Cookie', cursive; letter-spacing: 1px; font-size: 1.2em !important; }
.font-fredoka { font-family: 'Fredoka', sans-serif; letter-spacing: 0.5px; }
.font-bangers { font-family: 'Bangers', system-ui; letter-spacing: 1px; font-weight: normal; font-size: 1.1em !important; }
.font-indie { font-family: 'Indie Flower', cursive; font-weight: bold; }

/* CSS Reset & Variables */
:root {
    --primary: #6C63FF; /* Modern Purple */
    --secondary: #FF6584; /* Soft Red */
    --bg-dark: #2F2F2F;
    --bg-light: #F8F9FA;
    --text-dark: #333;
    --text-light: #fff;
    --card-bg: #ffffff;
    --shadow: 0 10px 20px rgba(0,0,0,0.08);
    --radius: 24px;
    --sidebar-width: 280px;
}

/* Dark Mode styles removed */

* { box-sizing: border-box; }
body { 
    font-family: 'Quicksand', 'Inter', sans-serif; 
    margin: 0; 
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Only apply these to main app, not login page */
body:not(.login-body) {
    height: 100vh;
    height: 100dvh;
    overflow: hidden; /* App-like feel */
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* App Layout Grid */
#app-container {
    display: grid;
    grid-template-rows: 60px 1fr auto; /* Header, Content, Nav */
    height: 100vh;
    height: 100dvh;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 auto;
    background: white;
    position: relative;
}

@media (min-width: 800px) {
    #app-container {
        grid-template-rows: 1fr;
        grid-template-columns: var(--sidebar-width) 1fr; /* Sidebar, Content */
        border-radius: var(--radius);
        margin: 20px auto;
        max-width: 1400px;
        height: calc(100vh - 40px);
        box-shadow: 0 0 50px rgba(0,0,0,0.1);
        overflow: hidden;
    }
}

/* Header (Top Bar) */
.header {
    grid-row: 1;
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: white;
    z-index: 20;
    border-bottom: 1px solid #eee;
}

.app-logo-mobile {
    display: flex;
    align-items: center;
}
.app-logo-mobile img {
    max-height: 38px;
    width: auto;
}

@media (min-width: 800px) {
    .header {
        grid-row: 1;
        grid-column: 2; /* Header only over content on Desktop if needed, or keeping full width */
        border-bottom: none;
        background: transparent;
        pointer-events: none; /* Let clicks pass through to room? */
        justify-content: flex-end; /* Align items to right on desktop */
        padding: 20px 40px;
    }
    .header > * { pointer-events: auto; }
    .app-logo-mobile { display: none; }
}

.currency-badge {
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 8px;
    margin-right: 15px;
}

.menu-btn {
    cursor: pointer;
    font-size: 24px;
    color: var(--text-dark);
    background: white;
    padding: 8px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}
.menu-btn:hover { transform: scale(1.1); }

/* Item Cards (Shop/Inventory) */
.item-card {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transition: transform 0.2s, background 0.3s;
    border: 1px solid transparent; /* Prevent layout jump */
}
.item-card:hover { transform: scale(1.02); }

/* Dark mode item card styles removed */

.text-muted { color: #888; }
body.dark-mode .text-muted { color: #aaa; }

.stat-box {
    background: #f0f0f0;
    padding: 10px;
    border-radius: 8px;
}
body.dark-mode .stat-box {
    background: #2d2d2d;
    color: #e0e0e0;
}

/* Main Content (Room) */
#room-view {
    grid-row: 2;
    grid-column: 1 / -1;
    position: relative;
    overflow: hidden;
    background: #f0f0f0; /* Default if wall missing */
}

@media (min-width: 800px) {
    #room-view {
        grid-column: 2;
        grid-row: 1 / -1;
        border-radius: 0 var(--radius) var(--radius) 0;
        /* Center content limitation */
        display: flex;
        justify-content: center;
        background-color: #333; /* Dark background behind the room on wide screens */
    }

    /* Light Island overrides removed */
    /* Inner wrapper to act as the room canvas */
    #room-view::before {
        content: '';
        position: absolute;
        inset: 0;
        background: #f0f0f0; /* Fallback */
        z-index: 0;
    }
    
    body.dark-mode #room-view::before {
        background: #f0f0f0 !important;
        filter: none !important;
    }
}

/* Room elements positioning */
.room-wall { position: absolute; top:0; left:0; width: 100%; height: 70%; background: #ddd; z-index: 1; transition: all 0.5s; }
.room-floor { position: absolute; bottom:0; left:0; width: 100%; height: 30%; background: #ccc; z-index: 2; transition: all 0.5s; }

/* Pet Container */
.pet-container {
    position: absolute;
    width: 120px;
    height: 150px;
    z-index: 10;
    display: block;
    cursor: grab;
    left: 50%;
    top: 70%;
    transform: translate(-50%, -50%);
}

/* CSS Pet Body */
.css-pet-body {
    width: 80px;
    height: 100px;
    background: #f5deb3;
    border-radius: 50% 50% 45% 45%;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

/* Navigation */
.nav {
    grid-row: 3;
    grid-column: 1 / -1;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid #eee;
    z-index: 30;
    padding-bottom: env(safe-area-inset-bottom); /* iOS Safe Area */
}

.nav-links {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
}

.app-logo-desktop, .nav-footer { display: none; }

@media (min-width: 800px) {
    .nav {
        grid-row: 1;
        grid-column: 1;
        flex-direction: column;
        justify-content: space-between; /* Header top, items mid, footer bot */
        border-top: none;
        border-right: 1px solid #f0f0f0;
        padding: 40px 20px;
        background: #FFFFFF;
        align-items: stretch;
    }
    .app-logo-desktop {
        display: block;
        margin-bottom: 30px;
        padding: 0 20px;
        text-align: center;
    }
    .app-logo-desktop img {
        max-height: 90px; /* Reference size */
        width: auto;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); /* Premium feel */
    }
    .nav-links {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .nav-footer {
        display: block;
        text-align: center;
        color: #ccc;
    }
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    padding: 10px;
    flex: 1;
    border-radius: 12px;
    background: none;
    border: none;
    font-family: inherit;
}

@media (min-width: 800px) {
    .nav-item {
        flex-direction: row;
        font-size: 1.05rem;
        font-weight: 600;
        gap: 15px;
        padding: 15px 25px;
        margin-bottom: 8px;
        flex: 0;
        justify-content: flex-start;
    }
    .nav-item:hover { background: #f0f4f8; color: var(--primary); transform: translateX(5px); }
}

.nav-item.active { color: var(--primary); }
.nav-item.disabled-link { pointer-events: none; opacity: 0.5; filter: grayscale(1); cursor: not-allowed; }
.nav-icon { font-size: 24px; margin-bottom: 4px; }
@media (min-width: 800px) { .nav-icon { margin-bottom: 0; font-size: 20px; } }


/* UI Elements */
.btn {
    border: none;
    padding: 12px 24px;
    border-radius: 30px; /* Rounder buttons */
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    font-family: inherit;
}
.btn:active { transform: scale(0.95); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(108, 99, 255, 0.3); }
.btn-primary:hover { box-shadow: 0 6px 15px rgba(108, 99, 255, 0.4); }

.btn-secondary { background: #eee; color: #333; }
.btn-secondary:hover { background: #e0e0e0; }

.btn-danger { background: #ff4757; color: white; }

.form-input {
    width: 100%; padding: 12px 18px; border: 2px solid #eee; border-radius: 20px;
    font-family: inherit; margin-bottom: 10px; transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary); }

/* Modals */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    display: none; justify-content: center; align-items: flex-end;
    z-index: 100;
    opacity: 0; transition: opacity 0.3s;
}
.modal.active { display: flex; opacity: 1; }
@media (min-width: 800px) { .modal { align-items: center; } }

.modal-content {
    background: white; width: 100%;
    border-radius: 24px 24px 0 0; padding: 30px;
    max-height: 85vh; overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}
@media (min-width: 800px) {
    .modal-content {
        width: 500px;
        border-radius: 24px;
        animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    }
}

@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes slideIn { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Quicksand:wght@400;600;700&display=swap');

/* CSS Pets - Enhanced */
.pet-container {
    position: absolute; width: 140px; height: auto; z-index: 50; /* Higher than furniture (20) */
    display: flex; 
    flex-direction: column; /* Stack name and pet vertical */
    justify-content: flex-end; 
    align-items: center;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.2));
    cursor: grab;
    pointer-events: none; /* Let clicks pass to floor unless grabbing? No, need grab */
    pointer-events: auto;
}
.pet-container:active { cursor: grabbing; }

/* Dark Mode Pet Spotlight */
/* Dark Mode Pet Spotlight removed */

.css-pet-body {
    width: 100px; height: 100px; background: white;
    border-radius: 50% 50% 45% 45%;
    border: 3px solid #333; position: relative;
    transition: all 0.3s;
}



/* Base parts reused from previous CSS, kept compact */
.ear { position: absolute; background: inherit; border: 3px solid #333; z-index:-1; }
.pet-bunny .ear { width: 25px; height: 60px; border-radius: 50%; top:-40px; }
.pet-bunny .ear.left { left: 10px; transform: rotate(-10deg); }
.pet-bunny .ear.right { right: 10px; transform: rotate(10deg); }
.pet-cat .ear { width: 30px; height: 30px; border-radius: 5px; top: -10px; }
.pet-cat .ear.left { left: 5px; transform: rotate(-20deg); }
.pet-cat .ear.right { right: 5px; transform: rotate(20deg); }
.pet-bear .ear { width: 35px; height: 35px; border-radius: 50%; top: -15px; }
.pet-bear .ear.left { left: 0px; }
.pet-bear .ear.right { right: 0px; }

.face { position: relative; width: 100%; height: 100%; }
.eye { position: absolute; width: 12px; height: 12px; background: #333; border-radius: 50%; top: 40%; animation: blink 4s infinite; }
.eye.left { left: 25%; }
.eye.right { right: 25%; }
.mouth { position: absolute; top: 55%; left: 50%; transform: translateX(-50%); width: 20px; height: 10px; border-bottom: 3px solid #333; border-radius: 0 0 50% 50%; transition: 0.3s; }
.mouth.sad { border-bottom: none; border-top: 3px solid #333; border-radius: 50% 50% 0 0; top: 60%; }
.mouth.happy { width: 25px; height: 15px; }
.tear { position: absolute; width: 6px; height: 8px; background: #64b5f6; border-radius: 50%; top: 55%; display:none; animation: drop 1s infinite; }
.sad-state .tear { display: block; }
.sad-state .tear.left { left: 25%; } 
.sad-state .tear.right { right: 25%; animation-delay: 0.5s; }

@keyframes blink { 0%, 96% { transform: scaleY(1); } 98% { transform: scaleY(0.1); } 100% { transform: scaleY(1); } }
@keyframes drop { 0% { top: 55%; opacity: 1; } 100% { top: 75%; opacity: 0; } }

/* Pet Bat */
.css-pet-body.pet-bat { 
    background: #4a3b32; /* Slightly desaturated dark brown */
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.5); /* Depth */
} 

.pet-bat .ear { 
    width: 20px; height: 45px; 
    background: #3e2e26; 
    border-radius: 5px 5px 0 0; 
    top: -35px; 
    /* Pointy ears but slightly rounded tip for cuteness */
    clip-path: polygon(50% 5%, 0% 100%, 100% 100%); 
    border-radius: 5px 5px 0 0; 
}
.pet-bat .ear.left { left: 10px; transform: rotate(-20deg); }
.pet-bat .ear.right { right: 10px; transform: rotate(20deg); }

/* Bat Eyes - Cute and big */
.pet-bat .eye { 
    background: #333; 
    width: 14px; height: 14px; /* Big puppy eyes */
    box-shadow: none; 
}
.pet-bat .eye.left { left: 22%; }
.pet-bat .eye.right { right: 22%; }

/* Fangs - Cute little snaggletooths */
.pet-bat .mouth {
    border-bottom: 3px solid #333; /* Normal smile */
    width: 20px;
    height: 10px;
    border-radius: 0 0 50% 50%; /* Smile shape */
}
.pet-bat .mouth::before, .pet-bat .mouth::after {
    content: ''; position: absolute; top: 0; width: 0; height: 0;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 5px solid white; /* Small cute fangs */
}
.pet-bat .mouth::before { left: 1px; transform: rotate(-10deg); }
.pet-bat .mouth::after { right: 1px; transform: rotate(10deg); }

/* Wings - Improved shape */
.wing {
    position: absolute; width: 70px; height: 45px;
    background: #3e2e26; border: 2px solid #2a1f1a;
    top: 35px; z-index: -5;
}
.pet-bat .wing.left {
    left: -55px;
    border-radius: 10px 10px 0 50px;
    transform-origin: right center;
    animation: flapLeft 2s infinite ease-in-out;
    background-image: radial-gradient(circle at 0% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}
.pet-bat .wing.right {
    right: -55px;
    border-radius: 10px 10px 50px 0;
    transform-origin: left center;
    animation: flapRight 2s infinite ease-in-out;
    background-image: radial-gradient(circle at 100% 50%, rgba(255,255,255,0.05) 0%, transparent 50%);
}

@keyframes flapLeft {
    0%, 100% { transform: rotate(5deg) scaleY(1); }
    50% { transform: rotate(-25deg) scaleY(0.9); }
}
@keyframes flapRight {
    0%, 100% { transform: rotate(-5deg) scaleY(1); }
    50% { transform: rotate(25deg) scaleY(0.9); }
}

/* Settings Menu Overlay */
.settings-dropdown {
    position: absolute; top: 60px; right: 0;
    background: white; padding: 15px; border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none; z-index: 50; width: 220px;
    animation: fadeIn 0.2s;
}
.settings-dropdown.active { display: block; }

@keyframes spaceMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 550px 550px, 350px 350px; }
}

@keyframes rainbowFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes flicker {
    0% { opacity: 0.9; }
    50% { opacity: 0.8; }
    100% { opacity: 0.95; }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 90%;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: rgba(30,30,30,0.9);
    backdrop-filter: blur(5px);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: auto;
    font-size: 14px;
    font-weight: 500;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error { background: #ff4757; }
.toast.success { background: #2ed573; color: #1a4d2e; }
.toast.info { background: #2f3542; }

/* Checkbox Groups for Settings */
.checkbox-group {
    display: flex; flex-wrap: wrap; gap: 8px;
}
.checkbox-item {
    display: flex; align-items: center; gap: 5px; background: #f8f9fa; padding: 8px 12px; border-radius: 8px; cursor: pointer; user-select: none; border: 1px solid transparent; transition: all 0.2s;
}
.checkbox-item:hover { background: #eee; }
.checkbox-item input { display: none; }
.checkbox-item.checked {
    background: #e8f5e9;
    color: #2e7d32;
    border-color: #c8e6c9;
    font-weight: bold;
}

/* Radio Cards */
.radio-card {
    background: #fff; border: 2px solid #eee; border-radius: 12px; position: relative; overflow: hidden; transition: all 0.2s;
}
.radio-card input { display: none; }
.radio-card .card-content { padding: 10px; text-align: center; }
.radio-card input:checked + .card-content {
    background: #e3f2fd; color: #1565c0;
}
.radio-card:has(input:checked) {
    border-color: #2196f3;
}

/* Modern Login/Auth Page Styles */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto; /* Allow scrolling on small screens */
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-mode .auth-card {
    background: rgba(30, 30, 30, 0.95);
    color: #e0e0e0;
}
body.dark-mode .auth-header p {
    color: #aaaaaa;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 10px;
    font-weight: 800;
}

.auth-header p {
    color: #666;
    font-size: 0.95rem;
}

.auth-toggle {
    display: flex;
    background: #f0f2f5;
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
}

.auth-toggle-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    border-radius: 10px;
    color: #666;
    font-weight: 600;
    transition: all 0.3s;
    z-index: 2;
}

.auth-toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.input-floating-label {
    position: relative;
    margin-bottom: 20px;
}

.input-floating-label input {
    width: 100%;
    padding: 15px 15px;
    border: 2px solid #eee;
    border-radius: 12px;
    background: #f9f9f9;
    font-size: 1rem;
    transition: all 0.2s;
}

.input-floating-label input:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.1);
}

.input-floating-label label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    transition: all 0.2s;
    background: transparent;
    padding: 0 4px;
}

.input-floating-label input:focus + label,
.input-floating-label input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 0.8rem;
    color: var(--primary);
    background: white;
    height: auto;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
}

.progress-dot {
    width: 8px; height: 8px;
    background: #eee;
    border-radius: 50%;
    transition: all 0.3s;
}

.progress-dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

/* Floating Shapes Background */
.bg-shape {
    position: absolute;
    filter: blur(50px);
    z-index: -1;
    opacity: 0.6;
    animation: floatShape 10s infinite alternate;
}
.shape-1 {
    width: 300px; height: 300px;
    background: #FF6584;
    top: -100px; right: -50px;
    border-radius: 50%;
}
.shape-2 {
    width: 250px; height: 250px;
    background: #6C63FF;
    bottom: -50px; left: -50px;
    border-radius: 50%;
    animation-delay: -5s;
}

@keyframes floatShape {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(30px, 50px) rotate(10deg); }
}

@media (max-width: 600px) {
    .auth-card { padding: 30px 20px; }
}

/* Luna Lovegood */
.css-pet-body.pet-luna {
    background: #f0c5a8; /* Skin tone */
    border: none;
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.1);
    overflow: visible; /* Let hair flow out */
}

/* Hair */
.luna-hair-back {
    position: absolute;
    top: -20px;
    left: -15px;
    width: 130px;
    height: 140px;
    background: #f7e68d; /* Dirty Blonde */
    border-radius: 60px 60px 40px 40px;
    z-index: -5;
    box-shadow: 2px 5px 10px rgba(0,0,0,0.1);
}

.luna-hair-front {
    position: absolute;
    width: 30px;
    height: 80px;
    background: #f7e68d;
    top: -10px;
    z-index: 5;
    border-radius: 10px;
}
.luna-hair-front.left {
    left: 0;
    border-radius: 20px 0 20px 20px;
    transform: rotate(5deg);
}
.luna-hair-front.right {
    right: 0;
    border-radius: 0 20px 20px 20px;
    transform: rotate(-5deg);
}

/* Spectrespecs */
.spectrespecs {
    position: absolute;
    top: 35px;
    left: 10px;
    width: 80px;
    height: 30px;
    z-index: 10;
}
.spectrespecs .lens {
    position: absolute;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid #e91e63; /* Pink frame */
    background: rgba(255, 105, 180, 0.3); /* Tinted glass */
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.spectrespecs .lens.left {
    left: 0;
    background: rgba(233, 30, 99, 0.4); /* Pinkish */
}
.spectrespecs .lens.right {
    right: 0;
    background: rgba(33, 150, 243, 0.4); /* Blueish */
}
/* Strange patterns on glasses */
.spectrespecs .lens::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 20px; height: 20px;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.8);
}


/* Pet Activities */
/* Improved Book Prop */
.book-prop {
    position: absolute;
    bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 35px;
    background: #5d4037;
    border-radius: 2px;
    z-index: 25;
    perspective: 600px; /* 3D context */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Open pages base (static) */
.book-prop::before {
    content: ''; position: absolute; top: 3px; left: 3px; bottom: 3px; width: 27px;
    background-color: #fff;
    background-image: repeating-linear-gradient(to bottom, #333 0px, #333 1px, transparent 1px, transparent 4px);
    background-position: 0 4px;
    background-size: 100% 4px; /* Text lines */
    box-shadow: inset -2px 0 5px rgba(0,0,0,0.1);
}
.book-prop::after {
    content: ''; position: absolute; top: 3px; right: 3px; bottom: 3px; width: 27px;
    background-color: #fff;
    background-image: repeating-linear-gradient(to bottom, #333 0px, #333 1px, transparent 1px, transparent 4px);
    background-position: 0 4px;
    background-size: 100% 4px;
    box-shadow: inset 2px 0 5px rgba(0,0,0,0.1);
}

/* Spine */
.book-spine {
    position: absolute; top: 3px; left: 50%; bottom: 3px; width: 4px; transform: translateX(-50%);
    background: #444; z-index: 26; opacity: 0.2;
}

/* Animated Page */
.book-page {
    position: absolute; top: 3px; right: 3px; bottom: 3px; width: 27px;
    background-color: #f8f8f8;
    background-image: repeating-linear-gradient(to bottom, #333 0px, #333 1px, transparent 1px, transparent 4px);
    background-position: 0 4px;
    background-size: 100% 4px;
    transform-origin: left center;
    backface-visibility: visible;
    z-index: 30;
    border-left: 1px solid #ddd;
    animation: flipPage 3.5s infinite ease-in-out;
}
/* Second page with offset */
.book-page:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes flipPage {
    0% { transform: rotateY(0deg); background-color: #fff; }
    20% { background-color: #eee; } /* Shadow mid-flip */
    45% { transform: rotateY(-180deg); background-color: #fff; }
    100% { transform: rotateY(-180deg); }
}

/* --- Laptop 3D (Overlapping Fix) --- */
.laptop-prop {
    position: absolute;
    bottom: -5px; 
    left: 50%; margin-left: 50px;
    right: auto;
    width: 60px; height: 50px;
    z-index: 20;
    perspective: 800px;
    transform-style: preserve-3d;
    transform: rotateY(-10deg); /* Gentle angle */
}
.laptop-base {
    position: absolute; bottom: 0; left: 0; width: 60px; height: 35px; /* Slightly deeper */
    background: #ccc; 
    border-radius: 4px;
    transform: rotateX(60deg);
    transform-origin: bottom center;
    box-shadow: 0 10px 10px rgba(0,0,0,0.3);
    z-index: 25;
}
.laptop-base::before { /* Keyboard */
    content: ''; position: absolute; top: 5px; left: 5px; width: 50px; height: 20px;
    background: #bbb; border-radius: 1px;
}
.laptop-lid {
    position: absolute; 
    bottom: 17px; /* Sink deep into base behind keyboard */
    left: 5px;
    width: 60px; height: 45px;
    background: #333; border-radius: 4px;
    border: 2px solid #ccc;
    background: #1a1a1a;
    display: flex; justify-content: center; align-items: start;
    padding-top: 5px;
    transform-origin: bottom center;
    transform: rotateX(-5deg);
    z-index: 20; 
}
.laptop-lid::after { /* Logo */
    content: ''; width: 8px; height: 8px; background: white; border-radius: 50%; opacity: 0.8; 
    box-shadow: 0 0 5px rgba(255,255,255,0.5);
}
.laptop-screen {
    position: absolute; top: 2px; left: 2px; right: 2px; bottom: 2px;
    background: #222;
    overflow: hidden;
    display: flex; flex-direction: column; padding: 2px; gap: 2px;
}
.code-line {
    height: 2px; background: #4caf50; border-radius: 1px;
    animation: typeCode 1s infinite steps(2, start);
    width: 0;
}
.code-line:nth-child(2) { animation-delay: 0.2s; background: #2196f3; }
.code-line:nth-child(3) { animation-delay: 0.4s; background: #ffeb3b; }
.code-line:nth-child(4) { animation-delay: 0.6s; }

@keyframes typeCode {
    0% { width: 0; }
    50% { width: 80%; }
    100% { width: 80%; }
}

/* --- Thought Bubble Improved --- */
.thought-bubble {
    position: absolute;
    top: -60px; right: -40px;
    width: 70px; height: 50px;
    background: white;
    border-radius: 50%;
    border: 2px solid #333;
    display: flex; justify-content: center; align-items: center;
    font-size: 24px;
    z-index: 30;
    opacity: 0;
    animation: popIn 0.5s forwards, floatThink 3s infinite alternate ease-in-out;
    box-shadow: 2px 2px 0 rgba(0,0,0,0.1);
    transform-origin: bottom left;
}
.thought-bubble::before { content: ''; position: absolute; bottom: -8px; left: 10px; width: 12px; height: 12px; background: white; border: 2px solid #333; border-radius: 50%; }
.thought-bubble::after { content: ''; position: absolute; bottom: -18px; left: 0px; width: 8px; height: 8px; background: white; border: 2px solid #333; border-radius: 50%; }

/* Dynamic thought content handled by JS, but base spin */
.thought-content { display:inline-block; animation: spinThink 4s infinite linear; }
@keyframes spinThink { 0% { transform: rotateY(0deg); } 50% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

@keyframes floatThink {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}
@keyframes popIn {
    to { opacity: 1; }
}

/* Pause Button Wrapper in Room */
#room-timer-overlay {
    z-index: 200 !important; /* Ensure visibility */
    pointer-events: none; /* Allow clicks to pass through empty areas */
}
#room-timer-overlay button {
    pointer-events: auto;
}
.spectrespecs .bridge {
    position: absolute;
    top: 15px;
    left: 33px;
    width: 14px;
    height: 5px;
    background: #e91e63;
    border-radius: 5px;
}

/* Scarf */
.ravenclaw-scarf {
    position: absolute;
    bottom: -10px;
    left: 10px;
    width: 80px;
    height: 25px;
    background: repeating-linear-gradient(90deg, #222f5b, #222f5b 10px, #946b2d 10px, #946b2d 20px);
    border-radius: 10px;
    z-index: 8;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* --- Music Activity --- */
.prop-headphones {
    position: absolute; top: -15px; left: 5px; right: 5px; height: 50px;
    border: 4px solid #333; border-bottom: none; border-radius: 25px 25px 0 0;
    z-index: 40; pointer-events: none;
    transform-origin: bottom center;
    animation: headBob 0.8s infinite ease-in-out alternate;
}
.prop-headphones::before, .prop-headphones::after {
    content: ''; position: absolute; bottom: 0; width: 15px; height: 25px;
    background: #333; border-radius: 5px;
}
.prop-headphones::before { left: -5px; }
.prop-headphones::after { right: -5px; }
.music-note {
    position: absolute; font-size: 20px; color: #6C63FF;
    animation: floatNote 2s infinite linear; opacity: 0;
}
@keyframes floatNote {
    0% { transform: translate(0, 0) rotate(0deg); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(20px, -40px) rotate(20deg); opacity: 0; }
}

/* --- Writing Activity Improved --- */
.prop-paper {
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 50px; height: 35px; background: white;
    border-radius: 2px; box-shadow: 0 2px 3px rgba(0,0,0,0.2);
    z-index: 20;
}
/* --- Writing Activity - Realistic Notebook & Pen --- */
.prop-paper {
    position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%);
    width: 55px; height: 40px; 
    background: #fff;
    /* Blue lines pattern */
    background-image: repeating-linear-gradient(transparent, transparent 9px, #ace 9px, #ace 10px);
    border-radius: 2px; 
    box-shadow: 1px 2px 5px rgba(0,0,0,0.2);
    z-index: 20;
    overflow: hidden;
    padding-left: 10px; /* Space for binding */
    border-left: 6px solid #e0e0e0; /* Binding strip */
}
/* Spiral Binding holes */
.prop-paper::before {
    content: ''; position: absolute; left: 1px; top: 2px; width: 4px; height: 100%;
    background: repeating-linear-gradient(to bottom, #333 0, #333 2px, transparent 2px, transparent 10px);
}
/* Simulated text appearing */
.handwriting-line {
    height: 10px; margin-top: 0; border: none;
    /* Ink trail simulation */
    background: linear-gradient(90deg, #333 0%, #333 100%);
    background-size: 0% 1px; background-repeat: no-repeat; background-position: left 8px;
    animation: writeLine 2s infinite linear;
}
.handwriting-line:nth-child(2) { animation-delay: 0.5s; }
.handwriting-line:nth-child(3) { animation-delay: 1s; }
.handwriting-line:nth-child(4) { animation-delay: 1.5s; }

@keyframes writeLine {
    0% { background-size: 0% 1px; }
    20% { background-size: 0% 1px; }
    100% { background-size: 80% 1px; } /* Don't fill full width */
}

.prop-pen {
    position: absolute; bottom: 15px; left: 50%;
    width: 5px; height: 35px; 
    background: #2196f3; /* Blue body */
    border-radius: 2px;
    transform-origin: bottom center;
    z-index: 25;
    animation: writeAction 0.6s infinite alternate ease-in-out;
    box-shadow: 2px 5px 5px rgba(0,0,0,0.2);
}
.prop-pen::after { /* Pen Tip */
    content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 0;
    border-left: 2.5px solid transparent;
    border-right: 2.5px solid transparent;
    border-top: 6px solid #ddd; /* Silver tip */
}
.prop-pen::before { /* Pen Cap/Clip */
    content: ''; position: absolute; top: -4px; left: 0; width: 100%; height: 8px;
    background: #1565c0; border-radius: 2px 2px 0 0;
}
.prop-pen-nib { /* Tiny ballpoint */
    position: absolute; bottom: -8px; left: 1.5px; width: 2px; height: 2px; background: #333; border-radius: 50%;
}
@keyframes writeAction {
    from { transform: translateX(-5px) rotate(-15deg); }
    to { transform: translateX(15px) rotate(10deg); }
}

/* --- Coffee Activity (Drinking Animation) --- */
.prop-cup {
    position: absolute; bottom: 0; left: 60%; 
    width: 25px; height: 30px; background: #FFF;
    border-radius: 0 0 10px 10px; border: 2px solid #ddd;
    z-index: 25;
    z-index: 25;
    /* animation: cupDrink 5s infinite ease-in-out; -- Removed for JS control */
}
.prop-cup::after { /* Handle */
    content: ''; position: absolute; top: 5px; right: -8px; width: 8px; height: 15px;
    border: 3px solid #ddd; border-left: none; border-radius: 0 10px 10px 0;
}
.steam {
    position: absolute; bottom: 25px; left: 12px;
    width: 8px; height: 8px; 
    background: rgba(160, 120, 100, 0.525); /* Soft coffee mist */
    border-radius: 50%;
    filter: blur(2px); /* Soft edges for vapor look */
    animation: riseSteam 2.5s infinite ease-out;
    pointer-events: none;
}
@keyframes riseSteam {
    0% { transform: translateY(0) scale(0.5); opacity: 0; }
    20% { opacity: 0.7; transform: translateY(-5px) scale(1); }
    100% { transform: translateY(-30px) scale(2.5) translateX(5px); opacity: 0; }
}
/* Smoother, more frequent sip cycle */
/* Coffee controlled by JS now for mouth targeting */
.prop-cup {
    position: absolute; bottom: 0; left: 60%; 
    width: 25px; height: 30px; background: #FFF;
    border-radius: 0 0 10px 10px; border: 2px solid #ddd;
    z-index: 25;
    transition: transform 1s ease-in-out, z-index 0s linear 0.5s;
    transform-origin: center bottom;
}
/* Removed fixed keyframes to allow dynamic JS positioning per pet type */

/* --- Calculator Activity (Typing Animation) --- */
.prop-calculator {
    position: absolute; bottom: -5px; left: 20%; transform: translateX(-50%) rotateX(20deg) rotateY(-10deg);
    width: 40px; height: 50px; background: #333;
    border-radius: 4px; z-index: 20;
    display: flex; flex-wrap: wrap; justify-content: space-around; padding: 5px;
    align-content: flex-start;
    transform-style: preserve-3d;
    box-shadow: -5px 5px 10px rgba(0,0,0,0.3);
}
.prop-calculator::before { /* Side thickness */
    content: ''; position: absolute; top: 0; left: -4px; width: 4px; height: 100%;
    background: #222; transform: skewY(-45deg); transform-origin: right top;
}
.prop-calculator::after { /* Bottom thickness */
    content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 4px;
    background: #222; transform: skewX(-45deg); transform-origin: top left;
}
.calc-screen { width: 100%; height: 12px; background: #9fa788; margin-bottom: 5px; opacity: 0.8; font-family: monospace; font-size: 8px; line-height: 12px; text-align: right; padding-right: 2px; }
.calc-btn { width: 8px; height: 8px; background: #555; border-radius: 2px; margin: 1px; cursor: pointer; }
.calc-btn:active, .calc-btn.pressed { background: #777; transform: scale(0.9); }

/* --- Music Activity (Head Bobbing) --- */
.prop-headphones {
    position: absolute; top: -15px; left: 5px; right: 5px; height: 50px;
    border: 4px solid #333; border-bottom: none; border-radius: 25px 25px 0 0;
    z-index: 40; pointer-events: none;
    animation: headBob 0.8s infinite ease-in-out alternate;
}
/* We also need to bob the pet itself or just the headphones? The user asked for "kippen/wippen" (tilt/bob) */
/* Best way is to apply animation to the whole pet container if possible, but here specific to activity */
/* Let's animate the headphones simulating head movement context */
@keyframes headBob {
    from { transform: rotate(-5deg); }
    to { transform: rotate(5deg); }
}

/* --- Teaching Activity Improved --- */
.prop-whiteboard {
    position: absolute; top: -50px; left: -60px;
    width: 80px; height: 60px; background: white;
    border: 4px solid #555; border-radius: 4px;
    z-index: 5;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    display: flex; justify-content: center; align-items: center;
    font-family: 'Indie Flower', cursive; font-size: 14px; font-weight: bold; color: #333;
    text-align: center; padding: 2px;
}
/* Whiteboard content is injected via JS and updated */
.prop-stick {
    position: absolute; top: -10px; left: -20px;
    width: 50px; height: 3px; background: #8d6e63;
    transform-origin: right center;
    z-index: 25;
    animation: teachPoint 2s infinite ease-in-out;
}
@keyframes teachPoint {
    0%, 100% { transform: rotate(-30deg); } 
    25% { transform: rotate(-10deg); }
    50% { transform: rotate(-40deg); }
    75% { transform: rotate(-20deg); }
}

/* --- Sorting Activity --- */
.prop-stack {
    position: absolute; bottom: 0; width: 30px; height: 20px;
    background: linear-gradient(to top, #eee 10%, #ddd 10%, #ddd 20%, #eee 20%);
    background-size: 100% 4px;
    border: 1px solid #ccc;
    z-index: 20;
}
.stack-left { left: 0; }
.stack-right { right: 0; }
.flying-paper {
    position: absolute; bottom: 20px; left: 5px;
    width: 25px; height: 2px; background: white; border: 1px solid #ccc;
    z-index: 25;
    animation: sortPaper 1s infinite ease-in-out;
}
@keyframes sortPaper {
    0% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(35px) translateY(-10px) rotate(20deg); }
    100% { transform: translateX(70px) rotate(0deg); }
}

/* Luna Eyes */
.pet-luna .eye {
    width: 10px;
    height: 10px;
    background: #64b5f6; /* Blue eyes */
    top: 45%;
}

/* Luna Mouth */
.pet-luna .mouth {
    width: 15px;
    height: 5px;
    border-bottom: 2px solid #dba893;
    top: 65%;
}

#room-timer-overlay {
    z-index: 600; /* Above pet/furniture (50), but strictly below Modals (100) */
}

/* Celebration Animations */
@keyframes happy-jump {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(10px) scale(1.1, 0.9); } /* Squish */
    50% { transform: translateY(-50px) scale(0.9, 1.1); } /* Jump high */
    70% { transform: translateY(0) scale(1); }
    80% { transform: translateY(-10px) scale(1); } /* Small bounce */
}

@keyframes happy-salto {
    0% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-20px) rotate(-20deg); }
    60% { transform: translateY(-80px) rotate(180deg); }
    100% { transform: translateY(0) rotate(360deg); }
}

@keyframes happy-wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-25deg); }
    50% { transform: rotate(25deg); }
    75% { transform: rotate(-15deg); }
}

@keyframes happy-zoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.5) rotate(5deg); }
    75% { transform: scale(0.9) rotate(-5deg); }
    100% { transform: scale(1); }
}

@keyframes happy-tada {
    0% { transform: scale(1); }
    10%, 20% { transform: scale(0.9) rotate(-3deg); }
    30%, 50%, 70%, 90% { transform: scale(1.1) rotate(3deg); }
    40%, 60%, 80% { transform: scale(1.1) rotate(-3deg); }
    100% { transform: scale(1) rotate(0); }
}

/* New Animation Classes */
.anim-jump { animation: happy-jump 1s ease-in-out; }
.anim-salto { animation: happy-salto 1.2s ease-in-out; }
.anim-wiggle { animation: happy-wiggle 1s ease-in-out; }
.anim-zoom { animation: happy-zoom 1s ease-in-out; }
.anim-tada { animation: happy-tada 1s ease-in-out; }

/* Confetti Particle */
.confetti-particle {
    position: fixed;
    width: 10px; height: 10px;
    top: 0; left: 50%;
    z-index: 1000;
    pointer-events: none;
    opacity: 1;
    border-radius: 2px;
}

@keyframes confetti-fall {
    0% { transform: translateY(0) rotate(0deg) translateX(0); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg) translateX(var(--drift)); opacity: 0; }
}

/* Music Activity: Rock whole body */
.activity-music {
    transform-origin: bottom center; 
    animation: bodyRock 0.6s infinite ease-in-out alternate;
}

@keyframes bodyRock {
    from { transform: rotate(-3deg) translateY(0); }
    to { transform: rotate(3deg) translateY(-2px); }
}

/* Disable independent headphone animation when body is rocking */
.activity-music .prop-headphones {
    animation: none !important;
}

/* Generic Activity Animations */
.activity-working, .activity-reading, .activity-writing {
    animation: focusedBob 2s infinite ease-in-out;
}

.activity-thinking {
    animation: thinkingFloat 3s infinite ease-in-out;
}

@keyframes focusedBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px) rotate(1deg); }
}

@keyframes thinkingFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(-2deg); }
}

/* ==========================================
   LOGIN PAGE STYLES
   ========================================== */

.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    padding: 20px;
    overflow: auto;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Animated Background Shapes */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float1 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: float2 25s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, 50px) rotate(5deg); }
    50% { transform: translate(-20px, 30px) rotate(-5deg); }
    75% { transform: translate(10px, -20px) rotate(3deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 20px) scale(0.95); }
}

/* Auth Card */
.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255,255,255,0.5);
    position: relative;
    z-index: 10;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 8px 0;
}

.auth-header p {
    color: #888;
    margin: 0;
    font-size: 0.95rem;
}

/* Auth Toggle */
.auth-toggle {
    display: flex;
    background: #f0f0f0;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 25px;
}

.auth-toggle-btn {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
}

.auth-toggle-btn.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Floating Label Inputs */
.input-floating-label {
    position: relative;
    margin-bottom: 20px;
}

.input-floating-label input {
    width: 100%;
    padding: 16px 16px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    font-size: 1rem;
    background: #fafafa;
    transition: all 0.3s ease;
    font-family: inherit;
}

.input-floating-label input:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.input-floating-label label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.input-floating-label input:focus + label,
.input-floating-label input:not(:placeholder-shown) + label {
    top: 8px;
    transform: translateY(0);
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    background: linear-gradient(to bottom, transparent 50%, white 50%);
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    color: #888;
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Onboarding Progress Dots */
.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.progress-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    background: #f8f9fa;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.checkbox-item:hover {
    background: #e9ecef;
}

.checkbox-item input {
    display: none;
}

.checkbox-item input:checked + span {
    color: white;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .auth-card {
        padding: 30px 25px;
        border-radius: 20px;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }
}
