@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
:root {
    --bg-main: #080b12;
    --bg-navbar: #0e1824;

    --blue-main: #0884b4;
    --blue-light: #12b8ed;

    --text-main: #f1f5f9;
    --text-muted: #aeb7c6;
}
body {
    background-color: var(--bg-main);
    color: var(--text-main);
}
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 22px 35px;

    /* ПРОЗРАЧЕН ВЪРХУ HERO ВИДЕОТО */
    background: transparent;

    border-bottom: 1px solid transparent;

    box-shadow: none;

    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        background-color 0.4s ease,
        backdrop-filter 0.4s ease,
        box-shadow 0.4s ease,
        border-color 0.4s ease;
}
.navbar.scrolled {
    background-color: rgba(5, 8, 15, 0.92);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border-bottom: 1px solid #273247;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.35),
        0 0 25px rgba(8, 132, 180, 0.08);
}
.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    box-shadow: none;
}

.logo {
    font-size: 32px;

    font-weight: 900;

    letter-spacing: 1px;

background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 33%,
    #00966e 33%,
    #00966e 66%,
    #d62612 66%,
    #d62612 100%
);

background-clip: text;
-webkit-background-clip: text;

-webkit-text-fill-color: transparent;

    text-shadow:
        0 0 12px rgba(255, 255, 255, 0.15);

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}
.logo:hover {
    transform: scale(1.03);

    filter:
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.35))
        drop-shadow(0 0 18px rgba(0, 150, 110, 0.30))
        drop-shadow(0 0 28px rgba(214, 38, 18, 0.20));
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    flex-wrap: nowrap;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
    margin-left: 40px;
}

/* ИЗКЛЮЧВАМЕ тези ограничения при мобилни резолюции, за да не бъркат менюто */
@media screen and (max-width: 1200px) {
    .nav-links {
        display: none !important; /* Скриваме ги по подразбиране на мобилни, показват се само с .active от JS */
        flex-wrap: wrap !important;
        white-space: normal !important;
        margin-left: 0 !important;
    }
}



.nav-links a {
    color: var(--text-main);

    text-decoration: none;

    font-size: 15px;

    font-weight: 900;

    letter-spacing: 0.8px;

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease,
        transform 0.3s ease;
}

.nav-links a:hover {
    color: #ffffff;

    text-shadow:
        0 0 8px rgba(18, 184, 237, 0.55),
        0 0 20px rgba(18, 184, 237, 0.30);

    transform: translateY(-2px);
}
.nav-links a.active {
    color: #ffffff;

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.65),
        0 0 25px rgba(18, 184, 237, 0.35);

    position: relative;
}
.nav-links a.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -8px;

    height: 2px;

    background: var(--blue-light);

    box-shadow:
        0 0 8px rgba(18, 184, 237, 0.8),
        0 0 18px rgba(18, 184, 237, 0.45);

    border-radius: 2px;

    transition:
        left 0.3s ease,
        right 0.3s ease,
        box-shadow 0.3s ease;
}

.nav-links a.active:hover::after {
    left: -8px;
    right: -8px;

    box-shadow:
        0 0 10px rgba(18, 184, 237, 0.9),
        0 0 25px rgba(18, 184, 237, 0.55),
        0 0 40px rgba(18, 184, 237, 0.25);
}


.discord-link {
    color: var(--blue-main) !important;
    font-weight: bold;
}
.discord-link:hover {
    color: var(--blue-light) !important;
}
.hero {
    position: relative;

    min-height: 680px;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 60px 20px;

    overflow: hidden;

    box-shadow:
        inset 0 0 120px rgba(8, 132, 180, 0.12);
}
.hero-video {
    position: absolute;
    inset: 0;

    z-index: 0;

    overflow: hidden;
}
.hero-video iframe {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100vw;
    height: 56.25vw;

    min-width: 177.78vh;
    min-height: 100vh;

    transform: translate(-50%, -50%);

    border: 0;

    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            rgba(5, 8, 15, 0.10),
            rgba(5, 8, 15, 0.65)
        );
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-subtitle {
    color: var(--blue-light);
    font-size: 14px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 64px;
    margin: 0 0 20px 0;

    color: var(--text-main);

    letter-spacing: 2px;

    text-shadow:
        0 0 20px rgba(8, 132, 180, 0.25),
        0 0 50px rgba(8, 132, 180, 0.12);
}

.hero-description {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
}

.hero-button {
    display: inline-block;

    padding: 14px 30px;

    background-color: #d6b36a;
    color: #080b12;

    text-decoration: none;

    font-weight: bold;
    letter-spacing: 1px;

    border-radius: 4px;

    transition: all 0.3s ease;
}

.hero-button:hover {
    background-color: var(--blue-main);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(214, 179, 106, 0.25);
}
.news-section {
    padding: 100px 40px;

    background-color: var(--bg-main);
}

.section-header {
    max-width: 800px;
    margin: 0 auto 50px;

    text-align: center;
}

.news-filters {
    max-width: 1200px;

    margin: 0 auto 40px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
}

.news-filter {
    padding: 10px 22px;

    background: transparent;

    color: var(--text-muted);

    border: 1px solid rgba(8, 132, 180, 0.25);

    border-radius: 4px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.news-filter:hover {
    color: var(--text-main);

    border-color: rgba(18, 184, 237, 0.6);

    transform: translateY(-2px);
}

.news-filter.active {
    background-color: var(--blue-main);

    color: #080b12;

    border-color: var(--blue-main);

    box-shadow:
        0 0 15px rgba(8, 132, 180, 0.45),
        0 0 30px rgba(18, 184, 237, 0.20);
}
.news-empty {
    grid-column: 1 / -1;

    padding: 60px 20px;

    text-align: center;

    color: var(--text-muted);

    font-size: 16px;

    border: 1px solid rgba(8, 132, 180, 0.15);

    background-color: var(--bg-navbar);

    border-radius: 6px;
}

.section-subtitle {
    color: var(--blue-light);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 4px;

    margin-bottom: 12px;
}

.section-header h2 {
    margin: 0 0 15px;

    font-size: 42px;

    color: var(--text-main);

    letter-spacing: 1px;
}

.section-description {
    margin: 0;

    color: var(--text-muted);

    font-size: 17px;
}
/* =========================
   NEWS
========================= */

.news-filters {
    max-width: 1200px;

    margin: 0 auto 35px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 10px;
}

.news-filter {
    padding: 11px 22px;

    background-color: transparent;

    color: var(--text-muted);

    border: 1px solid rgba(8, 132, 180, 0.25);

    border-radius: 4px;

    font-family: inherit;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.news-filter:hover {
    color: var(--text-main);

    border-color: rgba(18, 184, 237, 0.6);

    transform: translateY(-2px);
}

.news-filter.active {
    background-color: var(--blue-main);

    color: #080b12;

    border-color: var(--blue-main);

    box-shadow:
        0 0 15px rgba(8, 132, 180, 0.55),
        0 0 30px rgba(18, 184, 237, 0.25);
}


/* NEWS GRID */

.news-grid {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 25px;
}


/* =========================
   NEWS CARD
========================= */

.news-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 390px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 24, 36, 0.98),
            rgba(7, 12, 20, 0.98)
        );

    border: 1px solid rgba(18, 184, 237, 0.22);

    border-radius: 6px;

    overflow: hidden;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 18px rgba(8, 132, 180, 0.06);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        opacity 0.35s ease,
        filter 0.35s ease;
}


/* LIGHT BORDER */

.news-card::before {
    content: "";

    position: absolute;

    inset: 0;

    border-radius: 6px;

    border: 1px solid rgba(18, 184, 237, 0.10);

    pointer-events: none;

    z-index: 5;

    box-shadow:
        inset 0 0 18px rgba(18, 184, 237, 0.035);
}


/* UNREAD */

.news-card.unread {
    border-color: rgba(18, 184, 237, 0.32);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(8, 132, 180, 0.10),
        inset 0 0 20px rgba(18, 184, 237, 0.025);
}


/* READ */

.news-card.read {
    opacity: 0.58;

    filter: saturate(0.65);

    border-color: rgba(174, 183, 198, 0.10);
}

.news-card.read:hover {
    opacity: 0.85;

    filter: saturate(0.85);
}


/* HOVER */

.news-card:hover {
    transform: translateY(-7px);

    border-color: rgba(18, 184, 237, 0.58);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.42),
        0 0 25px rgba(8, 132, 180, 0.16),
        0 0 55px rgba(18, 184, 237, 0.07),
        inset 0 0 20px rgba(18, 184, 237, 0.035);
}


/* =========================
   NEWS THUMBNAIL
========================= */

.news-card-image {
    position: relative;

    width: 100%;
    height: 200px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0b1622,
            #05080f
        );
}


/* IMAGE */

.news-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transform: scale(1.01);

    filter:
        brightness(0.82)
        saturate(0.92)
        contrast(1.04);

    transition:
        transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.7s ease;
}


/* HOVER */

.news-card:hover .news-card-image img {
    transform: scale(1.07);

    filter:
        brightness(1)
        saturate(1.08)
        contrast(1.05);
}


/* CINEMATIC OVERLAY */

.news-card-image::after {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 15, 0.05) 0%,
            rgba(5, 8, 15, 0.05) 45%,
            rgba(5, 8, 15, 0.72) 100%
        );
}


/* TOP LIGHT */

.news-card-image::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 1px;

    z-index: 2;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(18, 184, 237, 0.65),
            transparent
        );

    opacity: 0.65;
}



/* =========================
   NEWS META
========================= */

.news-meta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    width: 100%;

    min-width: 0;
}


/* =========================
   NEWS CATEGORY BADGE
========================= */

.news-category {
    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 5;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 6px 11px;

    border-radius: 3px;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 1.6px;

    text-transform: uppercase;

    white-space: nowrap;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.25);

    transition:
        background-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


.news-card:hover .news-category {
    transform: translateY(-2px);
}

/* =========================
   NEWS CATEGORY COLORS
========================= */

.news-card[data-category="notice"] .news-category {
    color: #12b8ed;

    border: 1px solid rgba(18, 184, 237, 0.40);

    background:
        rgba(18, 184, 237, 0.10);

    box-shadow:
        0 0 12px rgba(18, 184, 237, 0.10);
}


.news-card[data-category="update"] .news-category {
    color: #b58cff;

    border: 1px solid rgba(181, 140, 255, 0.40);

    background:
        rgba(181, 140, 255, 0.10);

    box-shadow:
        0 0 12px rgba(181, 140, 255, 0.10);
}


.news-card[data-category="event"] .news-category {
    color: #d6b36a;

    border: 1px solid rgba(214, 179, 106, 0.45);

    background:
        rgba(214, 179, 106, 0.10);

    box-shadow:
        0 0 12px rgba(214, 179, 106, 0.10);
}


.news-card[data-category="maintenance"] .news-category {
    color: #ff7272;

    border: 1px solid rgba(255, 114, 114, 0.40);

    background:
        rgba(255, 114, 114, 0.10);

    box-shadow:
        0 0 12px rgba(255, 114, 114, 0.10);
}


/* =========================
   DATE
========================= */

.news-meta .news-date {
    margin: 0;

    margin-left: auto;

    color: #7f8b9d;

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1.5px;

    white-space: nowrap;

    flex: 0 0 auto;
}


/* =========================
   NEW BADGE
========================= */

.news-new {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 6;

    padding: 6px 10px;

    background: var(--blue-light);

    color: #080b12;

    border-radius: 3px;

    font-size: 14px;

    font-weight: 900;

    letter-spacing: 1.5px;

    box-shadow:
        0 0 12px rgba(18, 184, 237, 0.55),
        0 0 25px rgba(18, 184, 237, 0.25);
}


