/* =============================
   ОСНОВНИ НАСТРОЙКИ
============================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at center, #261811 0%, #110d0b 55%, #080706 100%);
    color: #ffffff;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 70px 0;
}


/* =============================
   HEADER
============================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(8, 7, 6, 0.96);
    border-bottom: 1px solid #3e3029;

    backdrop-filter: blur(10px);
}

.header-inner {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* LOGO */

.logo {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 195px;

    font-family: Georgia, serif;
    font-weight: bold;

    line-height: 0.9;
}

.logo::before,
.logo::after {
    content: "☘";
    position: absolute;

    top: 4px;

    color: #54ad27;
    font-size: 36px;
}

.logo::before {
    left: -8px;
}

.logo::after {
    right: -8px;
}

.logo-small {
    font-size: 20px;
}

.logo-big {
    font-size: 28px;
}


/* NAV */

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.main-nav a {
    position: relative;

    padding: 30px 0 26px;

    font-size: 13px;
    white-space: nowrap;

    transition: 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
    color: #f57524;
}

.main-nav a.active::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;

    height: 2px;

    background: #f57524;
}


/* PHONE */

.phone-btn {
    padding: 14px 23px;

    background: linear-gradient(135deg, #d8550c, #ef7624);

    border-radius: 30px;

    font-size: 17px;
    font-weight: bold;

    white-space: nowrap;

    box-shadow: 0 6px 20px rgba(222, 87, 14, 0.25);

    transition: 0.25s;
}

.phone-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 25px rgba(222, 87, 14, 0.4);
}


/* =============================
   HERO
============================= */

.hero {
    position: relative;

    min-height: 570px;

    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(10, 7, 5, 0.97) 0%,
            rgba(20, 12, 7, 0.80) 45%,
            rgba(10, 7, 5, 0.70) 100%
        ),
        url("images/restaurant.jpg") center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 75% 35%,
            rgba(246, 89, 18, 0.15),
            transparent 35%
        );
}

.hero-content {
    position: relative;
    z-index: 2;

    min-height: 450px;

    display: grid;
    grid-template-columns: 1fr 1.4fr;

    align-items: center;

    gap: 80px;
}

.hero-label {
    margin-bottom: 2px;

    color: #f67320;

    font-size: 34px;
    font-weight: 900;
}

.hero-text h1 {
    margin-bottom: 18px;

    font-size: 54px;
    line-height: 1;

    text-transform: uppercase;
}

.hero-text h1 span {
    color: #fdfdfd;
}

.hero-text p {
    max-width: 440px;

    margin-bottom: 25px;

    color: #eeeeee;

    font-size: 18px;
    line-height: 1.6;
}


/* BUTTON */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 12px 28px;

    border-radius: 12px;

    font-size: 17px;
    font-weight: bold;

    transition: 0.25s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-orange {
    background: linear-gradient(135deg, #e2571a, #f2762a);

    box-shadow: 0 8px 22px rgba(210, 68, 8, 0.3);
}

.btn-red {
    background: linear-gradient(135deg, #a90202, #d82015);

    box-shadow: 0 8px 22px rgba(180, 0, 0, 0.25);
}


/* HERO BRAND */

.hero-brand {
    text-align: center;
}

.hero-brand .clover {
    margin-bottom: -15px;

    color: #56b72c;

    font-size: 64px;
}

.hero-brand h2 {
    font-family: Georgia, serif;

    font-size: clamp(38px, 5vw, 67px);
    line-height: 0.9;

    text-shadow: 0 3px 6px #000;
}

.hero-brand h2 span {
    display: block;

    margin-top: 10px;

    font-size: 0.85em;
}

.hero-slogan {
    display: inline-block;

    margin-top: 27px;

    padding-bottom: 8px;

    border-bottom: 4px solid #d6150c;

    font-family: Georgia, serif;
    font-size: 27px;
    font-style: italic;

    transform: rotate(-3deg);
}


/* FOOD */

.hero-food {
    position: absolute;
    z-index: 5;

    left: 50%;
    bottom: 0;

    width: min(1150px, 100%);

    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    align-items: flex-end;

    gap: 10px;
}

.food-placeholder {
    width: 210px;
    height: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50% 50% 10px 10px;

    background:
        radial-gradient(circle, #74351c, #2a160e);

    border: 2px solid #8c532c;

    font-size: 80px;

    box-shadow: 0 -12px 25px rgba(0, 0, 0, 0.35);
}


/* =============================
   FEATURES
============================= */

.features {
    padding: 27px 0;

    border-top: 1px solid #34251f;
    border-bottom: 1px solid #34251f;

    background:
        linear-gradient(180deg, #15110e, #0d0b09);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 16px;

    padding: 10px;
}

.feature-icon {
    font-size: 43px;
}

.feature strong,
.feature span {
    display: block;
}

.feature strong {
    font-size: 17px;
}

.feature span {
    color: #e7e7e7;
}


/* =============================
   TITLES
============================= */

.section-title {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 20px;
}

.section-title.center {
    justify-content: center;

    margin-bottom: 35px;
}

.section-title span {
    color: #ca1515;
    font-size: 24px;
}

.section-title h2 {
    font-family: Georgia, serif;

    color: #18120d;

    font-size: 38px;

    letter-spacing: 1px;
}


/* =============================
   ОБЕДНО МЕНЮ
============================= */

.lunch-section {
    padding-bottom: 30px;
}

.lunch-card {
    position: relative;

    min-height: 300px;

    display: grid;
    grid-template-columns: 1fr 1.45fr 0.8fr;

    overflow: hidden;

    border-radius: 12px;

    background:
        linear-gradient(
            90deg,
            #efe2c5,
            #f8efd9 50%,
            #e9d7b5
        );

    color: #1c1712;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.lunch-photo {
    min-height: 300px;
}

.image-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle, #8d4d27, #3c1d11);

    font-size: 120px;
}

.lunch-content {
    padding: 35px 35px 30px;
}

.lunch-content p {
    margin-bottom: 25px;

    font-size: 17px;
}

.demo-note {
    margin-top: 14px;

    color: #71645a;

    font-size: 12px;
}

.lunch-list {
    padding: 27px;
}

.paper {
    height: 100%;

    padding: 28px 25px;

    background:
        repeating-linear-gradient(
            #f0daa9,
            #f0daa9 27px,
            #d5bb84 28px
        );

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);

    transform: rotate(-2deg);
}

.chef-icon {
    margin-bottom: 10px;

    text-align: center;

    font-size: 38px;
}

.paper ul {
    list-style: none;
}

.paper li {
    position: relative;

    padding: 8px 0 8px 25px;

    font-size: 16px;
}

.paper li::before {
    content: "❖";

    position: absolute;
    left: 0;

    color: #b60b0b;
}


/* =============================
   ЯСТИЯ
============================= */

.meals-section {
    padding-top: 20px;
}

.meals-section .section-title h2 {
    color: #fff;
}

.meals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 18px;
}

.meal-card {
    overflow: hidden;

    border: 1px solid #554239;
    border-radius: 10px;

    background: #15110e;

    text-align: center;

    transition: 0.25s;
}

.meal-card:hover {
    transform: translateY(-5px);

    border-color: #b55528;

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.meal-image {
    min-height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle, #8b4522, #32170d);

    font-size: 90px;
}

.meal-card h3 {
    padding: 14px 10px;

    font-size: 17px;
}


/* =============================
   ЗА НАС
============================= */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 0.7fr;

    align-items: stretch;

    overflow: hidden;

    border: 1px solid #34271f;
    border-radius: 10px;

    background: #100d0b;
}

.about-text {
    padding: 40px;
}

.about-text .section-title h2 {
    color: #ffffff;
}

.about-text p {
    margin-bottom: 15px;

    color: #e4e4e4;

    font-size: 16px;
    line-height: 1.65;
}

.about-text .btn {
    margin-top: 10px;
}

.about-photo {
    min-height: 350px;
}

.restaurant-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 15px;

    background:
        linear-gradient(
            rgba(0, 0, 0, 0.2),
            rgba(0, 0, 0, 0.4)
        ),
        radial-gradient(circle, #784426, #23130d);

    color: #eadfce;
}

.restaurant-icon {
    font-size: 90px;
}


/* CONTACT */

.contact-card {
    margin: 18px;

    padding: 25px;

    border-radius: 8px;

    background:
        linear-gradient(160deg, #f0dfbd, #e6cca0);

    color: #24170f;
}

.contact-item {
    display: flex;

    gap: 15px;

    padding: 21px 0;

    border-bottom: 1px solid rgba(69, 43, 24, 0.25);
}

.contact-item:last-child {
    border-bottom: 0;
}

.contact-icon {
    color: #c40d0d;
    font-size: 28px;
}

.contact-item h4 {
    margin-bottom: 4px;

    font-size: 14px;
}

.contact-item p,
.contact-item a {
    font-size: 14px;
}

.contact-item a {
    font-weight: bold;
}


/* =============================
   CTA
============================= */

.cta {
    padding: 40px 0;

    background:
        linear-gradient(90deg, #8c0808, #be1710, #7c0606);

    border-top: 1px solid #d84936;
    border-bottom: 1px solid #d84936;
}

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

    gap: 30px;
}

.cta h2 {
    font-family: Georgia, serif;

    margin-bottom: 5px;

    font-size: 30px;
}


/* =============================
   FOOTER
============================= */

.site-footer {
    background: #080706;
}

.footer-grid {
    min-height: 135px;

    display: grid;
    grid-template-columns: 1fr 2fr 1fr;

    align-items: center;

    gap: 30px;
}

.footer-logo strong {
    display: block;

    font-family: Georgia, serif;

    font-size: 21px;
    line-height: 1;
}

.footer-logo strong span {
    display: block;

    font-size: 30px;
}

.footer-clover {
    margin-top: 7px;

    color: #49a825;
}

.footer-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;
}

.footer-menu a {
    padding-right: 12px;

    border-right: 1px solid #666;

    font-size: 13px;
}

.footer-menu a:last-child {
    border-right: 0;
}

.footer-menu a:hover {
    color: #f36b24;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    font-size: 13px;
}

.facebook-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #4267b2;
    color: #ffffff;

    font-family: Arial;
    font-size: 27px;
    font-weight: bold;
}

.footer-bottom {
    padding: 18px;

    border-top: 1px solid #2a221e;

    color: #aaa;

    text-align: center;

    font-size: 12px;
}


/* =============================
   ДЕКОРАТИВЕН БЪЛГАРСКИ МОТИВ
============================= */

.site-footer::after {
    content: "";

    display: block;

    height: 35px;

    background:
        repeating-linear-gradient(
            45deg,
            #b20f12 0,
            #b20f12 5px,
            #111 5px,
            #111 10px
        );

    border-top: 3px solid #6d0508;
}


/* =============================
   TABLET
============================= */

@media (max-width: 1050px) {

    .main-nav {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .food-placeholder {
        width: 170px;
        height: 130px;

        font-size: 65px;
    }

    .lunch-card {
        grid-template-columns: 1fr 1.3fr;
    }

    .lunch-list {
        display: none;
    }

    .meals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-card {
        grid-column: 1 / -1;

        display: grid;
        grid-template-columns: repeat(3, 1fr);

        gap: 25px;
    }

    .contact-item {
        border-bottom: 0;
    }

}


/* =============================
   MOBILE
============================= */

@media (max-width: 720px) {

    .container {
        width: min(100% - 24px, 1180px);
    }


    /* HEADER */

    .header-inner {
        min-height: 70px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .logo {
        min-width: auto;

        align-items: flex-start;
    }

    .logo::before,
    .logo::after {
        display: none;
    }

    .logo-small {
        font-size: 12px;
    }

    .logo-big {
        font-size: 19px;
    }

    .phone-btn {
        padding: 10px 14px;

        font-size: 13px;
    }


    /* HERO */

    .hero {
        min-height: 630px;
    }

    .hero-content {
        display: block;

        padding-top: 50px;

        text-align: center;
    }

    .hero-label {
        font-size: 25px;
    }

    .hero-text h1 {
        font-size: 39px;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;

        font-size: 16px;
    }

    .hero-brand {
        margin-top: 50px;
    }

    .hero-brand .clover {
        font-size: 40px;
    }

    .hero-brand h2 {
        font-size: 39px;
    }

    .hero-slogan {
        font-size: 20px;
    }

    .hero-food {
        gap: 4px;
    }

    .food-placeholder {
        width: 82px;
        height: 80px;

        font-size: 40px;
    }


    /* FEATURES */

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature {
        justify-content: flex-start;
    }

    .feature-icon {
        font-size: 30px;
    }


    /* MENU */

    .section {
        padding: 45px 0;
    }

    .lunch-card {
        display: block;
    }

    .lunch-photo {
        min-height: 220px;
    }

    .image-placeholder {
        min-height: 220px;

        font-size: 90px;
    }

    .lunch-content {
        padding: 28px 22px;
    }

    .section-title h2 {
        font-size: 29px;
    }


    /* MEALS */

    .meals-grid {
        grid-template-columns: 1fr;
    }

    .meal-image {
        min-height: 210px;
    }


    /* ABOUT */

    .about-grid {
        display: block;
    }

    .about-text {
        padding: 28px 22px;
    }

    .about-photo {
        min-height: 260px;
    }

    .contact-card {
        display: block;

        margin: 12px;
    }

    .contact-item {
        border-bottom: 1px solid rgba(69, 43, 24, 0.25);
    }


    /* CTA */

    .cta-inner {
        flex-direction: column;

        text-align: center;
    }


    /* FOOTER */

    .footer-grid {
        display: flex;
        flex-direction: column;

        padding: 35px 0;

        text-align: center;
    }

    .footer-menu {
        gap: 8px;
    }

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

}

/* =============================
   НОВИ СЕКЦИИ / ПУБЛИЧНА СТРУКТУРА
============================= */

.section-demo-note,
.video-demo-note,
.student-demo-note {
    margin-top: 25px;
    text-align: center;
}

.meal-card p {
    padding: 0 16px 18px;
    color: #d7cec8;
    font-size: 14px;
    line-height: 1.55;
}

/* УЧЕНИЧЕСКО МЕНЮ */

.student-menu-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(214, 83, 24, 0.12), transparent 42%),
        linear-gradient(180deg, #120e0b, #0b0908);
}

.student-menu-section .section-title h2,
.video-section .section-title h2,
.team-section .section-title h2 {
    color: #ffffff;
}

.student-menu-card {
    display: grid;
    grid-template-columns: 190px 1fr;
    align-items: center;
    gap: 35px;

    padding: 35px;

    border: 1px solid #563d31;
    border-radius: 14px;

    background:
        linear-gradient(135deg, rgba(72, 36, 20, 0.75), rgba(24, 16, 12, 0.96));

    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.student-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 180px;

    border: 1px solid #714a34;
    border-radius: 12px;

    background: radial-gradient(circle, #8b4522, #32170d);

    font-size: 95px;
}

.student-menu-content h3 {
    margin-bottom: 12px;
    font-family: Georgia, serif;
    font-size: 28px;
}

.student-menu-content > p {
    margin-bottom: 18px;
    color: #ddd4ce;
    line-height: 1.65;
}

.student-menu-notice {
    margin-bottom: 22px;
    padding: 14px 16px;

    border-left: 4px solid #e36d26;
    border-radius: 7px;

    background: rgba(227, 109, 38, 0.10);
    color: #f2e4d7;
}

.student-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.student-step {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 52px;
    padding: 9px;

    border: 1px solid #50372c;
    border-radius: 9px;

    background: #17110e;

    font-size: 13px;
    text-align: center;
}

.student-step span {
    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 24px;

    border-radius: 50%;
    background: #b91610;

    color: #fff;
    font-weight: bold;
}

/* ВИДЕО */

.video-section {
    background:
        radial-gradient(circle at 50% 40%, rgba(116, 53, 28, 0.16), transparent 46%),
        #0d0a08;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.video-card {
    overflow: hidden;

    border: 1px solid #4e382e;
    border-radius: 12px;

    background: #15110e;

    text-align: center;

    transition: 0.25s;
}

.video-card:hover {
    transform: translateY(-4px);
    border-color: #b55528;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
}

.video-placeholder {
    min-height: 240px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.38)),
        radial-gradient(circle, #834321, #27140c);

    color: rgba(255, 255, 255, 0.92);
    font-size: 72px;
}

.video-card h3 {
    padding: 16px 15px 5px;
    font-family: Georgia, serif;
    font-size: 20px;
}

.video-card p {
    padding: 0 20px 20px;
    color: #d8cec7;
    font-size: 14px;
    line-height: 1.6;
}

/* ЕКИП */

.team-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(79, 126, 45, 0.09), transparent 40%),
        linear-gradient(180deg, #120e0b, #0b0908);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.team-card {
    overflow: hidden;

    border: 1px solid #4c382e;
    border-radius: 12px;

    background: #15110e;

    text-align: center;
}

