@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Sora:wght@500;600;700;800&display=swap");

/* Root Variables */
:root {
    --background: hsl(20, 10%, 6%);
    --foreground: hsl(35, 30%, 85%);
    --card: hsl(20, 12%, 10%);
    --card-foreground: hsl(35, 30%, 85%);
    --primary: hsl(35, 80%, 50%);
    --primary-foreground: hsl(20, 10%, 6%);
    --secondary: hsl(25, 15%, 15%);
    --secondary-foreground: hsl(35, 30%, 85%);
    --muted: hsl(20, 10%, 12%);
    --muted-foreground: hsl(35, 15%, 50%);
    --accent: hsl(30, 90%, 55%);
    --accent-foreground: hsl(20, 10%, 6%);
    --border: hsl(30, 25%, 18%);
    --glow-primary: hsl(35, 80%, 50%);
    --glow-warm: hsl(25, 90%, 40%);
    --gold: hsl(40, 47%, 32%);
    --gold-dark: hsl(35, 70%, 35%);
    --brown-dark: hsl(20, 15%, 8%);
    --brown-mid: hsl(20, 12%, 14%);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: "Manrope", sans-serif;
    min-height: 100vh;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* Font Classes */
.font-cinzel {
    font-family: "Sora", sans-serif;
}

.font-cinzel-regular {
    font-family: "Sora", sans-serif;
}

.tracking-wider {
    letter-spacing: 0.15em;
}

/* Remove underlines from all links */
a,
.underline {
    text-decoration: none !important;
}

/* Glow Effects */
.glow-text {
    text-shadow:
        0 0 10px hsla(35, 81%, 19%, 0.411),
        0 0 30px hsl(35 80% 50% / 0.3),
        0 0 60px hsl(35 80% 50% / 0.1);
}

.glow-text-strong {
    text-shadow:
        0 0 10px hsl(35 80% 50% / 0.9),
        0 0 30px hsl(35 80% 50% / 0.5),
        0 0 60px hsl(35 80% 50% / 0.3),
        0 2px 4px rgba(0, 0, 0, 0.8);
}

.glow-box {
    box-shadow:
        0 0 15px hsl(35 80% 50% / 0.15),
        inset 0 1px 0 hsl(35 80% 50% / 0.1);
}

.auth-title-glow-line {
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 0.7rem;
}

.auth-title-glow-line::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: min(220px, 78%);
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        hsl(44 92% 66%) 25%,
        hsl(44 92% 66%) 75%,
        transparent 100%
    );
    box-shadow:
        0 0 10px hsl(44 90% 60% / 0.75),
        0 0 20px hsl(44 90% 60% / 0.35);
}

/* Navigation Bar */
.nav-bar {
    background: linear-gradient(
        180deg,
        hsl(20 12% 12% / 0.95) 0%,
        hsl(20 10% 8% / 0.98) 100%
    );
    backdrop-filter: blur(10px);
    z-index: 1000;
    overflow: visible;
}

.nav-logo {
    height: 86px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.nav-bar .container-fluid > .d-flex.py-2 {
    /* navbar height ثابت — اللوجو يطفو فوق وتحت بدون تأثير على الارتفاع */
    height: 64px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible;
}

.nav-link {
    position: relative;
    padding: 0.5rem 0.6rem;
    /* keep navbar height in check */
    line-height: 64px;
    padding-top: 0;
    padding-bottom: 0;
    color: hsl(35, 25%, 65%);
    font-family: "Sora", sans-serif;
    font-size: 0.875rem;
    letter-spacing: 1.3px;
    text-decoration: none;
    transition: color 0.25s;
}

/* Golden glow underline on active/hover */
.nav-link::after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        hsl(44 92% 66%) 30%,
        hsl(44 92% 66%) 70%,
        transparent 100%
    );
    box-shadow: 0 0 10px hsl(44 90% 60% / 0.7);
    transition: width 0.3s ease;
    pointer-events: none;
}