/* =========================
   CARD CONTENT
========================= */

.news-card-content {
    display: flex;

    flex-direction: column;

    flex: 1;

    padding: 25px 28px 28px;
}


/* =========================
   NEWS TITLE
========================= */

.news-card h3 {
    margin: 0 0 14px;

    color: var(--text-main);

    font-size: 21px;

    font-weight: 750;

    line-height: 1.3;

    letter-spacing: 0.2px;

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.06);

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}


.news-card:hover h3 {
    color: #ffffff;

    text-shadow:
        0 0 14px rgba(18, 184, 237, 0.12);
}

/* =========================
   NEWS DESCRIPTION
========================= */

.news-card-content > p:not(.news-date) {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.7;

    font-weight: 400;

    display: -webkit-box;

    line-clamp: 3;
    -webkit-line-clamp: 3;

    -webkit-box-orient: vertical;

    overflow: hidden;
}

/* =========================
   IMAGE / CONTENT DIVIDER
========================= */

.news-card-content {
    position: relative;

    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 24px 25px 25px;
}


.news-card-content::before {
    content: "";

    position: absolute;

    top: 0;
    left: 25px;
    right: 25px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(18, 184, 237, 0.18),
            transparent
        );
}

/* =========================
   DESCRIPTION
========================= */

.news-card p {
    margin: 0;

    color: #aeb7c6;

    line-height: 1.7;

    font-size: 14px;

    font-weight: 400;

    letter-spacing: 0.15px;
}


/* =========================
   READ MORE
========================= */

.read-more {
    display: inline-flex;

    align-items: center;

    width: fit-content;

    margin-top: auto;

    padding-top: 24px;

    color: var(--blue-light);

    text-decoration: none;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1.4px;

    transition:
        color 0.3s ease,
        transform 0.3s ease,
        text-shadow 0.3s ease;
}


.read-more:hover {
    color: #ffffff;

    transform: translateX(4px);

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.55);
}

@media (max-width: 1680px) {

    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 800px;
    }

}
.classes-section {
    padding: 100px 40px;
    scroll-margin-top: 120px;
    background-color: #0b111b;
}
.classes-container {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;

    justify-content: center;
}
.class-card {
    position: relative;

    width: 100%;
    max-width: 520px;

    min-height: 650px;

    overflow: hidden;

    border-radius: 6px;

    border: 1px solid rgba(18, 184, 237, 0.35);
    outline: 1px solid rgba(18, 184, 237, 0.08);
    outline-offset: 4px;

    background-color: #05080f;

    background-size: cover;
    background-position: center;

    box-shadow:
        0 0 25px rgba(8, 132, 180, 0.18),
        0 0 55px rgba(18, 184, 237, 0.08);

    transition:
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.4s ease,
        box-shadow 0.4s ease,
        opacity 0.25s ease;
}
.class-card.changing {
    opacity: 0.25;
    transform: scale(0.94);
}

.class-card:hover {
    transform: translateY(-8px);

    border-color: rgba(18, 184, 237, 0.65);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 45px rgba(8, 132, 180, 0.45),
        0 0 90px rgba(18, 184, 237, 0.30),
        0 0 130px rgba(18, 184, 237, 0.15);
}

.class-card.changing {
    opacity: 0.35;
}

.class-card-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to bottom,
            rgba(5, 8, 15, 0.05) 20%,
            rgba(5, 8, 15, 0.95) 100%
        );
}
.class-card-content {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 35px;

    z-index: 2;
}
.class-faction {
    margin: 0 0 10px;

    color: var(--blue-light);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 3px;
}
.class-card h3 {
    margin: 0 0 15px;

    color: var(--text-main);

    font-size: 42px;

    letter-spacing: 1px;

    text-shadow:
        0 0 12px rgba(18, 184, 237, 0.25),
        0 0 30px rgba(18, 184, 237, 0.12);
}
.class-description {
    max-width: 420px;

    margin: 0 0 25px;

    color: var(--text-muted);

    line-height: 1.7;

    font-size: 18px;

    font-weight: 500;

    text-shadow:
        0 0 8px rgba(0, 0, 0, 0.8);
}

.class-button:hover {
    background-color: var(--blue-light);

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(18, 184, 237, 0.45),
        0 0 30px rgba(18, 184, 237, 0.30),
        0 0 50px rgba(18, 184, 237, 0.15);
}

.faction-tabs {
    display: flex;

    justify-content: center;

    gap: 12px;

    margin-bottom: 35px;
}
.faction-tab {
    padding: 12px 30px;

    background-color: transparent;

    color: var(--text-muted);

    border: 1px solid rgba(8, 132, 180, 0.25);

    border-radius: 4px;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.class-selector {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.class-button {
    padding: 11px 22px;
    background-color: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(8, 132, 180, 0.25);
    border-radius: 4px;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;

    cursor: pointer;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.class-button:hover {
    color: var(--text-main);
    border-color: rgba(18, 184, 237, 0.6);
}

.class-button.active {
    background-color: var(--blue-main);
    color: #080b12;
    border-color: var(--blue-main);

    box-shadow:
        0 0 15px rgba(8, 132, 180, 0.55),
        0 0 30px rgba(18, 184, 237, 0.35),
        0 0 50px rgba(18, 184, 237, 0.18);
}

.faction-tab.active {
    background-color: var(--blue-main);

    color: #080b12;

    border-color: var(--blue-main);

    box-shadow:
        0 0 20px rgba(8, 132, 180, 0.25);
}
.faction-tab:hover {
    color: var(--text-main);

    border-color: rgba(18, 184, 237, 0.6);
}
.class-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.class-title img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}

.class-title h3 {
    margin: 0;
    line-height: 1;
}




/* =========================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================= */
@media (max-width: 768px) {

    /* Секция Класове */
    .classes-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .class-selector {
        gap: 8px;
    }

    .class-button {
        padding: 10px 16px;
        font-size: 11px;
    }

    .class-card {
        min-height: 560px;
    }

    .class-card-content {
        padding: 25px;
    }

    .class-card h3 {
        font-size: 34px;
    }

    .class-description {
        font-size: 15px;
        max-width: 100%;
    }
    
    /* Секция Новини */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        min-height: 240px;
    }

    .news-card-content {
        padding: 25px;
    }

    .news-card h3 {
        font-size: 24px;
    }

    /* Главна (Hero) секция */
    .hero {
        min-height: 650px;
        padding: 80px 20px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 13px;
        letter-spacing: 2px;
    }

    .hero h1 {
        font-size: 48px;
        line-height: 1.1;
    }

    .hero-description {
        font-size: 17px;
        line-height: 1.6;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-button {
        display: inline-block;
    }

    /* Заглавия и раздели */
    .section-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .section-header h2 {
        font-size: 36px;
        line-height: 1.15;
    }

    .section-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .section-description {
        font-size: 16px;
        line-height: 1.6;
    }

    .news-section,
    .classes-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /* ExitLag страница */
    .exitlag-features {
        grid-template-columns: 1fr;
    }

    .exitlag-page {
        padding: 70px 20px;
    }

    .exitlag-content h1 {
        font-size: 48px;
    }

    .side-angels {
        display: none;
    }
}

/* =========================================================
   RESPONSIVE — SMALL PHONES (max-width: 480px)
   ========================================================= */
@media (max-width: 480px) {

    .hero {
        min-height: 600px;
        padding: 70px 15px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-description {
        font-size: 16px;
    }

    .class-card {
        min-height: 520px;
    }

    .class-card-content {
        padding: 22px;
    }

    .class-card h3 {
        font-size: 30px;
    }

    .class-description {
        font-size: 16px;
    }

    .side-angels {
        display: none;
    }
}
/* =========================
   CLASS COLORS
========================= */

/* 🔵 TEMPLAR + GLADIATOR */
.class-button[data-class="templar"],
.class-button[data-class="gladiator"] {
    --class-color: #0d96c4;
    --class-glow: rgba(18, 184, 237, 0.45);
}

.class-button[data-class="templar"].active,
.class-button[data-class="gladiator"].active {
    background-color: var(--class-color);
    border-color: var(--class-color);
    color: #080b12;

    box-shadow:
        0 0 15px var(--class-glow),
        0 0 30px var(--class-glow);
}


/* 🟢 ASSASSIN + RANGER */
.class-button[data-class="assassin"],
.class-button[data-class="ranger"] {
    --class-color: #20a345;
    --class-glow: rgba(66, 214, 107, 0.45);
}

.class-button[data-class="assassin"].active,
.class-button[data-class="ranger"].active {
    background-color: var(--class-color);
    border-color: var(--class-color);
    color: #080b12;

    box-shadow:
        0 0 15px var(--class-glow),
        0 0 30px var(--class-glow);
}


/* 🟣 SORCERER + SPIRITMASTER */
.class-button[data-class="sorcerer"],
.class-button[data-class="spiritmaster"] {
    --class-color: #a769f7;
    --class-glow: rgba(180, 124, 255, 0.45);
}

.class-button[data-class="sorcerer"].active,
.class-button[data-class="spiritmaster"].active {
    background-color: var(--class-color);
    border-color: var(--class-color);
    color: #080b12;

    box-shadow:
        0 0 15px var(--class-glow),
        0 0 30px var(--class-glow);
}


/* ⚪ CLERIC + CHANTER */
.class-button[data-class="cleric"],
.class-button[data-class="chanter"] {
    --class-color: #ffffff;
    --class-glow: rgba(255, 255, 255, 0.35);
}

.class-button[data-class="cleric"].active,
.class-button[data-class="chanter"].active {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #080b12;

    box-shadow:
        0 0 15px var(--class-glow),
        0 0 30px var(--class-glow);
}

/* =========================
   CLASS CARD COLORED GLOW
========================= */

/* 🔵 TEMPLAR + GLADIATOR */

.class-card[data-class="templar"]:hover,
.class-card[data-class="gladiator"]:hover {

    border-color: rgba(18, 184, 237, 0.85);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(18, 184, 237, 0.45),
        0 0 70px rgba(18, 184, 237, 0.25),
        0 0 110px rgba(18, 184, 237, 0.12);
}


/* 🟢 ASSASSIN + RANGER */

.class-card[data-class="assassin"]:hover,
.class-card[data-class="ranger"]:hover {

    border-color: rgba(66, 214, 107, 0.85);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(66, 214, 107, 0.45),
        0 0 70px rgba(66, 214, 107, 0.25),
        0 0 110px rgba(66, 214, 107, 0.12);
}


/* 🟣 SORCERER + SPIRITMASTER */

.class-card[data-class="sorcerer"]:hover,
.class-card[data-class="spiritmaster"]:hover {

    border-color: rgba(180, 124, 255, 0.85);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(180, 124, 255, 0.45),
        0 0 70px rgba(180, 124, 255, 0.25),
        0 0 110px rgba(180, 124, 255, 0.12);
}


/* ⚪ CLERIC + CHANTER */

.class-card[data-class="cleric"]:hover,
.class-card[data-class="chanter"]:hover {

    border-color: rgba(255, 255, 255, 0.85);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(255, 255, 255, 0.40),
        0 0 70px rgba(255, 255, 255, 0.22),
        0 0 110px rgba(255, 255, 255, 0.10);
}
/* =========================
   DISCORD HERO BUTTON
========================= */

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.discord-icon {
    width: 21px;
    height: 21px;
    flex-shrink: 0;

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.hero-button:hover .discord-icon {
    transform: scale(1.12);

    filter:
        drop-shadow(0 0 5px rgba(88, 101, 242, 0.75))
        drop-shadow(0 0 12px rgba(88, 101, 242, 0.45));
}
/* =========================
   DISCORD NAV LINK
========================= */

.discord-link {
    color: #8b7cf6 !important;

    text-shadow:
        0 0 8px rgba(88, 101, 242, 0.25);

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease,
        transform 0.3s ease;
}

.discord-link:hover {
    color: #a99cff !important;

    transform: translateY(-2px);

    text-shadow:
        0 0 8px rgba(88, 101, 242, 0.75),
        0 0 18px rgba(88, 101, 242, 0.45),
        0 0 30px rgba(88, 101, 242, 0.20);
}

/* =========================
   EXITLAG PAGE
========================= */

.exitlag-page {
    min-height: calc(100vh - 100px);

    padding: 100px 40px;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(8, 132, 180, 0.10),
            transparent 45%
        ),
        var(--bg-main);
}

.exitlag-content {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;
}

.exitlag-content h1 {
    margin: 0 0 20px;

    font-size: 64px;

    color: var(--text-main);

    letter-spacing: 2px;

    text-shadow:
        0 0 20px rgba(8, 132, 180, 0.25),
        0 0 50px rgba(8, 132, 180, 0.12);
}

.exitlag-intro {
    max-width: 700px;

    margin: 0 auto 50px;

    color: var(--text-muted);

    font-size: 19px;

    line-height: 1.7;
}

.exitlag-card {
    margin-bottom: 25px;

    padding: 35px;

    text-align: left;

    background:
        linear-gradient(
            145deg,
            rgba(14, 24, 36, 0.98),
            rgba(7, 12, 20, 0.98)
        );

    border: 1px solid rgba(18, 184, 237, 0.22);

    border-radius: 6px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.28),
        0 0 20px rgba(8, 132, 180, 0.06);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.exitlag-card:hover {
    transform: translateY(-5px);

    border-color: rgba(18, 184, 237, 0.58);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.42),
        0 0 35px rgba(18, 184, 237, 0.14);
}

.exitlag-card h2 {
    margin: 0 0 15px;

    color: var(--text-main);

    font-size: 26px;
}

.exitlag-card p {
    margin: 0 0 15px;

    color: var(--text-muted);

    font-size: 16px;

    line-height: 1.7;
}

.exitlag-card p:last-child {
    margin-bottom: 0;
}

.exitlag-icon {
    margin-bottom: 15px;

    font-size: 38px;

    filter:
        drop-shadow(0 0 10px rgba(18, 184, 237, 0.55));
}

.exitlag-action {
    margin-top: 40px;
}

/* =========================
   EXITLAG FEATURES
========================= */

.exitlag-features {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;

    margin-top: 35px;
}

.exitlag-feature {
    position: relative;

    padding: 30px 25px;

    text-align: center;

    background:
        linear-gradient(
            145deg,
            rgba(14, 24, 36, 0.98),
            rgba(7, 12, 20, 0.98)
        );

    border: 1px solid rgba(18, 184, 237, 0.20);

    border-radius: 6px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.25),
        0 0 18px rgba(8, 132, 180, 0.05);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.exitlag-feature:hover {
    transform: translateY(-7px);

    border-color:
        rgba(18, 184, 237, 0.60);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.40),
        0 0 30px rgba(8, 132, 180, 0.18),
        0 0 55px rgba(18, 184, 237, 0.08);
}

.exitlag-feature-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;

    margin: 0 auto 18px;

    color: var(--blue-light);

    font-size: 28px;
    font-weight: 900;

    border: 1px solid
        rgba(18, 184, 237, 0.35);

    border-radius: 50%;

    background:
        rgba(18, 184, 237, 0.06);

    box-shadow:
        0 0 15px
        rgba(18, 184, 237, 0.12);

    text-shadow:
        0 0 12px
        rgba(18, 184, 237, 0.65);
}

