:root {
    --bg-color: #0a0806;
    --bg-secondary: #12100c;
    --gold-primary: #d4af37;
    --gold-light: #f9e596;
    --gold-dark: #aa8623;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.15);
    --glass-nav-bg: rgba(10, 8, 6, 0.9);
    --text-main: #ffffff;
    --text-muted: #a09d96;
    --success: #00e676;
    --danger: #ff4d6d;
    --info: #38bdf8;

    --loader-gold: #d4af37;
    --loader-gold-light: #f9e596;
    --loader-gold-dark: #aa8623;
    --loader-glow: rgba(212, 175, 55, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
    scrollbar-width: none;
}
*::-webkit-scrollbar {
  display: none;               /* Chrome, Safari */
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: transparent;
}

body {
    background-color: #000;
    color: var(--text-main);
    display: flex;
    justify-content: center;
}

/* --- Mobile Container Setup --- */
.mobile-app {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    background: linear-gradient(180deg, #1f1706 0%, var(--bg-color) 30%);
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 100px;
    /* padding-top: 70px; */
    /* Space for nav + float button */
}

/* --- Header --- */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 15px;
    min-height: 60px;
    position: sticky;
    width: 100%;
    max-width: 480px;
    top: 0;
    /* background: rgba(10, 8, 6, 0.7);
    backdrop-filter: blur(20px); */
    -webkit-backdrop-filter: blur(20px);
    z-index: 90;
    /* background: var(--bg-color); */
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent !important;
    backdrop-filter: none !important;
    position: static !important;
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    height: 75px;
    background: var(--glass-nav-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    width: 20%;
    height: 100%;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.3rem;
    margin-bottom: 6px;
    transition: transform 0.3s;
}

.nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-item.active {
    color: var(--gold-primary);
}

.nav-item.active i {
    transform: translateY(-3px);
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.nav-center .center-btn {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    margin-bottom: 4px;
    transform: translateY(-12px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    border: 2px solid #000;
}

.nav-center.active .center-btn {
    transform: translateY(-14px) scale(1.05);
}

.nav-center span {
    transform: translateY(-10px);
}

/* loader code  */

#full-screen-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* Premium Dark Glass backdrop */
    background-color: rgba(10, 8, 6, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

/* Active Class to show loader */
#full-screen-loader.active {
    opacity: 1;
    visibility: visible;
}

/* Background ambient glow behind spinner */
.loader-ambient-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    background: var(--loader-gold);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
    animation: breathe 3s ease-in-out infinite;
}

/* The Spinner Container */
.spinner-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

/* Unique Hexagon / Diamond rotating frame */
.premium-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-top-color: var(--loader-gold);
    border-bottom-color: var(--loader-gold-dark);
    border-radius: 20px;
    /* Slight rounding for elegant look */
    animation: spin-elegant 1.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
    box-shadow: 0 0 15px var(--loader-glow);
}

/* Inner fast ring */
.premium-ring.inner {
    width: 60%;
    height: 60%;
    border-radius: 50%;
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-left-color: var(--loader-gold-light);
    border-right-color: var(--loader-gold-light);
    animation: spin-reverse 1.2s linear infinite;
    box-shadow: none;
}

/* Center Pulsing Icon */
.spinner-icon {
    font-size: 24px;
    background: linear-gradient(135deg, var(--loader-gold-light), var(--loader-gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse-icon 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 5px rgba(212, 175, 55, 0.5));
}

/* Loading Text (Optional, currently hidden) */
.loading-text {
    margin-top: 25px;
    color: var(--loader-gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: pulse-text 1.5s ease-in-out infinite;
    z-index: 1;
}

/* Keyframes */
@keyframes spin-elegant {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(180deg);
        border-radius: 40px;
    }

    /* Morphs to circle midway */
    100% {
        transform: rotate(360deg);
        border-radius: 20px;
    }
}

@keyframes spin-reverse {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(0.85);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.1;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.25;
        transform: scale(1.2);
    }
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--loader-glow);
    }
}