.nav-link:hover,
.nav-link.active {
    color: hsl(44, 95%, 72%);
    text-shadow: 0 0 10px hsl(44 90% 60% / 0.55);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

/* Active link gets a subtly stronger glow */
.nav-link.active {
    color: hsl(46, 100%, 78%);
    text-shadow:
        0 0 12px hsl(44 95% 62% / 0.7),
        0 0 28px hsl(38 80% 50% / 0.35);
}

/* Buttons */
/* ═══════════════════════════════════════
   RPG FANTASY NAV BUTTONS
═══════════════════════════════════════ */

/* Hidden utility span (frame handled via CSS) */
.btn-rpg-frame {
    display: none;
}

/* ── Shared base ── */
.btn-login,
.btn-register {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 24px;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    font-size: 0.6rem;
    letter-spacing: 2.5px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0;
    white-space: nowrap;
    transition: all 0.28s ease;
    --btn-accent: hsl(35 25% 65%);
    --btn-accent-soft: hsl(35 18% 56%);
    --btn-accent-strong: hsl(35 28% 74%);
    /* Dark metallic panel */
    background: linear-gradient(
        180deg,
        hsl(25 22% 11%) 0%,
        hsl(20 12% 6%) 55%,
        hsl(25 18% 9%) 100%
    );
    /* Gold outer border */
    box-shadow:
        0 0 0 1px var(--btn-accent),
        0 0 0 3px hsl(28 25% 10% / 0.9),
        inset 0 1px 0 hsl(35 18% 72% / 0.14),
        inset 0 -1px 0 hsl(20 10% 4% / 0.9),
        0 6px 20px hsl(35 70% 35% / 0.2);
}

/* ── Corner bracket ornaments (8 golden L-lines) ── */
.btn-login::before,
.btn-register::before {
    content: "";
    position: absolute;
    inset: -5px;
    pointer-events: none;
    background:
    /* top-left H */
        linear-gradient(var(--btn-accent), var(--btn-accent)) top left / 12px
            1px no-repeat,
        /* top-left V */ linear-gradient(var(--btn-accent), var(--btn-accent))
            top left / 1px 12px no-repeat,
        /* top-right H*/ linear-gradient(var(--btn-accent), var(--btn-accent))
            top right / 12px 1px no-repeat,
        /* top-right V*/ linear-gradient(var(--btn-accent), var(--btn-accent))
            top right / 1px 12px no-repeat,
        /* bot-left  H*/ linear-gradient(var(--btn-accent), var(--btn-accent))
            bottom left / 12px 1px no-repeat,
        /* bot-left  V*/ linear-gradient(var(--btn-accent), var(--btn-accent))
            bottom left / 1px 12px no-repeat,
        /* bot-right H*/ linear-gradient(var(--btn-accent), var(--btn-accent))
            bottom right / 12px 1px no-repeat,
        /* bot-right V*/ linear-gradient(var(--btn-accent), var(--btn-accent))
            bottom right / 1px 12px no-repeat;
}

/* ── Top inner shimmer streak — REMOVED ── */

/* ── Inner text span ── */
.btn-rpg-text {
    position: relative;
    z-index: 1;
    pointer-events: none;
    font-family: "Sora", sans-serif;
    font-weight: 800;
    text-transform: none;
}

/* ══ LOGIN  (bright gold) ══ */
.btn-login .btn-rpg-text {
    color: var(--btn-accent-strong);
    text-shadow:
        0 0 7px hsl(35 18% 42% / 0.55),
        0 0 18px hsl(35 18% 32% / 0.35),
        0 1px 0 hsl(20 10% 4%);
}

.btn-login:hover {
    background: linear-gradient(
        180deg,
        hsl(25 22% 14%) 0%,
        hsl(20 12% 9%) 55%,
        hsl(25 18% 12%) 100%
    );
    box-shadow:
        0 0 0 1px var(--btn-accent-strong),
        0 0 0 2px hsl(28 25% 10% / 0.9),
        inset 0 1px 0 hsl(35 18% 72% / 0.18),
        inset 0 -1px 0 hsl(20 10% 4% / 0.9),
        0 0 7px hsl(35 18% 42% / 0.35),
        0 6px 28px hsl(35 75% 40% / 0.35);
    transform: translateY(-1px);
}

.btn-login:hover .btn-rpg-text {
    color: var(--btn-accent-strong);
    text-shadow:
        0 0 10px hsl(35 18% 44% / 0.55),
        0 0 28px hsl(35 18% 34% / 0.35);
}

/* ══ REGISTER  (darker panel, amber outline) ══ */
.btn-register {
    background: linear-gradient(
        180deg,
        hsl(22 16% 8%) 0%,
        hsl(20 10% 5%) 60%,
        hsl(22 14% 7%) 100%
    );
    box-shadow:
        0 0 0 1px var(--btn-accent),
        0 0 0 3px hsl(26 22% 9% / 0.9),
        inset 0 1px 0 hsl(35 18% 72% / 0.08),
        0 6px 16px hsl(35 55% 28% / 0.18);
}

.btn-register::before {
    background:
        linear-gradient(var(--btn-accent), var(--btn-accent)) top left / 12px
            1px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) top left / 1px
            12px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) top right / 12px
            1px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) top right / 1px
            12px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) bottom left / 12px
            1px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) bottom left / 1px
            12px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) bottom right /
            12px 1px no-repeat,
        linear-gradient(var(--btn-accent), var(--btn-accent)) bottom right / 1px
            12px no-repeat;
}

.btn-register .btn-rpg-text {
    color: var(--btn-accent-strong);
    text-shadow:
        0 0 7px hsl(35 18% 42% / 0.45),
        0 1px 0 hsl(20 10% 4%);
}

