:root {
    --bg-main: #869897;
    --bg-band: #8ea39e;
    --bg-footer: #6f8581;
    --text-main: #0f1514;
    --text-light: #f5f8f7;
    --accent: #ff914d;
    --accent-dark: #e26820;
    --badge-bg: #111416;
}

/* ==================== GLOBAL LOADING OVERLAY ==================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 21, 20, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    animation: loadingFadeIn 0.3s ease forwards;
}

.loading-overlay .overlay-content {
    text-align: center;
}

.loading-overlay .spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
}

.loading-overlay .spinner-main {
    width: 100%;
    height: 100%;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    animation: loadingSpin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
}

.loading-overlay .spinner-ring {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 60px;
    height: 60px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid white;
    border-radius: 50%;
    animation: loadingSpinReverse 1.5s linear infinite;
}

.loading-overlay .loading-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes loadingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadingSpinReverse {
    to {
        transform: rotate(-360deg);
    }
}

@keyframes loadingFadeIn {
    to {
        opacity: 1;
    }
}

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

@font-face {
    font-family: silver;
    src: url(/user/fonts/fonnts.com-Silver_Streak.otf) format("opentype");
}

@font-face {
    font-family: Roboto;
    src: url(/user/fonts/roboto/Roboto-Medium.ttf);
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

.section {
    width: 100%;
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto;
}

/* NAVBAR */
.topbar {
    background: var(--bg-main);
    color: var(--text-light);
    padding-block: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    color: rgb(181, 5, 5);
    font-family: silver;
}

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

.nav-links {
    list-style: none;
    display: flex;
    gap: 100px;
    font-family: Roboto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-icon {
    position: relative;
    color: var(--text-light);
    font-size: 1.2rem;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.nav-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    width: 44px;
    height: 44px;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    height: 2px;
    width: 24px;
    background: var(--text-light);
    transition: all 0.3s ease;
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* PROFILE DROPDOWN */
.profile-dropdown-wrapper {
    position: relative;
}

.profile-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.profile-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-header {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dropdown-user-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 0 1rem;
}

.dropdown-menu {
    list-style: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.dropdown-item:hover {
    background: rgba(255, 145, 77, 0.1);
    color: var(--accent);
}

.dropdown-item i {
    width: 20px;
    font-size: 1.1rem;
    text-align: center;
}

.dropdown-footer {
    padding: 0.5rem 0;
}

.dropdown-item.logout {
    color: #dc3545;
}

.dropdown-item.logout:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #c82333;
}

.profile-dropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.98);
    transform: rotate(45deg);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

/* FOOTER */
.footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding-block: 4rem 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-info .footer-logo {
    font-family: silver;
    font-size: 2rem;
    color: rgb(113, 1, 1);
    margin-bottom: 1rem;
}

.footer-info p {
    opacity: 0.8;
    max-width: 280px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-light);
}

.footer-col ul {
    list-style: none;
}


.footer-col ul a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;

    font-weight: 300;
    font-size: 0.95rem;
}

.footer-col ul a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.4rem;
    opacity: 0.8;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--accent);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* BUTTONS */
.btn {
    border-radius: 999px;
    padding: 0.7rem 1.6rem;
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn.primary {
    background: var(--accent);
    color: var(--text-light);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.btn.primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.btn.outline {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
}


.btn.outline:hover {
    background: var(--text-main);
    color: var(--bg-main);
}

.google-signup {
    background: white;
    color: #333;
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-weight: 500;
    padding: 1.1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.google-signup a {
    text-decoration: none;
    color: black;
    width: 100%;
}

.google-signup:hover {
    background: #f8f9fa;
    border-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.google-signup i {
    font-size: 1.2rem;
}

/* RESPONSIVE */
/* ==========================================
   RESPONSIVE OVERHAUL (From Scratch)
   ========================================== */

/* Tablet & Smaller Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .nav-links {
        gap: 40px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet / Mobile Layout Transition (max-width: 768px) */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        height: calc(100svh - 70px);
        background: var(--bg-main);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease;
        z-index: 999;
        gap: 2rem;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-actions {
        gap: 1rem;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-info p {
        margin-inline: auto;
    }

    .footer-social {
        justify-content: center;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }
}

/* Standard Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    .nav-actions {
        gap: 0.8rem;
    }

    .nav-icon {
        font-size: 1.05rem;
        padding: 0.4rem;
    }

    .footer {
        padding-block: 2.5rem 1.5rem;
    }

    .footer-inner {
        gap: 2rem;
    }

    .footer-col h4 {
        margin-bottom: 1rem;
    }

    .page-header {
        padding: 1.5rem 0 2rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 0.85rem;
    }
}

/* Small Mobile (max-width: 320px) */
@media (max-width: 320px) {
    .container {
        width: 95%;
    }

    .logo {
        font-size: 1.5rem;
    }

    .nav-inner {
        gap: 0.5rem;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .nav-icon {
        font-size: 1rem;
        padding: 0.35rem;
    }

    .nav-badge {
        width: 16px;
        height: 16px;
        font-size: 0.6rem;
    }

    .footer {
        padding-block: 2rem 1rem;
    }

    .footer-inner {
        gap: 1.5rem;
    }

    .page-header {
        padding: 1rem 0 1.5rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .topbar {
        padding-block: 0.8rem;
    }
}

/* ==================== Reduced Motion ==================== */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}