.exitlag-feature h3 {
    margin: 0 0 12px;

    color: var(--text-main);

    font-size: 19px;

    letter-spacing: 0.5px;
}

.exitlag-feature p {
    margin: 0;

    color: var(--text-muted);

    font-size: 14px;

    line-height: 1.7;
}

/* =========================
   SIDE ANGELS — АДАПТИВНИ СВЕТЛИНИ (RESPONSIVE)
   ========================= */

.side-angels {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    opacity: 0;
    z-index: 5;
    background:
        radial-gradient(ellipse at left center, rgba(18, 184, 237, 0.12), transparent 38%),
        radial-gradient(ellipse at right center, rgba(167, 105, 247, 0.12), transparent 38%);
    transition: opacity 0.8s ease;
}

body.angels-visible .side-angels {
    opacity: 1;
}

/* Използваме clamp() за плавно мащабиране според ширината на екрана */
.side-angels::before,
.side-angels::after {
    content: "";
    position: absolute;
    top: -5%;
    bottom: -5%;
    /* На малки лаптопи е по-тясно, на ултра-уйд / 34 инча става по-широко */
    width: clamp(250px, 35vw, 500px); 
    pointer-events: none;
    opacity: 0.85;
    filter: blur(clamp(30px, 5vw, 65px)); /* Размиването също нараства с екрана */
    animation: angelAura 6s ease-in-out infinite;
    z-index: 0;
}

.side-angels::before {
    left: clamp(-150px, -15vw, -20px);
    background: radial-gradient(
        ellipse at center,
        rgba(18, 184, 237, 0.55) 0%,
        rgba(18, 184, 237, 0.32) 30%,
        rgba(18, 184, 237, 0.12) 52%,
        transparent 80%
    );
}

.side-angels::after {
    right: clamp(-150px, -15vw, -20px);
    background: radial-gradient(
        ellipse at center,
        rgba(167, 105, 247, 0.55) 0%,
        rgba(167, 105, 247, 0.32) 30%,
        rgba(167, 105, 247, 0.12) 52%,
        transparent 80%
    );
    animation-delay: -3s;
}

@keyframes angelAura {
    0%, 100% {
        opacity: 0.60;
        transform: scaleY(0.96) scaleX(0.95);
    }
    50% {
        opacity: 0.92;
        transform: scaleY(1.06) scaleX(1.07);
    }
}

/* =========================
   СКРИВАНЕ ЗА ТЕЛЕФОНИ (ПОД 768px)
   ========================= */
@media (max-width: 768px) {
    .side-angels {
        display: none !important; /* Напълно се махат на телефони (6 инча), за да има чистота */
    }
}


/* =========================
   SITE LAYERS (ВЪРНАТО И ЗАПАЗЕНО)
========================= */

.navbar {
    position: fixed;
    z-index: 1000;
}

.hero {
    position: relative;
    z-index: 20;
}

.news-card,
.class-card,
.exitlag-card,
.exitlag-feature {
    position: relative;
    z-index: 10;
}


/* =========================
   ANGELS (ОГОЛЕНИ И ПОДОБРЕНИ)
========================= */

.angel {
    position: absolute;
    bottom: -20px;

    /* ОГОЛЕНИ И ВНУШИТЕЛНИ РАЗМЕРИ */
    width: 420px;
    height: 98vh;
    max-width: 24vw;

    object-fit: contain;
    object-position: bottom;

    opacity: 0.78; /* По-плътни и забележими фигури */

    filter:
        brightness(1.18)
        contrast(1.12)
        saturate(1.05)

        /* МНОГО ПО-СИЛНИ И РАЗШИРЕНИ СВЕТИННИ СЕНКИ (GLOW) */
        drop-shadow(0 0 22px rgba(18, 184, 237, 0.45))
        drop-shadow(0 0 50px rgba(18, 184, 237, 0.30))
        drop-shadow(0 0 95px rgba(18, 184, 237, 0.18))
        drop-shadow(0 0 140px rgba(18, 184, 237, 0.06));

    transform-origin: bottom center;

    transition:
        opacity 0.6s ease,
        filter 0.6s ease;
}


/* =========================
   LEFT ANGEL
========================= */

.angel-left {
    left: -20px; /* Избутани навън, за да не закачат текстовете и прозорците */
    animation:
        angelFloatLeft
        7s
        ease-in-out
        infinite;
}


/* =========================
   RIGHT ANGEL
========================= */

.angel-right {
    right: -20px; /* Избутани навън */
    animation:
        angelFloatRight
        7.5s
        ease-in-out
        infinite;

    filter:
        brightness(1.15)
        contrast(1.12)
        saturate(1.05)
        drop-shadow(0 0 22px rgba(167, 105, 247, 0.45))
        drop-shadow(0 0 50px rgba(167, 105, 247, 0.30))
        drop-shadow(0 0 95px rgba(167, 105, 247, 0.18))
        drop-shadow(0 0 140px rgba(167, 105, 247, 0.06));
}


/* =========================
   SUBTLE LEVITATE
========================= */

@keyframes angelFloatLeft {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.012);
    }
}


@keyframes angelFloatRight {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-18px) scale(1.012);
    }
}


/* =========================
   LARGE DESKTOP (Големи монитори 1400px+)
========================= */

@media (min-width: 1800px) {
    .angel {
        width: 480px; /* Още по-внушителни на голям екран */
        height: 100vh;
        max-width: 25vw;
        opacity: 0.82;
    }

    .angel-left {
        left: -25px;
    }

    .angel-right {
        right: -25px;
    }
}


/* =========================
   LAPTOP
========================= */

@media (max-width: 1600px) {
    .angel {
        width: 320px;
        height: 85vh;
        max-width: 22vw;
        opacity: 0.68;
    }

    .angel-left {
        left: -10px;
    }

    .angel-right {
        right: -10px;
    }
}


/* =========================
   TABLET
========================= */

@media (max-width: 1080px) {
    .angel {
        width: 200px;
        height: 70vh;
        max-width: 28vw;
        opacity: 0.35;
    }
}


/* =========================
   NAVBAR LOGO (Запазено)
========================= */

.navbar-logo {
    display: inline-block;
    position: relative;
    z-index: 1001;
    pointer-events: auto;
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;

    background: linear-gradient(
        to bottom,
        #ffffff 0%,
        #ffffff 33.33%,
        #00966e 33.33%,
        #00966e 66.66%,
        #d62612 66.66%,
        #d62612 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;

    transition: filter 0.3s ease, transform 0.3s ease;
}

.navbar-logo:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
}


/* =========================================================
   LEVELING GUIDE
========================================================= */

html {
    scroll-behavior: smooth;
}


/* =========================
   GUIDE PAGE
========================= */

.guide-page {
    position: relative;
    z-index: 10;

    min-height: 100vh;

    padding:
        150px
        20px
        120px;
}


.guide-content {
    width: min(1100px, 100%);

    margin: 0 auto;

    text-align: center;
}


/* =========================
   GUIDE HEADER
========================= */

.guide-content h1 {
    margin: 10px 0 20px;

    font-size: clamp(
        36px,
        5vw,
        64px
    );

    font-weight: 900;

    color: #ffffff;

    text-shadow:
        0 0 20px rgba(18, 184, 237, 0.25);
}


.guide-intro {
    max-width: 800px;

    margin: 0 auto 12px;

    font-size: 21px;

    line-height: 1.7;

    color: rgba(255,255,255,0.9);
}


.guide-description {
    max-width: 800px;

    margin: 0 auto 45px;

    line-height: 1.8;

    color: rgba(255,255,255,0.65);
}


/* =========================
   MAIN GUIDE IMAGE
========================= */