.btn-register:hover {
    background: linear-gradient(
        180deg,
        hsl(22 18% 12%) 0%,
        hsl(20 12% 8%) 60%,
        hsl(22 16% 10%) 100%
    );
    box-shadow:
        0 0 0 1px var(--btn-accent-strong),
        0 0 0 3px hsl(28 25% 10% / 0.9),
        inset 0 1px 0 hsl(35 18% 72% / 0.14),
        0 0 18px hsl(35 18% 40% / 0.28),
        0 6px 24px hsl(35 60% 34% / 0.28);
    transform: translateY(-1px);
}

.btn-register:hover .btn-rpg-text {
    color: var(--btn-accent-strong);
    text-shadow:
        0 0 10px hsl(35 18% 44% / 0.45),
        0 0 24px hsl(35 18% 34% / 0.3);
}

/* ══ LOGOUT  (red danger) ══ */
.btn-logout {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-family: "Sora", sans-serif;
    font-weight: 700;
    font-size: 0.56rem;
    letter-spacing: 1.8px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0;
    white-space: nowrap;
    transition: all 0.28s ease;
    background: linear-gradient(
        180deg,
        hsl(0 70% 12%) 0%,
        hsl(0 65% 8%) 55%,
        hsl(0 70% 10%) 100%
    );
    box-shadow:
        0 0 0 1px hsl(0 72% 46%),
        0 0 0 3px hsl(28 25% 10% / 0.9),
        inset 0 1px 0 hsl(0 80% 62% / 0.14),
        inset 0 -1px 0 hsl(20 10% 4% / 0.9),
        0 6px 20px hsl(0 70% 30% / 0.25);
}

.btn-logout::before {
    content: "";
    position: absolute;
    inset: -4px;
    pointer-events: none;
    background:
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) top left / 10px 1px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) top left / 1px 10px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) top right / 10px 1px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) top right / 1px 10px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) bottom left / 10px 1px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) bottom left / 1px 10px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) bottom right / 10px 1px
            no-repeat,
        linear-gradient(hsl(0 78% 60%), hsl(0 78% 60%)) bottom right / 1px 10px
            no-repeat;
}

.btn-logout .btn-rpg-text {
    color: hsl(0 85% 68%);
    text-shadow:
        0 0 7px hsl(0 75% 50% / 0.65),
        0 1px 0 hsl(20 10% 4%);
}

.btn-logout:hover {
    background: linear-gradient(
        180deg,
        hsl(0 75% 16%) 0%,
        hsl(0 70% 10%) 55%,
        hsl(0 75% 13%) 100%
    );
    box-shadow:
        0 0 0 1px hsl(0 85% 56%),
        0 0 0 3px hsl(28 25% 10% / 0.9),
        inset 0 1px 0 hsl(0 88% 72% / 0.2),
        0 0 22px hsl(0 75% 50% / 0.5),
        0 6px 28px hsl(0 70% 40% / 0.35);
    transform: translateY(-1px);
}

/* ══ LOGOUT ICON  (simple icon button) ══ */
.btn-logout-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0;
    background: transparent;
    color: hsl(0 85% 68%);
    font-size: 1.4rem;
    transition: all 0.25s ease;
}

.btn-logout-icon:hover {
    color: hsl(0 95% 76%);
    text-shadow: 0 0 8px hsl(0 75% 55% / 0.6);
    transform: scale(1.1);
}

.btn-logout-icon:active {
    transform: scale(0.95);
}

.btn-logout:hover .btn-rpg-text {
    color: hsl(0 95% 76%);
    text-shadow:
        0 0 10px hsl(0 85% 65% / 0.95),
        0 0 28px hsl(0 75% 55% / 0.65);
}

/* Hero Section */
.hero-section {
    position: relative;
    /* Match hero-banner.jpg aspect ratio (1920×576 = 30%) */
    height: calc(100vw * 576 / 1920);
    min-height: 380px;
    max-height: 680px;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("../assets/hero-banner.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: saturate(1.12) contrast(1.08) brightness(0.92);
    opacity: 0.9;
    transition: opacity 0.6s ease;
}

.hero-bg-image.is-loaded {
    opacity: 1;
}

/* Light overlay element sitting on top of the static image */
.hero-bg-image::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse at 70% 30%,
            hsl(35 90% 62% / 0.3) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse at 30% 70%,
            hsl(35 70% 50% / 0.12) 0%,
            transparent 45%
        );
    mix-blend-mode: screen;
    animation: hero-light-sweep 8s ease-in-out infinite alternate;
}

/* Secondary subtle ambient light */
.hero-bg-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle at 55% 50%,
        hsl(35 80% 60% / 0.1) 0%,
        transparent 50%
    );
    mix-blend-mode: screen;
    animation: hero-light-pulse 5s ease-in-out infinite alternate;
}