.team-photo-placeholder {
    min-height: 210px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: radial-gradient(circle, #75401f, #27150d);

    font-size: 90px;
}

.team-card h3 {
    padding: 16px 16px 6px;
    font-family: Georgia, serif;
    font-size: 21px;
}

.team-card p {
    padding: 0 22px 22px;
    color: #d8cec7;
    line-height: 1.6;
}

/* NAV - повече секции */

@media (max-width: 1180px) and (min-width: 1051px) {
    .header-inner {
        gap: 16px;
    }

    .main-nav {
        gap: 10px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .phone-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .student-menu-card {
        grid-template-columns: 1fr;
    }

    .student-menu-icon {
        min-height: 150px;
    }

    .student-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .student-step:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .student-menu-card {
        gap: 20px;
        padding: 22px 18px;
    }

    .student-menu-content h3 {
        font-size: 23px;
    }

    .student-steps,
    .video-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .student-step:last-child {
        grid-column: auto;
    }

    .video-placeholder {
        min-height: 200px;
    }
}



/* =============================
   КНИГА ЗА ГОСТИ - HOME HIGHLIGHT
============================= */
.home-guestbook-highlight { padding: 34px 0 50px; }
.home-guestbook-card {
    position: relative;
    width: min(820px, 100%);
    margin: 0 auto;
    padding: 28px 34px;
    border: 1px solid #4b392f;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(39,27,20,.96), rgba(18,14,12,.96));
    box-shadow: 0 18px 44px rgba(0,0,0,.22);
    text-align: center;
}
.home-guestbook-quote { color:#f57524; font-family:Georgia,serif; font-size:54px; line-height:.7; }
.home-guestbook-card p { margin: 10px auto 18px; max-width:720px; color:#f2ebe6; font-size:18px; line-height:1.65; }
.home-guestbook-meta { display:flex; justify-content:center; gap:9px; flex-wrap:wrap; color:#ad9f96; font-size:13px; }
.home-guestbook-meta strong { color:#fff; }
@media (max-width:700px){ .home-guestbook-card{padding:24px 20px}.home-guestbook-card p{font-size:16px} }

/* =============================
   SHARED HEADER ACTIONS
   Подготвено за общия бутон „ТЕМИ“ до телефона.
   Самият избор на тема ще бъде добавен в следващ етап.
============================= */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* =============================
   КНИГА ЗА ГОСТИ - PUBLIC
   Стиловете са вече в общия style.css.
============================= */
.guestbook-page {
    min-height: 70vh;
}

.guestbook-hero {
    padding: 72px 0 38px;
    text-align: center;
    background: linear-gradient(180deg, rgba(57, 34, 22, .72), rgba(11, 9, 7, 0));
}

.guestbook-kicker {
    color: #f57524;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.guestbook-hero h1 {
    margin: 8px 0 10px;
    font: 700 44px/1.1 Georgia, serif;
}

.guestbook-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: #c8bbb3;
}

.guestbook-layout {
    display: grid;
    grid-template-columns: minmax(320px, .8fr) minmax(0, 1.55fr);
    gap: 28px;
    align-items: start;
}

.guestbook-comments {
    display: grid;
    gap: 16px;
}

.guestbook-entry {
    overflow: hidden;
    border: 1px solid #44342c;
    border-radius: 14px;
    background: linear-gradient(135deg, #17120f, #211710);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.guestbook-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 18px;
    border-bottom: 1px solid #3a2c25;
    background: #120e0c;
}

.guestbook-entry-head strong {
    color: #fff;
}

.guestbook-entry-head time {
    color: #a99c94;
    font-size: 12px;
}

.guestbook-entry > p {
    padding: 18px;
    color: #eee5df;
    font-size: 16px;
    line-height: 1.65;
}

.guestbook-reply {
    margin: 0 18px 18px;
    padding: 15px 17px;
    border-left: 3px solid #f57524;
    border-radius: 8px;
    background: #2b1c13;
}

.guestbook-reply strong {
    color: #ff9a57;
    font-size: 13px;
}

.guestbook-reply p {
    margin-top: 7px;
    color: #f4ece7;
}

.guestbook-form-card {
    position: sticky;
    top: 104px;
    padding: 24px;
    border: 1px solid #4a372e;
    border-radius: 16px;
    background: #15110e;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .23);
}

.guestbook-form-card > span {
    color: #f57524;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.guestbook-form-card h2 {
    margin: 5px 0 18px;
    font: 700 28px/1.15 Georgia, serif;
}

.guestbook-form {
    display: grid;
    gap: 13px;
}

.guestbook-form label {
    display: grid;
    gap: 6px;
    color: #d8cdc6;
    font-size: 13px;
    font-weight: 700;
}

.guestbook-form small {
    color: #92867f;
    font-weight: 400;
}

.guestbook-comment-meta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.guestbook-char-counter {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .2px;
    transition: color .18s ease, text-shadow .18s ease;
}

/* Фиксирани статусни цветове - умишлено не зависят от бъдещите теми. */
.guestbook-char-counter.is-valid {
    color: #2fd35a;
    text-shadow: 0 0 10px rgba(47, 211, 90, .18);
}

.guestbook-char-counter.is-over-limit {
    color: #ff3b3b;
    text-shadow: 0 0 10px rgba(255, 59, 59, .22);
}

.guestbook-submit:disabled {
    cursor: not-allowed;
    opacity: .48;
    filter: grayscale(.2);
}

.guestbook-form input,
.guestbook-form textarea {
    width: 100%;
    border: 1px solid #544037;
    border-radius: 9px;
    outline: none;
    background: #0c0908;
    color: #fff;
    font: inherit;
    padding: 12px;
}

.guestbook-form textarea {
    min-height: 155px;
    resize: vertical;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
    border-color: #f57524;
}

.guestbook-submit {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.guestbook-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.guestbook-notice {
    margin: 0 0 15px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 13px;
}

.guestbook-notice.success {
    background: #17351d;
    color: #a9ebb0;
}

.guestbook-notice.error {
    background: #431a17;
    color: #ffb3ac;
}

.guestbook-pagination {
    display: flex;
    gap: 7px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 8px 0;
}

.guestbook-pagination a {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #4b382e;
    border-radius: 8px;
    background: #16110e;
}

.guestbook-pagination a.current {
    border-color: #f57524;
    background: #63290f;
}

.guestbook-empty,
.guestbook-off {
    padding: 30px;
    border: 1px solid #44342c;
    border-radius: 14px;
    background: #15110e;
    color: #c8bbb3;
    text-align: center;
}

/* =============================
   КНИГА ЗА ГОСТИ - ADMIN
   Също е в общия style.css, но е scope-нато към body.admin-guestbook-page.
============================= */
body.admin-guestbook-page {
    margin: 0;
    padding: 24px;
    background: #0b0907;
    color: #fff;
    font: 15px Arial, sans-serif;
}

.admin-guestbook-page .gb-admin-top,
.admin-guestbook-page .gb-admin-wrap,
.admin-guestbook-page .gb-admin-notice {
    width: min(1500px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.admin-guestbook-page .gb-admin-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.admin-guestbook-page .gb-admin-top h1 {
    margin: 0;
    font: 700 30px Georgia, serif;
}

.admin-guestbook-page .gb-admin-back {
    padding: 11px 15px;
    border-radius: 8px;
    background: #2b211b;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.admin-guestbook-page .gb-admin-panel {
    border: 1px solid #3b2e27;
    border-radius: 12px;
    background: #15110e;
    margin-bottom: 18px;
    overflow: hidden;
}

.admin-guestbook-page .gb-admin-panel-head {
    padding: 16px 18px;
    border-bottom: 1px solid #3b2e27;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-guestbook-page .gb-admin-panel-head h2 {
    margin: 0;
    font-size: 17px;
}

.admin-guestbook-page .gb-admin-status {
    font-size: 12px;
    font-weight: 800;
}

.admin-guestbook-page .gb-admin-status.on {
    color: #79db82;
}

.admin-guestbook-page .gb-admin-status.off {
    color: #ff7f74;
}

.admin-guestbook-page .gb-admin-switch-form {
    display: flex;
    align-items: center;
    gap: 9px;
}

.admin-guestbook-page .gb-admin-switch {
    position: relative;
    width: 58px;
    height: 30px;
    border: 0;
    border-radius: 18px;
    background: #7a201a;
    cursor: pointer;
}

.admin-guestbook-page .gb-admin-switch.on {
    background: #247a35;
}

.admin-guestbook-page .gb-admin-switch::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    transition: .2s;
}

.admin-guestbook-page .gb-admin-switch.on::after {
    left: 32px;
}

.admin-guestbook-page .gb-admin-notice {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 9px;
}

.admin-guestbook-page .gb-admin-notice.ok {
    background: #17351d;
    color: #a9ebb0;
}

.admin-guestbook-page .gb-admin-notice.err {
    background: #431a17;
    color: #ffb3ac;
}

.admin-guestbook-page .gb-admin-toolbar {
    padding: 15px 18px;
}

.admin-guestbook-page .gb-admin-toolbar form {
    display: flex;
    gap: 9px;
}

.admin-guestbook-page .gb-admin-toolbar input {
    flex: 1;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #514038;
    border-radius: 8px;
    background: #0d0a08;
    color: #fff;
}

.admin-guestbook-page .gb-admin-btn {
    border: 0;
    border-radius: 8px;
    padding: 11px 14px;
    background: #30251f;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.admin-guestbook-page .gb-admin-btn.orange {
    background: linear-gradient(135deg, #bd450e, #f57524);
}

.admin-guestbook-page .gb-admin-btn.red {
    background: #5b1d17;
}

.admin-guestbook-page .gb-admin-entry {
    padding: 18px;
    border-bottom: 1px solid #312620;
}

.admin-guestbook-page .gb-admin-entry:last-child {
    border-bottom: 0;
}

.admin-guestbook-page .gb-admin-entry.empty {
    color: #a89d96;
    text-align: center;
}

.admin-guestbook-page .gb-admin-entry-head {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.admin-guestbook-page .gb-admin-entry-head small {
    color: #a89d96;
}

.admin-guestbook-page .gb-admin-entry-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.admin-guestbook-page .gb-admin-box {
    padding: 14px;
    border: 1px solid #3a2d26;
    border-radius: 9px;
    background: #100d0b;
}

.admin-guestbook-page .gb-admin-box label {
    display: block;
    margin-bottom: 6px;
    color: #cfc3bc;
    font-size: 12px;
    font-weight: 700;
}

.admin-guestbook-page .gb-admin-box .label-spaced {
    margin-top: 10px;
}

.admin-guestbook-page .gb-admin-box input,
.admin-guestbook-page .gb-admin-box textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #514038;
    border-radius: 7px;
    background: #0b0907;
    color: #fff;
}

.admin-guestbook-page .gb-admin-box textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-guestbook-page .gb-admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.admin-guestbook-page .gb-admin-hidden-badge,
.admin-guestbook-page .gb-admin-visible-badge {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 20px;
    font-size: 11px;
}

.admin-guestbook-page .gb-admin-hidden-badge {
    background: #57201c;
    color: #ffaaa3;
}

.admin-guestbook-page .gb-admin-visible-badge {
    background: #17351d;
    color: #9be3a4;
}

.admin-guestbook-page .gb-admin-pager {
    display: flex;
    justify-content: center;
    gap: 7px;
    padding: 16px;
}

.admin-guestbook-page .gb-admin-pager a {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #45352d;
    border-radius: 7px;
    color: #fff;
    text-decoration: none;
}

.admin-guestbook-page .gb-admin-pager a.current {
    border-color: #f57524;
    background: #6e2b0d;
}

@media (max-width: 900px) {
    .guestbook-layout {
        grid-template-columns: 1fr;
    }

    .guestbook-form-card {
        position: static;
    }

    .guestbook-hero h1 {
        font-size: 36px;
    }
}

@media (max-width: 850px) {
    .admin-guestbook-page .gb-admin-entry-grid {
        grid-template-columns: 1fr;
    }

    .admin-guestbook-page .gb-admin-top {
        align-items: flex-start;
    }
}

@media (max-width: 700px) {
    .header-actions {
        width: 100%;
        min-width: 0;
        flex: 1 1 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .header-actions > * {
        max-width: 100%;
    }

    .theme-picker-menu {
        width: min(220px, calc(100vw - 24px));
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 600px) {
    .guestbook-hero {
        padding: 48px 0 26px;
    }

    .guestbook-entry-head {
        flex-direction: column;
        gap: 4px;
    }

    .guestbook-form-card {
        padding: 20px;
    }
}
/* =========================================================
   UNIFIED THEME SYSTEM
   Единна цветова система за PUBLIC / ADMIN / SUPER ADMIN.
   Класическата тема не override-ва стария дизайн и остава 1:1.
========================================================= */

html[data-theme="green"] {
    --theme-bg: #F4F8F5;
    --theme-surface: #FFFFFF;
    --theme-surface-alt: #EAF3ED;
    --theme-text: #1A3E2B;
    --theme-muted: #5F7468;
    --theme-border: #CFE0D5;
    --theme-accent: #15803D;
    --theme-accent-hover: #166534;
    --theme-accent-text: #FFFFFF;
    --theme-shadow: rgba(26, 62, 43, .14);
    --theme-overlay: rgba(244, 248, 245, .96);

    --bg: var(--theme-bg);
    --panel: var(--theme-surface);
    --panel2: var(--theme-surface-alt);
    --panel-2: var(--theme-surface-alt);
    --border: var(--theme-border);
    --orange: var(--theme-accent);
    --orange-dark: var(--theme-accent-hover);
    --muted: var(--theme-muted);
    --text: var(--theme-text);
}

html[data-theme="classic"] {
    --theme-bg: #0b0907;
    --theme-surface: #15110e;
    --theme-surface-alt: #100d0b;
    --theme-text: #ffffff;
    --theme-muted: #a79c95;
    --theme-border: #3b2e27;
    --theme-accent: #f57524;
    --theme-accent-hover: #ff8b46;
    --theme-accent-text: #130b06;
    --theme-shadow: rgba(0,0,0,.28);
    --theme-overlay: rgba(8,7,6,.96);
}

html[data-theme="traditional"] {
    --theme-bg: #FFFDF9;
    --theme-surface: #FFFFFF;
    --theme-surface-alt: #FFF4EA;
    --theme-text: #991B1B;
    --theme-muted: #7A5750;
    --theme-border: #F2D2C5;
    --theme-accent: #C2410C;
    --theme-accent-hover: #9A3412;
    --theme-accent-text: #FFFFFF;
    --theme-shadow: rgba(153, 27, 27, .13);
    --theme-overlay: rgba(255,253,249,.96);

    --bg: var(--theme-bg); --panel: var(--theme-surface); --panel2: var(--theme-surface-alt); --panel-2: var(--theme-surface-alt);
    --border: var(--theme-border); --orange: var(--theme-accent); --orange-dark: var(--theme-accent-hover); --muted: var(--theme-muted); --text: var(--theme-text);
}

html[data-theme="contrast"] {
    --theme-bg: #F8FAFC;
    --theme-surface: #FFFFFF;
    --theme-surface-alt: #EEF2F7;
    --theme-text: #1E293B;
    --theme-muted: #64748B;
    --theme-border: #CBD5E1;
    --theme-accent: #111827;
    --theme-accent-hover: #000000;
    --theme-accent-text: #FFFFFF;
    --theme-shadow: rgba(30,41,59,.14);
    --theme-overlay: rgba(248,250,252,.96);

    --bg: var(--theme-bg); --panel: var(--theme-surface); --panel2: var(--theme-surface-alt); --panel-2: var(--theme-surface-alt);
    --border: var(--theme-border); --orange: var(--theme-accent); --orange-dark: var(--theme-accent-hover); --muted: var(--theme-muted); --text: var(--theme-text);
}

html[data-theme="night"] {
    --theme-bg: #121214;
    --theme-surface: #1B1B1F;
    --theme-surface-alt: #17171A;
    --theme-text: #FFFFFF;
    --theme-muted: #A1A1AA;
    --theme-border: #34343A;
    --theme-accent: #FF7A33;
    --theme-accent-hover: #FF925C;
    --theme-accent-text: #111111;
    --theme-shadow: rgba(0,0,0,.34);
    --theme-overlay: rgba(18,18,20,.96);

    --bg: var(--theme-bg); --panel: var(--theme-surface); --panel2: var(--theme-surface-alt); --panel-2: var(--theme-surface-alt);
    --border: var(--theme-border); --orange: var(--theme-accent); --orange-dark: var(--theme-accent-hover); --muted: var(--theme-muted); --text: var(--theme-text);
}

html[data-theme="cozy"] {
    --theme-bg: #F5F5DC;
    --theme-surface: #FFFDF0;
    --theme-surface-alt: #EFE7C8;
    --theme-text: #3E2723;
    --theme-muted: #7A665C;
    --theme-border: #D8C9A3;
    --theme-accent: #92400E;
    --theme-accent-hover: #78350F;
    --theme-accent-text: #FFFFFF;
    --theme-shadow: rgba(62,39,35,.15);
    --theme-overlay: rgba(245,245,220,.96);

    --bg: var(--theme-bg); --panel: var(--theme-surface); --panel2: var(--theme-surface-alt); --panel-2: var(--theme-surface-alt);
    --border: var(--theme-border); --orange: var(--theme-accent); --orange-dark: var(--theme-accent-hover); --muted: var(--theme-muted); --text: var(--theme-text);
}

/* Семантичните цветове не зависят от избраната тема. */
html[data-theme] {
    --semantic-success: #2f9e44;
    --semantic-success-bright: #2fd35a;
    --semantic-danger: #d13a2f;
    --semantic-danger-bright: #ff3b3b;
    --semantic-warning: #d89c31;
}

/* ---------- Theme picker: единствено в публичния Header ---------- */
.theme-picker { position: relative; flex: 0 0 auto; }
.theme-picker-button {
    min-height: 48px;
    padding: 0 17px;
    border: 1px solid var(--theme-border);
    border-radius: 30px;
    background: var(--theme-surface);
    color: var(--theme-text);
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .45px;
    cursor: pointer;
    box-shadow: 0 6px 18px var(--theme-shadow);
}
.theme-picker-button:hover { border-color: var(--theme-accent); }
.theme-picker-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 2500;
    width: 220px;
    padding: 8px;
    border: 1px solid var(--theme-border);
    border-radius: 13px;
    background: var(--theme-surface);
    color: var(--theme-text);
    box-shadow: 0 18px 42px var(--theme-shadow);
}
.theme-picker-menu[hidden] { display: none !important; }
.theme-picker-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}
.theme-picker-menu button:hover,
.theme-picker-menu button.is-active { background: var(--theme-surface-alt); }
.theme-picker-menu button.is-active::after {
    content: "✓";
    margin-left: auto;
    color: var(--theme-accent);
    font-weight: 900;
}

/* ---------- Публична част: темите различни от Classic ---------- */
html:not([data-theme="classic"]) body:not(.admin-guestbook-page) {
    background: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .site-header {
    background: var(--theme-overlay) !important;
    border-bottom-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .main-nav a:hover,
html:not([data-theme="classic"]) .main-nav a.active,
html:not([data-theme="classic"]) .guestbook-kicker,
html:not([data-theme="classic"]) .home-guestbook-quote,
html:not([data-theme="classic"]) .section-title > span,
html:not([data-theme="classic"]) .public-order-price,
html:not([data-theme="classic"]) .public-order-cart-total strong,
html:not([data-theme="classic"]) .public-order-track-number,
html:not([data-theme="classic"]) .public-order-checkout h3,
html:not([data-theme="classic"]) .public-order-category h3,
html:not([data-theme="classic"]) .public-menu-category h3,
html:not([data-theme="classic"]) .public-order-total-line.final strong {
    color: var(--theme-accent) !important;
}
html:not([data-theme="classic"]) .main-nav a.active::after { background: var(--theme-accent) !important; }
html:not([data-theme="classic"]) .phone-btn,
html:not([data-theme="classic"]) .btn-orange,
html:not([data-theme="classic"]) .gb-admin-btn.orange {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    box-shadow: 0 8px 22px var(--theme-shadow) !important;
}
html:not([data-theme="classic"]) .features,
html:not([data-theme="classic"]) .meals-section,
html:not([data-theme="classic"]) .student-menu-section,
html:not([data-theme="classic"]) .video-section,
html:not([data-theme="classic"]) .team-section,
html:not([data-theme="classic"]) .about-section,
html:not([data-theme="classic"]) .contacts-standalone-section,
html:not([data-theme="classic"]) .home-guestbook-highlight,
html:not([data-theme="classic"]) .guestbook-page,
html:not([data-theme="classic"]) .guestbook-content {
    background: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .feature,
html:not([data-theme="classic"]) .meal-card,
html:not([data-theme="classic"]) .student-menu-card,
html:not([data-theme="classic"]) .video-card,
html:not([data-theme="classic"]) .team-card,
html:not([data-theme="classic"]) .about-team-module,
html:not([data-theme="classic"]) .contact-card,
html:not([data-theme="classic"]) .home-guestbook-card,
html:not([data-theme="classic"]) .guestbook-entry,
html:not([data-theme="classic"]) .guestbook-form-card,
html:not([data-theme="classic"]) .guestbook-empty,
html:not([data-theme="classic"]) .guestbook-off,
html:not([data-theme="classic"]) .public-order-tracking-view,
html:not([data-theme="classic"]) .public-order-category,
html:not([data-theme="classic"]) .public-order-cart,
html:not([data-theme="classic"]) .public-order-checkout,
html:not([data-theme="classic"]) .public-menu-category,
html:not([data-theme="classic"]) .module-off-card,
html:not([data-theme="classic"]) .public-daily-menu-empty,
html:not([data-theme="classic"]) .public-delivery-schedule {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 12px 30px var(--theme-shadow) !important;
}
html:not([data-theme="classic"]) .guestbook-entry-head,
html:not([data-theme="classic"]) .guestbook-reply,
html:not([data-theme="classic"]) .public-order-track-status,
html:not([data-theme="classic"]) .public-order-qty,
html:not([data-theme="classic"]) .public-order-method,
html:not([data-theme="classic"]) .public-order-choice,
html:not([data-theme="classic"]) .public-order-utensils,
html:not([data-theme="classic"]) .public-order-totals {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) .guestbook-form input,
html:not([data-theme="classic"]) .guestbook-form textarea,
html:not([data-theme="classic"]) .public-order-field input,
html:not([data-theme="classic"]) .public-order-field textarea,
html:not([data-theme="classic"]) .public-order-field select,
html:not([data-theme="classic"]) .public-order-tracking-field input {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    color-scheme: light;
}
html[data-theme="night"] .guestbook-form input,
html[data-theme="night"] .guestbook-form textarea,
html[data-theme="night"] .public-order-field input,
html[data-theme="night"] .public-order-field textarea,
html[data-theme="night"] .public-order-field select,
html[data-theme="night"] .public-order-tracking-field input { color-scheme: dark; }
html:not([data-theme="classic"]) .guestbook-form label,
html:not([data-theme="classic"]) .guestbook-hero p,
html:not([data-theme="classic"]) .guestbook-entry > p,
html:not([data-theme="classic"]) .guestbook-reply p,
html:not([data-theme="classic"]) .guestbook-entry-head time,
html:not([data-theme="classic"]) .home-guestbook-card p,
html:not([data-theme="classic"]) .home-guestbook-meta,
html:not([data-theme="classic"]) .public-order-meta,
html:not([data-theme="classic"]) .public-order-cart-empty,
html:not([data-theme="classic"]) .public-order-tracking-note,
html:not([data-theme="classic"]) .module-off-card p {
    color: var(--theme-muted) !important;
}
html:not([data-theme="classic"]) .guestbook-entry-head strong,
html:not([data-theme="classic"]) .home-guestbook-meta strong { color: var(--theme-text) !important; }
html:not([data-theme="classic"]) .guestbook-reply { border-left-color: var(--theme-accent) !important; }
html:not([data-theme="classic"]) .guestbook-reply strong { color: var(--theme-accent) !important; }
html:not([data-theme="classic"]) .guestbook-pagination a {
    background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) .guestbook-pagination a.current {
    background: var(--theme-accent) !important; color: var(--theme-accent-text) !important; border-color: var(--theme-accent) !important;
}
html:not([data-theme="classic"]) .site-footer,
html:not([data-theme="classic"]) .footer-bottom,
html:not([data-theme="classic"]) .cta {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) .footer-menu a:hover { color: var(--theme-accent) !important; }

/* ---------- Admin / Super Admin: обща палитра ---------- */
html:not([data-theme="classic"]) body.admin-guestbook-page {
    background: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-panel,
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-box {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-top,
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-panel-head,
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-entry,
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-box { border-color: var(--theme-border) !important; }
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-back,
html:not([data-theme="classic"]) .admin-guestbook-page .gb-admin-btn:not(.red):not(.orange) {
    background: var(--theme-surface-alt) !important; color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .admin-guestbook-page input,
html:not([data-theme="classic"]) .admin-guestbook-page textarea {
    background: var(--theme-surface) !important; color: var(--theme-text) !important; border-color: var(--theme-border) !important;
}

/* Стандартни общи admin елементи, когато са hard-coded извън CSS variables. */
html:not([data-theme="classic"]) body .header,
html:not([data-theme="classic"]) body .topbar,
html:not([data-theme="classic"]) body .admin-header {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) body .panel,
html:not([data-theme="classic"]) body .card,
html:not([data-theme="classic"]) body .stat,
html:not([data-theme="classic"]) body .module,
html:not([data-theme="classic"]) body .box,
html:not([data-theme="classic"]) body .section-card,
html:not([data-theme="classic"]) body .content-card {
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) body input:not([type="checkbox"]):not([type="radio"]),
html:not([data-theme="classic"]) body textarea,
html:not([data-theme="classic"]) body select {
    border-color: var(--theme-border) !important;
}

/* Session countdown остава четим във всички теми. */
html:not([data-theme="classic"]) .session-note {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-muted) !important;
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) .session-countdown {
    background: var(--theme-surface) !important;
    color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    text-shadow: none !important;
}
html:not([data-theme="classic"]) .session-countdown.warning { color: #b7791f !important; border-color: #b7791f !important; }
html:not([data-theme="classic"]) .session-countdown.danger { color: #d13a2f !important; border-color: #d13a2f !important; }

/* Фиксирани семантични цветове - независимо от тема. */
.guestbook-char-counter.is-valid { color: #2fd35a !important; }
.guestbook-char-counter.is-over-limit { color: #ff3b3b !important; }

@media (max-width: 900px) {
    .theme-picker-menu { right: 0; }
}
@media (max-width: 700px) {
    .theme-picker { width: auto; }
    .theme-picker-button { min-height: 44px; }
    .theme-picker-menu { right: 50%; transform: translateX(50%); }
}

/* =========================================================
   THEME READABILITY PASS 2026-10-04
   - светли теми -> тъмен текст
   - тъмни теми -> светъл текст
   - hero зоната има собствена палитра за всяка тема
   - Classic остава непроменена
========================================================= */

/* По-силен контраст на вторичния текст. */
html[data-theme="green"] {
    --theme-muted: #405A49;
    --theme-hero-text: #163724;
    --theme-hero-soft: #355846;
    --theme-hero-overlay-start: rgba(244,248,245,.96);
    --theme-hero-overlay-mid: rgba(234,243,237,.88);
    --theme-hero-overlay-end: rgba(244,248,245,.74);
}
html[data-theme="traditional"] {
    --theme-muted: #68423C;
    --theme-hero-text: #7A1515;
    --theme-hero-soft: #663D37;
    --theme-hero-overlay-start: rgba(255,253,249,.96);
    --theme-hero-overlay-mid: rgba(255,244,234,.88);
    --theme-hero-overlay-end: rgba(255,253,249,.74);
}
html[data-theme="contrast"] {
    --theme-muted: #475569;
    --theme-hero-text: #172033;
    --theme-hero-soft: #3E4B5E;
    --theme-hero-overlay-start: rgba(248,250,252,.96);
    --theme-hero-overlay-mid: rgba(238,242,247,.89);
    --theme-hero-overlay-end: rgba(248,250,252,.76);
}
html[data-theme="night"] {
    --theme-muted: #D4D4D8;
    --theme-hero-text: #FFFFFF;
    --theme-hero-soft: #E7E7EA;
    --theme-hero-overlay-start: rgba(10,10,12,.95);
    --theme-hero-overlay-mid: rgba(18,18,20,.84);
    --theme-hero-overlay-end: rgba(18,18,20,.68);
}
html[data-theme="cozy"] {
    --theme-muted: #5B453E;
    --theme-hero-text: #33201C;
    --theme-hero-soft: #5C453D;
    --theme-hero-overlay-start: rgba(245,245,220,.96);
    --theme-hero-overlay-mid: rgba(239,231,200,.89);
    --theme-hero-overlay-end: rgba(245,245,220,.75);
}

/* Основният текст е винаги ясно четим. */
html:not([data-theme="classic"]) body {
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) h1,
html:not([data-theme="classic"]) h2,
html:not([data-theme="classic"]) h3,
html:not([data-theme="classic"]) h4,
html:not([data-theme="classic"]) h5,
html:not([data-theme="classic"]) h6,
html:not([data-theme="classic"]) strong,
html:not([data-theme="classic"]) label {
    color: var(--theme-text) !important;
}

/* Навигация: без бледи линкове при светлите теми. */
html:not([data-theme="classic"]) .main-nav a,
html:not([data-theme="classic"]) .footer-menu a,
html:not([data-theme="classic"]) .site-header,
html:not([data-theme="classic"]) .site-footer {
    color: var(--theme-text) !important;
}

/* Вторичен текст - достатъчно контрастен, но все пак вторичен. */
html:not([data-theme="classic"]) .feature span,
html:not([data-theme="classic"]) .meal-card p,
html:not([data-theme="classic"]) .video-card p,
html:not([data-theme="classic"]) .team-card p,
html:not([data-theme="classic"]) .about-text p,
html:not([data-theme="classic"]) .contact-item p,
html:not([data-theme="classic"]) .contact-item a,
html:not([data-theme="classic"]) .guestbook-form small,
html:not([data-theme="classic"]) .gb-admin-entry small,
html:not([data-theme="classic"]) .module p,
html:not([data-theme="classic"]) .stat span,
html:not([data-theme="classic"]) .welcome p,
html:not([data-theme="classic"]) .user-info span,
html:not([data-theme="classic"]) .demo-note,
html:not([data-theme="classic"]) .section-demo-note,
html:not([data-theme="classic"]) .video-demo-note,
html:not([data-theme="classic"]) .student-demo-note {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

/* HERO: всяка тема има собствен фон/контраст, не изглежда като залепена кръпка. */
html:not([data-theme="classic"]) .hero {
    background:
        linear-gradient(
            90deg,
            var(--theme-hero-overlay-start) 0%,
            var(--theme-hero-overlay-mid) 48%,
            var(--theme-hero-overlay-end) 100%
        ),
        url("images/restaurant.jpg") center / cover no-repeat !important;
    color: var(--theme-hero-text) !important;
}

html:not([data-theme="classic"]) .hero-overlay {
    background:
        radial-gradient(
            circle at 75% 35%,
            color-mix(in srgb, var(--theme-accent) 20%, transparent),
            transparent 38%
        ) !important;
}

html:not([data-theme="classic"]) .hero-label {
    color: var(--theme-accent) !important;
}
html:not([data-theme="classic"]) .hero-text h1,
html:not([data-theme="classic"]) .hero-text h1 span,
html:not([data-theme="classic"]) .hero-brand h2,
html:not([data-theme="classic"]) .hero-brand h2 span,
html:not([data-theme="classic"]) .hero-slogan {
    color: var(--theme-hero-text) !important;
}
html:not([data-theme="classic"]) .hero-text p {
    color: var(--theme-hero-soft) !important;
}
html:not([data-theme="classic"]) .hero-brand h2 {
    text-shadow: 0 2px 4px color-mix(in srgb, var(--theme-text) 16%, transparent) !important;
}
html:not([data-theme="classic"]) .hero-slogan {
    border-bottom-color: var(--theme-accent) !important;
}
html:not([data-theme="classic"]) .hero-brand .clover {
    color: var(--theme-accent) !important;
}

/* Хранителните икони под hero също следват палитрата, вместо да стоят като чужд блок. */
html:not([data-theme="classic"]) .food-placeholder {
    background: var(--theme-surface-alt) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 10px 24px var(--theme-shadow) !important;
}

/* Светли теми: формите и панелите задължително с тъмен текст. */
html[data-theme="green"] input,
html[data-theme="green"] textarea,
html[data-theme="green"] select,
html[data-theme="traditional"] input,
html[data-theme="traditional"] textarea,
html[data-theme="traditional"] select,
html[data-theme="contrast"] input,
html[data-theme="contrast"] textarea,
html[data-theme="contrast"] select,
html[data-theme="cozy"] input,
html[data-theme="cozy"] textarea,
html[data-theme="cozy"] select {
    color: var(--theme-text) !important;
    caret-color: var(--theme-text) !important;
}

/* Night: светъл текст навсякъде, включително placeholder-и. */
html[data-theme="night"] input,
html[data-theme="night"] textarea,
html[data-theme="night"] select {
    color: #FFFFFF !important;
    caret-color: #FFFFFF !important;
}
html[data-theme="night"] input::placeholder,
html[data-theme="night"] textarea::placeholder {
    color: #BFC0C6 !important;
    opacity: 1 !important;
}

/* Placeholder-и на светлите теми - тъмни и четими. */
html[data-theme="green"] input::placeholder,
html[data-theme="green"] textarea::placeholder,
html[data-theme="traditional"] input::placeholder,
html[data-theme="traditional"] textarea::placeholder,
html[data-theme="contrast"] input::placeholder,
html[data-theme="contrast"] textarea::placeholder,
html[data-theme="cozy"] input::placeholder,
html[data-theme="cozy"] textarea::placeholder {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

/* Семантичните статуси остават фиксирани и независими от тема. */
.guestbook-char-counter.is-valid { color: #198754 !important; }
.guestbook-char-counter.is-over-limit { color: #dc2626 !important; }

/* =========================================================
   THEME COHERENCE PASS 2026-10-04
   Премахва останалите кафяви "кръпки" и hard-coded бледи текстове.
   Classic остава 1:1 непроменена.
========================================================= */
html[data-theme="green"] {
    --theme-visual: #DCEFE2;
    --theme-visual-strong: #C7E5D0;
    --theme-visual-ink: #153D27;
    --theme-notice-bg: #E8F4EC;
    --theme-notice-border: #22C55E;
}
html[data-theme="traditional"] {
    --theme-visual: #FCE8DD;
    --theme-visual-strong: #F7D3C0;
    --theme-visual-ink: #6F1717;
    --theme-notice-bg: #FFF0E8;
    --theme-notice-border: #F97316;
}
html[data-theme="contrast"] {
    --theme-visual: #E8EDF3;
    --theme-visual-strong: #DCE3EB;
    --theme-visual-ink: #172033;
    --theme-notice-bg: #FFF9D9;
    --theme-notice-border: #EAB308;
}
html[data-theme="night"] {
    --theme-visual: #242429;
    --theme-visual-strong: #2D2D33;
    --theme-visual-ink: #FFFFFF;
    --theme-notice-bg: #251B18;
    --theme-notice-border: #FF4500;
}
html[data-theme="cozy"] {
    --theme-visual: #E9DFC0;
    --theme-visual-strong: #DED0A8;
    --theme-visual-ink: #3E2723;
    --theme-notice-bg: #F3E8C8;
    --theme-notice-border: #D97706;
}

/* Основен текст: никакви бледи наследени цветове в тематичните секции. */
html:not([data-theme="classic"]) .features,
html:not([data-theme="classic"]) .meals-section,
html:not([data-theme="classic"]) .student-menu-section,
html:not([data-theme="classic"]) .video-section,
html:not([data-theme="classic"]) .team-section,
html:not([data-theme="classic"]) .about-section,
html:not([data-theme="classic"]) .contacts-standalone-section,
html:not([data-theme="classic"]) .home-guestbook-highlight {
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .student-menu-content > p,
html:not([data-theme="classic"]) .student-menu-notice,
html:not([data-theme="classic"]) .student-step,
html:not([data-theme="classic"]) .team-card p,
html:not([data-theme="classic"]) .video-card p,
html:not([data-theme="classic"]) .meal-card p,
html:not([data-theme="classic"]) .about-text p,
html:not([data-theme="classic"]) .feature span,
html:not([data-theme="classic"]) .section-demo-note,
html:not([data-theme="classic"]) .video-demo-note,
html:not([data-theme="classic"]) .student-demo-note {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

/* Картите и визуалните placeholder-и вече са част от темата, не кафява кръпка. */
html:not([data-theme="classic"]) .student-menu-icon,
html:not([data-theme="classic"]) .team-photo-placeholder,
html:not([data-theme="classic"]) .video-placeholder,
html:not([data-theme="classic"]) .food-placeholder {
    background: linear-gradient(145deg, var(--theme-visual), var(--theme-visual-strong)) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-visual-ink) !important;
    box-shadow: none !important;
}
html:not([data-theme="classic"]) .meal-card,
html:not([data-theme="classic"]) .team-card,
html:not([data-theme="classic"]) .video-card,
html:not([data-theme="classic"]) .student-menu-card,
html:not([data-theme="classic"]) .about-team-module {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
}

/* Стъпките не стоят като черни/кафяви блокчета върху светла тема. */
html:not([data-theme="classic"]) .student-step {
    background: var(--theme-surface-alt) !important;
    border-color: var(--theme-border) !important;
}
html:not([data-theme="classic"]) .student-step span {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
}

/* Информационните полета използват тематичен фон и четим текст. */
html:not([data-theme="classic"]) .student-menu-notice,
html:not([data-theme="classic"]) .public-order-unavailable {
    background: var(--theme-notice-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-notice-border) !important;
}
html:not([data-theme="classic"]) .public-order-unavailable *,
html:not([data-theme="classic"]) .student-menu-notice * {
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .public-order-unavailable a {
    color: var(--theme-accent-hover) !important;
    font-weight: 800;
}

/* Бутони: текстът винаги има контраст спрямо бутона. */
html:not([data-theme="classic"]) .btn-orange,
html:not([data-theme="classic"]) .public-menu-order-toggle,
html:not([data-theme="classic"]) .phone-btn {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
}
html:not([data-theme="classic"]) .btn-red {
    color: #FFFFFF !important;
}

/* Заглавията в секциите използват главния текстов цвят на темата. */
html:not([data-theme="classic"]) .student-menu-section .section-title h2,
html:not([data-theme="classic"]) .video-section .section-title h2,
html:not([data-theme="classic"]) .team-section .section-title h2,
html:not([data-theme="classic"]) .about-section .section-title h2,
html:not([data-theme="classic"]) .meals-section .section-title h2 {
    color: var(--theme-text) !important;
}

/* Night: запазваме тъмни повърхности и светъл текст навсякъде. */
html[data-theme="night"] .student-menu-notice,
html[data-theme="night"] .public-order-unavailable {
    color: #FFFFFF !important;
}
html[data-theme="night"] .student-menu-notice *,
html[data-theme="night"] .public-order-unavailable * {
    color: #FFFFFF !important;
}

/* =========================================================
   THEME VISUAL FIXES 2026-10-04 #3
   Поправки по реалните screenshots: доставка, галерия, За нас.
   Classic остава непроменена.
========================================================= */

/* 1) Доставка: последният статус вече е контрастен и четим. */
html:not([data-theme="classic"]) .public-delivery-schedule,
html:not([data-theme="classic"]) .public-delivery-schedule li,
html:not([data-theme="classic"]) .public-delivery-schedule div {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}
html:not([data-theme="classic"]) .public-delivery-schedule strong {
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .public-delivery-schedule .current {
    margin-top: 10px !important;
    padding: 10px 12px !important;
    border-left: 4px solid var(--theme-notice-border) !important;
    border-radius: 7px !important;
    background: var(--theme-notice-bg) !important;
    color: var(--theme-text) !important;
    font-weight: 900 !important;
    opacity: 1 !important;
}
html[data-theme="night"] .public-delivery-schedule .current {
    color: #FFFFFF !important;
}

/* 2) Галерия: горната визуална част на картите вече е тематична, не кафява. */
html:not([data-theme="classic"]) .meal-image {
    background: linear-gradient(145deg, var(--theme-visual), var(--theme-visual-strong)) !important;
    color: var(--theme-visual-ink) !important;
    border-bottom: 1px solid var(--theme-border) !important;
}
html:not([data-theme="classic"]) .meal-card h3 {
    color: var(--theme-text) !important;
    background: var(--theme-surface) !important;
}

/* 3) За нас: placeholder-ът за снимката следва избраната тема. */
html:not([data-theme="classic"]) .about-photo {
    background: var(--theme-surface-alt) !important;
}
html:not([data-theme="classic"]) .restaurant-placeholder {
    background: linear-gradient(145deg, var(--theme-visual), var(--theme-visual-strong)) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
}
html:not([data-theme="classic"]) .restaurant-placeholder span {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

/* Допълнително уеднаквяване на placeholder визуалните блокове. */
html:not([data-theme="classic"]) .meal-image,
html:not([data-theme="classic"]) .restaurant-placeholder,
html:not([data-theme="classic"]) .student-menu-icon,
html:not([data-theme="classic"]) .team-photo-placeholder,
html:not([data-theme="classic"]) .video-placeholder {
    box-shadow: none !important;
}

/* =========================================================
   THEME-AWARE DAILY MENU LIGHTBOX
   Classic keeps the original black lightbox unchanged.
   All other themes use their own surface/text/accent palette.
   ========================================================= */
html:not([data-theme="classic"]) .public-menu-lightbox {
    background: var(--theme-bg) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-toolbar {
    background: var(--theme-surface-alt) !important;
    border-bottom-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-tool {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 5px 16px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-tool:hover,
html:not([data-theme="classic"]) .public-menu-lightbox-tool:focus-visible {
    background: var(--theme-surface-alt) !important;
    border-color: var(--theme-accent) !important;
    outline: none !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-zoom {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-scroll {
    background: var(--theme-bg) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-scroll img {
    background: var(--theme-surface) !important;
    box-shadow: 0 18px 60px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-close {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    box-shadow: 0 6px 20px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .public-menu-lightbox-close:hover,
html:not([data-theme="classic"]) .public-menu-lightbox-close:focus-visible {
    background: var(--theme-accent-hover) !important;
    outline: none !important;
}

/* =========================================================
   THEME VISUAL FIXES 2026-10-04 #5
   Admin/Super Admin login + dashboard hover contrast.
   Classic remains visually unchanged.
   ========================================================= */

/* Login screens: use the selected theme instead of the old hard-coded black card. */
html:not([data-theme="classic"]) body:has(.login-card) {
    background:
        radial-gradient(circle at center,
            color-mix(in srgb, var(--theme-surface-alt) 72%, var(--theme-bg)) 0%,
            var(--theme-bg) 58%,
            color-mix(in srgb, var(--theme-bg) 92%, var(--theme-text)) 100%) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) .login-card {
    border-color: var(--theme-border) !important;
    background: color-mix(in srgb, var(--theme-surface) 96%, transparent) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 24px 60px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) .brand h1,
html:not([data-theme="classic"]) body:has(.login-card) .brand h1:first-line,
html:not([data-theme="classic"]) body:has(.login-card) label,
html:not([data-theme="classic"]) body:has(.login-card) .field label,
html:not([data-theme="classic"]) body:has(.login-card) .form-group label {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body:has(.login-card) .brand h1 span {
    color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) .brand p,
html:not([data-theme="classic"]) body:has(.login-card) .session-info,
html:not([data-theme="classic"]) body:has(.login-card) .security-note {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) input {
    border-color: var(--theme-border) !important;
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    caret-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) input::placeholder {
    color: var(--theme-muted) !important;
    opacity: .88 !important;
}

html:not([data-theme="classic"]) body:has(.login-card) input:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 18%, transparent) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) button,
html:not([data-theme="classic"]) body:has(.login-card) .login-btn {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    box-shadow: 0 8px 22px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) button:hover,
html:not([data-theme="classic"]) body:has(.login-card) .login-btn:hover {
    background: var(--theme-accent-hover) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) .back-to-site {
    border-color: var(--theme-border) !important;
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) body:has(.login-card) .back-to-site:hover {
    border-color: var(--theme-accent) !important;
    background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface)) !important;
    color: var(--theme-text) !important;
}

/* Keep error notices semantic and readable in every theme. */
html:not([data-theme="classic"]) body:has(.login-card) .notice {
    border-color: #D14343 !important;
    background: color-mix(in srgb, #D14343 13%, var(--theme-surface)) !important;
    color: color-mix(in srgb, #8B1111 82%, var(--theme-text)) !important;
}
html[data-theme="night"] body:has(.login-card) .notice {
    color: #FFD9D9 !important;
}

/* Admin dashboard/settings cards: hover must remain inside the current theme. */
html:not([data-theme="classic"]) .module:hover,
html:not([data-theme="classic"]) .module:focus-visible {
    background: color-mix(in srgb, var(--theme-accent) 9%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
    box-shadow: 0 10px 26px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .module:hover strong,
html:not([data-theme="classic"]) .module:hover p,
html:not([data-theme="classic"]) .module:focus-visible strong,
html:not([data-theme="classic"]) .module:focus-visible p {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

/* Same protection for common clickable admin cards/buttons that inherit old dark hover colors. */
html:not([data-theme="classic"]) .module,
html:not([data-theme="classic"]) .stat,
html:not([data-theme="classic"]) .empty {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}
html:not([data-theme="classic"]) .module p,
html:not([data-theme="classic"]) .stat span,
html:not([data-theme="classic"]) .empty {
    color: var(--theme-muted) !important;
}

/* =========================================================
   FOOTER FOOD BELT
   Движещ се декоративен колан с максимум ~3 видими ястия.
   ========================================================= */

/* Старият статичен мотив се заменя с реален движещ се колан. */
.site-footer::after {
    display: none !important;
}

:root,
html[data-theme="classic"] {
    --food-belt-a: #b20f12;
    --food-belt-b: #111111;
    --food-belt-border: #6d0508;
    --food-belt-shadow: rgba(0, 0, 0, .30);
}

html[data-theme="green"] {
    --food-belt-a: #22c55e;
    --food-belt-b: #1a3e2b;
    --food-belt-border: #166534;
    --food-belt-shadow: rgba(26, 62, 43, .24);
}

html[data-theme="traditional"] {
    --food-belt-a: #f97316;
    --food-belt-b: #991b1b;
    --food-belt-border: #7f1d1d;
    --food-belt-shadow: rgba(153, 27, 27, .24);
}

html[data-theme="contrast"] {
    --food-belt-a: #eab308;
    --food-belt-b: #1e293b;
    --food-belt-border: #111827;
    --food-belt-shadow: rgba(30, 41, 59, .24);
}

html[data-theme="night"] {
    --food-belt-a: #ff4500;
    --food-belt-b: #121214;
    --food-belt-border: #7c2d12;
    --food-belt-shadow: rgba(0, 0, 0, .45);
}

html[data-theme="cozy"] {
    --food-belt-a: #d97706;
    --food-belt-b: #3e2723;
    --food-belt-border: #6b3f16;
    --food-belt-shadow: rgba(62, 39, 35, .24);
}

.footer-food-belt {
    position: relative;
    height: 72px;
    overflow: hidden;
    border-top: 3px solid var(--food-belt-border);
    background:
        repeating-linear-gradient(
            45deg,
            var(--food-belt-a) 0,
            var(--food-belt-a) 9px,
            var(--food-belt-b) 9px,
            var(--food-belt-b) 18px
        );
    background-size: 52px 52px;
    box-shadow: inset 0 8px 18px var(--food-belt-shadow);
    animation: footerFoodBeltStripes 2.8s linear infinite;
}

.footer-food-belt-track {
    position: relative;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.footer-food-item {
    --food-cycle: 80s;
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    transform: translate(-90px, -50%) scale(.78);
    opacity: 0;
    font-size: 42px;
    line-height: 1;
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, .34));
    animation: footerFoodRide var(--food-cycle) linear infinite;
    animation-delay: calc(var(--food-i) * -8s);
    will-change: transform, opacity;
}

/*
   Елементът е активен само ~24 s от 80 s.
   При старт през 8 s това държи приблизително 3 ястия на лентата.
   В активната част минава през 1/4 -> 1/2 -> 3/4 от ширината.
*/
@keyframes footerFoodRide {
    0% {
        transform: translate(-90px, -50%) scale(.78);
        opacity: 0;
    }
    1.5% {
        opacity: 1;
    }
    7.5% {
        transform: translate(calc(25vw - 31px), -50%) scale(1);
        opacity: 1;
    }
    15% {
        transform: translate(calc(50vw - 31px), -50%) scale(1.08);
        opacity: 1;
    }
    22.5% {
        transform: translate(calc(75vw - 31px), -50%) scale(1);
        opacity: 1;
    }
    29% {
        opacity: 1;
    }
    30% {
        transform: translate(calc(100vw + 90px), -50%) scale(.78);
        opacity: 0;
    }
    100% {
        transform: translate(calc(100vw + 90px), -50%) scale(.78);
        opacity: 0;
    }
}

@keyframes footerFoodBeltStripes {
    from { background-position: 0 0; }
    to   { background-position: 52px 0; }
}

@media (max-width: 700px) {
    .footer-food-belt {
        height: 62px;
    }

    .footer-food-item {
        width: 52px;
        height: 52px;
        font-size: 35px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .footer-food-belt {
        animation: none;
    }

    .footer-food-item {
        animation: none;
        opacity: 0;
    }

    .footer-food-item:nth-child(1),
    .footer-food-item:nth-child(2),
    .footer-food-item:nth-child(3) {
        opacity: 1;
        top: 50%;
    }

    .footer-food-item:nth-child(1) { transform: translate(calc(25vw - 31px), -50%); }
    .footer-food-item:nth-child(2) { transform: translate(calc(50vw - 31px), -50%); }
    .footer-food-item:nth-child(3) { transform: translate(calc(75vw - 31px), -50%); }
}

/* =========================================================
   FOOTER FOOD BELT - THIN BELT WITH FOOD RIDING ABOVE IT
   ========================================================= */
.footer-food-belt {
    height: 74px;
    overflow: hidden;
    border-top: 0;
    background: none;
    box-shadow: none;
    animation: none;
}

.footer-food-belt::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 16px;
    border-top: 2px solid var(--food-belt-border);
    border-bottom: 2px solid var(--food-belt-border);
    background:
        repeating-linear-gradient(
            45deg,
            var(--food-belt-a) 0,
            var(--food-belt-a) 9px,
            var(--food-belt-b) 9px,
            var(--food-belt-b) 18px
        );
    background-size: 52px 52px;
    box-shadow: inset 0 4px 8px var(--food-belt-shadow);
    animation: footerFoodBeltStripes 2.8s linear infinite;
}

.footer-food-belt-track {
    position: relative;
    z-index: 2;
    height: 58px;
}

.footer-food-item {
    top: auto;
    bottom: 5px;
    transform: translate(-90px, 0) scale(.78);
}

@keyframes footerFoodRide {
    0% {
        transform: translate(-90px, 0) scale(.78);
        opacity: 0;
    }
    1.5% { opacity: 1; }
    7.5% {
        transform: translate(calc(25vw - 31px), 0) scale(1);
        opacity: 1;
    }
    15% {
        transform: translate(calc(50vw - 31px), 0) scale(1.08);
        opacity: 1;
    }
    22.5% {
        transform: translate(calc(75vw - 31px), 0) scale(1);
        opacity: 1;
    }
    29% { opacity: 1; }
    30% {
        transform: translate(calc(100vw + 90px), 0) scale(.78);
        opacity: 0;
    }
    100% {
        transform: translate(calc(100vw + 90px), 0) scale(.78);
        opacity: 0;
    }
}

@media (max-width: 700px) {
    .footer-food-belt { height: 64px; }
    .footer-food-belt-track { height: 49px; }
    .footer-food-belt::after { height: 15px; }
    .footer-food-item { bottom: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .footer-food-belt::after { animation: none; }
    .footer-food-item:nth-child(1) { transform: translate(calc(25vw - 31px), 0); }
    .footer-food-item:nth-child(2) { transform: translate(calc(50vw - 31px), 0); }
    .footer-food-item:nth-child(3) { transform: translate(calc(75vw - 31px), 0); }
}

/* =========================================================
   ADMIN FORM CONTROLS - THEME CONSISTENCY FIX 2026-10-04
   Applies to all admin screens. Classic stays unchanged.
   ========================================================= */
html:not([data-theme="classic"]) body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
html:not([data-theme="classic"]) body textarea,
html:not([data-theme="classic"]) body select,
html:not([data-theme="classic"]) body input[type="date"],
html:not([data-theme="classic"]) body input[type="time"],
html:not([data-theme="classic"]) body input[type="datetime-local"],
html:not([data-theme="classic"]) body input[type="file"] {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
html:not([data-theme="classic"]) body textarea:focus,
html:not([data-theme="classic"]) body select:focus,
html:not([data-theme="classic"]) body input[type="date"]:focus,
html:not([data-theme="classic"]) body input[type="time"]:focus,
html:not([data-theme="classic"]) body input[type="datetime-local"]:focus,
html:not([data-theme="classic"]) body input[type="file"]:focus {
    border-color: var(--theme-accent) !important;
    outline: none !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 16%, transparent) !important;
}

html:not([data-theme="classic"]) body input::placeholder,
html:not([data-theme="classic"]) body textarea::placeholder {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body input:disabled,
html:not([data-theme="classic"]) body textarea:disabled,
html:not([data-theme="classic"]) body select:disabled,
html:not([data-theme="classic"]) body input[readonly],
html:not([data-theme="classic"]) body textarea[readonly] {
    background: var(--theme-surface-alt) !important;
    color: color-mix(in srgb, var(--theme-text) 78%, var(--theme-bg)) !important;
    border-color: var(--theme-border) !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

html:not([data-theme="classic"]) body label,
html:not([data-theme="classic"]) body .field-label,
html:not([data-theme="classic"]) body .form-label {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 10px 14px;
    border: 1px solid var(--theme-border);
    border-radius: 8px;
    background: var(--theme-surface-alt);
    color: var(--theme-text);
    font-weight: 700;
    cursor: pointer;
}

html:not([data-theme="classic"]) body input[type="file"]::file-selector-button:hover {
    border-color: var(--theme-accent);
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-alt));
}

html:not([data-theme="classic"]) body button,
html:not([data-theme="classic"]) body .btn,
html:not([data-theme="classic"]) body .tab,
html:not([data-theme="classic"]) body .nav-tab,
html:not([data-theme="classic"]) body .toolbar a {
    color: var(--theme-text);
}

html:not([data-theme="classic"]) body .btn:not(.btn-orange):not(.btn-red):not(.save):not(.danger),
html:not([data-theme="classic"]) body .tab:not(.active),
html:not([data-theme="classic"]) body .nav-tab:not(.active) {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) body .btn:not(.btn-orange):not(.btn-red):not(.save):not(.danger):hover,
html:not([data-theme="classic"]) body .tab:not(.active):hover,
html:not([data-theme="classic"]) body .nav-tab:not(.active):hover {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface-alt)) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) body .btn-orange,
html:not([data-theme="classic"]) body .save,
html:not([data-theme="classic"]) body .tab.active,
html:not([data-theme="classic"]) body .nav-tab.active {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) body input[type="date"],
html:not([data-theme="classic"]) body input[type="time"],
html:not([data-theme="classic"]) body input[type="datetime-local"] {
    color-scheme: light;
}

html[data-theme="night"] body input[type="date"],
html[data-theme="night"] body input[type="time"],
html[data-theme="night"] body input[type="datetime-local"] {
    color-scheme: dark;
}


/* =========================================================
   ADMIN DAILY MENU - THEME INTEGRATION FIX #2
   Поправя останалите hard-coded тъмни елементи в
   Качи ново / Днешно / Бъдещи / Архив.
   Classic остава непроменена.
   ========================================================= */

html:not([data-theme="classic"]) .page-wrap {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .top h1 {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .top h1 span {
    color: var(--theme-accent) !important;
}

/* Към таблото */
html:not([data-theme="classic"]) .back {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: none !important;
}

html:not([data-theme="classic"]) .back:hover,
html:not([data-theme="classic"]) .back:focus-visible {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
    outline: none !important;
}

/* Горната лента с Качи ново / Днешно / Бъдещи / Архив */
html:not([data-theme="classic"]) .menu-tabs {
    background: var(--theme-surface-alt) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 8px 22px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .menu-tab {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .menu-tab:hover,
html:not([data-theme="classic"]) .menu-tab:focus-visible {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-accent) !important;
    outline: none !important;
}

html:not([data-theme="classic"]) .menu-tab.active {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    border-color: var(--theme-accent) !important;
}

/* Панелите */
html:not([data-theme="classic"]) .panel {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 8px 22px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .panel-title,
html:not([data-theme="classic"]) .panel-body {
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .panel-subtitle {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

/* Labels */
html:not([data-theme="classic"]) .field label {
    color: var(--theme-text) !important;
}

/* Дата */
html:not([data-theme="classic"]) .input,
html:not([data-theme="classic"]) .date-input {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    caret-color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .input:focus,
html:not([data-theme="classic"]) .date-input:focus {
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-accent) 16%, transparent) !important;
}

html:not([data-theme="classic"]) .calendar-btn {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
}

html:not([data-theme="classic"]) .calendar-btn:hover,
html:not([data-theme="classic"]) .calendar-btn:focus-visible {
    background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    outline: none !important;
}

/* Word файл */
html:not([data-theme="classic"]) .file-picker-btn {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: none !important;
}

html:not([data-theme="classic"]) .file-picker-btn:hover,
html:not([data-theme="classic"]) .file-picker-btn:focus-visible {
    background: color-mix(in srgb, var(--theme-accent) 12%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
    outline: none !important;
}

html:not([data-theme="classic"]) .file-picker-name {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) .file-picker-name.selected {
    color: var(--semantic-success) !important;
}

/* Бутони на дневното меню */
html:not([data-theme="classic"]) .btn.primary {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    border: 1px solid var(--theme-accent) !important;
    box-shadow: 0 8px 20px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .btn.primary:hover,
html:not([data-theme="classic"]) .btn.primary:focus-visible {
    background: var(--theme-accent-hover) !important;
    border-color: var(--theme-accent-hover) !important;
    color: var(--theme-accent-text) !important;
    outline: none !important;
}

html:not([data-theme="classic"]) .btn.secondary {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
}

html:not([data-theme="classic"]) .btn.secondary:hover,
html:not([data-theme="classic"]) .btn.secondary:focus-visible {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
    outline: none !important;
}

/* Badge/list/category елементи в другите меню екрани */
html:not([data-theme="classic"]) .badge,
html:not([data-theme="classic"]) .list-row,
html:not([data-theme="classic"]) .category,
html:not([data-theme="classic"]) .future-menu-card,
html:not([data-theme="classic"]) .future-text-preview {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .category-title,
html:not([data-theme="classic"]) .future-menu-head {
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface-alt)) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* Сравнение при конфликт на дата */
html:not([data-theme="classic"]) .compare-column,
html:not([data-theme="classic"]) .compare-category {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .compare-head,
html:not([data-theme="classic"]) .compare-column.new .compare-head,
html:not([data-theme="classic"]) .compare-category-title,
html:not([data-theme="classic"]) .compare-note {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .compare-head small,
html:not([data-theme="classic"]) .compare-head p,
html:not([data-theme="classic"]) .compare-item span {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) .compare-head h2,
html:not([data-theme="classic"]) .compare-column.new .compare-head h2,
html:not([data-theme="classic"]) .compare-category-title {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .compare-item {
    border-color: var(--theme-border) !important;
    color: var(--theme-text) !important;
}

/* Night остава тъмна, но с истински светъл текст. */
html[data-theme="night"] .menu-tabs,
html[data-theme="night"] .panel,
html[data-theme="night"] .file-picker-btn,
html[data-theme="night"] .calendar-btn,
html[data-theme="night"] .btn.secondary,
html[data-theme="night"] .back {
    color: #FFFFFF !important;
}



/* =========================================================
   TARGETED ADMIN THEME FIX #4
   Поправя конкретно останалите тъмни hard-coded елементи
   без широки глобални hover/table overrides.
   Classic остава непроменена.
   ========================================================= */

/* ---------- ORDERS ---------- */
html:not([data-theme="classic"]) .archive-box,
html:not([data-theme="classic"]) .filter-panel {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .filter-toggle,
html:not([data-theme="classic"]) .back {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .filter-toggle:hover,
html:not([data-theme="classic"]) .back:hover {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .filter-field input,
html:not([data-theme="classic"]) .filter-date-wrap input {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .filter-calendar-btn {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .filter-calendar-btn:hover {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) .order {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .order:hover,
html:not([data-theme="classic"]) .order:focus-within {
    background: color-mix(in srgb, var(--theme-accent) 7%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 8px 20px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .order-head,
html:not([data-theme="classic"]) .order-body,
html:not([data-theme="classic"]) .side {
    background: transparent !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .order .number {
    color: var(--theme-accent-hover) !important;
}

/* Хронология бутон в Orders */
html:not([data-theme="classic"]) .history-toggle,
html:not([data-theme="classic"]) .timeline-toggle,
html:not([data-theme="classic"]) a[href*="audit-log.php"] {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .history-toggle:hover,
html:not([data-theme="classic"]) .timeline-toggle:hover,
html:not([data-theme="classic"]) a[href*="audit-log.php"]:hover {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
}

/* ---------- AUDIT LOG ---------- */
html:not([data-theme="classic"]) .filters .field select,
html:not([data-theme="classic"]) .filters .field input {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    color-scheme: light !important;
}

html[data-theme="night"] .filters .field select,
html[data-theme="night"] .filters .field input {
    color-scheme: dark !important;
}

html:not([data-theme="classic"]) .filters .field select option {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .filters .field label {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .filter-actions button {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) .filter-actions .clear-btn {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* Audit таблица - само тази таблица, без глобални tr/td правила */
html:not([data-theme="classic"]) .table-wrap table th {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .table-wrap table td {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* ---------- SETTINGS ---------- */
html:not([data-theme="classic"]) .tabs {
    background: var(--theme-surface) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 8px 20px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .tab {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .tab:hover {
    background: color-mix(in srgb, var(--theme-accent) 9%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) .tab.active {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) .info-box {
    background: var(--theme-notice-bg) !important;
    color: var(--theme-text) !important;
    border-left-color: var(--theme-notice-border) !important;
    border-top-color: var(--theme-border) !important;
    border-right-color: var(--theme-border) !important;
    border-bottom-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .info-box *,
html:not([data-theme="classic"]) .info-box strong,
html:not([data-theme="classic"]) .info-box code {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) .toggle-card,
html:not([data-theme="classic"]) .run-card {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* ---------- RESTAURANT STATUS ---------- */
html:not([data-theme="classic"]) .date-wrap input,
html:not([data-theme="classic"]) input[type="datetime-local"] {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .date-wrap .calendar-btn {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* Горен информационен блок за режима */
html:not([data-theme="classic"]) .status-info,
html:not([data-theme="classic"]) .status-help,
html:not([data-theme="classic"]) .restaurant-status-info {
    background: var(--theme-notice-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* ---------- USERS ---------- */
html:not([data-theme="classic"]) .user-card,
html:not([data-theme="classic"]) .permission-card {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .user-card input,
html:not([data-theme="classic"]) .user-card select,
html:not([data-theme="classic"]) .permission-card input,
html:not([data-theme="classic"]) .permission-card select {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) .user-card .btn,
html:not([data-theme="classic"]) .user-card button,
html:not([data-theme="classic"]) .user-card a.btn {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
}

html:not([data-theme="classic"]) .user-card .btn:hover,
html:not([data-theme="classic"]) .user-card button:hover,
html:not([data-theme="classic"]) .user-card a.btn:hover {
    background: color-mix(in srgb, var(--theme-accent) 10%, var(--theme-surface)) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]) .user-card .danger,
html:not([data-theme="classic"]) .user-card .delete,
html:not([data-theme="classic"]) .user-card .deactivate {
    background: color-mix(in srgb, var(--semantic-danger) 14%, var(--theme-surface)) !important;
    color: var(--semantic-danger) !important;
    border-color: var(--semantic-danger) !important;
}

/* ---------- NIGHT ---------- */
html[data-theme="night"] .tabs,
html[data-theme="night"] .tab,
html[data-theme="night"] .order,
html[data-theme="night"] .archive-box,
html[data-theme="night"] .filter-panel,
html[data-theme="night"] .info-box,
html[data-theme="night"] .table-wrap table td,
html[data-theme="night"] .table-wrap table th {
    color: #FFFFFF !important;
}



/* =========================================================
   TARGETED ADMIN FIX #5
   1) Orders: черното на снимката е HOVER състоянието.
      Ограничено е само до страницата с поръчки.
   2) Audit log: светъл native select popup при светлите теми.
   ========================================================= */

/* ORDERS — hover на сгънатата/разгънатата поръчка */
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article.order:hover,
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article.order:focus-within {
    background: color-mix(in srgb, var(--theme-accent) 7%, var(--theme-surface)) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article.order:hover .order-head,
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article.order:focus-within .order-head,
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article.order:hover .order-body,
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article.order:focus-within .order-body {
    background: transparent !important;
    color: var(--theme-text) !important;
}

/* Ако текущата версия на Orders използва друг article wrapper,
   пак ограничаваме правилото единствено до Orders страницата. */
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article:hover {
    background: color-mix(in srgb, var(--theme-accent) 7%, var(--theme-surface)) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-accent) !important;
}

html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.archive-filter-row) article:hover * {
    color: inherit;
}

/* Запазваме семантичната зелена "НОВА" значка и accent номера. */
html:not([data-theme="classic"])
body:has(.archive-filter-row) article:hover .number {
    color: var(--theme-accent-hover) !important;
}

html:not([data-theme="classic"])
body:has(.archive-filter-row) article:hover .new-badge,
html:not([data-theme="classic"])
body:has(.archive-filter-row) article:hover .badge-new,
html:not([data-theme="classic"])
body:has(.archive-filter-row) article:hover .order-new {
    color: var(--semantic-success) !important;
}

/* NIGHT — hover остава тъмен, но не черна "дупка". */
html[data-theme="night"] body:has(.archive-filter-row) article.order:hover,
html[data-theme="night"] body:has(.archive-filter-row) article:hover {
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface)) !important;
    color: #FFFFFF !important;
    border-color: var(--theme-accent) !important;
}

/* AUDIT LOG — native select dropdown.
   Windows/Chrome често взима popup цветовете от color-scheme,
   затова го задаваме изрично за светлите теми. */
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.filters) .field select {
    color-scheme: light !important;
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.filters) .field select option,
html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.filters) .field select optgroup {
    color-scheme: light !important;
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]):not([data-theme="night"])
body:has(.filters) .field select option:checked {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
}

/* Night dropdown */
html[data-theme="night"] body:has(.filters) .field select,
html[data-theme="night"] body:has(.filters) .field select option,
html[data-theme="night"] body:has(.filters) .field select optgroup {
    color-scheme: dark !important;
    background-color: var(--theme-surface) !important;
    color: #FFFFFF !important;
}



/* =========================================================
   TARGETED ADMIN FIX #6
   Последни два проблема:
   - Orders: тъмният hover на сгънатата поръчка
   - Audit log: само dropdown "Действие" остава тъмен
   ========================================================= */

/* ORDERS — покриваме различните имена на wrapper/header,
   използвани в текущите версии на orders.php, но САМО на Orders. */
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(.archive-filter-row) :is(
    .order,
    .order-card,
    .order-row,
    .order-summary,
    .order-toggle,
    .order-header,
    .order-head
):hover,
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(.archive-filter-row) :is(
    .order,
    .order-card,
    .order-row,
    .order-summary,
    .order-toggle,
    .order-header,
    .order-head
):focus-within {
    background: color-mix(in srgb, var(--theme-accent) 7%, var(--theme-surface)) !important;
    background-color: color-mix(in srgb, var(--theme-accent) 7%, var(--theme-surface)) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-accent) !important;
}

/* Ако старият тъмен hover е върху вътрешния clickable header,
   не му позволяваме да рисува черен фон върху тематичната карта. */
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(.archive-filter-row) .order:hover > :is(
    .order-head,
    .order-header,
    .order-summary,
    .order-toggle
),
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(.archive-filter-row) .order:focus-within > :is(
    .order-head,
    .order-header,
    .order-summary,
    .order-toggle
) {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--theme-text) !important;
}

/* Night си остава тъмна, но тематична. */
html[data-theme="night"] body:has(.archive-filter-row) :is(
    .order,
    .order-card,
    .order-row,
    .order-summary,
    .order-toggle,
    .order-header,
    .order-head
):hover {
    background: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface)) !important;
    background-color: color-mix(in srgb, var(--theme-accent) 8%, var(--theme-surface)) !important;
    color: #fff !important;
    border-color: var(--theme-accent) !important;
}

/* AUDIT LOG — native popup-ът в Windows/Chrome наследява color-scheme
   от страницата. Задаваме светла схема на целия audit form само
   при светлите теми. */
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters) {
    color-scheme: light !important;
}

html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters) form.filters,
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters) form.filters .field,
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters) form.filters select {
    color-scheme: light !important;
}

/* Само "Действие" — вторият select в хронологията. */
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters)
form.filters .field:nth-of-type(2) select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    background: var(--theme-surface) !important;
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    color-scheme: light !important;
}

html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters)
form.filters .field:nth-of-type(2) select option,
html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters)
form.filters .field:nth-of-type(2) select optgroup {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1f2a22 !important;
    color-scheme: light !important;
}

html:not([data-theme="classic"]):not([data-theme="night"]) body:has(form.filters)
form.filters .field:nth-of-type(2) select option:checked {
    background: var(--theme-accent) !important;
    color: var(--theme-accent-text) !important;
}

/* Night dropdown remains intentionally dark/readable. */
html[data-theme="night"] body:has(form.filters)
form.filters .field:nth-of-type(2) select,
html[data-theme="night"] body:has(form.filters)
form.filters .field:nth-of-type(2) select option {
    color-scheme: dark !important;
    background: var(--theme-surface) !important;
    color: #fff !important;
}


/* =========================================================
   FINAL TARGETED THEME FIXES 2026-10-04
   Реални проблеми от последните screenshots:
   1) Settings success notice е прекалено бледо;
   2) Orders: Получаване / Получена / Прибори остават тъмни;
   3) Daily menu: изборът "Генерирана снимка / Индивидуална снимка"
      остава тъмен при светлите теми.
   Classic остава 1:1.
   ========================================================= */

/* ---------------------------------------------------------
   1) SETTINGS SUCCESS NOTICE
   Inline CSS в settings.php задава много светъл #d7f6de.
   Тук го override-ваме с !important.
   --------------------------------------------------------- */
html:not([data-theme="classic"]) .notice.success {
    background: color-mix(in srgb, var(--semantic-success) 14%, var(--theme-surface)) !important;
    border: 1px solid var(--semantic-success) !important;
    color: var(--theme-text) !important;
    opacity: 1 !important;
    font-weight: 900 !important;
}

html:not([data-theme="classic"]) .notice.success,
html:not([data-theme="classic"]) .notice.success * {
    opacity: 1 !important;
}

html[data-theme="night"] .notice.success,
html[data-theme="night"] .notice.success * {
    color: #E8FFF0 !important;
}

/* ---------------------------------------------------------
   2) ADMIN ORDERS - OPEN ORDER META BOXES
   orders.php има inline:
      .meta div { background:#100c0a }
      .side     { background:#100c0a }
   Затова override-ваме точно тези елементи.
   --------------------------------------------------------- */
html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .meta > div {
    background: var(--theme-surface-alt) !important;
    background-color: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
    box-shadow: none !important;
}

html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .meta > div > span {
    color: var(--theme-muted) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .meta > div > strong {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .side {
    background: var(--theme-surface-alt) !important;
    background-color: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .side .total-line,
html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .side .total-line strong {
    color: var(--theme-text) !important;
}

html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .side .total-line.final,
html:not([data-theme="classic"]) body:has(.archive-filter-row) .order-body .side .total-line.final strong {
    color: var(--theme-accent) !important;
    border-color: var(--theme-border) !important;
}

/* Night остава тъмна, но не използва старото почти-черно кафяво. */
html[data-theme="night"] body:has(.archive-filter-row) .order-body .meta > div,
html[data-theme="night"] body:has(.archive-filter-row) .order-body .side {
    background: var(--theme-surface-alt) !important;
    color: #FFFFFF !important;
}

/* ---------------------------------------------------------
   3) DAILY MENU - IMAGE SOURCE / PUBLICATION CHOICES
   Дневното меню има собствен inline CSS. Покриваме както
   известните имена на card/option класове, така и двуколонните
   директни блокове в .panel-body на страниците с .menu-tabs.
   --------------------------------------------------------- */
html:not([data-theme="classic"]) body:has(.menu-tabs) :is(
    .publication-card,
    .publication-option,
    .publication-choice,
    .publish-card,
    .publish-option,
    .image-card,
    .image-option,
    .image-choice,
    .image-source-card,
    .image-source-option,
    .source-card,
    .source-option,
    .upload-card,
    .upload-option,
    .visual-card,
    .visual-option,
    .mode-card,
    .mode-option,
    .choice-card
) {
    background: var(--theme-surface-alt) !important;
    background-color: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: none !important;
}

/* Fallback за текущата структура на "Снимка за публикуване":
   двата големи избора са директни клетки в grid. */
html:not([data-theme="classic"]) body:has(.menu-tabs) .panel-body > .grid > div,
html:not([data-theme="classic"]) body:has(.menu-tabs) .panel-body .grid > :is(
    .field,
    .card,
    .box,
    .option,
    .choice
) {
    background: var(--theme-surface-alt) !important;
    background-color: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

/* Всички текстове в тези избори да не наследяват старите кафяви цветове. */
html:not([data-theme="classic"]) body:has(.menu-tabs) :is(
    .publication-card,
    .publication-option,
    .publication-choice,
    .publish-card,
    .publish-option,
    .image-card,
    .image-option,
    .image-choice,
    .image-source-card,
    .image-source-option,
    .source-card,
    .source-option,
    .upload-card,
    .upload-option,
    .visual-card,
    .visual-option,
    .mode-card,
    .mode-option,
    .choice-card
) :is(h2,h3,h4,strong,label,p,span,small) {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) body:has(.menu-tabs) .panel-body > .grid > div :is(h2,h3,h4,strong,label,p,span,small) {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

/* Вторичните описания остават различими, но четими. */
html:not([data-theme="classic"]) body:has(.menu-tabs) .panel-body > .grid > div p,
html:not([data-theme="classic"]) body:has(.menu-tabs) .panel-body > .grid > div small {
    color: var(--theme-muted) !important;
}

/* Night вариантът е тъмен по дизайн. */
html[data-theme="night"] body:has(.menu-tabs) .panel-body > .grid > div {
    background: var(--theme-surface-alt) !important;
    color: #FFFFFF !important;
}

/* ---------------------------------------------------------
   4) PUBLIC ORDER TRACKING - запазваме и предишната поправка.
   --------------------------------------------------------- */
html:not([data-theme="classic"]) .public-order-track-card {
    background: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
    box-shadow: 0 8px 22px var(--theme-shadow) !important;
}

html:not([data-theme="classic"]) .public-order-track-card .public-order-track-meta,
html:not([data-theme="classic"]) .public-order-track-card .public-order-track-total {
    color: var(--theme-text) !important;
    opacity: 1 !important;
}

html:not([data-theme="classic"]) .public-order-track-card .public-order-track-status {
    background: var(--theme-surface-alt) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border) !important;
}


/* =========================================================
   MOBILE HORIZONTAL OVERFLOW FIX — 2026-10-05
   Реалният проблем беше mobile header:
   .header-actions беше width:100% в невиващ се flex ред.
   Долните правила са допълнителна защита за динамично съдържание.
   ========================================================= */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

img,
video,
svg,
canvas {
    max-width: 100%;
}

.site-header,
.header-inner,
.header-actions,
main,
section,
.container {
    min-width: 0;
}

.footer-food-belt {
    max-width: 100%;
    overflow: hidden;
    contain: layout paint;
}

@media (max-width: 720px) {
    .public-order-row,
    .public-order-cart-line,
    .public-order-total-line,
    .public-order-cart-summary,
    .public-order-checkout-actions,
    .public-order-success-actions,
    .public-order-tracking-actions,
    .section-title,
    .customer-story-steps > div {
        min-width: 0;
    }

    .public-order-name,
    .public-order-meta,
    .public-order-track-meta,
    .public-order-field,
    .public-order-field input,
    .public-order-field textarea,
    .public-order-field select {
        min-width: 0;
        max-width: 100%;
    }
}

/* =========================================================
   ЕКИП — PUBLIC PROFILE SLIDER 2026-10-06
   Един човек наведнъж; циклична навигация.
   ========================================================= */
.team-profile-shell{
    width:100%;
    max-width:980px;
    margin:0 auto;
    border:1px solid var(--theme-border,#4c382e);
    border-radius:18px;
    background:var(--theme-surface,#15110e);
    overflow:hidden;
    box-shadow:0 18px 42px var(--theme-shadow,rgba(0,0,0,.28));
}
.team-profile{display:none;min-width:0}
.team-profile.is-active{display:block}
.team-profile-top{display:grid;grid-template-columns:minmax(240px,32%) minmax(0,1fr);align-items:stretch;min-height:310px}
.team-profile-photo{min-width:0;min-height:310px;background:var(--theme-surface-alt,#100d0b);border-right:1px solid var(--theme-border,#4c382e)}
.team-profile-photo img{display:block;width:100%;height:100%;min-height:310px;max-height:380px;object-fit:contain;background:var(--theme-surface-alt,#100d0b)}
.team-profile-photo .team-photo-placeholder{width:100%;height:100%;min-height:310px;border-radius:0;font-size:92px}
.team-profile-facts{display:flex;align-items:flex-start;padding:34px 38px;color:var(--theme-text,#fff)}
.team-profile-facts dl{width:100%;margin:0;display:grid;gap:16px}
.team-profile-facts dl>div{display:grid;grid-template-columns:145px minmax(0,1fr);gap:18px;padding-bottom:13px;border-bottom:1px solid var(--theme-border,#3b2e27)}
.team-profile-facts dt{font-weight:900;color:var(--theme-accent,#f57524)}
.team-profile-facts dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.team-profile-facts h3{margin:0;font:700 28px/1.2 Georgia,serif}
.team-profile-bio{min-height:230px;padding:32px 38px;border-top:1px solid var(--theme-border,#3b2e27);color:var(--theme-text,#fff)}
.team-profile-bio p{margin:0;white-space:normal;line-height:1.75;font-size:16px;overflow-wrap:anywhere}
.team-profile-nav{display:grid;grid-template-columns:70px minmax(0,1fr) 70px;align-items:center;gap:12px;padding:14px 20px;border-top:1px solid var(--theme-border,#3b2e27);background:var(--theme-surface-alt,#100d0b);text-align:center}
.team-profile-nav strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--theme-text,#fff)}
.team-profile-arrow{width:54px;height:42px;margin:auto;border:1px solid var(--theme-border,#4c382e);border-radius:10px;background:var(--theme-surface,#15110e);color:var(--theme-accent,#f57524);font-size:28px;line-height:1;cursor:pointer;transition:.18s}
.team-profile-arrow:hover{transform:translateY(-1px);border-color:var(--theme-accent,#f57524)}

@media(max-width:720px){
    .team-profile-shell{border-radius:14px}
    .team-profile-top{grid-template-columns:42% minmax(0,1fr);min-height:230px}
    .team-profile-photo{min-height:230px}
    .team-profile-photo img,.team-profile-photo .team-photo-placeholder{min-height:230px;max-height:300px}
    .team-profile-facts{padding:20px 16px}
    .team-profile-facts dl{gap:10px}
    .team-profile-facts dl>div{display:block;padding-bottom:9px}
    .team-profile-facts dt{font-size:12px;margin-bottom:2px}
    .team-profile-facts dd{font-size:14px}
    .team-profile-bio{min-height:180px;padding:22px 18px}
    .team-profile-bio p{font-size:15px;line-height:1.65}
    .team-profile-nav{grid-template-columns:54px minmax(0,1fr) 54px;padding:12px 8px;gap:5px}
    .team-profile-arrow{width:46px;height:40px}
}

@media(max-width:430px){
    .team-profile-top{grid-template-columns:44% minmax(0,1fr)}
    .team-profile-facts{padding:16px 11px}
    .team-profile-facts dl>div{padding-bottom:7px}
    .team-profile-facts dt{font-size:11px}
    .team-profile-facts dd{font-size:13px}
}


/* =========================================================
   ABOUT + TEAM FINAL LAYOUT — Screenshot_8 / Screenshot_9
   2026-10-06
   ========================================================= */

/* Заглавията ЗА НАС / ЕКИП са на една и съща вертикална линия. */
.about-team-module > .section-title.center {
    min-height: 52px;
    margin: 0 0 22px;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.about-team-module > .section-title.center h2 {
    margin: 0;
    line-height: 1.1;
}
.about-team-module .about-text {
    padding: 0;
}

/* Един служител, точно като схемата: снимка | данни / биография / навигация. */
.about-team-module.team-module .team-profile-shell {
    width: 100%;
    max-width: none;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--theme-border, #4c382e);
    border-radius: 14px;
    background: var(--theme-surface, #15110e);
    box-shadow: none;
}

.about-team-module.team-module .team-profile {
    display: none !important;
    min-width: 0;
}
.about-team-module.team-module .team-profile.is-active {
    display: block !important;
}

.about-team-module.team-module .team-profile-top {
    display: grid;
    grid-template-columns: minmax(190px, 42%) minmax(0, 1fr);
    min-height: 300px;
    align-items: stretch;
}

/* Вляво има САМО снимка. */
.about-team-module.team-module .team-profile-photo {
    min-width: 0;
    height: 300px;
    min-height: 300px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid var(--theme-border, #4c382e);
    background: var(--theme-surface-alt, #100d0b);
}
.about-team-module.team-module .team-profile-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: contain;
    object-position: center;
    background: var(--theme-surface-alt, #100d0b);
}
.about-team-module.team-module .team-profile-photo.team-photo-placeholder,
.about-team-module.team-module .team-profile-photo .team-photo-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 82px;
}

/* Данните са вдясно от снимката. */
.about-team-module.team-module .team-profile-facts {
    min-width: 0;
    height: 300px;
    padding: 28px 24px;
    overflow: auto;
    align-items: flex-start;
    color: var(--theme-text, #fff);
}
.about-team-module.team-module .team-profile-facts dl {
    width: 100%;
    margin: 0;
    display: grid;
    gap: 14px;
}
.about-team-module.team-module .team-profile-facts dl > div {
    display: block;
    padding: 0 0 11px;
    border-bottom: 1px solid var(--theme-border, #3b2e27);
}
.about-team-module.team-module .team-profile-facts dt {
    margin: 0 0 3px;
    font-size: 12px;
    font-weight: 900;
    color: var(--theme-accent, #f57524);
}
.about-team-module.team-module .team-profile-facts dd {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Долното текстово поле е заключено по височина и се скролва вътрешно. */
.about-team-module.team-module .team-profile-bio {
    box-sizing: border-box;
    height: 290px;
    min-height: 290px;
    max-height: 290px;
    padding: 24px 26px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    border-top: 1px solid var(--theme-border, #3b2e27);
    color: var(--theme-text, #fff);
    scrollbar-gutter: stable;
}
.about-team-module.team-module .team-profile-bio p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Стрелка — име — стрелка, винаги най-долу. */
.about-team-module.team-module .team-profile-nav {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 10px;
    min-height: 62px;
    padding: 9px 12px;
    border-top: 1px solid var(--theme-border, #3b2e27);
    background: var(--theme-surface-alt, #100d0b);
}
.about-team-module.team-module .team-profile-nav strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.about-team-module.team-module .team-profile-arrow {
    width: 52px;
    height: 42px;
    margin: auto;
}

/* При двете колони модулите започват от еднаква височина. */
.about-team-modules {
    align-items: start;
}
.about-team-module {
    min-width: 0;
}

/* Телефон: запазваме схемата, но даваме повече място на четимостта. */
@media (max-width: 850px) {
    .about-team-module.team-module .team-profile-top {
        grid-template-columns: minmax(145px, 40%) minmax(0, 1fr);
        min-height: 250px;
    }
    .about-team-module.team-module .team-profile-photo,
    .about-team-module.team-module .team-profile-facts {
        height: 250px;
        min-height: 250px;
    }
    .about-team-module.team-module .team-profile-facts {
        padding: 20px 16px;
    }
    .about-team-module.team-module .team-profile-bio {
        height: 240px;
        min-height: 240px;
        max-height: 240px;
        padding: 20px 18px;
    }
}

@media (max-width: 520px) {
    .about-team-module {
        padding: 16px;
    }
    .about-team-module.team-module .team-profile-top {
        grid-template-columns: 42% minmax(0, 1fr);
        min-height: 220px;
    }
    .about-team-module.team-module .team-profile-photo,
    .about-team-module.team-module .team-profile-facts {
        height: 220px;
        min-height: 220px;
    }
    .about-team-module.team-module .team-profile-facts {
        padding: 15px 11px;
    }
    .about-team-module.team-module .team-profile-facts dl {
        gap: 8px;
    }
    .about-team-module.team-module .team-profile-facts dl > div {
        padding-bottom: 6px;
    }
    .about-team-module.team-module .team-profile-facts dt {
        font-size: 11px;
    }
    .about-team-module.team-module .team-profile-facts dd {
        font-size: 13px;
    }
    .about-team-module.team-module .team-profile-bio {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
        padding: 17px 14px;
    }
    .about-team-module.team-module .team-profile-bio p {
        font-size: 14px;
        line-height: 1.55;
    }
    .about-team-module.team-module .team-profile-nav {
        grid-template-columns: 54px minmax(0, 1fr) 54px;
        padding: 8px 6px;
    }
    .about-team-module.team-module .team-profile-arrow {
        width: 44px;
        height: 40px;
    }
}


/* =========================================================
   ABOUT + TEAM — ONE VISUAL CONTAINER
   2026-10-06
   Логически са отделни модули, визуално са един общ блок.
   ========================================================= */

.about-team-modules {
    gap: 0 !important;
    align-items: stretch !important;
    overflow: hidden;
    border: 1px solid var(--theme-border, #34271f);
    border-radius: 16px;
    background: var(--theme-surface, #15110e);
    box-shadow: 0 12px 30px var(--theme-shadow, rgba(0,0,0,.22));
}

.about-team-modules > .about-team-module {
    min-width: 0;
    height: 100%;
    padding: 24px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.about-team-modules:not(.single-module) > .about-team-module:first-child {
    border-right: 1px solid var(--theme-border, #34271f) !important;
}

.about-team-modules:not(.single-module) > .about-team-module {
    align-self: stretch;
}

.about-team-modules.single-module > .about-team-module {
    border-right: 0 !important;
}

@media (max-width: 850px) {
    .about-team-modules:not(.single-module) > .about-team-module:first-child {
        border-right: 0 !important;
        border-bottom: 1px solid var(--theme-border, #34271f) !important;
    }
}

@media (max-width: 520px) {
    .about-team-modules {
        border-radius: 13px;
    }

    .about-team-modules > .about-team-module {
        padding: 16px;
    }
}


/* =========================================================
   TEAM FACTS — NO INTERNAL SCROLL
   2026-10-06
   ========================================================= */
.about-team-module.team-module .team-profile-facts {
    height: auto !important;
    min-height: 300px;
    overflow: visible !important;
    scrollbar-width: none;
}
.about-team-module.team-module .team-profile-facts::-webkit-scrollbar {
    display: none;
}

@media (max-width: 850px) {
    .about-team-module.team-module .team-profile-facts {
        height: auto !important;
        min-height: 250px;
        overflow: visible !important;
    }
}

@media (max-width: 520px) {
    .about-team-module.team-module .team-profile-facts {
        height: auto !important;
        min-height: 220px;
        overflow: visible !important;
    }
}


/* =========================================================
   TEAM BIO — CLICKABLE FIELD + LIGHTBOX
   2026-10-06
   ========================================================= */

.about-team-module.team-module button.team-profile-bio {
    display: block;
    width: 100%;
    text-align: left;
    font: inherit;
    background: transparent;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    cursor: pointer;
}

.about-team-module.team-module .team-profile-bio-open {
    position: relative;
}

.about-team-module.team-module .team-profile-bio-open::after {
    content: "Клик за голям преглед";
    position: sticky;
    display: block;
    width: fit-content;
    left: 100%;
    bottom: 0;
    margin: 18px 0 0 auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--theme-surface-alt, #100d0b);
    color: var(--theme-muted, #a79c95);
    border: 1px solid var(--theme-border, #3b2e27);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.team-bio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.88);
}

.team-bio-lightbox.is-open {
    display: flex;
}

html.team-bio-modal-open,
body.team-bio-modal-open {
    overflow: hidden !important;
}

.team-bio-lightbox-card {
    position: relative;
    width: min(980px, 96vw);
    max-height: 92vh;
    overflow: hidden;
    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 18px;
    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #fff);
    box-shadow: 0 24px 80px rgba(0,0,0,.45);
    cursor: pointer;
}

.team-bio-lightbox-content {
    max-height: 92vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.team-bio-lightbox-close {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 50%;
    background: var(--theme-surface-alt, #100d0b);
    color: var(--theme-text, #fff);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.team-profile-modal-copy {
    display: block !important;
    background: transparent;
}

.team-profile-modal-copy .team-profile-top {
    display: grid;
    grid-template-columns: minmax(250px, 34%) minmax(0, 1fr);
    min-height: 360px;
}

.team-profile-modal-copy .team-profile-photo {
    height: 360px !important;
    min-height: 360px !important;
}

.team-profile-modal-copy .team-profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.team-profile-modal-copy .team-profile-facts {
    height: auto !important;
    min-height: 360px !important;
    overflow: visible !important;
    padding: 38px 42px;
}

.team-profile-modal-copy .team-profile-bio-modal {
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: visible;
    padding: 30px 38px 38px;
    border-top: 1px solid var(--theme-border, #3b2e27);
}

.team-profile-modal-copy .team-profile-bio-modal p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
}

@media (max-width: 700px) {
    .team-bio-lightbox {
        padding: 10px;
    }

    .team-bio-lightbox-card {
        width: 100%;
        max-height: 96vh;
        border-radius: 14px;
    }

    .team-bio-lightbox-content {
        max-height: 96vh;
    }

    .team-profile-modal-copy .team-profile-top {
        grid-template-columns: 42% minmax(0, 1fr);
        min-height: 250px;
    }

    .team-profile-modal-copy .team-profile-photo {
        height: 250px !important;
        min-height: 250px !important;
    }

    .team-profile-modal-copy .team-profile-facts {
        min-height: 250px !important;
        padding: 24px 16px;
    }

    .team-profile-modal-copy .team-profile-bio-modal {
        padding: 22px 18px 28px;
    }
}


/* =========================================================
   ABOUT + TEAM — STRICT EQUAL HEIGHT COLUMNS
   2026-10-06
   ========================================================= */
@media (min-width: 851px) {
    .about-team-modules:not(.single-module) {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr) !important;
        align-items: stretch !important;
    }

    .about-team-modules:not(.single-module) > .about-team-module {
        display: flex !important;
        flex-direction: column !important;
        min-height: 100% !important;
        height: auto !important;
    }

    .about-team-modules:not(.single-module) .about-module-grid,
    .about-team-modules:not(.single-module) .team-profile-shell {
        flex: 1 1 auto !important;
        min-height: 0;
    }

    .about-team-modules:not(.single-module) .team-module .team-profile-shell {
        display: flex;
        flex-direction: column;
    }

    .about-team-modules:not(.single-module) .team-module .team-profile.is-active {
        flex: 1 1 auto;
    }
}


/* =========================================================
   ЗА НАС — LOCKED RANDOM PHOTO PREVIEW + FULL IMAGE LIGHTBOX
   2026-10-06
   ========================================================= */

.about-team-module .about-photo.about-photo-locked {
    width: 100%;
    height: 300px;
    min-height: 300px !important;
    max-height: 300px;
    overflow: hidden;
    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 14px;
    background: var(--theme-surface-alt, #100d0b);
}

.about-team-module .about-photo-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.about-team-module .about-photo-open > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: 0 !important;

    /*
      Нормалният изглед е фиксиран:
      показва снимката в рамката, без да променя размера на модула.
      Цялата снимка се вижда само след клик.
    */
    object-fit: cover;
    object-position: center;
}

.about-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100600;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 24px;

    background: rgba(0,0,0,.92);

    cursor: pointer;
}

.about-photo-lightbox.is-open {
    display: flex;
}

html.about-photo-modal-open,
body.about-photo-modal-open {
    overflow: hidden !important;
}

.about-photo-lightbox > img {
    display: block;

    width: auto;
    height: auto;

    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);

    object-fit: contain;

    border-radius: 10px;

    /*
      Няма zoom/minimize контроли.
      Кликът върху самата снимка също затваря.
    */
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
}

@media (max-width: 700px) {
    .about-team-module .about-photo.about-photo-locked {
        height: 260px;
        min-height: 260px !important;
        max-height: 260px;
    }

    .about-photo-lightbox {
        padding: 10px;
    }

    .about-photo-lightbox > img {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
    }
}


/* =========================================================
   ЕКИП — ЦЯЛА СНИМКА + БЕЗ ФИКСИРАН "КЛИК ЗА ГОЛЯМ ПРЕГЛЕД"
   2026-10-06
   ========================================================= */

/*
  Снимката на служителя вече винаги се побира цялата в заключения контейнер.
  Не се реже нито горе/долу, нито отстрани — така водният знак остава видим.
  Свободното място около портрет/пейзаж се запълва с фона на страницата.
*/
.about-team-module.team-module .team-profile-photo,
.about-team-module.team-module .team-profile-photo.team-photo-placeholder {
    background: var(--theme-bg, #0b0907) !important;
}

.about-team-module.team-module .team-profile-photo > img,
.about-team-module.team-module .team-profile-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center !important;

    background: var(--theme-bg, #0b0907) !important;
}

/*
  Биографията продължава да е кликаема и да отваря големия преглед,
  но махаме постоянно стоящия надпис върху текста.
*/
.about-team-module.team-module .team-profile-bio-open::after {
    content: none !important;
    display: none !important;
}


/* =========================================================
   FINAL IMAGE FIT — ABOUT + TEAM
   Цялата снимка се вижда в заключен контейнер без crop.
   Празните части използват фона на текущата тема.
   ========================================================= */

/* ABOUT preview */
.about-team-module .about-photo.about-photo-locked {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;

    overflow: hidden !important;
    background: var(--theme-bg, #0b0907) !important;
}

.about-team-module .about-photo.about-photo-locked .about-photo-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    height: 100% !important;

    background: var(--theme-bg, #0b0907) !important;
}

.about-team-module .about-photo.about-photo-locked .about-photo-open > img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: var(--theme-bg, #0b0907) !important;
}

/* TEAM preview */
.about-team-module.team-module .team-profile-photo {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;

    overflow: hidden !important;
    background: var(--theme-bg, #0b0907) !important;
}

.about-team-module.team-module .team-profile-photo > img,
.about-team-module.team-module .team-profile-photo img {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    background: var(--theme-bg, #0b0907) !important;
}

/* Keep the two public modules visually aligned. */
@media (min-width: 851px) {
    .about-team-modules:not(.single-module) > .about-team-module {
        display: flex !important;
        flex-direction: column !important;
    }

    .about-team-modules:not(.single-module) .about-module-grid,
    .about-team-modules:not(.single-module) .team-profile-shell {
        flex: 1 1 auto !important;
    }
}

/* Mobile */
@media (max-width: 850px) {
    .about-team-module .about-photo.about-photo-locked,
    .about-team-module.team-module .team-profile-photo {
        height: 260px !important;
        min-height: 260px !important;
        max-height: 260px !important;
    }
}


/* =========================================================
   POPUP / БАЛОННА КАРТА
   ========================================================= */

.site-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 100900;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 22px;

    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(3px);

    cursor: pointer;
}

.site-popup-overlay.is-open {
    display: flex;

    animation:
        sitePopupFade
        .18s
        ease-out
        both;
}

html.site-popup-open,
body.site-popup-open {
    overflow: hidden !important;
}

.site-popup-card {
    width: min(620px, 94vw);
    max-height: 88vh;

    overflow: auto;

    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 24px;

    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #ffffff);

    box-shadow:
        0 26px 80px
        rgba(0, 0, 0, .48);

    transform-origin: center;

    animation:
        sitePopupBubble
        .24s
        cubic-bezier(.2, .8, .2, 1)
        both;

    cursor: pointer;
}

.site-popup-image-wrap {
    width: 100%;
    max-height: 56vh;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--theme-bg, #0b0907);
}

.site-popup-image {
    display: block;

    width: 100%;
    height: auto;
    max-height: 56vh;

    object-fit: contain;

    background: var(--theme-bg, #0b0907);
}

.site-popup-text {
    padding: 24px 26px 28px;

    font-size: 17px;
    line-height: 1.65;
    text-align: center;

    overflow-wrap: anywhere;
}

.site-popup-image-wrap + .site-popup-text {
    border-top:
        1px solid
        var(--theme-border, #3b2e27);
}

@keyframes sitePopupFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes sitePopupBubble {
    from {
        opacity: 0;
        transform:
            scale(.84)
            translateY(12px);
    }

    to {
        opacity: 1;
        transform:
            scale(1)
            translateY(0);
    }
}

@media (max-width: 600px) {
    .site-popup-overlay {
        padding: 10px;
    }

    .site-popup-card {
        width: 100%;
        max-height: 92vh;

        border-radius: 18px;
    }

    .site-popup-image,
    .site-popup-image-wrap {
        max-height: 52vh;
    }

    .site-popup-text {
        padding: 20px 18px 22px;

        font-size: 15px;
        line-height: 1.58;
    }
}


/* Popup карта — задължително заглавие */
.site-popup-title {
    padding: 20px 24px 17px;
    border-bottom: 1px solid var(--theme-border, #3b2e27);
    color: var(--theme-text, #ffffff);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .site-popup-title {
        padding: 17px 18px 14px;
        font-size: 22px;
    }
}


/* Popup title — stronger heading */
.site-popup-title {
    font-size: 34px !important;
    line-height: 1.15;
    font-weight: 900;
}
@media (max-width: 600px) {
    .site-popup-title {
        font-size: 28px !important;
    }
}


/* =========================================================
   PUBLIC GALLERY
   ========================================================= */

.public-gallery-section {
    background: var(--theme-bg, #0b0907);
    color: var(--theme-text, #ffffff);
}

.public-gallery-section .section-title h2 {
    color: var(--theme-text, #ffffff);
}

.public-gallery-roots,
.public-gallery-children {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.public-gallery-roots {
    margin: 0 0 14px;
}

.public-gallery-children {
    margin: 0 0 28px;
}

.public-gallery-album-btn,
.public-gallery-subalbum-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 9px 16px;

    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 999px;

    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #ffffff);

    font-weight: 800;
    text-decoration: none;

    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.public-gallery-subalbum-btn {
    min-height: 36px;
    padding: 7px 13px;
    font-size: 13px;
}

.public-gallery-album-btn:hover,
.public-gallery-subalbum-btn:hover,
.public-gallery-album-btn.active,
.public-gallery-subalbum-btn.active {
    transform: translateY(-2px);

    border-color: var(--theme-accent, #f57524);

    background:
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 11%,
            var(--theme-surface, #15110e)
        );

    box-shadow:
        0 8px 20px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 18%,
            transparent
        );
}

.public-gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin: 0 0 18px;
    padding: 0 2px;
}

.public-gallery-heading h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(22px, 3vw, 30px);
    color: var(--theme-text, #ffffff);
}

.public-gallery-heading p {
    max-width: 720px;
    margin: 6px 0 0;
    color: var(--theme-muted, #a79c95);
    line-height: 1.55;
}

.public-gallery-count {
    flex: 0 0 auto;
    color: var(--theme-muted, #a79c95);
    font-size: 13px;
    font-weight: 800;
}

.public-gallery-grid {
    display: grid;
    grid-template-columns:
        repeat(
            5,
            minmax(0, 1fr)
        );
    gap: 14px;
}

.public-gallery-tile {
    position: relative;

    aspect-ratio: 1 / 1;

    padding: 0;
    overflow: hidden;

    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 16px;

    background: var(--theme-surface-alt, #100d0b);

    box-shadow:
        0 8px 20px
        var(--theme-shadow, rgba(0,0,0,.2));

    cursor: pointer;

    transition:
        transform .22s ease,
        border-color .22s ease,
        box-shadow .22s ease;
}

.public-gallery-thumb {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--theme-surface-alt, #100d0b);
}

.public-gallery-thumb img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .34s ease,
        filter .34s ease;
}

.public-gallery-tile-overlay {
    position: absolute;
    z-index: 2;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 30px 12px 11px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.78),
            rgba(0,0,0,.45) 58%,
            transparent
        );

    color: #ffffff;

    text-align: left;

    transform: translateY(14px);
    opacity: .92;

    transition:
        transform .24s ease,
        opacity .24s ease;
}

.public-gallery-tile-overlay strong {
    font-size: 14px;
    line-height: 1.25;
}

.public-gallery-tile-overlay span {
    display: -webkit-box;
    overflow: hidden;

    font-size: 11px;
    line-height: 1.35;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.public-gallery-tile:hover {
    transform:
        translateY(-5px)
        scale(1.015);

    border-color: var(--theme-accent, #f57524);

    box-shadow:
        0 18px 34px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 24%,
            transparent
        );
}

.public-gallery-tile:hover .public-gallery-thumb img {
    transform: scale(1.065);
    filter: saturate(1.08);
}

.public-gallery-tile:hover .public-gallery-tile-overlay {
    transform: translateY(0);
    opacity: 1;
}

.public-gallery-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;

    margin-top: 24px;
}

.public-gallery-pagination a,
.public-gallery-pagination span {
    min-width: 40px;
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 7px 10px;

    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 10px;

    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #ffffff);

    font-weight: 900;
    text-decoration: none;
}

.public-gallery-pagination a:hover,
.public-gallery-pagination .current {
    border-color: var(--theme-accent, #f57524);

    background: var(--theme-accent, #f57524);
    color: var(--theme-accent-text, #ffffff);
}

.public-gallery-empty {
    min-height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 25px;

    border: 1px dashed var(--theme-border, #3b2e27);
    border-radius: 16px;

    background: var(--theme-surface, #15110e);
    color: var(--theme-muted, #a79c95);

    text-align: center;
}

.public-gallery-empty span {
    font-size: 44px;
}

.public-gallery-empty strong {
    color: var(--theme-text, #ffffff);
}


/* =========================================================
   GALLERY LIGHTBOX
   ========================================================= */

html.gallery-lightbox-open,
body.gallery-lightbox-open {
    overflow: hidden !important;
}

.gallery-lightbox {
    position: fixed;
    z-index: 102500;

    inset: 0;

    display: none;
    align-items: center;
    justify-content: center;

    padding:
        28px
        28px
        110px;

    background:
        color-mix(
            in srgb,
            #000000 84%,
            var(--theme-accent, #f57524) 6%
        );

    backdrop-filter: blur(8px);
}

.gallery-lightbox.is-open {
    display: flex;

    animation:
        galleryLbFade
        .18s
        ease-out
        both;
}

.gallery-lightbox-stage {
    position: relative;

    width: min(1160px, 94vw);
    height: min(760px, 78vh);

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 40%,
            var(--theme-border, #3b2e27)
        );

    border-radius: 18px;

    background: var(--theme-surface-alt, #100d0b);

    box-shadow:
        0 30px 90px rgba(0,0,0,.52);

    overflow: hidden;
}

.gallery-lightbox-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}

.gallery-lightbox-caption {
    position: absolute;
    z-index: 3;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 42px 18px 15px;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,.76),
            rgba(0,0,0,.34) 64%,
            transparent
        );

    color: #ffffff;
}

.gallery-lightbox-caption strong {
    font-size: 16px;
}

.gallery-lightbox-caption span {
    max-width: 860px;

    font-size: 12px;
    line-height: 1.45;
}

.gallery-lightbox-counter {
    position: fixed;
    z-index: 102510;

    top: 22px;
    left: 50%;

    transform: translateX(-50%);

    padding: 7px 13px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 42%,
            transparent
        );

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--theme-surface, #15110e) 88%,
            transparent
        );

    color: var(--theme-text, #ffffff);

    font-size: 12px;
    font-weight: 900;

    backdrop-filter: blur(8px);
}


/* =========================================================
   FLASH-STYLE LIGHTBOX CONTROLS
   ========================================================= */

.gallery-lightbox-controls {
    position: fixed;
    z-index: 102520;

    left: 50%;
    bottom: 24px;

    transform: translateX(-50%);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    padding: 10px 14px;

    border: 1px solid
        color-mix(
            in srgb,
            var(--theme-border, #3b2e27) 72%,
            transparent
        );

    border-radius: 999px;

    background:
        color-mix(
            in srgb,
            var(--theme-surface, #15110e) 76%,
            transparent
        );

    backdrop-filter: blur(12px);

    box-shadow:
        0 14px 35px
        rgba(0,0,0,.34);
}

.gallery-fx-btn {
    position: relative;
    isolation: isolate;

    width: 58px;
    height: 58px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 50%;

    background: var(--theme-surface-alt, #100d0b);
    color: var(--theme-text, #ffffff);

    box-shadow:
        8px 8px 0
        color-mix(
            in srgb,
            var(--theme-text, #ffffff) 16%,
            transparent
        ),
        inset 0 1px 0
        rgba(255,255,255,.12);

    cursor: pointer;

    transform: translate(0, 0);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        color .18s ease,
        background .18s ease,
        border-color .18s ease;
}

.gallery-fx-btn::before {
    content: "";

    position: absolute;
    z-index: -2;

    inset: -4px;

    border-radius: inherit;

    background:
        conic-gradient(
            from 0deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 16%,
                transparent
            ) 0deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 34%,
                transparent
            ) 86deg,
            var(--theme-accent, #f57524) 118deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 56%,
                transparent
            ) 154deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 20%,
                transparent
            ) 235deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 12%,
                transparent
            ) 360deg
        );

    opacity: 0;

    filter:
        drop-shadow(
            0 0 8px
            var(--theme-accent, #f57524)
        );

    transition:
        opacity .16s ease;
}

.gallery-fx-btn::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 1px;

    border-radius: inherit;

    background: var(--theme-surface-alt, #100d0b);
}

.gallery-fx-btn > span {
    position: relative;
    z-index: 3;

    font-size: 34px;
    line-height: 1;

    transition:
        transform .18s ease,
        text-shadow .18s ease;
}

.gallery-fx-play > span {
    font-size: 24px;
}

.gallery-fx-close > span {
    font-size: 29px;
}

.gallery-fx-btn:hover,
.gallery-fx-btn:focus-visible {
    transform: translate(3px, 3px);

    border-color: var(--theme-accent, #f57524);

    color: var(--theme-accent, #f57524);

    box-shadow:
        0 0 18px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 48%,
            transparent
        ),
        inset 0 0 16px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 13%,
            transparent
        );

    outline: none;
}

.gallery-fx-btn:hover::before,
.gallery-fx-btn:focus-visible::before {
    opacity: 1;

    animation:
        galleryNeonClock
        2.15s
        linear
        infinite;
}

.gallery-fx-prev:hover > span,
.gallery-fx-prev:focus-visible > span {
    transform: translateX(-4px);
}

.gallery-fx-next:hover > span,
.gallery-fx-next:focus-visible > span {
    transform: translateX(4px);
}

.gallery-fx-close:hover > span,
.gallery-fx-close:focus-visible > span {
    transform: rotate(90deg);
}

.gallery-fx-btn:active {
    transform:
        translate(5px, 5px)
        scale(.94);
}

.gallery-fx-btn::marker {
    display: none;
}

.gallery-fx-btn[data-gallery-tip] {
    overflow: visible;
}

.gallery-fx-btn[data-gallery-tip]:hover > span::after {
    content: "";
}

.gallery-fx-btn[data-gallery-tip] {
    --gallery-tip-y: -43px;
}

.gallery-fx-btn[data-gallery-tip]:hover::marker {
    content: "";
}

.gallery-lightbox-controls .gallery-fx-btn[data-gallery-tip]::selection {
    background: transparent;
}

.gallery-lightbox-controls .gallery-fx-btn[data-gallery-tip] > span {
    pointer-events: none;
}

.gallery-lightbox-controls .gallery-fx-btn[data-gallery-tip]:hover::after,
.gallery-lightbox-controls .gallery-fx-btn[data-gallery-tip]:focus-visible::after {
    /*
     * Вътрешният ::after е фонът на бутона.
     * Tooltip-а се прави с title/aria-label, за да не пречи
     * на неоновия ring.
     */
}

.gallery-lightbox.is-playing .gallery-fx-play {
    color: var(--theme-accent, #f57524);

    animation:
        galleryPlayPulse
        1.6s
        ease-in-out
        infinite;
}

.gallery-lightbox.is-playing .gallery-fx-play::before {
    opacity: 1;

    animation:
        galleryNeonClock
        2.15s
        linear
        infinite;
}

@keyframes galleryNeonClock {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes galleryPlayPulse {
    0%,
    100% {
        filter:
            drop-shadow(
                0 0 2px
                color-mix(
                    in srgb,
                    var(--theme-accent, #f57524) 25%,
                    transparent
                )
            );
    }

    50% {
        filter:
            drop-shadow(
                0 0 12px
                color-mix(
                    in srgb,
                    var(--theme-accent, #f57524) 72%,
                    transparent
                )
            );
    }
}

@keyframes galleryLbFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* =========================================================
   PUBLIC GALLERY RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .public-gallery-grid {
        grid-template-columns:
            repeat(
                4,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 850px) {
    .public-gallery-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

    .gallery-lightbox {
        padding:
            18px
            14px
            104px;
    }

    .gallery-lightbox-stage {
        width: 96vw;
        height: 76vh;
    }
}

@media (max-width: 620px) {
    .public-gallery-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .public-gallery-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 10px;
    }

    .public-gallery-tile {
        border-radius: 12px;
    }

    .public-gallery-tile-overlay {
        transform: none;
        opacity: 1;

        padding:
            24px
            9px
            8px;
    }

    .gallery-lightbox {
        padding:
            12px
            8px
            92px;
    }

    .gallery-lightbox-stage {
        width: 100%;
        height: 72vh;

        border-radius: 13px;
    }

    .gallery-lightbox-caption {
        padding:
            34px
            12px
            10px;
    }

    .gallery-lightbox-controls {
        bottom: 13px;
        gap: 9px;

        padding: 8px 10px;
    }

    .gallery-fx-btn {
        width: 48px;
        height: 48px;

        box-shadow:
            6px 6px 0
            color-mix(
                in srgb,
                var(--theme-text, #ffffff) 14%,
                transparent
            );
    }

    .gallery-fx-btn > span {
        font-size: 28px;
    }

    .gallery-fx-play > span {
        font-size: 20px;
    }

    .gallery-fx-close > span {
        font-size: 25px;
    }
}

@media (max-width: 390px) {
    .public-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-lightbox-controls {
        width: calc(100vw - 18px);
        justify-content: space-between;
    }
}


/* =========================================================
   GALLERY PREVIEW ON HOME
   ========================================================= */

.public-gallery-preview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-gallery-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.gallery-open-full-btn {
    position: relative;
    isolation: isolate;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: min(360px, 90vw);
    min-height: 58px;

    padding: 0;

    border: 1px solid var(--theme-border, #3b2e27);
    border-radius: 999px;

    background: var(--theme-surface-alt, #100d0b);
    color: var(--theme-text, #ffffff);

    text-decoration: none;

    box-shadow:
        10px 10px 0
        color-mix(
            in srgb,
            var(--theme-text, #ffffff) 14%,
            transparent
        ),
        inset 0 1px 0 rgba(255,255,255,.12);

    transform: translate(0,0);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.gallery-open-full-btn::before {
    content: "";

    position: absolute;
    z-index: -2;

    inset: -4px;

    border-radius: inherit;

    background:
        conic-gradient(
            from 0deg,
            color-mix(in srgb, var(--theme-accent, #f57524) 14%, transparent) 0deg,
            color-mix(in srgb, var(--theme-accent, #f57524) 32%, transparent) 82deg,
            var(--theme-accent, #f57524) 118deg,
            color-mix(in srgb, var(--theme-accent, #f57524) 56%, transparent) 154deg,
            color-mix(in srgb, var(--theme-accent, #f57524) 19%, transparent) 236deg,
            color-mix(in srgb, var(--theme-accent, #f57524) 11%, transparent) 360deg
        );

    opacity: 0;

    filter:
        drop-shadow(
            0 0 10px
            var(--theme-accent, #f57524)
        );

    transition: opacity .18s ease;
}

.gallery-open-full-btn::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 1px;

    border-radius: inherit;

    background: var(--theme-surface-alt, #100d0b);
}

.gallery-open-full-btn-inner {
    position: relative;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 24px;

    font-size: 16px;
    font-weight: 900;
    letter-spacing: .2px;
}

.gallery-open-full-btn-inner b {
    font-size: 28px;
    line-height: 1;

    transition: transform .18s ease;
}

.gallery-open-full-btn:hover,
.gallery-open-full-btn:focus-visible {
    transform: translate(4px,4px);

    border-color: var(--theme-accent, #f57524);
    color: var(--theme-accent, #f57524);

    box-shadow:
        0 0 20px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 50%,
            transparent
        ),
        inset 0 0 17px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 12%,
            transparent
        );

    outline: none;
}

.gallery-open-full-btn:hover::before,
.gallery-open-full-btn:focus-visible::before {
    opacity: 1;

    animation:
        galleryNeonClock
        2.15s
        linear
        infinite;
}

.gallery-open-full-btn:hover .gallery-open-full-btn-inner b,
.gallery-open-full-btn:focus-visible .gallery-open-full-btn-inner b {
    transform: translateX(5px);
}

.gallery-open-full-btn:active {
    transform:
        translate(6px,6px)
        scale(.98);
}


/* =========================================================
   FULL PUBLIC GALLERY PAGE
   ========================================================= */

.public-gallery-page {
    min-height: 70vh;
}

.public-gallery-full-page {
    padding-top: 48px;
}

.public-gallery-full-page .section-title h1 {
    margin: 0;
    font-family: Georgia, serif;
    color: var(--theme-text, #ffffff);
    font-size: 38px;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .public-gallery-preview-grid {
        grid-template-columns:
            repeat(
                5,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 850px) {
    .public-gallery-preview-grid {
        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }
}

@media (max-width: 620px) {
    .public-gallery-preview-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    .gallery-open-full-btn {
        min-width: min(320px, 92vw);
    }
}


/* =========================================================
   GALLERY NEON RING — CLOCK SWEEP (NO ROTATING SHAPE)
   Формата на бутона остава неподвижна. Движи се само
   светлинният пик по контура, като часовникова стрелка.
   ========================================================= */

@property --gallery-neon-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.gallery-open-full-btn::before,
.gallery-fx-btn::before {
    transform: none !important;
    animation: none;

    padding: 4px;

    background:
        conic-gradient(
            from var(--gallery-neon-angle),
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 18%,
                transparent
            ) 0deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 22%,
                transparent
            ) 210deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 34%,
                transparent
            ) 280deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 58%,
                transparent
            ) 320deg,
            var(--theme-accent, #f57524) 346deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 72%,
                transparent
            ) 354deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 24%,
                transparent
            ) 360deg
        ) !important;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    filter:
        drop-shadow(
            0 0 5px
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 52%,
                transparent
            )
        )
        drop-shadow(
            0 0 10px
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 24%,
                transparent
            )
        ) !important;
}

.gallery-open-full-btn:hover::before,
.gallery-open-full-btn:focus-visible::before,
.gallery-fx-btn:hover::before,
.gallery-fx-btn:focus-visible::before,
.gallery-lightbox.is-playing .gallery-fx-play::before {
    opacity: 1;

    animation:
        galleryNeonClockSweep
        2.6s
        linear
        infinite !important;
}

@keyframes galleryNeonClockSweep {
    from {
        --gallery-neon-angle: 0deg;
    }

    to {
        --gallery-neon-angle: 360deg;
    }
}


/* =========================================================
   PUBLIC GALLERY ALBUM BUTTONS — FLASH / NEON CLOCK STYLE
   ========================================================= */

.public-gallery-album-btn,
.public-gallery-subalbum-btn {
    --gallery-album-shadow-x: 8px;
    --gallery-album-shadow-y: 8px;
    --gallery-album-ring-gap: -4px;

    position: relative;
    isolation: isolate;

    overflow: visible;

    border: 1px solid var(--theme-border, #3b2e27) !important;

    background: var(--theme-surface-alt, #100d0b) !important;
    color: var(--theme-text, #ffffff) !important;

    box-shadow:
        var(--gallery-album-shadow-x)
        var(--gallery-album-shadow-y)
        0
        color-mix(
            in srgb,
            var(--theme-text, #ffffff) 13%,
            transparent
        ),
        inset 0 1px 0 rgba(255,255,255,.1) !important;

    transform: translate(0,0);

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease,
        color .18s ease,
        background .18s ease !important;
}

.public-gallery-album-btn {
    min-height: 48px !important;
    padding: 10px 19px !important;

    border-radius: 999px !important;

    font-size: 15px;
    font-weight: 900;
}

.public-gallery-subalbum-btn {
    --gallery-album-shadow-x: 6px;
    --gallery-album-shadow-y: 6px;
    --gallery-album-ring-gap: -3px;

    min-height: 38px !important;
    padding: 7px 14px !important;

    border-radius: 999px !important;

    font-size: 13px;
    font-weight: 850;
}

.public-gallery-album-btn::before,
.public-gallery-subalbum-btn::before {
    content: "";

    position: absolute;
    z-index: -2;

    inset: var(--gallery-album-ring-gap);

    border-radius: inherit;

    padding: 4px;

    background:
        conic-gradient(
            from var(--gallery-neon-angle),
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 16%,
                transparent
            ) 0deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 20%,
                transparent
            ) 210deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 30%,
                transparent
            ) 278deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 54%,
                transparent
            ) 318deg,
            var(--theme-accent, #f57524) 346deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 70%,
                transparent
            ) 354deg,
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 22%,
                transparent
            ) 360deg
        );

    opacity: 0;

    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;

    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;

    filter:
        drop-shadow(
            0 0 5px
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 46%,
                transparent
            )
        )
        drop-shadow(
            0 0 9px
            color-mix(
                in srgb,
                var(--theme-accent, #f57524) 22%,
                transparent
            )
        );

    transition: opacity .16s ease;
}

.public-gallery-album-btn::after,
.public-gallery-subalbum-btn::after {
    content: "";

    position: absolute;
    z-index: -1;

    inset: 1px;

    border-radius: inherit;

    background: var(--theme-surface-alt, #100d0b);
}

.public-gallery-album-btn:hover,
.public-gallery-album-btn:focus-visible,
.public-gallery-subalbum-btn:hover,
.public-gallery-subalbum-btn:focus-visible {
    transform: translate(3px,3px) !important;

    border-color: var(--theme-accent, #f57524) !important;
    color: var(--theme-accent, #f57524) !important;

    box-shadow:
        0 0 18px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 45%,
            transparent
        ),
        inset 0 0 14px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 11%,
            transparent
        ) !important;

    outline: none;
}

.public-gallery-album-btn:hover::before,
.public-gallery-album-btn:focus-visible::before,
.public-gallery-subalbum-btn:hover::before,
.public-gallery-subalbum-btn:focus-visible::before {
    opacity: 1;

    animation:
        galleryNeonClockSweep
        2.6s
        linear
        infinite;
}

.public-gallery-album-btn:active,
.public-gallery-subalbum-btn:active {
    transform:
        translate(5px,5px)
        scale(.97) !important;
}

/*
 * Избраният албум свети постоянно, но не се върти.
 * Това помага да се вижда ясно къде се намира клиентът.
 */
.public-gallery-album-btn.active,
.public-gallery-subalbum-btn.active {
    border-color: var(--theme-accent, #f57524) !important;

    background:
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 9%,
            var(--theme-surface-alt, #100d0b)
        ) !important;

    color: var(--theme-accent, #f57524) !important;

    box-shadow:
        4px 4px 0
        color-mix(
            in srgb,
            var(--theme-text, #ffffff) 9%,
            transparent
        ),
        0 0 10px
        color-mix(
            in srgb,
            var(--theme-accent, #f57524) 24%,
            transparent
        ) !important;
}

.public-gallery-album-btn.active::before,
.public-gallery-subalbum-btn.active::before {
    opacity: .42;
    animation: none !important;
    --gallery-neon-angle: 0deg;
}

@media (max-width: 620px) {
    .public-gallery-album-btn {
        min-height: 44px !important;
        padding: 9px 16px !important;
        font-size: 14px;
    }

    .public-gallery-subalbum-btn {
        min-height: 36px !important;
        padding: 7px 12px !important;
        font-size: 12px;
    }
}

/* =========================================================
   VIDEO GALLERY — REAL MODULE 08.10.2026
========================================================= */
.video-grid.video-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.public-video-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #fff);
    border-color: var(--theme-border, #4e382e);
}

.public-video-card.is-featured {
    box-shadow: 0 0 0 1px var(--theme-accent, #f57524), 0 18px 34px var(--theme-shadow, rgba(0,0,0,.28));
}

.public-video-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    background: #0b0907;
    overflow: hidden;
    cursor: pointer;
    display: block;
}

.public-video-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .28s ease, filter .28s ease;
}

.public-video-card:hover .public-video-cover img {
    transform: scale(1.035);
    filter: brightness(.9);
}

.public-video-cover-fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 50% 35%, rgba(245,117,36,.28), transparent 42%),
        linear-gradient(145deg, #27140c, #0d0a08);
    font-size: 62px;
}

.public-video-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding-left: 4px;
    background: color-mix(in srgb, var(--theme-accent, #f57524) 88%, transparent);
    color: var(--theme-accent-text, #fff);
    font-size: 27px;
    box-shadow: 0 10px 30px rgba(0,0,0,.36);
    transition: transform .2s ease, box-shadow .2s ease;
}

.public-video-cover:hover .public-video-play,
.public-video-cover:focus-visible .public-video-play {
    transform: translate(-50%, -50%) scale(1.08);
    box-shadow: 0 12px 34px rgba(0,0,0,.46);
}

.public-video-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(19,13,9,.9);
    color: #ffd477;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
}

.public-video-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 17px 18px 18px;
    text-align: left;
}

.public-video-card-body h2,
.public-video-card-body h3 {
    margin: 7px 0 8px;
    padding: 0;
    color: var(--theme-text, #fff);
    font-family: Georgia, serif;
    font-size: 20px;
    line-height: 1.25;
}

.public-video-card-body p {
    margin: 0 0 15px;
    padding: 0;
    color: var(--theme-muted, #d8cec7);
    line-height: 1.55;
    font-size: 14px;
}

.public-video-category-label {
    align-self: flex-start;
    display: inline-flex;
    padding: 4px 8px;
    border: 1px solid var(--theme-border, #4e382e);
    border-radius: 999px;
    background: var(--theme-surface-alt, #100d0b);
    color: var(--theme-accent, #f57524);
    font-size: 11px;
    font-weight: 900;
}

.public-video-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.public-video-actions .btn {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-weight: 900;
    text-decoration: none;
    cursor: pointer;
}

.public-video-watch-btn {
    background: var(--theme-accent, #f57524);
    color: var(--theme-accent-text, #fff);
}

.public-video-order-btn {
    background: #2f8f48;
    color: #fff;
}

.public-video-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.public-video-more-btn {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-accent, #f57524);
    color: var(--theme-accent-text, #fff);
    font-weight: 900;
    text-decoration: none;
}

.public-video-empty {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px;
    border: 1px dashed var(--theme-border, #4e382e);
    border-radius: 13px;
    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #fff);
    text-align: center;
}

.public-video-empty span {
    font-size: 44px;
}

.public-video-categories {
    display: flex;
    justify-content: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.public-video-category-btn {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--theme-border, #4e382e);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #fff);
    font-weight: 900;
    text-decoration: none;
}

.public-video-category-btn.active,
.public-video-category-btn:hover {
    border-color: var(--theme-accent, #f57524);
    background: var(--theme-accent, #f57524);
    color: var(--theme-accent-text, #fff);
}

.public-video-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.public-video-pagination a,
.public-video-pagination span {
    min-width: 42px;
    height: 42px;
    padding: 0 11px;
    display: grid;
    place-items: center;
    border: 1px solid var(--theme-border, #4e382e);
    border-radius: 9px;
    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #fff);
    font-weight: 900;
    text-decoration: none;
}

.public-video-pagination .active {
    border-color: var(--theme-accent, #f57524);
    background: var(--theme-accent, #f57524);
    color: var(--theme-accent-text, #fff);
}

.public-video-modal[hidden] {
    display: none !important;
}

.public-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.public-video-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(0,0,0,.82);
    cursor: pointer;
}

.public-video-modal-dialog {
    position: relative;
    z-index: 1;
    /* Ограничаваме ширината и спрямо височината на екрана без рисков calc() синтаксис. */
    width: min(1040px, 94vw, 145vh);
    width: min(1040px, 94vw, 145dvh);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
    border: 1px solid var(--theme-border, #4e382e);
    border-radius: 14px;
    background: var(--theme-surface, #15110e);
    color: var(--theme-text, #fff);
    box-shadow: 0 24px 70px rgba(0,0,0,.55);
}

.public-video-modal-head {
    min-height: 58px;
    padding: 12px 14px 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--theme-border, #4e382e);
}

.public-video-modal-head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
}

.public-video-modal-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid var(--theme-border, #4e382e);
    border-radius: 9px;
    background: var(--theme-surface-alt, #100d0b);
    color: var(--theme-text, #fff);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.public-video-player {
    position: relative;
    isolation: isolate;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
    user-select: none;
    -webkit-user-select: none;
}

.public-video-media-layer {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    background: #000;
}

.public-video-media-layer iframe,
.public-video-media-layer video {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    background: #000;
}

.public-video-watermark {
    position: absolute;
    z-index: 2147483000;
    max-width: 40%;
    max-height: 40%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    filter: drop-shadow(0 2px 7px rgba(0,0,0,.45));
}

.public-video-watermark[hidden] {
    display: none !important;
}

.public-video-watermark img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.public-video-watermark.wm-top-left { top: 2.5%; left: 2.2%; }
.public-video-watermark.wm-top-right { top: 2.5%; right: 2.2%; }
.public-video-watermark.wm-bottom-left { bottom: 8%; left: 2.2%; }
.public-video-watermark.wm-bottom-right { bottom: 8%; right: 2.2%; }
.public-video-watermark.wm-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

html.public-video-modal-open,
body.public-video-modal-open {
    overflow: hidden !important;
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    overscroll-behavior: none;
    scrollbar-width: none;
}

html.public-video-modal-open::-webkit-scrollbar,
body.public-video-modal-open::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body.public-video-modal-open {
    touch-action: none;
}

.public-video-modal {
    overflow: hidden;
    overscroll-behavior: none;
}

.public-order-row.public-order-video-target {
    outline: 3px solid var(--theme-accent, #f57524);
    outline-offset: 3px;
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--theme-accent, #f57524) 18%, transparent);
    transition: outline-color .25s ease, box-shadow .25s ease;
}

.public-video-full-section {
    min-height: 60vh;
}

@media (max-width: 980px) {
    .video-grid.video-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .video-grid.video-gallery-grid {
        grid-template-columns: 1fr;
    }

    .public-video-modal {
        padding: 10px;
    }

    .public-video-modal-dialog {
        width: min(100%, calc((96vh - 58px) * 16 / 9));
        max-height: none;
        overflow: hidden;
    }

    .public-video-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-video-actions .btn {
        width: 100%;
    }
}


/* VIDEO PLAYER - WATERMARK-SAFE FULLSCREEN */
.public-video-fullscreen-btn {
    position: absolute;
    top: 12px;
    z-index: 2147483646;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 10px;
    background: rgba(8,7,6,.72);
    color: #fff;
    font: 700 28px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.public-video-fullscreen-btn.fs-right { right: 12px; }
.public-video-fullscreen-btn.fs-left { left: 12px; }
.public-video-fullscreen-btn:hover { background: rgba(20,16,13,.9); }

.public-video-player:fullscreen,
.public-video-player:-webkit-full-screen,
.public-video-player.is-css-fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: #000 !important;
    overflow: hidden !important;
}

.public-video-player.is-css-fullscreen {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483640 !important;
}

.public-video-player:fullscreen .public-video-media-layer,
.public-video-player:-webkit-full-screen .public-video-media-layer,
.public-video-player.is-css-fullscreen .public-video-media-layer {
    inset: 0 !important;
}

.public-video-player:fullscreen .public-video-watermark.wm-bottom-left,
.public-video-player:fullscreen .public-video-watermark.wm-bottom-right,
.public-video-player:-webkit-full-screen .public-video-watermark.wm-bottom-left,
.public-video-player:-webkit-full-screen .public-video-watermark.wm-bottom-right,
.public-video-player.is-css-fullscreen .public-video-watermark.wm-bottom-left,
.public-video-player.is-css-fullscreen .public-video-watermark.wm-bottom-right {
    bottom: 4% !important;
}

/* Hide the native local-video fullscreen control: use our wrapper fullscreen so the watermark stays visible. */
.public-video-media-layer video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* =========================================================
   CUSTOMER ACCOUNTS / PROFILE — V1 — 2026-10-09
   ========================================================= */
.account-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:46px;
    padding:12px 18px;
    border:1px solid var(--theme-border, #3b2e27);
    border-radius:30px;
    background:var(--theme-surface-alt, #100d0b);
    color:var(--theme-text, #fff);
    font-size:14px;
    font-weight:800;
    white-space:nowrap;
    transition:.2s ease;
}
.account-btn:hover,
.account-btn.active {
    border-color:var(--theme-accent, #f57524);
    color:var(--theme-accent, #f57524);
    transform:translateY(-1px);
}
.customer-page {
    min-height:70vh;
    background:var(--theme-bg, #0b0907);
    color:var(--theme-text, #fff);
}
.customer-hero {
    padding:70px 0 38px;
    text-align:center;
    background:linear-gradient(180deg, color-mix(in srgb, var(--theme-accent, #f57524) 11%, transparent), transparent);
}
.customer-kicker,
.customer-card-kicker {
    color:var(--theme-accent, #f57524);
    font-size:12px;
    font-weight:900;
    letter-spacing:1.8px;
}
.customer-hero h1 {
    margin:8px 0 10px;
    font-family:Georgia,serif;
    font-size:44px;
}
.customer-hero p {
    width:min(720px,100%);
    margin:0 auto;
    color:var(--theme-muted, #a79c95);
    line-height:1.65;
}
.customer-auth-wrap {
    width:min(640px,100%);
}
.customer-card {
    padding:24px;
    border:1px solid var(--theme-border, #3b2e27);
    border-radius:16px;
    background:var(--theme-surface, #15110e);
    box-shadow:0 18px 44px var(--theme-shadow, rgba(0,0,0,.2));
}
.customer-card h2 {
    margin:5px 0 18px;
    font-family:Georgia,serif;
    font-size:28px;
}
.customer-card-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}
.customer-card-head h2 { margin-bottom:5px; }
.customer-card-head p {
    color:var(--theme-muted, #a79c95);
    font-size:13px;
    line-height:1.5;
}
.customer-form {
    display:grid;
    gap:15px;
}
.customer-form label {
    display:grid;
    gap:7px;
    color:var(--theme-text, #fff);
    font-size:14px;
    font-weight:800;
}
.customer-form label small {
    color:var(--theme-muted, #a79c95);
    font-weight:500;
}
.customer-form input,
.customer-form select,
.customer-form textarea {
    width:100%;
    min-height:46px;
    padding:11px 13px;
    border:1px solid var(--theme-border, #3b2e27);
    border-radius:9px;
    outline:none;
    background:var(--theme-surface-alt, #100d0b);
    color:var(--theme-text, #fff);
    font:inherit;
}
.customer-form input:focus,
.customer-form select:focus,
.customer-form textarea:focus {
    border-color:var(--theme-accent, #f57524);
    box-shadow:0 0 0 3px color-mix(in srgb, var(--theme-accent, #f57524) 15%, transparent);
}
.customer-form input[readonly] {
    opacity:.72;
    cursor:not-allowed;
}
.customer-primary-action {
    width:100%;
    min-height:48px;
    border:0;
    cursor:pointer;
}
.customer-auth-switch {
    margin:18px 0 0;
    text-align:center;
    color:var(--theme-muted, #a79c95);
}
.customer-auth-switch a {
    color:var(--theme-accent, #f57524);
    font-weight:800;
}
.customer-notice {
    margin:0 0 18px;
    padding:13px 15px;
    border-radius:10px;
    border:1px solid var(--theme-border, #3b2e27);
    line-height:1.5;
    font-weight:700;
}
.customer-notice.success {
    border-color:#4e9f66;
    background:rgba(60,150,86,.14);
}
.customer-notice.error {
    border-color:#c95f55;
    background:rgba(190,70,60,.14);
}
.customer-notice.info {
    border-color:var(--theme-accent, #f57524);
    background:color-mix(in srgb, var(--theme-accent, #f57524) 9%, var(--theme-surface, #15110e));
}
.customer-profile-grid {
    display:grid;
    grid-template-columns:minmax(280px,.8fr) minmax(0,1.2fr);
    gap:20px;
    align-items:start;
}
.customer-addresses-card { min-width:0; }
.customer-address-list {
    display:grid;
    gap:12px;
}
.customer-address-card {
    padding:15px;
    border:1px solid var(--theme-border, #3b2e27);
    border-radius:12px;
    background:var(--theme-surface-alt, #100d0b);
}
.customer-address-card.is-primary {
    border-color:var(--theme-accent, #f57524);
}
.customer-address-top > div {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}
.customer-address-card p {
    margin:9px 0 12px;
    color:var(--theme-muted, #a79c95);
    line-height:1.55;
}
.customer-badge {
    display:inline-flex;
    align-items:center;
    min-height:24px;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:900;
}
.customer-badge.primary {
    background:color-mix(in srgb, var(--theme-accent, #f57524) 18%, transparent);
    color:var(--theme-accent, #f57524);
}
.customer-badge.unavailable {
    background:rgba(190,70,60,.14);
    color:#d86a61;
}
.customer-address-actions {
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}
.customer-address-actions form { margin:0; }
.customer-link-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:7px 11px;
    border:1px solid var(--theme-border, #3b2e27);
    border-radius:8px;
    background:var(--theme-surface-alt, #100d0b);
    color:var(--theme-text, #fff);
    font-size:12px;
    font-weight:800;
    cursor:pointer;
}
.customer-link-btn:hover {
    border-color:var(--theme-accent, #f57524);
    color:var(--theme-accent, #f57524);
}
.customer-link-btn.danger {
    border-color:#a64f49;
    color:#d86a61;
}
.customer-empty {
    padding:16px;
    border:1px dashed var(--theme-border, #3b2e27);
    border-radius:10px;
    color:var(--theme-muted, #a79c95);
    line-height:1.55;
}
.customer-address-form-card {
    margin-top:20px;
}
.customer-form-grid {
    display:grid;
    gap:12px;
}
.customer-form-grid.two { grid-template-columns:repeat(2,minmax(0,1fr)); }
.customer-form-grid.four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.customer-address-type {
    display:flex;
    align-items:center;
    gap:18px;
    padding:13px 14px;
    border:1px solid var(--theme-border, #3b2e27);
    border-radius:10px;
}
.customer-address-type legend {
    padding:0 6px;
    font-size:13px;
    font-weight:900;
}
.customer-address-type label {
    display:flex;
    grid-template-columns:none;
    align-items:center;
    gap:7px;
    cursor:pointer;
}
.customer-address-type input {
    width:auto;
    min-height:0;
}
@media (max-width:900px) {
    .customer-profile-grid { grid-template-columns:1fr; }
    .customer-form-grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:650px) {
    .account-btn { min-height:42px; padding:10px 14px; }
    .customer-hero { padding:48px 0 28px; }
    .customer-hero h1 { font-size:34px; }
    .customer-card { padding:18px; }
    .customer-card-head { flex-direction:column; }
    .customer-form-grid.two,
    .customer-form-grid.four { grid-template-columns:1fr; }
    .customer-address-actions { align-items:stretch; }
    .customer-address-actions > * { flex:1 1 auto; }
    .customer-address-actions .customer-link-btn { width:100%; }
}


/* ========================================================================
   PUBLIC NEON / CLOCK-SWEEP BUTTONS - PUBLIC PAGES ONLY
   For new themes configure --theme-accent / --theme-danger / --theme-success.
   Admin pages do not include body.public-site and retain existing appearance.
   ======================================================================== */
/* Pepi public Neon / Flash buttons - public pages ONLY. */
/* Independent from the admin interface. Uses the existing gallery keyframes. */
@property --pepi-public-neon-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes pepiPublicClockSweep { to { --pepi-public-neon-angle: 360deg; } }

/* Interactive public buttons and button-like links. Existing gallery FX controls retain their own styling. */
body.public-site :where(
  button:not([class*="backdrop"]):not([data-order-action]):not(.about-photo-open):not(.team-profile-bio),
  a[role="button"], a[class*="-btn"],
  .btn, .account-btn, .phone-btn, .theme-picker-button,
  .public-video-category-btn, .public-video-pagination a,
  .public-gallery-album-btn, .public-gallery-subalbum-btn,
  .gallery-open-full-btn, .gallery-fx-btn,
  .public-video-watch-btn, .public-video-order-btn, .public-video-more-btn,
  .team-profile-arrow, .public-video-modal-close, .public-video-fullscreen-btn,
  .public-order-inline-track-open,
  .customer-page button[type="submit"], .customer-page a[class*="button"],
  .customer-page button[class*="btn"],
  .public-gallery-pagination a,
  .guestbook-page button[type="submit"],
  button[data-theme-choice]
) {
  --pepi-public-ring: var(--theme-accent, #f57524);
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-radius: 999px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
body.public-site :where(
  button:not([class*="backdrop"]):not([data-order-action]):not(.about-photo-open):not(.team-profile-bio),
  a[role="button"], a[class*="-btn"],
  .btn, .account-btn, .phone-btn, .theme-picker-button,
  .public-video-category-btn, .public-video-pagination a,
  .public-video-watch-btn, .public-video-order-btn, .public-video-more-btn,
  .team-profile-arrow, .public-video-modal-close, .public-video-fullscreen-btn,
  .public-order-inline-track-open,
  .customer-page button[type="submit"], .customer-page a[class*="button"],
  .customer-page button[class*="btn"],
  .public-gallery-pagination a, .guestbook-page button[type="submit"],
  button[data-theme-choice]
):not(.gallery-fx-btn):not(.gallery-open-full-btn):not(.public-gallery-album-btn):not(.public-gallery-subalbum-btn):not(:disabled):not([aria-disabled="true"]):not(.disabled)::before {
  content: "";
  pointer-events: none;
  position: absolute;
  z-index: -1;
  inset: -4px;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--pepi-public-neon-angle),
    transparent 0deg, transparent 235deg,
    color-mix(in srgb, var(--pepi-public-ring) 25%, transparent) 280deg,
    color-mix(in srgb, var(--pepi-public-ring) 65%, transparent) 325deg,
    var(--pepi-public-ring) 348deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .16s ease;
}
body.public-site :where(
  button:not([class*="backdrop"]):not([data-order-action]):not(.about-photo-open):not(.team-profile-bio),
  a[role="button"], a[class*="-btn"],
  .btn, .account-btn, .phone-btn, .theme-picker-button,
  .public-video-category-btn, .public-video-pagination a,
  .public-video-watch-btn, .public-video-order-btn, .public-video-more-btn,
  .team-profile-arrow, .public-video-modal-close, .public-video-fullscreen-btn,
  .public-order-inline-track-open,
  .customer-page button[type="submit"], .customer-page a[class*="button"],
  .customer-page button[class*="btn"],
  .public-gallery-pagination a, .guestbook-page button[type="submit"],
  button[data-theme-choice]
):not(:disabled):not([aria-disabled="true"]):not(.disabled):is(:hover,:focus-visible) {
  border-color: var(--pepi-public-ring) !important;
  box-shadow: 0 0 15px color-mix(in srgb, var(--pepi-public-ring) 40%, transparent);
  transform: translate(2px, 2px);
}
body.public-site :where(
  button:not([class*="backdrop"]):not([data-order-action]):not(.about-photo-open):not(.team-profile-bio),
  a[role="button"], a[class*="-btn"],
  .btn, .account-btn, .phone-btn, .theme-picker-button,
  .public-video-category-btn, .public-video-pagination a,
  .public-video-watch-btn, .public-video-order-btn, .public-video-more-btn,
  .team-profile-arrow, .public-video-modal-close, .public-video-fullscreen-btn,
  .public-order-inline-track-open,
  .customer-page button[type="submit"], .customer-page a[class*="button"],
  .customer-page button[class*="btn"],
  .public-gallery-pagination a, .guestbook-page button[type="submit"],
  button[data-theme-choice]
):not(.gallery-fx-btn):not(.gallery-open-full-btn):not(.public-gallery-album-btn):not(.public-gallery-subalbum-btn):not(:disabled):not([aria-disabled="true"]):not(.disabled):is(:hover,:focus-visible)::before {
  opacity: 1;
  animation: pepiPublicClockSweep 2.6s linear infinite;
}
/* Preserve semantics for danger and success actions. */
body.public-site :where(.btn-red, .danger, .delete-btn, [data-order-action="minus"]) {
  --pepi-public-ring: var(--theme-danger, #dc3838);
}
body.public-site :where(.btn-green, .success, [data-order-action="plus"]) {
  --pepi-public-ring: var(--theme-success, #1a9b54);
}
/* Invisible overlays and quantity controls must keep their existing mechanics. */
body.public-site .public-video-modal-backdrop, body.public-site .public-gallery-lightbox-backdrop,
body.public-site button[data-order-action="plus"], body.public-site button[data-order-action="minus"] {
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  :where(.btn, .account-btn, .phone-btn, .theme-picker-button,
    .public-video-category-btn, .customer-page button, .gallery-fx-btn)::before {
    animation: none !important;
  }
}



/* ================================================================
   PEPI PUBLIC BUTTONS V2 - SAME RAISED LOOK AS GALLERY CTA
   Public only; color conveys action, NEVER a solid button fill.
   Future themes only need theme surface/text/border/accent variables.
   ================================================================ */
body.public-site {
  --pepi-button-orange: var(--theme-accent, #f57524);
  --pepi-button-green: var(--theme-success, #2f9b52);
  --pepi-button-red: var(--theme-danger, #e13b3b);
  --pepi-button-blue: #3c9bdf;
}
/* The gallery CTA already has this appearance: do not overwrite it. */
body.public-site :is(button:not([class*="backdrop"]):not(.about-photo-open):not(.team-profile-bio), a[role="button"], a[class*="-btn"], .btn,
  .account-btn, .phone-btn, .theme-picker-button, .public-video-category-btn,
  .public-video-pagination a, .public-gallery-pagination a,
  .customer-page button, .guestbook-page button[type="submit"], button[data-theme-choice]):not(.gallery-open-full-btn):not(.gallery-fx-btn):not(.public-gallery-album-btn):not(.public-gallery-subalbum-btn) {
  --pepi-public-ring: var(--pepi-button-orange);
  background: var(--theme-surface-alt, #100d0b) !important;
  color: var(--theme-text, #fff) !important;
  border: 1px solid var(--theme-border, #3b2e27) !important;
  border-radius: 999px !important;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--theme-text, #fff) 14%, transparent),
              inset 0 1px 0 rgba(255,255,255,.12) !important;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease !important;
}
/* Semantic variants: set ONLY neon color, not fill. */
body.public-site :is(.btn-green, .success, .save, .public-video-order-btn,
  .customer-save-btn, .btn-success, .order-confirm-btn, [data-order-action="plus"]) {
  --pepi-public-ring: var(--pepi-button-green) !important;
}
body.public-site :is(.btn-red, .danger, .delete-btn, .btn-danger, .customer-delete-btn,
  [data-order-action="minus"]) {
  --pepi-public-ring: var(--pepi-button-red) !important;
}
body.public-site :is(.btn-blue, .info, .btn-info) {
  --pepi-public-ring: var(--pepi-button-blue) !important;
}
body.public-site :is(.btn-orange, .public-video-watch-btn, .public-video-more-btn) {
  --pepi-public-ring: var(--pepi-button-orange) !important;
}
body.public-site :is(button:not([class*="backdrop"]):not(.about-photo-open):not(.team-profile-bio), a[role="button"], a[class*="-btn"], .btn,
  .account-btn, .phone-btn, .theme-picker-button, .public-video-category-btn,
  .public-video-pagination a, .public-gallery-pagination a,
  .customer-page button, .guestbook-page button[type="submit"], button[data-theme-choice]):not(.gallery-open-full-btn):not(.gallery-fx-btn):not(.public-gallery-album-btn):not(.public-gallery-subalbum-btn):not(:disabled):not([aria-disabled="true"]):not(.disabled):is(:hover,:focus-visible) {
  color: var(--pepi-public-ring) !important;
  border-color: var(--pepi-public-ring) !important;
  background: var(--theme-surface-alt, #100d0b) !important;
  box-shadow: 0 0 20px color-mix(in srgb, var(--pepi-public-ring) 50%, transparent),
              inset 0 0 17px color-mix(in srgb, var(--pepi-public-ring) 12%, transparent) !important;
  transform: translate(4px,4px);
}
/* Disabled controls stay disabled, without misleading interaction. */
body.public-site :is(button, .btn, a[role="button"]):is(:disabled,[aria-disabled="true"],.disabled) {
  opacity: .5;
  cursor: not-allowed;
}
/* Do not move small quantity controls or modal overlays. */
body.public-site :is(button[data-order-action="plus"], button[data-order-action="minus"],
  .public-video-modal-backdrop, .public-gallery-lightbox-backdrop) {
  transform: none !important;
}

/* ========================================================================
   PEPI PUBLIC PAGINATION + QUANTITY CONTROLS V3 (2026-10-09)
   One shared theme-aware style. No effect on admin pages.
   ======================================================================== */
@keyframes pepiActivePageBreath {
  0%, 100% {
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--theme-text, #fff) 14%, transparent),
                0 0 12px 2px color-mix(in srgb, var(--theme-accent, #f57524) 40%, transparent),
                inset 0 0 5px color-mix(in srgb, var(--theme-accent, #f57524) 15%, transparent);
  }
  50% {
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--theme-text, #fff) 14%, transparent),
                0 0 24px 5px color-mix(in srgb, var(--theme-accent, #f57524) 72%, transparent),
                inset 0 0 10px color-mix(in srgb, var(--theme-accent, #f57524) 24%, transparent);
  }
}

/* Gallery, video gallery, guestbook: regular and active pages share shape. */
body.public-site :is(.public-gallery-pagination, .public-video-pagination, .guestbook-pagination) :is(a, span.current, span.active) {
  --pepi-public-ring: var(--theme-accent, #f57524);
  position: relative;
  isolation: isolate;
  overflow: visible;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 999px !important;
  border: 1px solid var(--theme-border, #3b2e27) !important;
  background: var(--theme-surface-alt, #100d0b) !important;
  color: var(--theme-text, #fff) !important;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--theme-text, #fff) 14%, transparent),
              inset 0 1px 0 rgba(255,255,255,.12) !important;
}
/* The selected page is not a button: gallery emits <span class="current">. */
body.public-site :is(.public-gallery-pagination, .public-video-pagination, .guestbook-pagination) :is(.current, .active),
body.public-site .public-gallery-pagination span.current,
body.public-site .public-video-pagination span.active,
body.public-site .guestbook-pagination a.current {
  --pepi-public-ring: var(--theme-accent, #f57524);
  color: var(--theme-accent, #f57524) !important;
  -webkit-text-fill-color: var(--theme-accent, #f57524) !important;
  border: 2px solid var(--theme-accent, #f57524) !important;
  background: color-mix(in srgb, var(--theme-accent, #f57524) 17%, var(--theme-surface-alt, #100d0b)) !important;
  text-shadow: 0 0 8px color-mix(in srgb, var(--theme-accent, #f57524) 80%, transparent) !important;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--theme-text, #fff) 14%, transparent),
              0 0 0 2px color-mix(in srgb, var(--theme-accent, #f57524) 35%, transparent),
              0 0 15px 3px color-mix(in srgb, var(--theme-accent, #f57524) 55%, transparent) !important;
  animation: pepiSelectedPageHalo 2.9s ease-in-out infinite !important;
  cursor: default;
}
@keyframes pepiSelectedPageHalo {
  0%,100% { filter: drop-shadow(0 0 1px color-mix(in srgb, var(--theme-accent, #f57524) 45%, transparent)); }
  50% { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--theme-accent, #f57524) 85%, transparent)); }
}
/* A current guestbook page is technically a link; keep its active look. */
body.public-site .guestbook-pagination a.current:is(:hover, :focus-visible) {
  transform: none !important;
  background: var(--theme-surface-alt, #100d0b) !important;
  color: var(--theme-accent, #f57524) !important;
}
body.public-site .guestbook-pagination a.current::before {
  content: none !important;
}
/* Quantity controls: preserve size and no-translation interaction, add green/red rotating ring. */
body.public-site .public-order-qty button[data-order-action] {
  --pepi-public-ring: var(--theme-accent, #f57524);
  position: relative;
  isolation: isolate;
  overflow: visible;
}
body.public-site .public-order-qty button[data-order-action="plus"] {
  --pepi-public-ring: var(--theme-success, #2f9b52) !important;
}
body.public-site .public-order-qty button[data-order-action="minus"] {
  --pepi-public-ring: var(--theme-danger, #e13b3b) !important;
}
body.public-site .public-order-qty button[data-order-action]:not(:disabled)::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  inset: -4px;
  padding: 3px;
  border-radius: inherit;
  background: conic-gradient(from var(--pepi-public-neon-angle),
    transparent 0deg, transparent 235deg,
    color-mix(in srgb, var(--pepi-public-ring) 25%, transparent) 280deg,
    color-mix(in srgb, var(--pepi-public-ring) 65%, transparent) 325deg,
    var(--pepi-public-ring) 348deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .16s ease;
}
body.public-site .public-order-qty button[data-order-action]:not(:disabled):is(:hover,:focus-visible)::before {
  opacity: 1;
  animation: pepiPublicClockSweep 2.6s linear infinite;
}
body.public-site .public-order-qty button[data-order-action]:disabled::before {
  content: none !important;
}
@media (prefers-reduced-motion: reduce) {
  body.public-site :is(.public-gallery-pagination, .public-video-pagination, .guestbook-pagination) :is(.current, .active),
  body.public-site .public-order-qty button[data-order-action]::before {
    animation: none !important;
  }
}

/* ==============================================================
   ABOUT + TEAM V8 / PUBLIC ONLY
   Real markup: .about-photo-open and button.team-profile-bio.
   Replaces the conflicting V5-V7 overrides, not stacked on them.
   The gallery pagination rules above remain untouched.
   ============================================================== */

/* Clearly legible module titles in dark and light themes. */
html body.public-site .about-team-modules > .about-team-module > .section-title h2 {
    color: var(--theme-text, #fff) !important;
    -webkit-text-fill-color: var(--theme-text, #fff) !important;
    opacity: 1 !important;
    text-shadow: none !important;
}
html body.public-site .about-team-modules > .about-team-module > .section-title > span {
    color: var(--theme-accent, #f57524) !important;
}

/* These are content panels rather than pill-shaped action buttons.
   Constrain both actual buttons AND their containing panels. */
html body.public-site .about-team-module .about-photo.about-photo-locked,
html body.public-site .about-team-module .about-photo.about-photo-locked button.about-photo-open,
html body.public-site .about-team-module.team-module .team-profile,
html body.public-site .about-team-module.team-module button.team-profile-bio {
    border-radius: 0 !important;
    transform: none !important;
}
html body.public-site .about-team-module .about-photo.about-photo-locked button.about-photo-open > img {
    border-radius: 0 !important;
}

/* Photo frame: a true square-cornered rectangle around the image. */
html body.public-site .about-team-module .about-photo.about-photo-locked {
    position: relative !important;
    isolation: isolate;
    overflow: hidden !important;
    border: 2px solid var(--theme-border, #3b2e27) !important;
    background: var(--theme-surface-alt, #100d0b) !important;
    box-shadow: none !important;
    --pepi-panel-ring: var(--theme-accent, #f57524);
}
html body.public-site .about-team-module .about-photo.about-photo-locked button.about-photo-open {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* Disable the generic public button pill halo for BOTH special fields. */
html body.public-site .about-team-module .about-photo.about-photo-locked button.about-photo-open::before,
html body.public-site .about-team-module.team-module button.team-profile-bio::before {
    content: none !important;
    display: none !important;
    animation: none !important;
}

/* Square sweep is on the photo's OUTER frame and cannot cover the image. */
html body.public-site .about-team-module .about-photo.about-photo-locked:is(:hover,:focus-within) {
    border: 2px solid transparent !important;
    border-image: conic-gradient(from var(--pepi-public-neon-angle),
      transparent 0deg, transparent 194deg,
      color-mix(in srgb, var(--pepi-panel-ring) 35%, transparent) 270deg,
      var(--pepi-panel-ring) 336deg, transparent 360deg) 1 !important;
    box-shadow: 0 0 16px color-mix(in srgb, var(--pepi-panel-ring) 45%, transparent) !important;
    animation: pepiPublicClockSweep 2.7s linear infinite !important;
}

/* Team biography is a TEXT PANEL that happens to be a button.
   Preserve the fixed height, click-to-expand behavior and inner scroll. */
html body.public-site .about-team-module.team-module button.team-profile-bio {
    --pepi-panel-ring: var(--theme-accent, #f57524);
    position: relative !important;
    isolation: isolate;
    display: block !important;
    width: 100% !important;
    padding: 24px 26px !important;
    border: 2px solid var(--theme-border, #3b2e27) !important;
    border-image: none !important;
    background: var(--theme-surface-alt, #100d0b) !important;
    color: var(--theme-text, #fff) !important;
    box-shadow: none !important;
    text-align: left !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable;
    cursor: pointer;
}
html body.public-site .about-team-module.team-module button.team-profile-bio:is(:hover,:focus-visible) {
    border: 2px solid transparent !important;
    border-image: conic-gradient(from var(--pepi-public-neon-angle),
      transparent 0deg, transparent 194deg,
      color-mix(in srgb, var(--pepi-panel-ring) 35%, transparent) 270deg,
      var(--pepi-panel-ring) 336deg, transparent 360deg) 1 !important;
    box-shadow: inset 0 0 12px color-mix(in srgb, var(--pepi-panel-ring) 16%, transparent) !important;
    animation: pepiPublicClockSweep 2.7s linear infinite !important;
}
/* Keep the existing colored-hover text. */
html body.public-site .about-team-module.team-module button.team-profile-bio:hover p {
    color: var(--theme-accent, #f57524) !important;
}
@media (max-width: 850px) {
    html body.public-site .about-team-module.team-module button.team-profile-bio {
        padding: 20px 18px !important;
    }
}
@media (max-width: 430px) {
    html body.public-site .about-team-module.team-module button.team-profile-bio {
        padding: 17px 14px !important;
    }
}
@media (prefers-reduced-motion: reduce) {
    html body.public-site .about-team-module .about-photo.about-photo-locked:is(:hover,:focus-within),
    html body.public-site .about-team-module.team-module button.team-profile-bio:is(:hover,:focus-visible) {
        animation: none !important;
        border-image: none !important;
        border-color: var(--theme-accent, #f57524) !important;
    }
}

/* PEPI 2026-10-10: gallery photo captions only. No shared button selectors. */
html[data-theme="green"] { --gallery-caption-highlight: #91f3ad; }
html[data-theme="classic"] { --gallery-caption-highlight: #ffba79; }
html[data-theme="traditional"] { --gallery-caption-highlight: #ffbc86; }
html[data-theme="contrast"] { --gallery-caption-highlight: #ffe57c; }
html[data-theme="night"] { --gallery-caption-highlight: #ff9c73; }
html[data-theme="cozy"] { --gallery-caption-highlight: #ffd28d; }

body.public-site .public-gallery-tile .public-gallery-tile-overlay {
    background: linear-gradient(to top, rgba(5, 8, 7, .96) 0%, rgba(5, 8, 7, .78) 58%, rgba(5, 8, 7, 0) 100%);
    opacity: 1;
}
body.public-site .public-gallery-tile .public-gallery-tile-overlay > strong {
    align-self: flex-start;
    display: inline-block;
    max-width: 100%;
    padding: 4px 8px;
    border-left: 3px solid var(--theme-accent, #f57524);
    border-radius: 2px 6px 6px 2px;
    background: rgba(0, 0, 0, .66);
    color: var(--gallery-caption-highlight, #ffba79) !important;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .9);
}
body.public-site .public-gallery-tile .public-gallery-tile-overlay > span {
    color: #fff !important;
    font-weight: 650;
    text-shadow: 0 1px 3px #000;
}