.guide-hero-image {
    width: 100%;

    margin: 0 auto 35px;

    border-radius: 18px;

    overflow: hidden;

    border: 1px solid
        rgba(18,184,237,0.25);

    box-shadow:
        0 0 35px
        rgba(18,184,237,0.12);
}


.guide-hero-image img {
    display: block;

    width: 100%;

    height: auto;
}


/* =========================
   BOOK NAVIGATION
========================= */

.guide-book-nav {
    margin: 0 auto 100px;

    padding: 28px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(10,25,38,0.92),
            rgba(18,12,35,0.92)
        );

    border:
        1px solid
        rgba(18,184,237,0.22);

    box-shadow:
        0 0 40px
        rgba(18,184,237,0.08);
}


.guide-book-title {
    margin-bottom: 22px;

    font-size: 18px;

    font-weight: 800;

    color: #ffffff;

    letter-spacing: 1px;
}


.guide-book-pages {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 12px;
}


.guide-page-button {
    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 85px;

    padding: 12px;

    border-radius: 14px;

    text-decoration: none;

    color: #ffffff;

    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(255,255,255,0.08);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.guide-page-button strong {
    font-size: 25px;

    color: #12b8ed;
}


.guide-page-button span {
    margin-top: 5px;

    font-size: 12px;

    color: rgba(255,255,255,0.7);
}


.guide-page-button:hover {
    transform: translateY(-5px);

    border-color:
        rgba(18,184,237,0.55);

    background:
        rgba(18,184,237,0.08);

    box-shadow:
        0 0 22px
        rgba(18,184,237,0.18);
}


/* =========================
   GUIDE SECTION
========================= */

.guide-section {
    position: relative;

    margin-bottom: 120px;

    padding:
        55px
        60px;

    text-align: left;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            rgba(10,20,30,0.94),
            rgba(20,12,35,0.94)
        );

    border:
        1px solid
        rgba(255,255,255,0.08);

    box-shadow:
        0 20px 70px
        rgba(0,0,0,0.25);
}


.guide-section-number {
    position: absolute;

    top: 25px;

    right: 30px;

    font-size: 60px;

    font-weight: 900;

    color:
        rgba(18,184,237,0.08);
}


.guide-section h2 {
    margin:
        0 0 25px;

    font-size: 34px;

    color: #ffffff;
}


.guide-section h3 {
    margin:
        35px 0 12px;

    font-size: 21px;

    color: #ffffff;
}


.guide-section p {
    max-width: 850px;

    line-height: 1.8;

    color:
        rgba(255,255,255,0.72);
}


.guide-section ul {
    padding-left: 25px;

    line-height: 2;

    color:
        rgba(255,255,255,0.75);
}


.guide-section li {
    padding-left: 5px;
}


/* =========================
   TIP BOX
========================= */

.guide-tip {
    margin:
        35px 0;

    padding: 20px 24px;

    border-left:
        3px solid #12b8ed;

    border-radius: 10px;

    background:
        rgba(18,184,237,0.07);

    color:
        rgba(255,255,255,0.82);

    line-height: 1.7;
}


/* =========================
   GUIDE IMAGE
========================= */

.guide-image {
    margin-top: 40px;

    overflow: hidden;

    border-radius: 16px;

    border:
        1px solid
        rgba(18,184,237,0.18);
}


.guide-image img {
    display: block;

    width: 100%;

    height: auto;
}


/* =========================
   SKILL THRESHOLDS
========================= */

.guide-thresholds {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;

    margin:
        30px 0;
}


.guide-thresholds div {
    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 22px;

    border-radius: 14px;

    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(18,184,237,0.15);
}


.guide-thresholds strong {
    font-size: 36px;

    color: #12b8ed;
}


.guide-thresholds span {
    margin-top: 5px;

    color:
        rgba(255,255,255,0.65);
}


/* =========================
   FINAL CHECKLIST
========================= */

.guide-checklist {
    display: grid;

    gap: 12px;

    margin: 30px 0;
}


.guide-checklist div {
    padding: 16px 20px;

    border-radius: 10px;

    background:
        rgba(18,184,237,0.05);

    border:
        1px solid
        rgba(18,184,237,0.12);

    color:
        rgba(255,255,255,0.78);
}


.guide-final-message {
    margin-top: 40px;

    padding: 30px;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            rgba(18,184,237,0.08),
            rgba(167,105,247,0.08)
        );

    border:
        1px solid
        rgba(167,105,247,0.18);
}


.guide-final-message h3 {
    margin-top: 0;

    color: #ffffff;
}


/* =========================
   BACK TO TOP
========================= */

.guide-back-top {
    display: inline-block;

    margin-top: 10px;

    padding:
        13px 24px;

    border-radius: 10px;

    text-decoration: none;

    color: #ffffff;

    background:
        rgba(18,184,237,0.08);

    border:
        1px solid
        rgba(18,184,237,0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.guide-back-top:hover {
    transform: translateY(-3px);

    box-shadow:
        0 0 20px
        rgba(18,184,237,0.18);
}
html {
    scroll-behavior: smooth;
}


/* =========================
   GUIDE RESPONSIVE
========================= */

@media (max-width: 800px) {

    .guide-page {
        padding:
            120px
            15px
            80px;
    }


    .guide-book-pages {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .guide-section {
        padding:
            35px 25px;
    }


    .guide-thresholds {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 500px) {

    .guide-book-pages {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .guide-section h2 {
        font-size: 27px;
    }

}
/* =========================
   GUIDE QUICK ACCESS
========================= */

.guide-quick-nav a {
    font-size: 18px !important;
    font-weight: 700;

    padding: 14px 18px;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    letter-spacing: 0.3px;

    text-shadow:
        0 0 8px rgba(18, 184, 237, 0.35);

    transition:
        color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
    }

.guide-quick-nav a:hover {
    transform: translateY(-2px);

    color: #ffffff;

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.8),
        0 0 20px rgba(18, 184, 237, 0.35);

    box-shadow:
        0 0 12px rgba(18, 184, 237, 0.18),
        inset 0 0 12px rgba(18, 184, 237, 0.06);
}

/* =========================
   BACK TO TOP
========================= */

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    border: 1px solid rgba(18, 184, 237, 0.45);
    border-radius: 10px;

    color: #ffffff;
    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            rgba(18, 184, 237, 0.10),
            rgba(167, 105, 247, 0.10)
        );

    box-shadow:
        0 0 10px rgba(18, 184, 237, 0.18),
        0 0 25px rgba(18, 184, 237, 0.08),
        inset 0 0 12px rgba(18, 184, 237, 0.05);

    text-shadow:
        0 0 8px rgba(18, 184, 237, 0.45);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-3px);

    border-color: rgba(18, 184, 237, 0.85);

    box-shadow:
        0 0 12px rgba(18, 184, 237, 0.45),
        0 0 30px rgba(18, 184, 237, 0.25),
        0 0 55px rgba(167, 105, 247, 0.15),
        inset 0 0 15px rgba(18, 184, 237, 0.10);

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.9);
}
/* =========================
   INTERACTIVE MAP BUTTON
========================= */

.guide-map-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin: 30px auto 45px;

    padding: 16px 32px;

    color: #fff;
    text-decoration: none;

    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.5px;

    background:
        linear-gradient(
            135deg,
            #12b8ed,
            #7b4cff,
            #a769f7
        );

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 14px;

    box-shadow:
        0 0 15px rgba(18,184,237,0.35),
        0 0 35px rgba(123,76,255,0.22);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease;
}

.guide-map-button:hover {
    transform: translateY(-4px) scale(1.02);

    filter: brightness(1.12);

    box-shadow:
        0 0 20px rgba(18,184,237,0.55),
        0 0 45px rgba(123,76,255,0.40),
        0 0 70px rgba(167,105,247,0.22);
}
/* =========================
   INTERACTIVE MAP GUIDE
========================= */

.guide-page {
    position: relative;
    z-index: 10;

    width: 100%;
    min-height: 100vh;

    padding: 140px 20px 100px;

    box-sizing: border-box;
}

.guide-content {
    position: relative;
    z-index: 10;

    width: min(1100px, 92%);
    margin: 0 auto;

    text-align: center;
}


/* =========================
   GUIDE HERO IMAGE
========================= */

.guide-hero-image {
    display: block;

    width: 100%;
    max-width: 1050px;

    height: auto;

    margin: 45px auto 25px;

    border-radius: 18px;

    object-fit: contain;

    box-shadow:
        0 0 25px rgba(18, 184, 237, 0.18),
        0 0 55px rgba(18, 184, 237, 0.08);

    border: 1px solid rgba(18, 184, 237, 0.22);
}


/* =========================
   DIRECT MAP BUTTON
========================= */

.guide-map-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin: 15px auto 45px;

    padding: 15px 30px;

    border-radius: 12px;

    text-decoration: none;

    color: #ffffff;

    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.5px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 184, 237, 0.95),
            rgba(77, 110, 255, 0.95),
            rgba(167, 105, 247, 0.95)
        );

    border: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        0 0 15px rgba(18, 184, 237, 0.35),
        0 0 35px rgba(167, 105, 247, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.guide-map-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.12);

    box-shadow:
        0 0 20px rgba(18, 184, 237, 0.55),
        0 0 45px rgba(167, 105, 247, 0.32);
}


/* =========================
   GUIDE CONTENT
========================= */

.guide-intro {
    max-width: 800px;

    margin: 0 auto 20px;

    font-size: 19px;
    line-height: 1.7;
}

.guide-description {
    max-width: 850px;

    margin: 0 auto 35px;

    line-height: 1.8;

    opacity: 0.85;
}


/* =========================
   GUIDE SECTIONS
========================= */

.guide-section {
    position: relative;
    z-index: 10;

    max-width: 950px;

    margin: 80px auto;

    padding: 40px;

    text-align: left;

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 20, 35, 0.92),
            rgba(12, 25, 45, 0.88)
        );

    border: 1px solid rgba(18, 184, 237, 0.14);

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.25);
}

.guide-section-number {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 15px;

    border-radius: 50%;

    font-weight: 900;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #12b8ed,
            #a769f7
        );

    box-shadow:
        0 0 20px rgba(18, 184, 237, 0.3);
}

.guide-section h2 {
    margin-top: 0;
}

.guide-section h3 {
    margin-top: 30px;
}

.guide-section p,
.guide-section li {
    line-height: 1.8;
}


/* =========================
   GUIDE IMAGES
========================= */

.guide-image {
    margin-top: 35px;

    text-align: center;
}

.guide-image img {
    display: block;

    width: 100%;
    max-width: 900px;

    height: auto;

    margin: 0 auto;

    border-radius: 14px;

    border: 1px solid rgba(18, 184, 237, 0.18);

    box-shadow:
        0 0 25px rgba(18, 184, 237, 0.12);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .guide-page {
        padding: 110px 12px 70px;
    }

    .guide-content {
        width: 94%;
    }

    .guide-hero-image {
        margin-top: 30px;
        border-radius: 12px;
    }

    .guide-section {
        padding: 25px 20px;

        margin: 50px auto;
    }

    .guide-map-button {
        width: 100%;
        box-sizing: border-box;
    }
}
/* =========================
   INTERACTIVE MAP HERO
========================= */

.map-guide-hero-image {
    width: 60%;
    max-width: 600px;
}
/* =========================
   GUIDE IMAGE HOVER
========================= */