@keyframes hero-light-sweep {
    0% {
        opacity: 0.5;
        background-position: 65% 28%;
    }
    50% {
        opacity: 0.85;
        background-position: 72% 22%;
    }
    100% {
        opacity: 0.6;
        background-position: 68% 32%;
    }
}

@keyframes hero-light-pulse {
    0% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.8;
    }
}

.hero-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        hsl(20 10% 6% / 0.85) 0%,
        hsl(20 10% 6% / 0.5) 40%,
        transparent 70%
    );
}

.hero-content {
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
    min-height: 380px;
    padding: 2rem 0;
}

.hero-logo {
    width: 450px;
    max-width: 100%;
    filter: drop-shadow(0 0 15px hsl(35 80% 50% / 0.6))
        drop-shadow(0 0 40px hsl(35 80% 50% / 0.3));
}

.logo-glow {
    animation: logo-pulse 3s ease-in-out infinite;
}

@keyframes logo-pulse {
    0%,
    100% {
        filter: drop-shadow(0 0 15px hsl(35 80% 50% / 0.6))
            drop-shadow(0 0 40px hsl(35 80% 50% / 0.3));
    }
    50% {
        filter: drop-shadow(0 0 25px hsl(35 80% 50% / 0.8))
            drop-shadow(0 0 60px hsl(35 80% 50% / 0.5));
    }
}

.logo-effects-container {
    position: relative;
    display: inline-block;
}

.logo-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.logo-particle {
    position: absolute;
    bottom: 0;
    width: 3px;
    height: 3px;
    background: hsl(35 80% 60%);
    border-radius: 50%;
    animation: particle-float linear infinite;
    box-shadow:
        0 0 6px hsl(35 80% 50% / 0.8),
        0 0 12px hsl(35 80% 50% / 0.4);
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-80px) scale(0.3);
        opacity: 0;
    }
}

.hero-info-box {
    background: hsl(20 10% 6% / 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid hsl(35 70% 45% / 0.2);
    border-radius: 8px;
    padding: 40px;
    max-width: 550px;
}

.hero-title {
    color: hsl(35, 30%, 90%);
}

.hero-subtitle {
    color: hsl(35, 80%, 55%);
}

.hero-status {
    color: hsl(120, 60%, 50%);
}

.hero-description {
    color: hsl(35, 15%, 60%);
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-start-playing {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 56px;
    font-family: "Sora", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 3.5px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.28s ease;
    color: hsl(22, 18%, 7%);
    text-shadow: 0 1px 0 hsl(44 90% 80% / 0.35);
    /* Gold filled panel — same palette as the ACCOUNT button */
    background: linear-gradient(
        180deg,
        hsl(44 80% 62%) 0%,
        hsl(40 72% 50%) 45%,
        hsl(34 65% 42%) 100%
    );
    box-shadow:
        0 0 0 1px hsl(42 68% 46%),
        0 0 0 3px hsl(28 25% 8% / 0.85),
        inset 0 1px 0 hsl(48 95% 82% / 0.35),
        inset 0 -1px 0 hsl(30 50% 28% / 0.6),
        0 6px 28px hsl(38 80% 48% / 0.35);
}

/* Corner bracket ornaments */
.btn-start-playing::before {
    content: "";
    position: absolute;
    inset: -5px;
    pointer-events: none;
    background:
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) top left / 14px 1px
            no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) top left / 1px 14px
            no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) top right / 14px 1px
            no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) top right / 1px 14px
            no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) bottom left / 14px 1px
            no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) bottom left / 1px 14px
            no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) bottom right / 14px
            1px no-repeat,
        linear-gradient(hsl(44 96% 76%), hsl(44 96% 76%)) bottom right / 1px
            14px no-repeat;
}

.btn-start-playing:hover {
    background: linear-gradient(
        180deg,
        hsl(46 88% 70%) 0%,
        hsl(42 80% 58%) 45%,
        hsl(36 72% 48%) 100%
    );
    box-shadow:
        0 0 0 1px hsl(46 90% 62%),
        0 0 0 1px hsl(28 25% 8% / 0.85),
        inset 0 1px 0 hsl(50 100% 88% / 0.45),
        0 0 12px hsl(42 85% 55% / 0.65),
        0 8px 36px hsl(36 75% 44% / 0.45);
    transform: translateY(-2px);
}

.btn-start-playing:active {
    transform: translateY(0);
}

