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

:root {
    --primary-orange: #FF6B35;
    --dark-brown: #5C4033;
    --light-cream: #F5E6D3;
    --medium-brown: #8B7355;
    --accent-yellow: #FFD93D;
    --accent-green: #6BCF7F;
    --accent-blue: #4A90E2;
    --white: #FFFFFF;
    --shadow: rgba(92, 64, 51, 0.15);
}

/* Get Started Overlay */
/* The `.get-started-overlay` rules that used to live here are gone, along with
   the overlay itself in index.html.

   That overlay was not decoration — it was the reason nothing on the home page
   could be clicked. `.modal` and `.get-started-overlay` were BOTH at z-index
   1000, and the overlay came later in the document, so it painted over the login
   box: clicking "Log In" opened a modal nobody could see, on top of an overlay
   that had faded out but was never removed.

   Only the overlay's own rules were removed. `.logo-section`, `.brand-title`,
   `.features-list`, `.feature-item` and `.btn-get-started` are shared with
   landing.html, which still uses them — deleting those would break that page. */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.logo-section {
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section .logo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #E85A1F 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

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

.logo-section .logo-icon svg {
    width: 60px;
    height: 60px;
}

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-brown);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 1.2rem;
    color: var(--medium-brown);
    margin-bottom: 3rem;
    font-weight: 500;
}

.features-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: slideUp 0.8s ease-out 0.4s backwards;
}

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

.feature-icon {
    font-size: 2rem;
    display: block;
}

.feature-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-brown);
}

/* The `.get-started-content .btn-get-started` rules that used to live here were
   scoped to the deleted overlay and are gone with it. The BARE
   `.btn-get-started` rule further down this file is a different rule and is
   untouched — landing.html's Get Started button still depends on it. */

@media (max-width: 768px) {
    .brand-title {
        font-size: 2.2rem;
    }

    .features-list {
        gap: 1rem;
    }
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #E8D5C4 0%, #F5E6D3 50%, #E8D5C4 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 115, 85, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Top Navigation */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
}

.logo-icon {
    transition: transform 0.3s ease;
}

.logo-icon:hover {
    transform: rotate(5deg) scale(1.05);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-brown);
    letter-spacing: -0.5px;
}

.tagline {
    font-size: 0.7rem;
    color: var(--medium-brown);
    font-weight: 400;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid var(--light-cream);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 2px 8px var(--shadow);
}

.language-selector select {
    border: none;
    background: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--dark-brown);
    cursor: pointer;
    outline: none;
}

.btn-outline {
    padding: 0.6rem 1.5rem;
    background: transparent;
    border: 2px solid var(--dark-brown);
    color: var(--dark-brown);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--dark-brown);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn-outline:hover::before {
    width: 300px;
    height: 300px;
}

.btn-outline:hover {
    color: white;
}

.btn-outline span,
.btn-outline::after {
    position: relative;
    z-index: 1;
}

.btn-outline:active {
    transform: scale(0.95);
}

.btn-primary {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #E85A1F 100%);
    border: none;
    color: white;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.btn-primary:hover {
    background: linear-gradient(135deg, #FF7B47 0%, #FF6B35 100%);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.5), 0 8px 16px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3), 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 3D Get Started Button */
.btn-get-started {
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, #FF5722 50%, #E85A1F 100%);
    border: none;
    color: white;
    border-radius: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow:
        0 10px 30px rgba(255, 107, 53, 0.5),
        0 20px 40px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: perspective(1000px) rotateX(0deg);
}

.btn-get-started::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.btn-get-started::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(-45deg);
    }
}

.btn-get-started:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 50%, #FF5722 100%);
    transform: translateY(-8px) scale(1.08) perspective(1000px) rotateX(-5deg);
    box-shadow:
        0 18px 40px rgba(255, 107, 53, 0.6),
        0 25px 55px rgba(255, 107, 53, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-get-started:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow:
        0 6px 20px rgba(255, 107, 53, 0.4),
        0 10px 25px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-get-started:focus {
    outline: 3px solid rgba(255, 107, 53, 0.3);
    outline-offset: 2px;
}

/* Icon Buttons */
.icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 2px solid var(--light-cream);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: var(--light-cream);
    border-color: var(--primary-orange);
    transform: scale(1.05);
}

.icon-btn:active {
    transform: scale(0.95);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-orange);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--medium-brown);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--light-cream);
    color: var(--dark-brown);
}

.search-modal h3 {
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--light-cream);
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.suggestion-item {
    padding: 0.75rem 1rem;
    background: var(--light-cream);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: var(--dark-brown);
}

.suggestion-item:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateX(5px);
}