.guide-content img {
    cursor: zoom-in;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.guide-content img:hover {
    transform: scale(1.02);

    box-shadow:
        0 0 25px
        rgba(18, 184, 237, 0.18);
}


/* =========================
   GUIDE IMAGE LIGHTBOX
========================= */

.guide-section-image,
.guide-hero-image {
    cursor: zoom-in;
}


/* =========================
   DARK OVERLAY
========================= */

.guide-lightbox {
    position: fixed;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    background:
        rgba(0, 0, 0, 0.88);

    z-index: 99999;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* =========================
   OPEN
========================= */

.guide-lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* =========================
   LIGHTBOX IMAGE
========================= */

.guide-lightbox-image {
    max-width: 95vw;
    max-height: 94vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 0 50px
        rgba(0, 0, 0, 0.8);

    transform: scale(0.92);

    transition:
        transform 0.25s ease;
}

.guide-lightbox.active .guide-lightbox-image {
    transform: scale(1);
}


/* =========================
   CLOSE BUTTON
========================= */

.guide-lightbox-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.1);

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.guide-lightbox-close:hover {
    background:
        rgba(18, 184, 237, 0.25);

    transform: scale(1.08);
}
/* =========================
FOOTER
========================= */

.site-footer {
width: 100%;
padding: 45px 20px 35px;
background: #05070a;
border-top: 1px solid rgba(214, 170, 75, 0.20);
text-align: center;
}

.footer-content {
width: min(900px, 100%);
margin: 0 auto;
}

.footer-content p {
margin: 0 auto 12px;
color: #9199a6;
font-size: 15px; 
line-height: 1.7;
text-align: center;
}

.footer-content p:last-child {
margin-bottom: 0;
}

/* =========================================
    NAVBAR — CENTERED NAV LINKS
========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

.navbar .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

.navbar .nav-links > * {
    flex: 0 1 auto;
    min-width: 0;
}

.navbar .nav-dropdown {
    position: relative;
    z-index: 1100;
    flex: 0 1 auto;
    flex-shrink: 1;
    min-width: 0;
    overflow: visible;
}

.navbar .nav-dropdown-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 2px 0 !important;
    margin: 0;
    white-space: nowrap !important;
    overflow: visible !important;
    flex-shrink: 1;
}

.navbar .nav-dropdown-button span {
    flex-shrink: 0;
    margin-left: 4px;
}

.navbar .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    z-index: 2000;
    min-width: 230px;
    width: max-content;
    max-width: 90vw;
}

/* ЗАЩИТА ПРИ МОБИЛНИ РЕЗОЛЮЦИИ (под 1200px), за да не се бъркат стиловете при зуум */
@media screen and (max-width: 1200px) {
    .navbar .nav-links {
        display: none !important; /* Скриваме ги по подразбиране, показват се само с клас .active от JS */
    }
}

/* =========================================
   DROPDOWN MENU — RESTORE
========================================= */

.nav-dropdown {
    position: relative;
    z-index: 1100;
    flex-shrink: 0;
    overflow: visible;
}

.nav-dropdown-button {
    background: none;
    border: none;
    color: var(--text-main);
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;
    cursor: pointer;

    padding: 2px 0;
    margin: 0;

    white-space: nowrap;

    display: inline-flex;
    align-items: center;

    line-height: 1.2;

    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}

.nav-dropdown-button span {
    font-size: 12px;
    margin-left: 4px;
    line-height: 1;
    flex-shrink: 0;
}

.nav-dropdown-button:hover {
    color: #ffffff;
    text-shadow:
        0 0 8px rgba(18, 184, 237, 0.55),
        0 0 20px rgba(18, 184, 237, 0.30);
}


/* =========================================
   DROPDOWN — HIDDEN BY DEFAULT
========================================= */

.nav-dropdown-menu {
    position: absolute;

    top: calc(100% + 18px);
    right: 0;

    min-width: 230px;
    padding: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 24, 36, 0.98),
            rgba(7, 12, 20, 0.98)
        );

    border: 1px solid rgba(18, 184, 237, 0.30);
    border-radius: 5px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(8, 132, 180, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 2000;
}


/* =========================================
   DROPDOWN — SHOW ON HOVER
========================================= */

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}


/* =========================================
   DROPDOWN LINKS
========================================= */

.nav-dropdown-menu a {
    display: block;

    padding: 12px 14px;

    color: var(--text-muted);
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;

    border-radius: 3px;

    background: transparent;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.nav-dropdown-menu a:hover {
    color: #ffffff;

    background-color:
        rgba(18, 184, 237, 0.10);

    transform: translateX(4px);

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.45);
}
/* =========================================================
   DROPDOWN - FINAL WORKING VERSION
   ========================================================= */

.nav-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    flex-shrink: 0;
    overflow: visible !important;
    z-index: 9999 !important;
}

/* BUTTON */

.nav-dropdown-button {
    position: relative;
    z-index: 10000;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;

    padding: 2px 0 !important;
    margin: 0 !important;

    background: none !important;
    border: none !important;

    color: var(--text-main);
    font-family: inherit;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1.5px;

    white-space: nowrap !important;
    cursor: pointer;
}

.nav-dropdown-button span {
    flex-shrink: 0;
    margin-left: 4px;
    font-size: 12px;
}


/* =========================================================
   DROPDOWN MENU
   ========================================================= */

.nav-dropdown-menu {
    position: absolute !important;

    top: 100% !important;
    right: 0 !important;

    /* ВАЖНО:
       няма gap между бутона и менюто */
    margin-top: 0 !important;

    min-width: 230px;
    padding: 8px;

    background:
        linear-gradient(
            145deg,
            rgba(14, 24, 36, 0.98),
            rgba(7, 12, 20, 0.98)
        ) !important;

    border: 1px solid rgba(18, 184, 237, 0.30);
    border-radius: 5px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(8, 132, 180, 0.12);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(-8px);

    transition:
        opacity 0.20s ease,
        transform 0.20s ease,
        visibility 0.20s ease;

    z-index: 99999 !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}


/* =========================================================
   INVISIBLE HOVER BRIDGE
   ========================================================= */

.nav-dropdown-menu::before {
    content: "";

    position: absolute;

    left: -10px;
    right: -10px;

    top: -15px;
    height: 15px;

    background: transparent;
}


/* =========================================================
   LINKS
   ========================================================= */

.nav-dropdown-menu a {
    display: block;

    padding: 12px 14px;

    color: var(--text-muted) !important;
    text-decoration: none;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;

    border-radius: 3px;

    transition:
        color 0.25s ease,
        background-color 0.25s ease,
        transform 0.25s ease;
}

.nav-dropdown-menu a:hover {
    color: #ffffff !important;

    background-color:
        rgba(18, 184, 237, 0.10) !important;

    transform: translateX(4px);

    text-shadow:
        0 0 10px rgba(18, 184, 237, 0.45);
}
.navbar-logo::before {
    content: "🏠";
    margin-right: 9px;
    font-size: 17px;
    filter: grayscale(1);
    transition: 0.25s ease;
}

.navbar-logo:hover::before {
    filter: grayscale(0);
    transform: translateY(-1px);
}
/* =========================================================
   EVENT TIMER CTA
========================================================= */

.event-timer-cta {
    position: relative;

    width: min(1100px, 92%);
    margin: 55px auto 70px;

    overflow: hidden;

    border:
        1px solid rgba(214, 170, 75, 0.20);

    border-radius: 14px;

    background:
        linear-gradient(
            110deg,
            rgba(15, 21, 32, 0.96),
            rgba(8, 12, 19, 0.98)
        );

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}


/* ambient glow */

.event-timer-cta-glow {
    position: absolute;

    width: 380px;
    height: 180px;

    top: 50%;
    left: 18%;

    transform:
        translate(-50%, -50%);

    background:
        radial-gradient(
            ellipse,
            rgba(214, 170, 75, 0.13),
            transparent 70%
        );

    filter: blur(20px);

    pointer-events: none;

    animation:
        eventCtaGlow 5s ease-in-out infinite alternate;
}


@keyframes eventCtaGlow {

    from {
        opacity: 0.45;
        transform:
            translate(-50%, -50%)
            scale(0.9);
    }

    to {
        opacity: 1;
        transform:
            translate(-50%, -50%)
            scale(1.15);
    }

}


/* content */

.event-timer-cta-content {
    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 22px;

    padding: 25px 28px;
}


/* icon */

.event-timer-cta-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(214, 170, 75, 0.32);

    border-radius: 12px;

    background:
        radial-gradient(
            circle,
            rgba(214, 170, 75, 0.16),
            rgba(214, 170, 75, 0.03)
        );

    font-size: 25px;

    box-shadow:
        0 0 20px rgba(214, 170, 75, 0.08);

    animation:
        timerIconPulse 3s ease-in-out infinite;
}


@keyframes timerIconPulse {

    0%,
    100% {
        box-shadow:
            0 0 12px rgba(214, 170, 75, 0.06);
    }

    50% {
        box-shadow:
            0 0 25px rgba(214, 170, 75, 0.20);
    }

}


/* text */

.event-timer-cta-text {
    flex: 1;
}


.event-timer-cta-text span {
    display: block;

    margin-bottom: 5px;

    color: #c9a64d;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
}


.event-timer-cta-text h3 {
    margin-bottom: 5px;

    color: #f2f2f2;

    font-size: 20px;
}


.event-timer-cta-text p {
    color: #aeb7c6;
    font-size: 15px;
    line-height: 1.7;
}


/* button */

.event-timer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    padding: 13px 19px;
    color: #e4c76e;
    background:
        rgba(214, 170, 75, 0.055);
    border:
        1px solid rgba(214, 170, 75, 0.30);
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.4px;
    transition:
        transform 0.3s ease,
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.event-timer-cta-button strong {
    font-size: 17px;

    transition:
        transform 0.3s ease;
}


.event-timer-cta-button:hover {
    color: #fff1bd;

    background:
        rgba(214, 170, 75, 0.12);

    border-color:
        rgba(214, 170, 75, 0.65);

    transform:
        translateY(-2px);

    box-shadow:
        0 0 22px rgba(214, 170, 75, 0.13);
}


.event-timer-cta-button:hover strong {
    transform:
        translateY(3px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .event-timer-cta {
        margin:
            40px auto 55px;
    }

    .event-timer-cta-content {
        flex-wrap: wrap;

        padding: 22px;
    }

    .event-timer-cta-text {
        min-width:
            calc(100% - 80px);
    }

    .event-timer-cta-button {
        width: 100%;

        justify-content: center;

        margin-top: 5px;
    }

}
/* =========================================================
   FEATURED GUIDES
========================================================= */

.home-featured-guides {
    width: min(900px, calc(100% - 40px));
    margin: 35px auto 80px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}


.home-guide-card {
    position: relative;

    display: flex;
    align-items: center;
    gap: 18px;

    min-height: 125px;

    padding: 24px 55px 24px 24px;

    text-decoration: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            rgba(12, 17, 30, 0.96),
            rgba(8, 11, 21, 0.98)
        );

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}


/* =========================================================
   PANTHEON
========================================================= */

.home-pantheon-card {
    border: 1px solid rgba(205, 160, 75, 0.35);

    box-shadow:
        0 0 18px rgba(205, 160, 75, 0.07),
        inset 0 0 25px rgba(205, 160, 75, 0.025);
}


.home-pantheon-card:hover {
    transform: translateY(-6px);

    border-color: rgba(235, 190, 90, 0.85);

    background:
        linear-gradient(
            135deg,
            rgba(35, 28, 17, 0.98),
            rgba(11, 13, 22, 0.98)
        );

    box-shadow:
        0 0 15px rgba(235, 190, 90, 0.25),
        0 0 40px rgba(205, 160, 75, 0.12);
}