.default-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 56px;
    font-family: "Sora", sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 3.5px;
    cursor: pointer;
    border: none;
    outline: none;
    border-radius: 0;
    overflow: visible;
    transition: all 0.28s ease;
    color: hsl(20 18% 14%);
    text-shadow: 0 1px 0 hsl(39 85% 82% / 0.35);
    text-decoration: none;
    background: linear-gradient(
        180deg,
        hsl(37 60% 69%) 0%,
        hsl(40 50% 56%) 45%,
        hsl(36 52% 46%) 100%
    );
    box-shadow:
        0 0 0 1px hsl(39 65% 64% / 0.65),
        0 0 0 3px hsl(28 25% 8% / 0.85),
        inset 0 1px 0 hsl(46 88% 86% / 0.35),
        inset 0 -1px 0 hsl(34 48% 30% / 0.6),
        0 6px 28px hsl(39 60% 52% / 0.35);
}

.default-btn::before {
    content: "";
    position: absolute;
    inset: -5px;
    pointer-events: none;
    background:
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) top left / 14px 1px
            no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) top left / 1px 14px
            no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) top right / 14px 1px
            no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) top right / 1px 14px
            no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) bottom left / 14px 1px
            no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) bottom left / 1px 14px
            no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) bottom right / 14px
            1px no-repeat,
        linear-gradient(hsl(39 90% 78%), hsl(39 90% 78%)) bottom right / 1px
            14px no-repeat;
}

.default-btn:hover {
    background: linear-gradient(
        180deg,
        hsl(40 66% 75%) 0%,
        hsl(39 58% 62%) 45%,
        hsl(36 56% 50%) 100%
    );
    box-shadow:
        0 0 0 1px hsl(39 72% 70% / 0.85),
        0 0 0 1px hsl(28 25% 8% / 0.85),
        inset 0 1px 0 hsl(48 96% 90% / 0.45),
        0 0 12px hsl(40 70% 62% / 0.55),
        0 8px 36px hsl(38 62% 46% / 0.4);
    transform: translateY(-2px);
}

.default-btn:active {
    transform: translateY(0);
}

/* ── Form Inputs — Dark Burnt Brown Theme ── */
.form-control {
    background-color: hsl(20, 14%, 10%);
    color: var(--foreground);
    border: 1px solid hsl(30, 25%, 22%);
    border-radius: 3px;
    font-family: "Manrope", sans-serif;
    text-transform: none;
    font-variant: normal;
    letter-spacing: normal;
    font-size: 0.9rem;
    padding: 0.6rem 0.85rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-control:focus {
    background-color: hsl(20, 16%, 12%);
    color: var(--foreground);
    border-color: hsl(35, 70%, 42%);
    box-shadow:
        0 0 0 3px hsl(35 80% 50% / 0.15),
        inset 0 1px 3px hsl(20 15% 5% / 0.5);
    outline: none;
}

.form-control::placeholder {
    color: hsl(35, 15%, 35%);
}

.form-control.is-invalid {
    border-color: hsl(0, 65%, 45%);
    background-color: hsl(20, 14%, 10%);
    box-shadow: 0 0 0 3px hsl(0 65% 45% / 0.12);
}

.form-control.is-invalid:focus {
    background-color: hsl(20, 16%, 12%);
    border-color: hsl(0, 65%, 45%);
    box-shadow: 0 0 0 3px hsl(0 65% 45% / 0.18);
}

.form-label {
    color: hsl(35, 40%, 65%);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.invalid-feedback {
    color: hsl(0, 65%, 55%);
    font-family: "Manrope", sans-serif;
    font-size: 0.82rem;
}

/* Status Bar */
.status-bar {
    background: linear-gradient(
        180deg,
        hsl(20 12% 10%) 0%,
        hsl(20 10% 7%) 100%
    );
    border-top: 1px solid hsl(35 70% 45% / 0.2);
    border-bottom: 1px solid hsl(35 70% 45% / 0.15);
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-right: 1px solid hsl(35 70% 45% / 0.1);
}

.status-item:last-child {
    border-right: none;
}

.status-icon {
    color: hsl(35, 60%, 50%);
    font-size: 1.25rem;
}

.status-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: hsl(35, 25%, 65%);
}

.status-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(35, 80%, 55%);
}

.status-timezone {
    font-size: 0.75rem;
    color: hsl(35, 15%, 50%);
}

.status-online-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: hsl(120, 60%, 50%);
}

.status-online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(120, 60%, 50%);
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%,
    100% {
        box-shadow: 0 0 5px hsl(120 60% 50% / 0.5);
    }
    50% {
        box-shadow: 0 0 15px hsl(120 60% 50% / 0.8);
    }
}

.status-players {
    font-size: 1.125rem;
    font-weight: 700;
    color: hsl(35, 80%, 55%);
}

.footer-quick-links {
    border-top: 1px solid hsl(35 70% 45% / 0.05);
}

.footer-link {
    color: hsl(35, 20%, 55%);
    font-size: 0.8rem;
    font-family: "Sora", sans-serif;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: hsl(35, 80%, 60%);
}

