:root {
    --bg-deep: #050505;
    --bg-panel: rgba(20, 20, 20, 0.6);
    --primary: #00f2ff; /* Cyberpunk Cyan */
    --secondary: #7000ff; /* Neon Purple */
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass: blur(16px) saturate(180%);
    --border-color: rgba(255, 255, 255, 0.1);
    --font-head: 'Orbitron', sans-serif; /* You should import this in header */
    --font-body: 'Inter', sans-serif;
    --drawer-width: 400px;
}

body {
    background-color: var(--bg-deep);
    background-image: radial-gradient(circle at 50% 0%, #1a1a2e 0%, var(--bg-deep) 60%);
    color: var(--text-main);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

/* --- Header --- */
.zen-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo a {
    font-family: var(--font-head);
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    text-shadow: 0 0 10px var(--primary);
}

.logo span { color: var(--primary); }

.btn-login {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
}

.btn-login:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* --- Authentication Drawer (Right Side) --- */
.auth-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.auth-drawer {
    position: fixed;
    top: 0;
    right: -100%; /* Hidden by default */
    width: var(--drawer-width);
    height: 100vh;
    background: #0a0a0a;
    border-left: 1px solid var(--border-color);
    z-index: 1000;
    padding: 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.auth-drawer.active { right: 0; }
.auth-overlay.active { opacity: 1; visibility: visible; }

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-drawer {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Forms */
.auth-forms-container { position: relative; }
.auth-form { transition: opacity 0.3s ease; }
.hidden { display: none; opacity: 0; }

h2.auth-title {
    font-family: var(--font-head);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.input-group { margin-bottom: 1.2rem; }
.input-group label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 5px; }
.input-group input, .input-group select {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 10px;
    color: white;
    border-radius: 4px;
    font-family: var(--font-body);
}
.input-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #000;
    border: none;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--font-head);
    margin-top: 10px;
}

.divider {
    text-align: center;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
}

/* Google Button */
.btn-google {
    width: 100%;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    gap: 10px;
}

.switch-auth {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.switch-auth a { color: var(--primary); cursor: pointer; }

/* Mobile */
@media (max-width: 500px) {
    .auth-drawer { width: 100%; border-left: none; }
}

/* Header Design */
.zen-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Mobile Friendly adjustments */
@media (max-width: 768px) {
    .zen-navbar {
        flex-direction: column;
        gap: 10px;
    }
}

/* Breadcrumbs */
.breadcrumbs-container {
    padding: 10px 5%;
    font-size: 0.9rem;
    color: #94a3b8;
}
.breadcrumbs-container a {
    color: var(--primary);
    text-decoration: none;
}
/* Breadcrumbs */
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
}
.breadcrumb-list li {
    display: flex;
    align-items: center;
}
.breadcrumb-list li span {
    margin: 0 8px;
    color: #475569;
}
.breadcrumb-list a:hover {
    color: #fff;
}

/* Footer */
.zen-footer {
    background: #020617; /* Darker than body */
    border-top: var(--border);
    margin-top: 50px;
    padding: 3rem 5%;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}
.footer-col h3 {
    color: var(--primary);
    margin-top: 0;
    font-size: 1.1rem;
}
.footer-col p {
    color: #94a3b8;
    font-size: 0.9rem;
}
.lang-switcher {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 10px;
}
.lang-switcher a {
    color: #94a3b8;
    text-decoration: none;
    border: 1px solid #334155;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    transition: all 0.3s;
}
.lang-switcher a:hover {
    background: var(--primary);
    color: #000;
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: #64748b;
}
/* Fix for Dropdowns in Dark Mode */
select {
    appearance: none; /* Remove default arrow to style consistently */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2300f2ff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right .7em top 50%;
    background-size: .65em auto;
    padding-right: 2rem;
}

/* Force dark background on options (Browser specific) */
select option {
    background-color: #0a0a0a;
    color: #ffffff;
    padding: 10px;
}
/* Google Button Styling */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    padding: 10px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif; /* Google standard font */
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    margin-top: 15px;
}

.btn-google:hover {
    background-color: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.btn-google svg {
    margin-right: 12px;
    width: 18px;
    height: 18px;
}
/* --- User Header Dropdown --- */
.user-menu-container {
    position: relative;
    display: inline-block;
}

.user-avatar-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.2);
    transition: 0.3s;
}

.user-avatar-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

.user-avatar-trigger img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-dropdown-menu {
    position: absolute;
    top: 120%;
    right: 0;
    width: 250px;
    background: #0a0a0a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 2000;
}

/* Show on Hover (Desktop) */
.user-menu-container:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mobile: Click to toggle (handled via JS if needed, but hover often works on touch) */
.user-info-mini {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-align: center;
}
.user-info-mini h4 { margin: 0; color: white; font-size: 1rem; }
.user-info-mini span { color: #888; font-size: 0.8rem; }

.menu-link {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #ccc;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.2s;
    font-size: 0.9rem;
}
.menu-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--primary);
}
.menu-link.logout { color: #ff4d4d; }
.menu-link.logout:hover { background: rgba(255, 77, 77, 0.1); }

/* Dark Mode Adjustment for button text if needed, 
   but Google usually prefers White button even on dark backgrounds */