.home-pantheon-card .home-guide-icon {
    border-color: rgba(235, 190, 90, 0.45);

    box-shadow:
        0 0 15px rgba(235, 190, 90, 0.12);
}


/* =========================================================
   ARCANA
========================================================= */

.home-arcana-card {
    border: 1px solid rgba(155, 100, 255, 0.4);

    box-shadow:
        0 0 18px rgba(145, 90, 255, 0.09),
        inset 0 0 25px rgba(145, 90, 255, 0.035);
}


.home-arcana-card:hover {
    transform: translateY(-6px);

    border-color: rgba(185, 130, 255, 0.95);

    background:
        linear-gradient(
            135deg,
            rgba(35, 20, 55, 0.98),
            rgba(9, 12, 23, 0.98)
        );

    box-shadow:
        0 0 18px rgba(170, 100, 255, 0.3),
        0 0 45px rgba(125, 70, 255, 0.15);
}


.home-arcana-card .home-guide-icon {
    border-color: rgba(180, 120, 255, 0.55);

    box-shadow:
        0 0 18px rgba(160, 90, 255, 0.2);
}


/* =========================================================
   ICON
========================================================= */

.home-guide-icon {
    flex: 0 0 58px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);

    font-size: 27px;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


.home-guide-card:hover .home-guide-icon {
    transform: scale(1.08) rotate(-3deg);
}


/* =========================================================
   CONTENT
========================================================= */

.home-guide-content {
    min-width: 0;
}


.home-guide-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #9da9c0;
}


.home-guide-card h3 {
    margin: 0 0 7px;

    color: #ffffff;

    font-size: 21px;

    transition:
        color 0.3s ease;
}


.home-pantheon-card:hover h3 {
    color: #f0c76a;
}


.home-arcana-card:hover h3 {
    color: #c99aff;
}


.home-guide-card p {
    margin: 0;
    color: #aeb7c6;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   ARROW
========================================================= */

.home-guide-arrow {
    position: absolute;

    top: 50%;
    right: 20px;

    transform: translateY(-50%);

    color: #71809e;

    font-size: 22px;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}


.home-pantheon-card:hover .home-guide-arrow {
    color: #f0c76a;

    transform:
        translate(5px, -50%);
}


.home-arcana-card:hover .home-guide-arrow {
    color: #c99aff;

    transform:
        translate(5px, -50%);
}


@media (max-width: 700px) {
    .home-featured-guides {
        width: calc(100% - 20px);
        grid-template-columns: 1fr;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .home-guide-card {
        min-height: 90px; /* Намаляваме височината от 110px */
        padding: 15px 40px 15px 15px; /* По-тесни отстъпи */
    }

    .home-guide-icon {
        flex-basis: 40px; /* Смаляваме иконата */
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .home-guide-card h3 {
        font-size: 16px; /* Намаляваме шрифта на заглавието */
    }
}
/* =========================================================
   CLASS CARD - READ MORE BUTTON
========================================================= */

.class-more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    margin-top: 18px;
    padding: 10px 18px;

    color: #d9ecff;

    background:
        linear-gradient(
            135deg,
            rgba(0, 174, 255, 0.12),
            rgba(20, 70, 110, 0.08)
        );

    border: 1px solid rgba(0, 174, 255, 0.38);
    border-radius: 6px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;

    box-shadow:
        0 0 10px rgba(0, 174, 255, 0.05);

    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   HOVER
========================================================= */

.class-more-button:hover {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(0, 174, 255, 0.25),
            rgba(20, 90, 140, 0.16)
        );

    border-color: rgba(0, 190, 255, 0.80);

    box-shadow:
        0 0 12px rgba(0, 174, 255, 0.20),
        0 0 28px rgba(0, 174, 255, 0.10);

    transform: translateY(-2px);
}


/* =========================================================
   ARROW
========================================================= */

.class-more-arrow {
    color: #49c8ff;

    font-size: 17px;
    font-weight: 700;

    transition:
        transform 0.3s ease,
        color 0.3s ease;
}


.class-more-button:hover .class-more-arrow {
    color: #ffffff;
    transform: translateX(4px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .class-more-button {
        padding: 9px 15px;
        font-size: 12px;
    }

}
/* =========================================================
   PET SYSTEM CARD
========================================================= */

.home-pet-card {
    position: relative;
    overflow: hidden;
}


/* Pet cyan/gold glow */

.home-pet-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 1px;

    background:
        linear-gradient(
            135deg,
            rgba(98, 231, 255, 0.65),
            rgba(157, 114, 255, 0.35),
            rgba(255, 211, 106, 0.55),
            rgba(98, 231, 255, 0.35)
        );

    opacity: 0.35;

    pointer-events: none;

    transition:
        opacity 0.35s ease;
}


/* Hover */

.home-pet-card:hover {
    border-color:
        rgba(98, 231, 255, 0.7);

    box-shadow:
        0 0 12px rgba(98, 231, 255, 0.25),
        0 0 30px rgba(98, 231, 255, 0.18),
        0 0 55px rgba(157, 114, 255, 0.12),
        0 22px 50px rgba(0, 0, 0, 0.55);

    transform:
        translateY(-7px);
}


.home-pet-card:hover::before {
    opacity: 0.8;
}


/* Icon */

.home-pet-card .home-guide-icon {
    filter:
        drop-shadow(
            0 0 12px rgba(98, 231, 255, 0.5)
        )
        drop-shadow(
            0 0 22px rgba(157, 114, 255, 0.25)
        );

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}


.home-pet-card:hover .home-guide-icon {
    transform:
        scale(1.12)
        rotate(-4deg);

    filter:
        drop-shadow(
            0 0 15px rgba(98, 231, 255, 0.75)
        )
        drop-shadow(
            0 0 30px rgba(255, 211, 106, 0.3)
        );
}


/* Title */

.home-pet-card h3 {
    transition:
        color 0.3s ease,
        text-shadow 0.3s ease;
}


.home-pet-card:hover h3 {
    color: #dff9ff;

    text-shadow:
        0 0 10px rgba(98, 231, 255, 0.45),
        0 0 22px rgba(98, 231, 255, 0.2);
}


/* Arrow */

.home-pet-card .home-guide-arrow {
    color:
        var(--pet-cyan, #62e7ff);

    transition:
        transform 0.3s ease,
        text-shadow 0.3s ease;
}


.home-pet-card:hover .home-guide-arrow {
    transform:
        translateX(6px);

    text-shadow:
        0 0 12px rgba(98, 231, 255, 0.8),
        0 0 25px rgba(98, 231, 255, 0.4);
}

/* =========================================================
   NAVBAR - FINAL LAYOUT & STYLES
========================================================= */

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Разпределя лого, меню и акаунт равномерно */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Лого */
.navbar-logo {
    flex-shrink: 0;
}

/* Централно меню (Десктоп изглед) */
.navbar > .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
}

/* Бутони в централното меню */
.navbar > .nav-links > a,
.navbar > .nav-links .nav-dropdown-button {
    padding: 12px 16px;
    font-size: 16px;
    white-space: nowrap;
}

/* Акаунт бутон */
.account-button {
    padding: 12px 16px;
    font-size: 16px;
}

/* Запазваме dropdown-ите над останалото съдържание */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    z-index: 9999;
}

/* =========================================================
   МОБИЛНА ЗАЩИТА (Под 1200px) - Премахва конфликтите при зуум
========================================================= */
@media screen and (max-width: 1200px) {
    .navbar > .nav-links {
        display: none !important; /* Скрива десктоп лентата, за да не се бърка с мобилното меню от JS */
    }
}
/* =========================================================
   CHAT + ACCOUNT - RIGHT NAVBAR AREA
========================================================= */

.chat-nav-link {
    flex-shrink: 0;
    margin-left: auto;

    padding: 12px 16px;

    font-size: 16px;
    font-weight: 600;

    text-decoration: none;
}


/* Account stays immediately after Chat */

.navbar > .account-dropdown {
    margin-left: 0;
    margin-right: 20px;
    flex-shrink: 0;
}

/* =========================================================
   CHAT NAV BUTTON
========================================================= */

.chat-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-left: auto;
    margin-right: 10px;

    padding: 9px 15px;

    color: #ffffff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 700;

    background: linear-gradient(
        135deg,
        #172b45,
        #0b1627
    );

    border: 1px solid rgba(80, 170, 255, 0.65);
    border-radius: 8px;

    box-shadow:
        0 0 8px rgba(40, 150, 255, 0.18),
        inset 0 0 10px rgba(50, 150, 255, 0.05);

    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease;

    cursor: pointer;
}


/* Chat icon */

.chat-nav-icon {
    font-size: 17px;
    line-height: 1;
}


/* Hover */

.chat-nav-link:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #1c4168,
        #10243b
    );

    border-color: #4db5ff;

    box-shadow:
        0 0 8px rgba(50, 170, 255, 0.45),
        0 0 18px rgba(50, 150, 255, 0.2),
        inset 0 0 12px rgba(50, 150, 255, 0.08);

    transform: translateY(-1px);
}


/* Click */

.chat-nav-link:active {
    transform: translateY(0);

    box-shadow:
        0 0 5px rgba(50, 170, 255, 0.55),
        inset 0 0 12px rgba(50, 170, 255, 0.15);
}


/* =========================================================
   MOBILE — CHAT LINK OPTIMIZATION
========================================================= */

@media (max-width: 900px) {

    .chat-nav-link {
        padding: 5px 8px; /* Намаляваме още отстъпите */
        margin-right: 4px;
    }

    .chat-nav-text {
        display: none; /* Текстът е слят, остава само иконата */
    }

    .chat-nav-icon {
        font-size: 16px; /* Леко смаляваме иконата, за да е в тон с другите бутони */
    }

}
/* =========================================================
   CHAT NAVIGATION - CLICK FIX
========================================================= */

.chat-nav-link {
    position: relative;
    z-index: 10001;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    pointer-events: auto;

    user-select: none;
}
/* =========================================================
   CHAT + ACCOUNT NAVIGATION AREA
========================================================= */

.nav-account-area {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;

    margin-left: auto;

    flex-shrink: 0;

    position: relative;
    z-index: 10000;
}


/* =========================================================
   CHAT NAV BUTTON
========================================================= */

.chat-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    position: relative;
    z-index: 10001;

    padding: 9px 15px;

    color: #ffffff;
    text-decoration: none;

    font-size: 16px;
    font-weight: 700;

    background: linear-gradient(
        135deg,
        #172b45,
        #0b1627
    );

    border: 1px solid rgba(80, 170, 255, 0.65);
    border-radius: 8px;

    box-shadow:
        0 0 8px rgba(40, 150, 255, 0.18),
        inset 0 0 10px rgba(50, 150, 255, 0.05);

    cursor: pointer;
    pointer-events: auto;
    user-select: none;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


/* Chat icon */

.chat-nav-icon {
    font-size: 17px;
    line-height: 1;
}


/* Hover */

.chat-nav-link:hover {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #1d4269,
        #10243b
    );

    border-color: #4db5ff;

    box-shadow:
        0 0 8px rgba(50, 170, 255, 0.45),
        0 0 18px rgba(50, 150, 255, 0.20),
        inset 0 0 12px rgba(50, 150, 255, 0.08);

    transform: translateY(-1px);
}


/* Click */

.chat-nav-link:active {
    transform: translateY(0);

    box-shadow:
        0 0 5px rgba(50, 170, 255, 0.55),
        inset 0 0 12px rgba(50, 170, 255, 0.15);
}


/* =========================================================
   ACCOUNT INSIDE RIGHT AREA
========================================================= */