.server-tag {
    font-size: 0.75rem;
    color: hsl(35, 15%, 45%);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Gold Separator */
.gold-separator {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        hsl(35 70% 45% / 0.5),
        transparent
    );
}

/* Section Titles */
.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: hsl(35deg 26.51% 56.07%);
}

/* News Cards */
.news-card {
    background: linear-gradient(
        180deg,
        hsl(20 12% 11% / 0.95) 0%,
        hsl(20 10% 8% / 0.95) 100%
    );
    border: 1px solid hsl(35 70% 45% / 0.15);
    border-radius: 6px;
    transition: border-color 0.3s;
}

.news-card:hover {
    border-color: hsl(35 70% 45% / 0.3);
}

.news-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: hsl(35, 80%, 55%);
    margin-bottom: 0.5rem;
}

.news-meta {
    font-size: 0.75rem;
    color: hsl(35, 15%, 45%);
    margin-bottom: 1rem;
}

.news-author {
    color: hsl(35, 80%, 55%);
}

.news-content {
    font-size: 0.875rem;
    line-height: 1.6;
    color: hsl(35, 15%, 60%);
}

.news-content p {
    margin-bottom: 0.5rem;
}

.news-content p:last-child {
    margin-bottom: 0;
}

.text-highlight {
    color: hsl(35, 30%, 75%);
}

.read-more-btn {
    border: 1px solid hsl(35 70% 45% / 0.4);
    color: hsl(35, 30%, 70%);
    padding: 6px 16px;
    font-size: 0.8rem;
    font-family: "Sora", sans-serif;
    transition: all 0.3s;
    background: hsl(20, 12%, 12%);
    border-radius: 4px;
    cursor: pointer;
}

.read-more-btn:hover {
    border-color: hsl(35 70% 45%);
    color: hsl(35, 80%, 60%);
    box-shadow: 0 0 8px hsl(35 80% 50% / 0.2);
}

/* Sidebar Cards */
.sidebar-card {
    background: linear-gradient(
        180deg,
        hsl(20 12% 12% / 0.95) 0%,
        hsl(20 10% 9% / 0.95) 100%
    );
    border: 1px solid hsl(35 70% 45% / 0.2);
    border-radius: 6px;
}

/* Admin users table sizing and readability */
.admin-users-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 4px;
}

.admin-users-table {
    table-layout: auto;
    width: 100%;
    min-width: 800px;
}

.admin-users-table th,
.admin-users-table td {
    font-size: 0.81rem;
    padding: 0.65rem 0.75rem;
    vertical-align: middle;
    white-space: nowrap;
}

/* Default column widths for users table */
.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
    width: 50px;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
    width: 80px;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
    width: 120px;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4) {
    width: 110px;
}

/* Special handling for password logs table (9 columns) */
.admin-users-table tbody tr td:nth-child(5),
.admin-users-table tr th:nth-child(5) {
    /* Old Password */
    width: 140px;
    font-family: "Courier New", monospace;
}

.admin-users-table tbody tr td:nth-child(6),
.admin-users-table tr th:nth-child(6) {
    /* New Password */
    width: 140px;
    font-family: "Courier New", monospace;
}

.admin-users-table tbody tr td:nth-child(7),
.admin-users-table tr th:nth-child(7) {
    /* Status */
    width: 90px;
}

.admin-users-table tbody tr td:nth-child(8),
.admin-users-table tr th:nth-child(8) {
    /* Reason */
    width: 150px;
}

.admin-users-table tbody tr td:nth-child(9),
.admin-users-table tr th:nth-child(9) {
    /* Date */
    width: 160px;
}

.text-truncate-cell > span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-break-email > span {
    font-family: "Manrope", sans-serif;
}

.sidebar-title {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: hsl(34, 23%, 68%);
}

/* Social Icons */
.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: hsl(35 70% 45% / 0.12);
    color: hsl(35, 25%, 60%);
    border: 1px solid hsl(35 70% 45% / 0.15);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.social-icon:hover {
    background: hsl(35 70% 45% / 0.25);
    color: hsl(35, 80%, 60%);
    box-shadow: 0 0 10px hsl(35 80% 50% / 0.3);
}

/* PVP Statistics */
.pvp-server-name {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: hsl(35, 30%, 60%);
}

.pvp-row {
    border-bottom: 1px solid hsl(35 70% 45% / 0.08);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s;
}

.pvp-row:hover {
    background: hsl(35 70% 45% / 0.05);
}