/* Live search results */
.search-results {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.search-results:empty {
    margin-top: 0;
}

.result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--light-cream);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    width: 100%;
    border: none;
    font-family: inherit;
}

.result-item:hover {
    background: rgba(255, 107, 53, 0.12);
    transform: translateX(5px);
}

.result-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.result-body {
    min-width: 0;
}

.result-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--dark-brown);
}

.result-sub {
    display: block;
    font-size: 0.78rem;
    color: var(--medium-brown);
}

.result-empty {
    padding: 1.25rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--medium-brown);
    background: var(--light-cream);
    border-radius: 10px;
}

/* Auth modals (log in / Google) */
.auth-modal h3 {
    color: var(--dark-brown);
    margin-bottom: 0.35rem;
}

.auth-sub {
    font-size: 0.85rem;
    color: var(--medium-brown);
    margin-bottom: 1.25rem;
}

.auth-modal .input-group {
    margin-bottom: 0.85rem;
}

.auth-modal .input-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--light-cream);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--light-cream);
    color: var(--dark-brown);
}

.auth-modal .input-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    background: white;
}

.auth-submit {
    width: 100%;
    margin-top: 0.5rem;
}

.auth-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--medium-brown);
    text-align: center;
}

/* Google renders the button itself, so this only reserves the slot and centres it. */
.google-btn-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

.google-btn-slot.busy {
    opacity: 0.6;
    pointer-events: none;
}

/* Shown instead of the button when sign-in genuinely cannot run, so the user gets
   a reason rather than a button that silently does nothing. */
.google-unavailable {
    margin: 0;
    padding: 0.75rem 1rem;
    width: 100%;
    border: 1px dashed var(--light-cream);
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.05);
    color: var(--medium-brown);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.google-unavailable small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
}

/* Inline error inside a modal — a page-level message would be hidden behind it */
.auth-error {
    display: none;
    margin-top: 0.85rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    background: #f8d7da;
    color: #721c24;
    font-size: 0.85rem;
    font-weight: 600;
}

.auth-error.visible {
    display: block;
}

/* Notification Panel */
.notification-panel {
    position: fixed;
    top: 70px;
    right: -400px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: right 0.3s ease;
    overflow: hidden;
}

.notification-panel.active {
    right: 20px;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 2px solid var(--light-cream);
}

.notification-header h3 {
    color: var(--dark-brown);
    font-size: 1.1rem;
}

.mark-read {
    background: none;
    border: none;
    color: var(--primary-orange);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mark-read:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--light-cream);
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-item:hover {
    background: var(--light-cream);
}

.notification-item.unread {
    background: rgba(255, 107, 53, 0.05);
}

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

.notification-content {
    flex: 1;
}

.notification-content p {
    font-size: 0.9rem;
    color: var(--dark-brown);
    margin-bottom: 0.25rem;
}

.notification-content span {
    font-size: 0.85rem;
    color: var(--medium-brown);
    display: block;
    margin-bottom: 0.5rem;
}

.notification-content small {
    font-size: 0.75rem;
    color: var(--medium-brown);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    padding: 1.5rem 2rem;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.cookie-banner.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    flex: 1;
    font-size: 0.9rem;
    color: var(--dark-brown);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.5);
}

.chat-button:active {
    transform: scale(0.95);
}

.chat-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: red;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--dark-brown);
    color: white;
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.agent-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* The mark inside the orange circle is white, and is sized here rather than
   only on the <svg> so the circle keeps its shape whatever the icon is. The
   previous version of this held an emoji, which drew at the font size above
   and differed on every device. */
.agent-avatar svg {
    width: 22px;
    height: 22px;
    color: white;
    display: block;
}

.online-status {
    font-size: 0.75rem;
    color: var(--accent-green);
}

.chat-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--light-cream);
}

.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    animation: messageSlide 0.3s ease;
}

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

.bot-message {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--primary-orange);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.message p {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.message small {
    font-size: 0.75rem;
    opacity: 0.7;
}

.chat-input-area {
    display: flex;
    padding: 1rem;
    border-top: 2px solid var(--light-cream);
    gap: 0.5rem;
}

.chat-input-area input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--light-cream);
    border-radius: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}

.chat-input-area input:focus {
    outline: none;
    border-color: var(--primary-orange);
}