.nav-account-area .account-dropdown {
    position: relative;

    margin-left: 0;
    margin-right: 20px;

    flex-shrink: 0;
}


@media (max-width: 900px) {

    .nav-account-area {
        gap: 3px;
    }

    .chat-nav-link {
        padding: 5px 7px;
    }

    .chat-nav-text {
        display: none;
    }

    .chat-nav-icon {
        font-size: 16px;
    }

    .nav-account-area .account-dropdown {
        margin-right: 4px;
    }

}

/* Универсален фон за профил, настройки, логин и ресет */
body.page-profile {
    background: linear-gradient(rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.75)), 
                url('images/baner/profile.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.page-settings {
    background: linear-gradient(rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.75)), 
                url('images/baner/settings.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.page-login {
    background: linear-gradient(rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.75)), 
                url('images/baner/login.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.page-forgot {
    background: linear-gradient(rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.75)), 
                url('images/baner/forgotpassword.jpg') no-repeat center center fixed;
    background-size: cover;
}
body.page-reset {
    background: linear-gradient(rgba(11, 15, 25, 0.75), rgba(11, 15, 25, 0.75)), 
                url('images/baner/ressetpassword.jpg') no-repeat center center fixed;
    background-size: cover;
}

body.page-register {
    background: linear-gradient(rgba(11, 15, 25, 0.65), rgba(11, 15, 25, 0.65)), 
                url('images/baner/register.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* ЕДИН ОБЕДИНЕН И ЧИСТ СТЪКЛЕН ЕФЕКТ (Glassmorphism) за всички карти и форми */
.profile-card,
.settings-container,
.auth-box,
.register-box, 
.register-container,
.account-card {
    background: rgba(18, 22, 38, 0.5); /* Полупрозрачен тъмен цвят, за да прозират уникалните фонове отзад */
    backdrop-filter: blur(12px);         /* Размазване на фон зад елемента */
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* =========================
   NAVBAR ACCOUNT & CHAT BUTTONS STYLING
========================= */

.navbar .nav-account-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Общ контейнер и стил за бутона за акаунт и чат линка */
.navbar .account-button,
.navbar .chat-nav-link {
    display: inline-flex !important;
    align-items: center !important;
    padding: 6px 16px 6px 8px !important;
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 40px !important;
    cursor: pointer !important;
    text-decoration: none !important;
    color: #f1f5f9 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    backdrop-filter: blur(8px);
}

/* Ховър ефект с рамка, glow и леко повдигане */
.navbar .account-button:hover,
.navbar .chat-nav-link:hover,
.navbar .nav-dropdown.account-dropdown:hover .account-button {
    background: rgba(30, 41, 59, 0.95) !important;
    border-color: rgba(212, 175, 55, 0.75) !important;
    box-shadow: 0 0 18px rgba(212, 175, 55, 0.3), inset 0 0 10px rgba(212, 175, 55, 0.15) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}
/* Глобални стилове за навигационните линкове */
.navbar a, 
.nav-link, 
.nav-dropdown-button {
    font-size: 15px; /* Увеличен размер на шрифта */
    font-weight: 500;
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.navbar a:hover, 
.nav-link:hover, 
.nav-dropdown-button:hover {
    color: #f1d27c;
}

/* Жълтеникави стрелки за падащите менюта и функционалните бутони */
.nav-dropdown-button::after,
.nav-arrow {
    content: "▼";
    font-size: 10px;
    color: #cba84f;
    margin-left: 4px;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-button::after {
    transform: rotate(180deg);
}
/* Перфектен голям размер и стил за цялата навигация */
#navbar-container a,
#navbar-container .nav-link,
#navbar-container .nav-dropdown-button {
    font-size: 17px !important;
    font-weight: 600 !important;
}

/* Размер за линковете вътре в падащото меню */
#navbar-container .nav-dropdown-menu a {
    font-size: 15px !important;
    font-weight: 500 !important;
}
/* Глобален преход за навбара */
header, .navbar, #navbar-container, nav {
    transition: transform 0.35s ease, opacity 0.35s ease !important;
}

.global-navbar-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
/* Стил за Conquest Expeditions картата, същият като на Pet System */
.home-conquest-card {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.9), rgba(45, 30, 60, 0.8));
    border: 1px solid rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.home-conquest-card:hover {
    border-color: rgba(168, 85, 247, 0.8);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.2);
}

/* Перфектен стил за административния бутон в менюто */
a#admin-panel-btn.admin-nav-link {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.25), rgba(185, 28, 28, 0.4)) !important;
    border: 1px solid rgba(239, 68, 68, 0.6) !important;
    color: #ff6b6b !important;
    font-weight: bold !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3) !important;
    transition: all 0.3s ease-in-out !important;
    text-decoration: none !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 8px !important;
}

/* Ефект при мишка върху бутона (Hover) */
a#admin-panel-btn.admin-nav-link:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.4), rgba(220, 38, 38, 0.6)) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.7), inset 0 0 8px rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
}
/* Персонализиране на резултатите в админ модала за потребители */
#adminSearchResults {
    background: #12151e !important;
    border: 1px solid #2a2e3d !important;
    border-radius: 6px !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Стил за отделните редове в списъка */
#adminSearchResults > div {
    transition: background 0.2s ease, transform 0.1s ease !important;
}

#adminSearchResults > div:hover {
    background: rgba(239, 68, 68, 0.12) !important;
}

/* Скролбар */
#adminSearchResults::-webkit-scrollbar {
    width: 6px;
}

#adminSearchResults::-webkit-scrollbar-track {
    background: #12151e;
    border-radius: 6px;
}

#adminSearchResults::-webkit-scrollbar-thumb {
    background: rgba(239, 68, 68, 0.4);
    border-radius: 6px;
}

#adminSearchResults::-webkit-scrollbar-thumb:hover {
    background: rgba(239, 68, 68, 0.7);
}
/* Персонализиране на Одит Лог контейнера */
#auditLogsContainer {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    background: #0f121b !important;
    border: 1px solid rgba(168, 85, 247, 0.2) !important;
    padding: 14px !important;
}

/* Стил за всеки отделен ред в лога */
.audit-row {
    background: rgba(26, 29, 41, 0.6) !important;
    border: 1px solid rgba(42, 46, 61, 0.6) !important;
    border-radius: 9px !important;
    margin-bottom: 9px !important;
    padding: 12px 16px !important;
    transition: all 0.2s ease !important;
}

.audit-row:hover {
    background: rgba(168, 85, 247, 0.08) !important;
    border-color: rgba(168, 85, 247, 0.4) !important;
    transform: translateY(-1px);
}

/* Персонализиран скролбар за одит лога */
#auditLogsContainer::-webkit-scrollbar {
    width: 7px;
}

#auditLogsContainer::-webkit-scrollbar-track {
    background: #0b0e14;
    border-radius: 6px;
}

#auditLogsContainer::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.4);
    border-radius: 6px;
}

#auditLogsContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.7);
}

.social-login-container {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    padding: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.discord-btn {
    background-color: #5865F2;
}

.discord-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
}

.facebook-btn {
    background-color: #1877f2;
}

.facebook-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(24, 119, 242, 0.6);
}

.social-btn i {
    margin-right: 8px;
}

/* Цветни икони в навигацията */
.nav-links a i.fa-discord {
    color: #5865F2 !important; /* Официално Discord лилаво/синьо */
}

.nav-links a i.fa-facebook {
    color: #1877f2 !important; /* Официално Facebook синьо */
}

.nav-links a i.fa-newspaper,
.nav-links a i.fa-map-marked-alt,
.nav-links a i.fa-shield-alt,
.nav-links .nav-dropdown-button i {
    color: #38bdf8 !important; /* Живо неоново синьо за останалите */
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.5)); /* Лек светещ ефект */
}

/* Ефект при задържане с мишката */
.nav-links a:hover i {
    transform: scale(1.15);
    transition: transform 0.2s ease;
}
.custom-marker {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease-in-out;
}

.custom-marker:hover {
    transform: scale(1.25); /* Лек ховър ефект (уголемяване) */
    z-index: 1000 !important;
}

.custom-marker img {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain;
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.8));
}

.custom-marker.found {
    opacity: 0.4;
}

/* Персонализиране на Leaflet Popup съдържанието за модерен изглед */
.leaflet-popup-content-wrapper {
    background: #121824 !important;
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important;
    border: 1px solid #2a3447;
}

.leaflet-popup-tip {
    background: #121824 !important;
}

.map-popup-btn {
    background-color: #22c55e !important; /* Зеленият цвят от снимката */
    color: white !important;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s;
}

.map-popup-btn:hover {
    background-color: #16a34a !important;
}

.map-share-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-left: 5px;
}