.pvp-rank {
    font-size: 0.875rem;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.pvp-rank.top3 {
    color: hsl(35, 80%, 55%);
}

.pvp-rank.other {
    color: hsl(35, 40%, 45%);
}

.pvp-icons {
    display: flex;
    gap: 0.25rem;
    color: hsl(35, 50%, 45%);
}

.pvp-name {
    font-size: 0.875rem;
    color: hsl(35, 30%, 75%);
}

.pvp-kills {
    font-size: 0.75rem;
    font-weight: 700;
    color: hsl(35, 15%, 50%);
}

/* Footer */
.footer-section {
    background: hsl(20, 12%, 6%);
}

.footer-text {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: hsl(35, 15%, 40%);
}

/* ═══════════════════════════════════════════════════════
   MOBILE BOTTOM NAVIGATION
═══════════════════════════════════════════════════════ */

.mobile-bottom-nav {
    display: none; /* hidden on desktop */
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 991px)
═══════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    .hero-logo {
        width: 350px;
    }

    .hero-info-box {
        padding: 30px;
    }

    .status-item {
        border-right: none;
        border-bottom: 1px solid hsl(35 70% 45% / 0.1);
    }

    .status-item:last-child {
        border-bottom: none;
    }

    .nav-bar .d-flex.align-items-center.gap-0 {
        flex-wrap: wrap;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 767px)
═══════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
    /* ── Hide top desktop navbar completely ── */
    .nav-bar {
        display: none !important;
    }

    /* ── Show bottom mobile nav ── */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 2000;
        height: 62px;
        background: linear-gradient(
            180deg,
            hsl(20 14% 10% / 0.98) 0%,
            hsl(20 10% 6% / 0.99) 100%
        );
        border-top: 1px solid hsl(35 70% 45% / 0.35);
        box-shadow: 0 -4px 24px hsl(20 10% 4% / 0.8);
        backdrop-filter: blur(14px);
        padding: 0 4px;
        /* subtle gold line on very top */
        outline: none;
    }

    .mobile-bottom-nav::before {
        content: "";
        position: absolute;
        top: 0;
        left: 10%;
        right: 10%;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent,
            hsl(44 85% 60% / 0.5) 40%,
            hsl(44 85% 60% / 0.5) 60%,
            transparent
        );
    }

    .mob-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        color: hsl(35, 20%, 50%);
        font-family: "Sora", sans-serif;
        font-size: 0.55rem;
        letter-spacing: 0.8px;
        padding: 6px 2px;
        border: none;
        background: transparent;
        cursor: pointer;
        transition: color 0.22s;
        position: relative;
    }

    .mob-nav-item i {
        font-size: 1.25rem;
        line-height: 1;
        transition:
            color 0.22s,
            text-shadow 0.22s;
    }

    /* active indicator — golden dot above icon */
    .mob-nav-item.active::after {
        content: "";
        position: absolute;
        top: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: hsl(44, 92%, 66%);
        box-shadow: 0 0 6px hsl(44 92% 66% / 0.8);
    }

    .mob-nav-item.active,
    .mob-nav-item.active i {
        color: hsl(44, 95%, 72%);
        text-shadow: 0 0 8px hsl(44 90% 60% / 0.6);
    }

    .mob-nav-item:active i {
        transform: scale(0.88);
    }

    /* Login tab — gold accent */
    .mob-nav-login i,
    .mob-nav-login span {
        color: hsl(42, 85%, 60%);
    }

    /* Logout tab — red accent */
    .mob-nav-logout i,
    .mob-nav-logout span {
        color: hsl(0, 85%, 66%);
    }

    /* ── Body padding so content isn’t hidden under bottom nav ── */
    body {
        padding-bottom: 62px;
    }

    /* ── Hero section ── */
    .hero-section {
        height: auto;
        min-height: 0;
        max-height: none;
    }

    .hero-content {
        min-height: 0;
        padding: 2.5rem 0 2rem;
        align-items: flex-start;
    }

    /* Logo centered, bigger */
    .hero-logo {
        width: 85vw;
        max-width: 340px;
        display: block;
        margin: 0 auto;
    }

    .logo-effects-container {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* Hide info box on mobile */
    .hero-info-box {
        display: none !important;
    }

    /* START PLAYING button — centered, full-width feel */
    .hero-content .col-lg-7 > .d-flex {
        align-items: center;
    }

    .hero-content .col-lg-7 > .d-flex > div:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .btn-start-playing,
    .default-btn {
        padding: 13px 0;
        width: 78vw;
        max-width: 300px;
        font-size: 0.95rem;
        letter-spacing: 2.5px;
    }

    /* Hero overlay — stronger on mobile for readability */
    .hero-overlay {
        background: linear-gradient(
            180deg,
            hsl(20 10% 6% / 0.5) 0%,
            hsl(20 10% 6% / 0.65) 100%
        );
    }

    /* ── Status bar ── */
    .status-bar .row {
        flex-direction: column;
    }

    .status-item {
        border-right: none;
        border-bottom: 1px solid hsl(35 70% 45% / 0.1);
        padding: 0.75rem 1rem;
        justify-content: flex-start;
    }

    .status-item:last-child {
        border-bottom: none;
    }

    .footer-quick-links {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    /* ── Main content ── */
    .container.py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }

    /* Sidebar goes below news on mobile */
    .col-lg-8,
    .col-lg-4 {
        width: 100%;
    }

    .news-card.p-4 {
        padding: 1rem !important;
    }

    .sidebar-card.p-4 {
        padding: 1rem !important;
    }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE  (≤ 480px)
═══════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .hero-logo {
        width: 90vw;
    }

    .btn-start-playing,
    .default-btn {
        width: 88vw;
    }

    .mob-nav-item span {
        font-size: 0.48rem;
    }

    .hero-bg-image {
        background-position: 68% center;
    }
}