.chat-input-area button {
    width: 40px;
    height: 40px;
    background: var(--primary-orange);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-input-area button:hover {
    background: var(--dark-brown);
    transform: scale(1.05);
}

.chat-input-area button:active {
    transform: scale(0.95);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader p {
    margin-top: 1rem;
    color: var(--dark-brown);
    font-weight: 600;
    font-size: 1.1rem;
}

/* Main Container */
.container {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 2rem;
    padding: 3rem;
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
}

/* Hero Section */
.hero-section {
    padding: 2rem;
    animation: fadeInLeft 0.8s ease;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main-heading {
    font-size: 3rem;
    font-weight: 800;
    color: var(--dark-brown);
    line-height: 1.1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.subheading {
    font-size: 1.1rem;
    color: var(--dark-brown);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.description {
    font-size: 0.95rem;
    color: var(--medium-brown);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.25rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.feature-badge:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(92, 64, 51, 0.2);
    border-color: var(--primary-orange);
}

.feature-badge svg {
    flex-shrink: 0;
}

.feature-badge span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-brown);
}

/* Illustration Section */
.illustration-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease;
}

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

.window-frame {
    position: relative;
    width: 380px;
    z-index: 2;
}

.window-top {
    position: relative;
}

.awning {
    width: 100%;
    height: 40px;
    background: linear-gradient(180deg, #FFB84D 0%, #FF9F33 100%);
    border-radius: 20px 20px 0 0;
    border: 3px solid var(--dark-brown);
    position: relative;
}

.awning::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(
        90deg,
        #FF9F33 0px,
        #FF9F33 20px,
        transparent 20px,
        transparent 25px
    );
}

.signboard {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C5A 100%);
    padding: 0.5rem 2rem;
    border-radius: 8px;
    border: 3px solid var(--dark-brown);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: swing 3s ease-in-out infinite;
}

@keyframes swing {
    0%, 100% { transform: translateX(-50%) rotate(-2deg); }
    50% { transform: translateX(-50%) rotate(2deg); }
}

.sign-text {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    text-transform: capitalize;
}

.window-content {
    background: linear-gradient(180deg, #FFD4A3 0%, #FFC078 100%);
    border-left: 4px solid var(--dark-brown);
    border-right: 4px solid var(--dark-brown);
    padding: 2rem 1.5rem;
    position: relative;
    min-height: 280px;
}

.bookshelf {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.shelf-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    align-items: flex-end;
}

.book {
    width: 28px;
    border-radius: 2px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.book:hover {
    transform: translateY(-5px) scale(1.05);
}

.top-shelf .book {
    height: 60px;
}

.bottom-shelf .book {
    height: 50px;
}

.book.red { background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%); }
.book.blue { background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%); }
.book.green { background: linear-gradient(135deg, #2ECC71 0%, #27AE60 100%); }
.book.yellow { background: linear-gradient(135deg, #F1C40F 0%, #F39C12 100%); }
.book.orange { background: linear-gradient(135deg, #E67E22 0%, #D35400 100%); }
.book.purple { background: linear-gradient(135deg, #9B59B6 0%, #8E44AD 100%); }
.book.brown { background: linear-gradient(135deg, #A0826D 0%, #8B7355 100%); }
.book.teal { background: linear-gradient(135deg, #1ABC9C 0%, #16A085 100%); }
.book.pink { background: linear-gradient(135deg, #E91E63 0%, #C2185B 100%); }
.book.navy { background: linear-gradient(135deg, #34495E 0%, #2C3E50 100%); }

.desk-area {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.5rem;
    margin: 1rem 0;
    position: relative;
}

.desk {
    width: 120px;
    height: 50px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid rgba(0, 0, 0, 0.3);
    position: relative;
}

.desk::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 10px;
    right: 10px;
    height: 6px;
    background: #654321;
    border-radius: 4px;
}

.chair {
    width: 40px;
    height: 45px;
    background: linear-gradient(180deg, #D2691E 0%, #A0522D 100%);
    border-radius: 8px 8px 4px 4px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    position: relative;
}

.chair::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 20px;
    background: linear-gradient(180deg, #D2691E 0%, #A0522D 100%);
    border-radius: 8px 8px 0 0;
    border: 2px solid rgba(0, 0, 0, 0.3);
}

.lamp {
    position: absolute;
    right: 20px;
    top: -30px;
    width: 30px;
    height: 35px;
}

.lamp::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 20px;
    background: linear-gradient(180deg, #FFD700 0%, #FFA500 100%);
    border-radius: 50% 50% 5px 5px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.lamp::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 15px;
    background: #333;
}

.window-base {
    background: linear-gradient(180deg, #8B7355 0%, #6B5845 100%);
    border: 4px solid var(--dark-brown);
    border-radius: 0 0 20px 20px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 1rem 0.5rem;
    position: relative;
}

.plant-left, .plant-right {
    width: 40px;
    height: 35px;
    background: radial-gradient(circle, #6BCF7F 0%, #4CAF50 100%);
    border-radius: 50% 50% 40% 40%;
    position: relative;
    animation: sway 4s ease-in-out infinite;
}

.plant-left {
    animation-delay: 0.5s;
}

@keyframes sway {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

.plant-left::before, .plant-right::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 12px;
    background: #8B4513;
    border-radius: 4px;
}

.decorative-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.money-icon {
    display: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(-5deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
}

.book-stack {
    position: absolute;
    bottom: 15%;
    left: -8%;
    width: 45px;
    height: 50px;
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 50%, #3498DB 50%, #2980B9 100%);
    border-radius: 3px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
    transform: rotate(-8deg);
}

/* Signup Section */
.signup-section {
    padding: 1rem;
    animation: fadeInRight 0.8s ease;
}

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

.signup-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(92, 64, 51, 0.15);
    border: 3px solid var(--light-cream);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-brown);
    margin-bottom: 1.5rem;
    text-align: center;
}

.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--light-cream);
    padding: 0.4rem;
    border-radius: 12px;
}

.tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--medium-brown);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab:hover {
    background: rgba(255, 255, 255, 0.5);
}

.tab.active {
    background: white;
    color: var(--dark-brown);
    box-shadow: 0 2px 8px var(--shadow);
}

.tab:active {
    transform: scale(0.97);
}

/* Input Row for First/Last Name */
.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.input-group input {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 2px solid var(--light-cream);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--dark-brown);
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.input-group input::placeholder {
    color: var(--medium-brown);
    opacity: 0.6;
}

.btn-signup {
    width: 100%;
    padding: 1rem;
    background: var(--dark-brown);
    border: none;
    border-radius: 10px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    box-shadow: 0 4px 15px rgba(92, 64, 51, 0.3);
}

.btn-signup:hover {
    background: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-signup:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(92, 64, 51, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--medium-brown);
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--light-cream);
}

.divider span {
    padding: 0 1rem;
}

.terms {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1rem;
}

.terms input[type="checkbox"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-orange);
}

.terms label {
    font-size: 0.85rem;
    color: var(--medium-brown);
    line-height: 1.4;
    cursor: pointer;
}

.link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.link:hover {
    text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    background: var(--dark-brown);
    padding: 0.75rem 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 70px;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-item.active {
    color: var(--primary-orange);
    background: rgba(255, 107, 53, 0.15);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* A tab for the role you are already signed in as. Hidden rather than removed
   so a role change can bring it back (see nav.js). */
.nav-item-hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem 1.5rem 6rem;
    }

    .hero-section {
        text-align: center;
    }

    .features {
        align-items: center;
    }

    .feature-badge:hover {
        transform: translateY(-5px);
    }

    .illustration-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .top-nav {
        padding: 1rem 1.5rem;
    }

    .brand-name {
        font-size: 1rem;
    }

    .tagline {
        font-size: 0.6rem;
    }

    .nav-right {
        gap: 0.5rem;
    }

    .language-selector {
        padding: 0.4rem 0.75rem;
    }

    .btn-outline, .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .main-heading {
        font-size: 2rem;
    }

    .window-frame {
        width: 300px;
    }

    .signup-card {
        padding: 1.5rem;
    }

    .container {
        padding-bottom: 7rem;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .notification-panel {
        width: 90%;
        right: -100%;
    }

    .notification-panel.active {
        right: 5%;
    }

    .chat-window {
        width: 90%;
        right: 5%;
        left: 5%;
    }

    .chat-button {
        width: 50px;
        height: 50px;
        bottom: 80px;
    }

    .cookie-content {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .main-heading {
        font-size: 1.75rem;
    }

    .window-frame {
        width: 280px;
    }

    .awning {
        height: 35px;
    }

    .signboard {
        padding: 0.4rem 1.5rem;
    }

    .sign-text {
        font-size: 0.85rem;
    }

    .window-content {
        padding: 1.5rem 1rem;
        min-height: 240px;
    }

    .top-shelf .book {
        height: 50px;
        width: 24px;
    }

    .bottom-shelf .book {
        height: 40px;
        width: 24px;
    }

    .desk {
        width: 100px;
        height: 40px;
    }

    .chair {
        width: 35px;
        height: 40px;
    }

    .bottom-nav {
        padding: 0.5rem;
    }

    .nav-item {
        min-width: 60px;
        padding: 0.4rem 0.5rem;
    }

    .nav-item svg {
        width: 20px;
        height: 20px;
    }

    .nav-item span {
        font-size: 0.7rem;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Success/Error Messages */
.message {
    padding: 1rem;
    border-radius: 10px;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    animation: slideIn 0.3s ease;
}

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

.message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}