.map-share-btn:hover {
    background-color: #2563eb !important;
}
@keyframes markerBounce {
    0%, 100% { transform: scale(1); border-color: #3b82f6; box-shadow: 0 0 0 rgba(34, 197, 94, 0); }
    50% { transform: scale(1.3); border-color: #22c55e; box-shadow: 0 0 20px #22c55e; }
}

/* =========================================================
   PERFECT SIZE & ROUND MARKERS
========================================================= */

.leaflet-div-icon.custom-marker,
.leaflet-marker-pane .custom-marker {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 46px !important;
    height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    transition: transform 0.2s ease-in-out;
}

.custom-marker img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
    border-radius: 50% !important;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
    transition: filter 0.2s ease-in-out, transform 0.2s ease-in-out;
}

.custom-marker:hover {
    transform: scale(1.35);
    z-index: 1000 !important;
}

.custom-marker:hover img {
    filter: drop-shadow(0 0 6px #f0c76a) drop-shadow(0 0 12px #f0c76a) drop-shadow(0 0 20px rgba(240, 199, 106, 0.5)) drop-shadow(0 3px 6px rgba(0,0,0,0.9));
}

.custom-marker.found {
    opacity: 0.35;
}

@keyframes markerPulseRGB {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 2px 5px rgba(0,0,0,0.8));
    }
    25% { 
        transform: scale(1.6); 
        filter: drop-shadow(0 0 15px #ef4444) drop-shadow(0 0 25px #ef4444); 
    }
    50% { 
        transform: scale(1.8); 
        filter: drop-shadow(0 0 15px #22c55e) drop-shadow(0 0 25px #22c55e); 
    }
    75% { 
        transform: scale(1.6); 
        filter: drop-shadow(0 0 15px #3b82f6) drop-shadow(0 0 25px #3b82f6); 
    }
}

.custom-marker.highlighted,
.custom-marker.shared-target {
    animation: markerPulseRGB 1s ease-in-out 8 !important;
    z-index: 9999 !important;
}

/* ==========================================================================
   GLOBAL RESPONSIVE SYSTEM — СТРОГИ ПРАВИЛА ЗА ВСИЧКИ РЕЗОЛЮЦИИ
   ========================================================================== */

/* 1. ULTRA-WIDE SCREENS (1440p и нагоре: min-width: 1440px) */
@media (min-width: 1440px) {
    .navbar {
        padding: 20px 50px !important;
    }
    .navbar .nav-links {
        gap: 20px !important;
    }
    .navbar .nav-links a,
    .navbar .nav-dropdown-button {
        font-size: 16px !important;
    }
    .hero-content h1 {
        font-size: 4rem;
    }
}

/* 2. STANDARD FULL HD / LAPTOPS (1080p до 1439px) */
@media (max-width: 1439px) and (min-width: 1025px) {
    .navbar {
        padding: 16px 30px !important;
    }
    .navbar .nav-links {
        gap: 14px !important;
    }
    .navbar .nav-links a,
    .navbar .nav-dropdown-button {
        font-size: 14px !important;
    }
}

/* 3. SMALL LAPTOPS & TABLETS (720p / 900px до 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar {
        padding: 12px 20px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    /* ПРЕМАХНАТО: .navbar .nav-links вече не се показва тук принудително, за да работи хамбургерът */
    .home-featured-guides {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* 4. MOBILE & TABLET PORTRAIT (до 768px) */
@media (max-width: 768px) {
    .navbar {
        padding: 10px 12px !important;
        flex-direction: column !important;
        gap: 10px !important;
    }
    .navbar-logo {
        font-size: 22px !important;
    }
    
    .nav-account-area {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .chat-nav-text {
        display: none !important; /* Остава само иконата за чат */
    }
    
    /* Index page mobile adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .home-featured-guides {
        grid-template-columns: 1fr !important;
        width: calc(100% - 24px) !important;
        margin: 20px auto 40px auto !important;
    }
    .event-timer-cta-content {
        flex-wrap: wrap !important;
        padding: 18px !important;
    }
    .event-timer-cta-text {
        min-width: 100% !important;
    }
    .event-timer-cta-button {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }
    .class-selector {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .class-button {
        font-size: 13px !important;
        padding: 6px 10px !important;
    }
}

/* ==========================================================================
   GLOBAL RESPONSIVE SYSTEM — ХАМБУРГЕР И МОБИЛНО МЕНЮ (1200px)
   ========================================================================== */

/* По подразбиране на големи монитори хамбургерът е скрит */
.menu-toggle, #menuToggleBtn {
    display: none;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

/* 1. ПОДРОБНИ СТИЛОВЕ ЗА РЪКОВОДСТВОТО И EXITLAG СТРАНИЦАТА */
.guide-page {
    width: min(1000px, calc(100% - 40px));
    margin: 40px auto 80px;
    color: #dceeff;
    font-family: inherit;
    line-height: 1.8;
}

.guide-content {
    background: linear-gradient(135deg, rgba(10, 18, 32, 0.92), rgba(5, 10, 20, 0.96));
    border: 1px solid rgba(80, 160, 255, 0.25);
    border-radius: 12px;
    padding: 50px 40px;
    box-shadow: 0 0 30px rgba(20, 100, 220, 0.15), inset 0 0 20px rgba(40, 140, 255, 0.05);
}

.guide-page .section-subtitle {
    color: #62b6ff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.guide-page h1 {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(80, 170, 255, 0.3);
}

.guide-intro {
    font-size: 1.2rem;
    color: #a2d2ff;
    font-weight: 600;
    margin-bottom: 15px;
}

.guide-description {
    color: #b0c4de;
    margin-bottom: 35px;
}

.guide-hero-image,
.guide-section-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(80, 170, 255, 0.35);
    box-shadow: 0 0 20px rgba(40, 130, 255, 0.2);
    margin: 30px 0 45px;
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-hero-image:hover,
.guide-section-image:hover {
    transform: scale(1.015);
    box-shadow: 0 0 30px rgba(60, 170, 255, 0.4);
}

.guide-book-nav {
    background: rgba(15, 25, 45, 0.85);
    border: 1px solid rgba(80, 160, 255, 0.3);
    border-radius: 10px;
    padding: 25px;
    margin: 40px 0 60px;
}

.guide-book-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #62b6ff;
    margin-bottom: 20px;
    text-align: center;
}

.guide-book-pages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.guide-page-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(20, 35, 60, 0.7);
    border: 1px solid rgba(80, 160, 255, 0.2);
    border-radius: 6px;
    color: #dceeff;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.25s ease;
}

.guide-page-button strong {
    color: #62b6ff;
    font-size: 14px;
}

.guide-page-button:hover {
    background: rgba(40, 75, 130, 0.8);
    border-color: rgba(100, 190, 255, 0.6);
    transform: translateY(-2px);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(60, 160, 255, 0.25);
}

.guide-section {
    position: relative;
    padding-top: 40px;
    margin-top: 50px;
    border-top: 1px solid rgba(80, 160, 255, 0.15);
}

.guide-section-number {
    position: absolute;
    top: 35px;
    right: 10px;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(98, 182, 255, 0.05);
    pointer-events: none;
}

.guide-section h2 {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 20px;
}

.guide-section h3 {
    font-size: 1.3rem;
    color: #62b6ff;
    margin: 30px 0 15px;
}

.guide-section p {
    margin-bottom: 15px;
    color: #cddff5;
}

.guide-section ul, 
.guide-section ol {
    margin: 20px 0;
    padding-left: 25px;
    color: #cddff5;
}

.guide-section li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.guide-tip {
    background: linear-gradient(135deg, rgba(20, 35, 60, 0.6), rgba(10, 20, 35, 0.8));
    border-left: 4px solid #62b6ff;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 25px 0;
    color: #dceeff;
    font-size: 0.95rem;
    box-shadow: 0 0 15px rgba(40, 130, 255, 0.08);
}

.guide-tip strong {
    color: #ffffff;
}

.guide-checklist {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.guide-checklist div {
    background: rgba(15, 25, 45, 0.7);
    border: 1px solid rgba(80, 160, 255, 0.2);
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #dceeff;
}

.guide-back-top-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.guide-back-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(20, 35, 60, 0.9);
    border: 1px solid rgba(80, 170, 255, 0.5);
    border-radius: 6px;
    color: #dceeff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s ease;
    box-shadow: 0 0 12px rgba(50, 150, 255, 0.15);
}

.guide-back-top:hover {
    background: rgba(35, 65, 110, 0.95);
    border-color: rgba(100, 190, 255, 0.9);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(60, 160, 255, 0.35);
}

/* Lightbox за снимките */
.guide-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 5, 12, 0.92);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.guide-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.guide-lightbox-image {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    border: 1px solid rgba(100, 190, 255, 0.6);
    box-shadow: 0 0 40px rgba(60, 170, 255, 0.4);
}

.guide-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    width: 40px;
    height: 40px;
    background: rgba(15, 25, 45, 0.9);
    border: 1px solid rgba(100, 190, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.guide-lightbox-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: rgba(40, 75, 130, 0.95);
}


/* =========================================================
   GLOBAL STYLES & RESET & EXITLAG PAGE
========================================================= */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #05070a;
    color: #d8d8d8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

main {
    display: block;
}

.exitlag-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 130px 20px 80px;
    box-sizing: border-box;
}

.exitlag-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-subtitle {
    color: #f1d27c;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.exitlag-content h1 {
    font-size: 48px;
    color: #f2f2f2;
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    font-weight: 800;
}

.exitlag-intro {
    font-size: 17px;
    color: #9ea4ad;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 45px;
}

.exitlag-card {
    background: rgba(12, 16, 23, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 35px 30px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.exitlag-card:hover {
    border-color: rgba(214, 170, 75, 0.4);
    transform: translateY(-3px);
}

.exitlag-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.exitlag-card h2 {
    font-size: 24px;
    color: #f1d27c;
    margin-top: 0;
    margin-bottom: 15px;
    font-weight: 700;
}

.exitlag-card p {
    color: #b0b7c3;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 15px;
}

.exitlag-card p:last-child {
    margin-bottom: 0;
}

.exitlag-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 900px;
    margin: 15px 0 45px;
    box-sizing: border-box;
}

.exitlag-feature {
    background: rgba(12, 16, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.exitlag-feature:hover {
    border-color: rgba(214, 170, 75, 0.5);
    background: rgba(16, 21, 31, 0.9);
    transform: translateY(-4px);
}

.exitlag-feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(214, 170, 75, 0.1);
    border: 1px solid rgba(214, 170, 75, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1d27c;
    font-size: 20px;
    margin-bottom: 18px;
}

.exitlag-feature h3 {
    font-size: 18px;
    color: #f2f2f2;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.exitlag-feature p {
    font-size: 14px;
    color: #9ea4ad;
    line-height: 1.6;
    margin: 0;
}

.exitlag-action {
    margin-top: 10px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #d6aa4b 0%, #b88d30 100%);
    color: #05070a;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(214, 170, 75, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-button:hover {
    background: linear-gradient(135deg, #f1d27c 0%, #d6aa4b 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(214, 170, 75, 0.5);
    color: #000;
}

.site-footer {
    background: rgba(4, 6, 10, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 20px;
    text-align: center;
    color: #7b8390;
    font-size: 13px;
    line-height: 1.7;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-content p {
    margin-bottom: 15px;
}

.footer-content p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   МОБИЛНА ЛОГИКА И ХАМБУРГЕР МЕНЮ (Под 1200px)
========================================================= */
@media screen and (max-width: 1200px) {
    /* 1. Показваме бутона */
    .menu-toggle, #menuToggleBtn {
        display: block !important;
        background: transparent !important;
        border: none !important;
        color: #fff !important;
        font-size: 24px !important;
        cursor: pointer !important;
    }

    /* 2. Скриваме десктоп линковете по подразбиране */
    .navbar .nav-links {
        display: none !important;
    }

    /* 3. Фиксирано мобилно меню на цял екран под хедъра */
    .navbar .nav-links.active {
        display: flex !important;
        flex-direction: column !important;
        position: fixed !important;
        top: 70px !important;
        left: 0 !important;
        width: 100vw !important;
        height: calc(100vh - 70px) !important;
        background: rgba(11, 15, 25, 0.98) !important;
        backdrop-filter: blur(15px) !important;
        -webkit-backdrop-filter: blur(15px) !important;
        padding: 30px 20px !important;
        gap: 15px !important;
        z-index: 9999999 !important;
        box-sizing: border-box !important;
        overflow-y: auto !important;
    }

    /* 4. Перфектни линкове вътре в мобилното меню */
    .navbar .nav-links.active a,
    .navbar .nav-links.active .nav-dropdown-button {
        display: flex !important;
        align-items: center !important;
        color: #ffffff !important;
        font-size: 18px !important;
        padding: 14px 18px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
    }

    .navbar .nav-links.active a:hover {
        background: rgba(56, 189, 248, 0.2) !important;
        border-color: rgba(56, 189, 248, 0.4) !important;
    }
}

/* Изглаждания за мобилни и малки екранни резолюции (под 768px и 480px) */
@media (max-width: 768px) {
    .guide-content {
        padding: 25px 15px;
    }
    .guide-page h1 {
        font-size: 2rem;
    }
    .guide-book-pages {
        grid-template-columns: repeat(2, 1fr);
    }
    .guide-checklist {
        grid-template-columns: 1fr;
    }
    .exitlag-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .guide-page h1 {
        font-size: 1.7rem;
    }
    .exitlag-content h1 {
        font-size: 36px;
    }
}
/* Допълнително подравняване при силен зуум / малки екрани */
@media screen and (max-width: 1200px) {
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 15px !important;
    }

    .navbar-logo {
        max-width: 50% !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    /* Гарантираме, че бутоните за акаунт и хамбургерът не се застъпват */
    .nav-account-area {
        gap: 8px !important;
    }
}
/* Универсално избутване на чат прозореца надолу, за да не покрива хедъра и менюто */
.chat-modal, 
.chat-container, 
#chat-container, 
.community-chat-wrapper {
    margin-top: 85px !important;
    max-height: calc(100vh - 110px) !important;
    box-sizing: border-box !important;
}

/* Ако чатът е фиксиран на цял екран (popup) */
@media screen and (min-width: 1201px) {
    .chat-modal, 
    .chat-container, 
    #chat-container {
        top: 20px !important; /* Уверяваме се, че не залепва най-горе в горния край на екрана */
    }
}