/* ═══════════════════════════════════════════════════════
   ADMIN PASSWORD LOGS TABLE STYLING
═══════════════════════════════════════════════════════ */
.admin-users-table {
    background: linear-gradient(
        180deg,
        hsl(20 14% 12% / 0.6) 0%,
        hsl(20 12% 9% / 0.6) 100%
    );
    border: 1px solid hsl(35 70% 45% / 0.15);
    border-radius: 4px;
}

.admin-users-table th {
    background: linear-gradient(
        90deg,
        hsl(35 70% 45% / 0.25) 0%,
        hsl(35 70% 45% / 0.15) 100%
    );
    border-bottom: 2px solid hsl(35 70% 45% / 0.4);
    color: hsl(44, 92%, 70%);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75rem;
}

.admin-users-table tbody tr {
    border-bottom: 1px solid hsl(35 70% 45% / 0.1);
    transition: background-color 0.2s ease;
}

.admin-users-table tbody tr:hover {
    background: hsl(35 70% 45% / 0.08);
}

.admin-users-table td {
    color: hsl(0, 0%, 85%);
    padding: 0.75rem 0.8rem;
}

.admin-users-table code {
    background: hsl(20 12% 8%);
    color: hsl(44, 92%, 66%);
    padding: 3px 6px;
    border-radius: 2px;
    font-family: "Courier New", monospace;
    font-size: 0.73rem;
    letter-spacing: 0.3px;
    border: 1px solid hsl(35 70% 45% / 0.15);
    display: inline-block;
    word-break: break-all;
}

.password-cell {
    font-family: "Courier New", monospace !important;
    white-space: normal !important;
}

.admin-users-table .badge {
    font-size: 0.7rem;
    padding: 0.35rem 0.65rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    border-radius: 3px;
}

.admin-users-table .badge.bg-success {
    background: hsl(140, 95%, 45%) !important;
    color: #000 !important;
}

.admin-users-table .badge.bg-danger {
    background: hsl(0, 85%, 55%) !important;
    color: #fff !important;
}

/* ═══════════════════════════════════════════════════════
   FORM CONTROLS STYLING
═══════════════════════════════════════════════════════ */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.125em;
    border: 1px solid hsl(35 70% 45% / 0.4);
    background-color: hsl(20 12% 8%);
    cursor: pointer;
    accent-color: hsl(44, 92%, 66%);
}

.form-check-input:hover {
    border-color: hsl(35 70% 45% / 0.7);
}

.form-check-input:checked {
    background-color: hsl(44, 92%, 66%);
    border-color: hsl(44, 92%, 66%);
}

.form-check-label {
    color: hsl(0, 0%, 85%);
    cursor: pointer;
    margin-left: 0.5rem;
}

/* ═══════════════════════════════════════════════════════
   STATISTICS BOXES
═══════════════════════════════════════════════════════ */
.stats-box {
    padding: 1.25rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid hsl(35 70% 45% / 0.2);
    background: linear-gradient(
        135deg,
        hsl(20 14% 12% / 0.8) 0%,
        hsl(20 12% 9% / 0.8) 100%
    );
    transition: all 0.3s ease;
}

.stats-box:hover {
    border-color: hsl(35 70% 45% / 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.stats-icon {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
}

.stats-box.stats-success .stats-icon {
    color: hsl(140, 95%, 45%);
    background: hsl(140, 95%, 45% / 0.1);
    border-radius: 8px;
    width: 3rem;
    height: 3rem;
}

.stats-box.stats-failure .stats-icon {
    color: hsl(0, 85%, 55%);
    background: hsl(0, 85%, 55% / 0.1);
    border-radius: 8px;
    width: 3rem;
    height: 3rem;
}

.stats-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stats-label {
    font-size: 0.85rem;
    color: hsl(0, 0%, 70%);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stats-number {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: "Cinzel", serif;
    letter-spacing: 1px;
}

.stats-box.stats-success .stats-number {
    color: hsl(140, 95%, 45%);
}

.stats-box.stats-failure .stats-number {
    color: hsl(0, 85%, 55%);
}
