/* =========================================================
   ФАЙЛ: assets/css/style.css
   ЗА КАКВО Е: Основни стилове на целия сайт (layout, компоненти, responsive).
   КАКВО ПРОМЕНЯ: Променя визуалния вид, отстоянията, цветовете, hover/focus ефектите
   и поведението на елементите на различни размери на екрана.
========================================================= */

/* =========================================================
   INTER (self-hosted, latin + latin-ext + cyrillic)
========================================================= */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-ext-wght-normal.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-latin-wght-normal.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/inter/inter-cyrillic-wght-normal.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

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

:root {
    --bg-main: #080a14;
    --bg-soft: #0e1120;
    --card-bg: #111827;
    --border: rgba(255,255,255,0.08);

    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --accent: #ff7a18;
    --accent-hover: #ff6000;
    --accent-soft: rgba(255, 122, 24, 0.22);
    --accent-glow: rgba(255, 100, 0, 0.45);
    --violet-soft: rgba(120, 60, 255, 0.18);
    --violet-glow: rgba(100, 40, 220, 0.35);

    --radius: 12px;
    --transition: 0.25s ease;

    --font: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
}

body {
    font-family: var(--font);
    color: var(--text-main);
    line-height: 1.65;
    background:
        linear-gradient(rgba(24, 50, 102, 0.65), rgba(95, 142, 235, 0.75)),
        url("../images/bg-main.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

body::before {
    top: -180px;
    right: -160px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 100, 0, 0.18) 0%, transparent 70%);
}

body::after {
    bottom: -180px;
    left: -160px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(100, 40, 220, 0.22) 0%, transparent 70%);
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================================
   HEADER
========================================================= */
.promo-bar {
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(rgba(24, 50, 102, 0.68), rgba(95, 142, 235, 0.78)),
        url("../images/bg-main.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.22);
}

.promo-bar-inner {
    position: relative;
    z-index: 1;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
    color: #f3f7ff;
}

.promo-marquee {
    flex: 1;
    min-width: 0;
}

.promo-marquee-viewport {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.promo-marquee-track {
    display: flex;
    width: max-content;
    animation: promo-marquee-scroll 28s linear infinite;
}

.promo-marquee-chunk {
    flex-shrink: 0;
    padding-right: 4rem;
    white-space: nowrap;
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: clamp(13px, 1.9vw, 17px);
    line-height: 1.15;
    letter-spacing: 0.015em;
    background: linear-gradient(90deg, #ffffff 0%, #ffe0c2 45%, #ffb26f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 10px rgba(255, 122, 24, 0.35));
}

@keyframes promo-marquee-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .promo-marquee-track {
        animation: none;
        transform: none;
    }

    .promo-marquee-viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

.promo-bar a {
    flex-shrink: 0;
    font-weight: 700;
    color: #1f1530;
    text-decoration: none;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 223, 185, 0.55);
    background: linear-gradient(135deg, #ff8a2b, #ffc06e);
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: var(--transition);
}

.promo-bar a:hover {
    filter: brightness(1.06);
    border-color: rgba(255, 240, 220, 0.75);
}

.site-header {
    border-bottom: 1px solid rgba(110, 42, 0, 0.42);
    background: #cf7228;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 30;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(180, 70, 0, 0.34);
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
}

.logo-image {
    display: block;
    width: 420px;
    height: 72px;
    object-fit: cover;
    object-position: center 45%;
    filter:
        drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35))
        drop-shadow(0 2px 4px rgba(0, 0, 0, 0.55))
        drop-shadow(0 6px 18px rgba(0, 0, 0, 0.42));
    transform: translateY(1px);
    margin: 0 auto;
}

.logo-text-fallback {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: #fffdf8;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.35),
        0 2px 4px rgba(0, 0, 0, 0.55),
        0 4px 14px rgba(0, 0, 0, 0.45);
}

.main-nav,
.auth-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Header nav — glass cluster on orange bar (logo untouched) */
.header-nav-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    gap: 10px;
    min-width: 0;
    flex-wrap: nowrap;
}

.main-nav--cluster {
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.auth-nav--cluster {
    flex-shrink: 1;
    min-width: 0;
}

.main-nav-core,
.auth-nav-pills {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.site-header .nav-link {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    color: #fffdf8;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    background: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav-core .nav-link:not(.is-active):hover,
.auth-nav-pills .nav-link:not(.nav-link--flow):not(.is-active):hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Само активната main страница — пълен преливащ fill */
.main-nav-core .nav-link.is-active {
    color: #fff;
    font-weight: 700;
    background: linear-gradient(
        115deg,
        #ff6a00 0%,
        #ff9f50 18%,
        #5f8eeb 42%,
        #6432dc 62%,
        #ff7a18 82%,
        #ff6000 100%
    );
    background-size: 320% 320%;
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
    box-shadow:
        0 2px 12px rgba(255, 100, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Admin — преливащ ръб, тъмен център */
.main-nav--cluster .nav-link--admin {
    padding: 2px;
    overflow: hidden;
    background: linear-gradient(
        115deg,
        #ff7a18 0%,
        #ff9f50 20%,
        #7840ff 50%,
        #5f8eeb 75%,
        #ff6000 100%
    );
    background-size: 320% 320%;
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
}

.main-nav--cluster .nav-link--admin .nav-link__inner {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fffdf8;
    background: rgba(30, 20, 50, 0.88);
}

.main-nav--cluster .nav-link--admin:hover .nav-link__inner {
    color: #fff;
    background: rgba(40, 28, 65, 0.92);
}

/* Cart / Register — преливащ ръб като hero ghost */
.site-header .nav-link--flow {
    padding: 2px;
    background: linear-gradient(
        115deg,
        #ff6a00 0%,
        #ff9f50 18%,
        #5f8eeb 42%,
        #6432dc 62%,
        #ff7a18 82%,
        #ff6000 100%
    );
    background-size: 320% 320%;
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
}

.site-header .nav-link--flow .nav-link__inner {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    background: rgba(20, 24, 42, 0.9);
}

.site-header .nav-link__inner--cart {
    position: relative;
    padding: 7px 11px;
}

.site-header .nav-cart-icon {
    display: block;
    flex-shrink: 0;
}

.site-header .nav-link__inner--cart .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 10px;
    line-height: 16px;
    transform: translate(35%, -35%);
    background: linear-gradient(135deg, #ff8a2a, #ff6a00);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.auth-nav-pills .nav-link.is-active:not(.nav-link--flow) {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.auth-nav-pills .lang-switch-form--compact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0 0 0 4px;
    border: none;
}

.auth-nav-pills .lang-switch-form--compact .lang-switch-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.auth-nav-pills .lang-switch-form--compact .lang-switch-select {
    min-width: 108px;
    padding: 6px 8px;
    font-size: 11.5px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .main-nav-core .nav-link.is-active,
    .main-nav--cluster .nav-link--admin,
    .site-header .nav-link--flow {
        animation: none;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }
}

.lang-switch-form {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 4px;
    padding-right: 12px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-switch-label {
    font-size: 12px;
    font-weight: 700;
    color: #fffdf8;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(0, 0, 0, 0.28);
}

.lang-switch-select {
    min-width: 150px;
    border-radius: 8px;
    border: 1px solid rgba(20, 28, 52, 0.65);
    background: rgba(18, 22, 42, 0.82);
    color: #fff;
    padding: 6px 8px;
    font-family: var(--font);
    font-size: 12px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: border-color 0.2s ease;
}

.lang-switch-select:focus {
    outline: none;
    border-color: rgba(178, 236, 255, 0.95);
    box-shadow: 0 0 0 2px rgba(116, 211, 255, 0.3);
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff8a2a, #ff6a00);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.cart-link-has-pending {
    animation: cart-link-pulse 1.25s ease-in-out infinite;
}

.cart-link-has-pending .cart-badge {
    animation: cart-badge-glow 1.25s ease-in-out infinite;
}

@keyframes cart-link-pulse {
    0%,
    100% {
        opacity: 1;
        filter: drop-shadow(0 0 0 rgba(0, 212, 255, 0));
        text-shadow: none;
    }
    50% {
        opacity: 1;
        color: #eaf8fc;
        filter: drop-shadow(0 0 8px rgba(0, 210, 255, 0.68));
        text-shadow:
            0 0 5px rgba(190, 248, 255, 0.82),
            0 0 14px rgba(0, 210, 255, 0.72),
            0 0 22px rgba(64, 170, 255, 0.48);
    }
}

@keyframes cart-badge-glow {
    0%,
    100% {
        transform: scale(1);
        box-shadow:
            0 0 0 0 rgba(0, 220, 255, 0),
            0 0 0 0 rgba(255, 255, 255, 0);
    }
    50% {
        transform: scale(1.11);
        box-shadow:
            0 0 0 2px rgba(180, 248, 255, 0.72),
            0 0 14px 3px rgba(0, 210, 255, 0.62),
            0 0 26px 6px rgba(90, 160, 255, 0.42);
    }
}

@media (prefers-reduced-motion: reduce) {
    .cart-link-has-pending,
    .cart-link-has-pending .cart-badge {
        animation: none;
    }
}

/* =========================================================
   HERO
========================================================= */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle dot grid overlay */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 122, 24, 0.12) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 75% 65% at 30% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 30% 50%, black 30%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

/* Cinematic orange glow behind headline */
.hero::after {
    content: "";
    position: absolute;
    top: 10%;
    left: -10%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 100, 0, 0.14) 0%, transparent 65%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 640px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffb36e;
    border: 1px solid rgba(255, 150, 60, 0.35);
    background: rgba(255, 122, 24, 0.1);
}

.hero h1 {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    background: linear-gradient(90deg, #ffffff 0%, #ffe0c2 45%, #ffb26f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 8px 24px rgba(255, 122, 24, 0.28);
}

.hero p {
    max-width: 540px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.hero-stats {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stats div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.hero-stats strong {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff 0%, #ffcb8e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats span {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* Hero CTA only — animated site palette (orange / blue / violet) */
@keyframes hero-btn-gradient-flow {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero-actions .btn-hero {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    -webkit-appearance: none;
    appearance: none;
    transition: box-shadow 0.35s ease, transform 0.25s ease;
}

.hero-actions .btn-hero--primary {
    padding: 14px 28px;
    border-radius: 999px;
    color: #fff;
    border: 1px solid rgba(255, 180, 100, 0.45);
    background: linear-gradient(
        115deg,
        #ff6a00 0%,
        #ff9f50 18%,
        #5f8eeb 42%,
        #6432dc 62%,
        #ff7a18 82%,
        #ff6000 100%
    );
    background-size: 320% 320%;
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
    box-shadow:
        0 4px 22px rgba(255, 100, 0, 0.4),
        0 0 36px rgba(95, 142, 235, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-actions .btn-hero--primary:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 32px rgba(255, 100, 0, 0.5),
        0 0 48px rgba(100, 50, 220, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-actions .btn-hero--primary:active {
    transform: translateY(0);
}

.hero-actions .btn-hero--primary .btn-hero__icon {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.hero-actions .btn-hero--primary:hover .btn-hero__icon {
    transform: translateX(4px);
}

.hero-actions .btn-hero--ghost {
    padding: 2px;
    border-radius: 999px;
    background: linear-gradient(
        115deg,
        #ff7a18 0%,
        #ff9f50 20%,
        #5f8eeb 45%,
        #7840ff 65%,
        #ff6000 100%
    );
    background-size: 320% 320%;
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 122, 24, 0.12);
}

.hero-actions .btn-hero--ghost .btn-hero__inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(8, 10, 20, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s ease, color 0.3s ease;
}

.hero-actions .btn-hero--ghost:hover {
    box-shadow: 0 4px 24px rgba(255, 122, 24, 0.25);
}

.hero-actions .btn-hero--ghost:hover .btn-hero__inner {
    background: rgba(14, 17, 32, 0.75);
    color: #fff;
}

.hero-actions .btn-hero--ghost:active {
    transform: scale(0.98);
}

@media (max-width: 520px) {
    .hero-actions .btn-hero--primary,
    .hero-actions .btn-hero--ghost {
        width: 100%;
    }

    .hero-actions .btn-hero--ghost .btn-hero__inner {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-actions .btn-hero--primary,
    .hero-actions .btn-hero--ghost {
        animation: none;
        background-size: 100% 100%;
        background-position: 50% 50%;
    }

    .hero-actions .btn-hero--primary:hover .btn-hero__icon {
        transform: none;
    }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, #ff7a18 0%, #ff9f50 50%, #ff6a00 100%);
    background-size: 200% 200%;
    background-position: left center;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #fff;
    transition: background-position 0.4s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow:
        0 4px 16px rgba(255, 100, 0, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.15) inset;
    border: 1px solid rgba(255, 140, 40, 0.4);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover:not(.btn-flow) {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow:
        0 8px 28px rgba(255, 100, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.btn:active {
    transform: translateY(0);
}

/* Primary admin / CTA — flowing site gradient (orange / blue / violet) */
.btn.btn-flow,
.admin-page .admin-template-form button.btn[type="submit"]:not(.btn-secondary):not(.btn-flow),
.admin-page .contact-form button.btn[type="submit"]:not(.btn-secondary):not(.btn-flow) {
    border-radius: 999px;
    border: 1px solid rgba(255, 180, 100, 0.45);
    background: linear-gradient(
        115deg,
        #ff6a00 0%,
        #ff9f50 18%,
        #5f8eeb 42%,
        #6432dc 62%,
        #ff7a18 82%,
        #ff6000 100%
    );
    background-size: 320% 320%;
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
    box-shadow:
        0 4px 18px rgba(255, 100, 0, 0.4),
        0 0 28px rgba(95, 142, 235, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: transform 0.25s ease, box-shadow 0.35s ease;
}

.btn.btn-flow:hover,
.admin-page .admin-template-form button.btn[type="submit"]:not(.btn-secondary):not(.btn-flow):hover,
.admin-page .contact-form button.btn[type="submit"]:not(.btn-secondary):not(.btn-flow):hover {
    animation: hero-btn-gradient-flow 5.5s ease-in-out infinite;
    transform: translateY(-1px);
    box-shadow:
        0 8px 26px rgba(255, 100, 0, 0.5),
        0 0 40px rgba(100, 50, 220, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn.btn-flow:active,
.admin-page .admin-template-form button.btn[type="submit"]:not(.btn-secondary):not(.btn-flow):active,
.admin-page .contact-form button.btn[type="submit"]:not(.btn-secondary):not(.btn-flow):active {
    transform: translateY(0);
}

.btn.admin-row-btn.btn-flow {
    border-radius: 8px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    background-size: auto;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.85);
    box-shadow: none;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 122, 24, 0.5);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 100, 0, 0.15);
}

.tickets-system-paused .tickets-system-paused-text,
.account-profile-tickets--paused .tickets-system-paused-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
}

.tickets-system-paused--official .tickets-system-paused-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 12px;
}

.tickets-system-paused--official .tickets-system-paused-actions {
    margin: 20px 0 0;
}

.footer-support-status {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 8px;
    max-width: 52rem;
}

.product-self-service-notice {
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(255, 140, 40, 0.22);
    border-radius: var(--radius-sm, 8px);
    background: rgba(255, 140, 40, 0.06);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.contact-section .contact-container {
    max-width: min(1100px, 100%);
}

.contact-panels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

@media (max-width: 900px) {
    .contact-panels-row {
        grid-template-columns: 1fr;
    }
}

.contact-panel--scope .support-scope-notice,
.contact-panel--action .register-card {
    margin-bottom: 0;
    height: 100%;
}

.contact-panel--action .tickets-system-paused {
    margin: 0;
}

.support-scope-notice {
    margin-bottom: 24px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 140, 40, 0.28);
    border-radius: var(--radius);
    background: rgba(12, 16, 28, 0.55);
    height: 100%;
    box-sizing: border-box;
}

.support-scope-notice-title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.support-scope-notice-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px 20px;
}

@media (max-width: 520px) {
    .support-scope-notice-grid {
        grid-template-columns: 1fr;
    }
}

.support-scope-notice-col h3 {
    margin: 0 0 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.support-scope-notice-col--no h3 {
    color: #f0a090;
}

.support-scope-notice-col--yes h3 {
    color: #8ec8a8;
}

.support-scope-notice-col ul {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.support-scope-notice-col li + li {
    margin-top: 6px;
}

.support-scope-notice-foot {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.admin-support-scope-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 28px;
    align-items: start;
}

@media (max-width: 960px) {
    .admin-support-scope-layout {
        grid-template-columns: 1fr;
    }
}

.admin-support-scope-preview-box {
    padding: 12px;
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 140, 40, 0.35);
    background: rgba(0, 0, 0, 0.2);
}

.admin-support-scope-preview-box .support-scope-notice {
    margin-bottom: 0;
}

.account-profile-tickets--paused .register-card {
    margin: 0;
}

.hero-coming-soon-dialog {
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 140, 40, 0.35);
    border-radius: var(--radius);
    max-width: min(420px, calc(100vw - 32px));
    background: var(--card-bg);
    color: var(--text-main);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-coming-soon-dialog::backdrop {
    background: rgba(8, 10, 20, 0.72);
    backdrop-filter: blur(4px);
}

.hero-coming-soon-dialog-inner {
    padding: 28px 24px 24px;
    text-align: center;
}

.hero-coming-soon-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb36e;
    border: 1px solid rgba(255, 150, 60, 0.35);
    background: rgba(255, 122, 24, 0.1);
}

.hero-coming-soon-dialog h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 10px;
}

.hero-coming-soon-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-coming-soon-dialog form {
    display: flex;
    justify-content: center;
}

/* =========================================================
   GENERIC SECTIONS
========================================================= */
.section {
    padding: 90px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 50px;
}

.section-head h2 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, #ffffff 0%, #ffe7cf 50%, #ffba7a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-head p {
    color: var(--text-muted);
}

/* =========================================================
   SECTION DIVIDER
========================================================= */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 122, 24, 0.3) 40%, rgba(255, 122, 24, 0.3) 60%, transparent);
    margin: 0;
}

/* =========================================================
   HOME / TEMPLATES GRID
========================================================= */
.template-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.template-card {
    position: relative;
    background: linear-gradient(
        165deg,
        rgba(72, 88, 138, 0.97) 0%,
        rgba(52, 66, 112, 0.98) 45%,
        rgba(44, 56, 98, 0.99) 100%
    );
    border: 1px solid rgba(165, 188, 255, 0.42);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow:
        0 14px 34px rgba(8, 14, 40, 0.42),
        0 6px 36px rgba(110, 155, 255, 0.32),
        0 0 28px rgba(255, 185, 125, 0.18),
        inset 0 -18px 40px rgba(255, 155, 95, 0.07);
}

.template-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(135deg, #ff8a2b 0%, #ffc06e 100%);
    opacity: 0.36;
    -webkit-mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 18%,
        rgba(0, 0, 0, 0.65) 38%,
        transparent 62%
    );
    mask-image: linear-gradient(
        180deg,
        #000 0%,
        #000 18%,
        rgba(0, 0, 0, 0.65) 38%,
        transparent 62%
    );
    transition: opacity var(--transition);
}

.template-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 179, 104, 0.65);
    box-shadow:
        0 22px 46px rgba(6, 12, 38, 0.5),
        0 10px 44px rgba(120, 165, 255, 0.4),
        0 0 36px rgba(255, 175, 105, 0.28),
        inset 0 -18px 44px rgba(255, 145, 75, 0.11);
}

.template-card:hover::before {
    opacity: 0.48;
}

.template-card-hit {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    color: inherit;
    text-decoration: none;
    border-radius: inherit;
    cursor: pointer;
    outline: none;
}

.template-card-hit:focus-visible {
    outline: 2px solid rgba(255, 186, 120, 0.95);
    outline-offset: 3px;
}

.template-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 18%, rgba(255, 168, 82, 0.22), transparent 42%),
        linear-gradient(180deg, rgba(88, 104, 158, 0.92), rgba(62, 78, 128, 0.94));
    border-bottom: 1px solid rgba(180, 198, 255, 0.28);
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.template-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(20, 28, 58, 0.04) 45%, rgba(24, 32, 62, 0.35) 100%);
}

@media (hover: hover) and (pointer: fine) {
    .template-card-hit:hover .template-image img,
    .template-card-hit:focus-within .template-image img {
        transform: scale(1.12);
    }
}

@media (prefers-reduced-motion: reduce) {
    .template-image img {
        transition: none;
    }

    .template-card-hit:hover .template-image img,
    .template-card-hit:focus-within .template-image img {
        transform: none;
    }

    .template-hover-overlay {
        transition: none;
    }
}

.template-image-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    z-index: 1;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 6px;
    color: rgba(221, 232, 255, 0.84);
    padding: 14px;
}

.template-image-placeholder strong {
    font-size: 16px;
    color: #f3f7ff;
}

.template-image-placeholder em {
    font-style: normal;
    font-size: 12px;
    border: 1px solid rgba(175, 195, 255, 0.38);
    border-radius: 999px;
    padding: 4px 9px;
    background: rgba(36, 48, 92, 0.55);
}

.template-hover-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 14px 12px 18px;
    background: linear-gradient(180deg, transparent 0%, transparent 35%, rgba(8, 12, 32, 0.55) 72%, rgba(6, 10, 26, 0.92) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .template-card-hit:hover .template-hover-overlay,
    .template-card-hit:focus-within .template-hover-overlay {
        opacity: 1;
    }
}

.template-hover-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a1228;
    background: linear-gradient(135deg, #ff8a2b, #ffc06e);
    border: 1px solid rgba(255, 223, 185, 0.65);
    box-shadow: 0 8px 22px rgba(255, 120, 50, 0.45);
}

.template-image.is-missing-image .template-image-placeholder {
    display: flex;
}

.template-card-body {
    padding: 12px 14px 14px;
}

.template-card-title-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px 12px;
}

.template-card-title-row h3 {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    font-size: 20px;
    line-height: 1.25;
}

.template-card-title-row .template-price-block {
    flex: 0 0 auto;
    align-items: flex-end;
    text-align: right;
}

.template-card-title-row .template-price-row {
    justify-content: flex-end;
}

.template-card-body p {
    font-size: 13px;
    margin: 8px 0 0;
    color: rgba(204, 217, 249, 0.88);
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.template-price {
    font-weight: 800;
    font-size: 19px;
    color: #ffe1bc;
}

.template-price-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}

.template-price-was {
    font-size: 11px;
    font-weight: 600;
    color: rgba(230, 210, 255, 0.55);
    text-decoration: line-through;
    letter-spacing: 0.02em;
}

.template-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.template-price-badge {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1c1428;
    background: linear-gradient(135deg, #ffb347, #ff8a2b);
    border: 1px solid rgba(255, 230, 200, 0.55);
    box-shadow: 0 2px 10px rgba(255, 140, 60, 0.35);
}

.template-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(28, 36, 68, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.template-badge--with-ribbon {
    top: 44px;
}

.template-sale-ribbon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 6px 12px;
    border-radius: 999px;
    color: #1c1428;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #ff4d4d, #ff8a2b);
    border: 1px solid rgba(255, 220, 200, 0.65);
    box-shadow: 0 4px 14px rgba(255, 80, 60, 0.4);
    text-transform: uppercase;
}

.template-card.is-on-sale {
    border-color: rgba(255, 138, 43, 0.65);
    box-shadow:
        0 14px 34px rgba(8, 14, 40, 0.42),
        0 6px 36px rgba(255, 110, 60, 0.35),
        0 0 32px rgba(255, 185, 125, 0.28),
        inset 0 -18px 40px rgba(255, 155, 95, 0.1);
}

.template-category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(36, 52, 88, 0.88);
    border: 1px solid rgba(255, 200, 150, 0.35);
    font-size: 11px;
    font-weight: 700;
    color: #ffe7cf;
    backdrop-filter: blur(4px);
    max-width: calc(100% - 24px);
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* =========================================================
   PAGE HERO
========================================================= */
.page-hero {
    padding: 64px 0 36px;
    position: relative;
}

.page-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.hero-tag--link {
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, border-color 0.15s ease;
}

.hero-tag--link:hover {
    opacity: 0.92;
    border-color: rgba(255, 200, 150, 0.55);
}

.page-hero-content {
    max-width: 620px;
}

.page-hero-content h1 {
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 10px;
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
    background: linear-gradient(90deg, #ffffff 0%, #ffe0c2 50%, #ffb26f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-hero-content p {
    color: var(--text-muted);
    font-size: 14px;
}

.page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffcb8e;
    border: 1px solid rgba(255, 150, 60, 0.35);
    background: rgba(255, 122, 24, 0.1);
}

/* Admin dashboard hero — smaller than default page-hero */
.admin-hero {
    padding: 52px 0 28px;
}

.admin-hero .page-hero-content {
    max-width: 560px;
}

.admin-hero .page-kicker {
    font-size: 10px;
    padding: 4px 10px;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.admin-hero .page-hero-content h1 {
    font-size: 28px;
    margin-bottom: 10px;
    line-height: 1.15;
}

.admin-hero .page-hero-content p {
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   PRODUCT PAGE
========================================================= */
.product-section {
    padding-top: 20px;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
    gap: 40px;
    align-items: start;
}

/* Галерията да заема ширината на колоната */
.product-gallery {
    width: 100%;
    min-width: 0;
}

.product-gallery-hint {
    margin: 0 0 12px;
    font-size: 13px;
    color: rgba(220, 228, 255, 0.72);
    line-height: 1.45;
}

/* Главна снимка — по-малък преглед (~50% от предишния размер) */
.product-gallery-zoom--main {
    width: 50%;
    max-width: 50%;
    aspect-ratio: 3 / 2;
    min-height: min(160px, 26vw);
    max-height: min(310px, 36vh);
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.product-gallery-zoom--main .main-product-image,
.product-gallery > img.main-product-image {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: min(310px, 36vh);
    min-height: 0;
    margin: 0;
    display: block;
    object-fit: cover;
    object-position: center top;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.product-gallery > img.main-product-image {
    width: 50%;
    max-width: 50%;
    aspect-ratio: 3 / 2;
    min-height: min(160px, 26vw);
    max-height: min(310px, 36vh);
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 20px);
}

.gallery-grid img {
    width: 100%;
    display: block;
    height: clamp(200px, 22vw, 300px);
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-grid img:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 24, 0.45);
}

.gallery-grid--interactive {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

/* Клик за lightbox: бутон без „рамка“, изглежда като снимка */
.product-gallery-zoom {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    text-align: left;
    display: block;
    color: inherit;
    border-radius: 12px;
}

.product-gallery-zoom:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.product-gallery-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: clamp(120px, 14vw, 180px);
    max-height: 300px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.product-gallery-thumb:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 24, 0.45);
}

.product-gallery-thumb img {
    width: 100%;
    height: 100%;
    min-height: clamp(120px, 14vw, 180px);
    display: block;
    object-fit: cover;
    object-position: center top;
    border-radius: 10px;
}

body.product-lightbox-open {
    overflow: hidden;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    box-sizing: border-box;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(8, 10, 18, 0.9);
    cursor: pointer;
}

.product-lightbox-frame {
    position: relative;
    z-index: 2;
    width: min(92vw, 1080px);
    max-width: min(96vw, 1080px);
    max-height: 90vh;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    border-radius: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 140, 60, 0.55) rgba(12, 16, 28, 0.6);
}

.product-lightbox-frame.is-zoomed {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.product-lightbox-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    pointer-events: auto;
    transform-origin: center top;
    transition: transform 0.12s ease-out;
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.product-lightbox-frame.is-zoomed .product-lightbox-img {
    width: auto;
    max-width: min(96vw, 1400px);
    max-height: 88vh;
    object-fit: contain;
    transform-origin: center center;
}

.product-lightbox-img.is-zoomed {
    cursor: grab;
}

.product-lightbox-img.is-panning {
    cursor: grabbing;
    transition: none;
}

.product-lightbox-zoombar {
    position: absolute;
    bottom: max(16px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    z-index: 12;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(18, 22, 34, 0.92);
    pointer-events: auto;
}

.product-lightbox-zoombtn {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(32, 40, 58, 0.95);
    color: #f3f7ff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.product-lightbox-zoombtn:hover {
    border-color: rgba(255, 122, 24, 0.55);
    color: #fff;
}

.product-lightbox-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 11;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(22, 28, 42, 0.92);
    color: #f3f7ff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-close:hover {
    border-color: rgba(255, 122, 24, 0.55);
    color: #fff;
}

.product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: auto;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(22, 28, 42, 0.88);
    color: #f3f7ff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-lightbox-nav:hover:not(:disabled) {
    border-color: rgba(255, 122, 24, 0.5);
}

.product-lightbox-nav:disabled {
    opacity: 0.35;
    cursor: default;
}

.product-lightbox-prev {
    left: max(8px, env(safe-area-inset-left));
}

.product-lightbox-next {
    right: max(8px, env(safe-area-inset-right));
}

.product-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #ffffff 0%, #ffe7d0 55%, #ffbb7e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.trust-strip {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 24px;
}

.trust-item {
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    color: #c7d2e8;
}

.product-price-block {
    margin-bottom: 20px;
}

.product-price-was {
    font-size: 11px;
    font-weight: 600;
    color: rgba(200, 210, 235, 0.55);
    text-decoration: line-through;
    margin: 0 0 4px;
}

.product-price {
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffc389;
}

.product-price-badge {
    display: inline-block;
    margin: 0;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    color: #1c1428;
    background: linear-gradient(135deg, #ffb347, #ff8a2b);
    border: 1px solid rgba(255, 220, 190, 0.55);
}

.product-text {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.product-meta {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.meta-item {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.25s ease;
}

.meta-item:hover {
    border-color: rgba(255, 122, 24, 0.45);
}

.meta-item strong {
    display: block;
    margin-bottom: 4px;
}

/* =========================================================
   CONTACT / LOGIN / REGISTER / ACCOUNT
========================================================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(255, 180, 102, 0.88);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Admin / contact selects — site palette (orange · blue · dark) */
.contact-form select,
.admin-template-form select,
.admin-filters select {
    padding: 9px 12px;
    min-height: 42px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 150, 60, 0.32);
    background-color: var(--card-bg);
    background-image: linear-gradient(
        115deg,
        rgba(255, 122, 24, 0.12) 0%,
        rgba(95, 142, 235, 0.08) 48%,
        rgba(100, 40, 220, 0.08) 100%
    );
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
    color-scheme: dark;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form select option,
.admin-template-form select option,
.admin-filters select option {
    background-color: var(--bg-soft);
    color: var(--text-main);
}

.contact-form select:focus,
.admin-template-form select:focus,
.admin-filters select:focus {
    outline: none;
    border-color: rgba(255, 180, 102, 0.88);
    box-shadow:
        0 0 0 3px var(--accent-soft),
        0 0 20px rgba(95, 142, 235, 0.12);
}

.admin-template-form {
    gap: 10px;
}

.admin-template-form input,
.admin-template-form textarea {
    padding: 9px 12px;
    min-height: 42px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font: inherit;
    font-size: 14px;
}

.admin-template-form textarea {
    min-height: 128px;
    resize: vertical;
}

.admin-template-form input[type="file"] {
    min-height: 0;
    padding: 7px 10px;
}

.admin-template-form input[type="checkbox"] {
    width: auto;
    min-height: 0;
    padding: 0;
}

.admin-template-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(223, 231, 255, 0.92);
}

.admin-template-form input:focus,
.admin-template-form textarea:focus {
    outline: none;
    border-color: rgba(255, 180, 102, 0.88);
    box-shadow: 0 0 0 3px rgba(255, 170, 77, 0.22);
}

.admin-template-upload-hint {
    margin: 8px 0 6px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(200, 212, 245, 0.88);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 26, 52, 0.55);
}

.admin-template-upload-hint--secondary {
    margin-top: 18px;
}

.admin-template-upload-hint--inline {
    margin: 0 0 4px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
}

.admin-upload-progress {
    margin: 16px 0 12px;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(79, 124, 255, 0.35);
    background: rgba(18, 26, 52, 0.75);
}

.admin-upload-progress.is-error {
    border-color: rgba(255, 77, 79, 0.5);
    background: rgba(60, 20, 24, 0.45);
}

.admin-upload-progress__label {
    margin: 0 0 10px;
    font-size: 14px;
    color: rgba(230, 236, 255, 0.92);
}

.admin-upload-progress__track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.admin-upload-progress__bar {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #4f7cff, #ff8a2b);
    transition: width 0.15s ease-out;
}

.admin-upload-progress.is-complete .admin-upload-progress__bar {
    background: linear-gradient(90deg, #3dd68c, #4f7cff);
}

.admin-upload-progress__pct {
    margin: 8px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #ffb46a;
    text-align: right;
}

.admin-edit-template-page {
    max-width: 920px;
}

.admin-template-form--compact {
    gap: 16px;
}

.admin-template-form--compact > .admin-form-section {
    margin: 0;
}

.admin-form-section {
    padding: 14px 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(120, 150, 255, 0.28);
    background: rgba(8, 12, 32, 0.52);
}

.admin-form-section__title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 200, 160, 0.95);
}

.admin-form-section__sub {
    margin: -6px 0 12px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(190, 205, 240, 0.78);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 14px;
    align-items: start;
}

.admin-form-field--full {
    grid-column: 1 / -1;
}

.admin-template-form--compact .admin-form-field__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(200, 215, 255, 0.88);
}

.admin-form-grid--media {
    grid-template-columns: 1fr 1fr;
}

.admin-form-grid--gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-media-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(95, 136, 255, 0.38);
    background: rgba(5, 10, 28, 0.48);
    min-width: 0;
}

.admin-media-card--wide {
    max-width: 100%;
}

.admin-media-card__head {
    font-size: 13px;
    font-weight: 700;
    color: #f4f7ff;
}

.admin-media-card__thumb {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 120px;
    height: 100%;
    margin: 0 auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-path-line {
    font-size: 11px;
    line-height: 1.35;
    font-family: ui-monospace, Consolas, monospace;
    color: rgba(175, 195, 255, 0.82);
    word-break: break-all;
    max-height: 2.8em;
    overflow: hidden;
}

.admin-path-line__k {
    font-weight: 700;
    color: rgba(210, 220, 255, 0.55);
    margin-right: 4px;
}

.admin-path-line--muted {
    color: rgba(140, 155, 200, 0.45);
}

.admin-media-card__chk {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(223, 231, 255, 0.9);
    cursor: pointer;
}

.admin-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.admin-stored-thumb {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 140px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 8px;
}

.admin-stored-thumb:has(.admin-sr-only:checked) .admin-media-card__thumb {
    opacity: 0.38;
    filter: grayscale(0.45);
}

.admin-thumb-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0;
    padding: 0;
    font: inherit;
    border-radius: 999px;
    border: 1px solid rgba(255, 220, 200, 0.45);
    background: rgba(18, 12, 32, 0.88);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-thumb-remove:focus-visible {
    outline: 2px solid rgba(255, 186, 120, 0.95);
    outline-offset: 2px;
}

.admin-thumb-remove:hover {
    background: rgba(160, 40, 40, 0.92);
    border-color: rgba(255, 200, 200, 0.55);
}

.admin-stored-thumb:has(.admin-sr-only:checked) .admin-thumb-remove {
    background: rgba(200, 55, 55, 0.95);
    border-color: rgba(255, 210, 200, 0.65);
}

.admin-stored-file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 4px 0 2px;
}

.admin-thumb-remove--file {
    position: static;
    flex-shrink: 0;
}

.admin-stored-file-name {
    font-size: 13px;
    font-family: ui-monospace, Consolas, monospace;
    color: rgba(210, 220, 255, 0.9);
    word-break: break-all;
}

.admin-stored-file-row:has(.admin-sr-only:checked) .admin-stored-file-name {
    opacity: 0.45;
    text-decoration: line-through;
}

.admin-template-form--compact .admin-file-preview--compact {
    margin: 4px 0 0;
    padding: 8px 10px;
    max-height: 200px;
}

.admin-template-form--compact .admin-file-preview--compact .admin-file-preview-label {
    margin-bottom: 4px;
    font-size: 11px;
}

.admin-template-form--compact .admin-file-preview--compact img {
    max-height: 140px;
    width: 100%;
    object-fit: cover;
    object-position: center top;
}

.admin-form-row-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    align-items: center;
    margin-bottom: 14px;
}

.admin-inline-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(223, 231, 255, 0.92);
    cursor: pointer;
}

.admin-template-form--compact textarea {
    min-height: 100px;
}

@media (max-width: 760px) {
    .admin-form-grid,
    .admin-form-grid--media,
    .admin-form-grid--gallery {
        grid-template-columns: 1fr;
    }
}

.admin-file-preview {
    position: relative;
    margin: 6px 0 16px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    overflow: hidden;
    max-height: 320px;
}

.admin-new-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid rgba(255, 220, 200, 0.4);
    background: rgba(12, 10, 28, 0.88);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease, border-color 0.15s ease;
}

.admin-new-clear:hover {
    background: rgba(160, 45, 45, 0.92);
    border-color: rgba(255, 200, 200, 0.55);
}

.admin-new-clear:focus-visible {
    outline: 2px solid rgba(255, 186, 120, 0.95);
    outline-offset: 2px;
}

.admin-file-preview-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(180, 198, 255, 0.75);
    margin-bottom: 8px;
}

.admin-file-preview img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    margin: 0 auto;
    object-fit: cover;
    object-position: center top;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-file-preview--download .admin-file-preview-name {
    display: block;
    font-size: 14px;
    word-break: break-all;
    color: var(--text-main);
    font-family: ui-monospace, Consolas, monospace;
}

.register-section {
    padding-top: 24px;
}

.register-container {
    max-width: 620px;
}

.register-card {
    position: relative;
    border-radius: 20px;
    border: 1px solid rgba(255, 122, 24, 0.18);
    background:
        radial-gradient(circle at 8% 6%, rgba(255, 120, 40, 0.14), transparent 40%),
        radial-gradient(circle at 95% 100%, rgba(80, 40, 200, 0.14), transparent 48%),
        rgba(8, 12, 28, 0.82);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    padding: 32px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.register-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(140deg, rgba(255, 150, 80, 0.07), transparent 38%);
}

.register-card-head {
    margin-bottom: 20px;
}

.register-card-head h2 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.register-card-head p {
    color: rgba(220, 228, 255, 0.78);
}

.form-alert {
    margin-bottom: 16px;
    padding: 13px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.form-alert-error {
    border: 1px solid rgba(255, 80, 80, 0.45);
    background: rgba(160, 20, 30, 0.25);
    color: #ffc8c8;
}

.form-alert-success {
    border: 1px solid rgba(80, 200, 130, 0.4);
    background: rgba(20, 100, 60, 0.25);
    color: #a8f0c8;
}

.register-form {
    gap: 14px;
}

.register-form label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 14px;
    color: rgba(224, 232, 255, 0.92);
}

.register-form input {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 11px 14px;
    min-height: 46px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.register-form textarea {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    padding: 11px 14px;
    color: #fff;
    font: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.register-form input:focus {
    outline: none;
    border-color: rgba(255, 150, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 120, 30, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.register-form textarea:focus {
    outline: none;
    border-color: rgba(255, 150, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 120, 30, 0.18);
    background: rgba(255, 255, 255, 0.07);
}

.register-btn {
    margin-top: 8px;
    width: auto;
    min-width: 220px;
    align-self: flex-start;
    font-size: 14px;
    letter-spacing: 0.02em;
    padding: 10px 18px;
}

.auth-switch {
    margin-top: 12px;
    color: #cfd6ea;
    font-size: 14px;
}

.auth-switch a {
    color: #ffb36e;
}

.auth-switch a:hover {
    color: #ffd1a0;
}

.register-trust {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.register-trust span {
    font-size: 11px;
    border: 1px solid rgba(137, 164, 255, 0.36);
    color: rgba(222, 231, 255, 0.88);
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(15, 22, 62, 0.52);
}

.contact-block {
    margin-bottom: 30px;
}

.contact-block h3 {
    margin-bottom: 8px;
}

.contact-block p {
    margin-bottom: 14px;
    color: var(--text-muted);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.info-card h3 {
    margin-bottom: 10px;
}

.info-card p {
    color: var(--text-muted);
    font-size: 14px;
}

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

.account-container {
    max-width: 980px;
}

.account-layout {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 16px;
    margin-bottom: 26px;
}

.account-panel {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background:
        radial-gradient(circle at 10% 8%, rgba(255, 120, 40, 0.1), transparent 42%),
        rgba(8, 12, 28, 0.72);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    padding: 22px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.account-panel h2 {
    font-size: 22px;
    margin-bottom: 14px;
}

.account-profile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-profile-item {
    border: 1px solid rgba(115, 146, 246, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    background: rgba(11, 19, 53, 0.52);
}

.account-profile-item span {
    display: block;
    font-size: 12px;
    color: #c5d0f5;
    margin-bottom: 4px;
}

.account-profile-item strong {
    font-size: 15px;
}

.account-security-text {
    color: var(--text-muted);
    margin-bottom: 12px;
    font-size: 14px;
}

.account-password-form .register-btn {
    margin-top: 4px;
}

.account-logout {
    margin-top: 14px;
}

.account-profile-tickets {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(125, 154, 255, 0.28);
}

.account-profile-tickets-title {
    font-size: 16px;
    margin: 0 0 8px;
    font-weight: 600;
    color: #e8ecff;
}

.account-profile-tickets-desc {
    margin: 0 0 14px;
    font-size: 13px;
    color: rgba(200, 210, 245, 0.78);
    line-height: 1.45;
}

.account-profile-tickets-btn {
    display: block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.account-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.account-stat-card {
    border: 1px solid rgba(121, 150, 247, 0.34);
    border-radius: 12px;
    background: rgba(13, 23, 63, 0.58);
    padding: 12px;
}

.account-stat-card span {
    display: block;
    font-size: 12px;
    color: #ccd7fc;
    margin-bottom: 6px;
}

.account-stat-card strong {
    font-size: 20px;
    color: #ffe1ba;
}

.account-orders-head {
    margin-bottom: 16px;
}

.order-flow-guide {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(121, 150, 247, 0.34);
    background: rgba(11, 19, 52, 0.55);
}

.order-flow-guide-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #e8eeff;
}

.order-flow-steps {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(214, 223, 250, 0.88);
}

.order-flow-steps strong {
    color: #ffe9cf;
    font-weight: 700;
}

.order-status-hint {
    margin: 10px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(197, 208, 235, 0.82);
}

.order-status-hint-warn {
    color: rgba(255, 214, 170, 0.92);
    border-left: 3px solid rgba(255, 176, 92, 0.65);
    padding-left: 10px;
    margin-left: 2px;
}

.account-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.account-order-card {
    border: 1px solid rgba(121, 150, 247, 0.34);
    border-radius: 14px;
    background: rgba(11, 19, 52, 0.62);
    padding: 14px;
}

.account-order-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.account-order-meta {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.account-status-badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.account-status-badge.is-pending {
    background: rgba(255, 170, 63, 0.2);
    border: 1px solid rgba(255, 176, 73, 0.5);
    color: #ffd49e;
}

.account-status-badge.is-paid {
    background: rgba(95, 132, 255, 0.2);
    border: 1px solid rgba(106, 150, 255, 0.5);
    color: #bfd2ff;
}

.account-order-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.account-cancel-form {
    display: inline-flex;
    margin: 0;
}

.account-empty {
    text-align: center;
    border: 1px dashed rgba(121, 150, 247, 0.5);
    border-radius: 16px;
    padding: 26px 20px;
    background: rgba(11, 19, 52, 0.5);
}

.account-empty h3 {
    margin-bottom: 8px;
}

.account-empty p {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.account-layout--compact {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.account-panel--compact {
    padding: 16px 16px;
    border-radius: 14px;
}

.account-panel--compact h2 {
    font-size: 17px;
    margin-bottom: 12px;
}

.account-panel--compact .account-profile-list {
    gap: 8px;
}

.account-panel--compact .account-profile-item {
    padding: 9px 12px;
    border-radius: 10px;
}

.account-panel--compact .account-profile-item span {
    font-size: 11px;
    margin-bottom: 2px;
}

.account-panel--compact .account-profile-item strong {
    font-size: 14px;
}

.account-panel--compact .account-profile-tickets {
    margin-top: 14px;
    padding-top: 14px;
}

.account-panel--compact .account-profile-tickets-title {
    font-size: 14px;
    margin: 0 0 6px;
}

.account-panel--compact .account-profile-tickets-desc {
    font-size: 12px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.account-panel--compact .account-profile-tickets-btn {
    padding: 9px 14px;
    font-size: 13px;
}

.account-panel--compact .account-logout {
    margin-top: 10px;
    padding: 8px 14px;
    font-size: 13px;
}

.account-panel--compact .account-security-text {
    font-size: 12.5px;
    margin-bottom: 10px;
    line-height: 1.45;
}

.account-panel--compact .account-password-form label {
    font-size: 12px;
}

.account-panel--compact .account-password-form input[type="password"] {
    padding: 9px 11px;
    font-size: 13px;
}

.account-panel--compact .account-password-form .register-btn {
    padding: 9px 14px;
    font-size: 13px;
    margin-top: 4px;
}

.account-panel--compact .form-alert {
    padding: 8px 10px;
    font-size: 12px;
    margin-bottom: 10px;
}

.account-compact-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.account-compact-duo {
    max-width: 680px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 0 !important;
    overflow: hidden;
}

.account-compact-col {
    padding: 18px 16px;
    min-width: 0;
    text-align: left;
}

.account-compact-col--orders {
    border-right: 1px solid rgba(125, 154, 255, 0.28);
}

.account-compact-title {
    font-size: 16px;
    margin: 0 0 6px;
    font-weight: 600;
    color: #e8ecff;
}

.account-compact-desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(200, 210, 245, 0.78);
}

.account-compact-muted {
    margin: 0;
    font-size: 13px;
    color: rgba(180, 190, 230, 0.58);
}

.account-compact-btn {
    margin-top: 4px;
    min-width: 0;
}

.account-orders-list--compact {
    gap: 8px;
    margin-top: 4px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 2px;
}

.account-order-card--compact {
    padding: 10px 12px;
}

.account-order-card--compact .account-order-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.account-order-card--compact .account-order-actions {
    margin-top: 8px;
}

.account-order-card--compact .btn {
    font-size: 12px;
    padding: 8px 14px;
}

/* =========================================================
   ADMIN DASHBOARD (admin/index.php)
========================================================= */
.admin-dashboard {
    padding-top: 24px;
}

.admin-dashboard-container {
    max-width: 1000px;
}

/* ----- Stats row ----- */
.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.admin-stat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
        rgba(8, 12, 28, 0.78);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--accent-from, #7d9aff), var(--accent-to, #4f7cff));
}

.admin-stat-card--blue   { --accent-from: #7d9aff; --accent-to: #4f6dff; }
.admin-stat-card--orange { --accent-from: #ffb05c; --accent-to: #ff7a2d; }
.admin-stat-card--green  { --accent-from: #6fe09a; --accent-to: #2bb673; }
.admin-stat-card--purple { --accent-from: #c08bff; --accent-to: #7f4dff; }

.admin-stat-card-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: linear-gradient(140deg, var(--accent-from), var(--accent-to));
    color: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.admin-stat-card-icon svg {
    width: 18px;
    height: 18px;
}

.admin-stat-card-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-stat-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(200, 210, 245, 0.78);
    font-weight: 600;
}

.admin-stat-value {
    font-size: 19px;
    font-weight: 800;
    color: #f3f5ff;
    margin-top: 1px;
    line-height: 1.1;
}

.admin-stat-sub {
    font-size: 10px;
    margin-top: 3px;
    color: rgba(180, 192, 230, 0.7);
}

/* ----- Action cards ----- */
.admin-actions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .admin-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.admin-action-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 4px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.04), transparent 50%),
        rgba(8, 12, 28, 0.72);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-action-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 60%, rgba(255, 255, 255, 0.05) 80%, transparent 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.admin-action-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 140, 50, 0.45);
    box-shadow:
        0 22px 45px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(255, 100, 0, 0.1);
}

.admin-action-card:hover::after {
    opacity: 1;
}

.admin-action-card--blue   { --accent-from: #7d9aff; --accent-to: #4f6dff; }
.admin-action-card--orange { --accent-from: #ffb05c; --accent-to: #ff7a2d; }
.admin-action-card--purple { --accent-from: #c08bff; --accent-to: #7f4dff; }
.admin-action-card--ghost  { --accent-from: #aab8e8; --accent-to: #6f7eb4; }

.admin-action-icon {
    grid-row: 1 / span 2;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(140deg, var(--accent-from), var(--accent-to));
    color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.admin-action-icon svg {
    width: 22px;
    height: 22px;
}

.admin-action-body {
    min-width: 0;
}

.admin-action-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #f3f5ff;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-action-desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: rgba(200, 210, 245, 0.78);
}

.admin-action-cta {
    grid-column: 2;
    margin-top: 6px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--accent-from);
    letter-spacing: 0.3px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.admin-action-card:hover .admin-action-cta {
    color: #ffd49e;
}

.admin-action-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.admin-action-badge--warn {
    background: rgba(255, 170, 63, 0.18);
    border: 1px solid rgba(255, 176, 73, 0.5);
    color: #ffd49e;
}

.admin-action-badge--alert {
    background: rgba(255, 77, 79, 0.18);
    border: 1px solid rgba(255, 90, 92, 0.55);
    color: #ffb6b8;
    animation: admin-pulse 1.6s ease-in-out infinite;
}

@keyframes admin-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.45); }
    50%      { box-shadow: 0 0 0 6px rgba(255, 77, 79, 0); }
}

/* ----- Visitor analytics panel ----- */
.admin-visitors-panel {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(125, 154, 255, 0.34);
    background:
        radial-gradient(circle at 8% 0%, rgba(125, 154, 255, 0.10), transparent 55%),
        rgba(13, 21, 56, 0.72);
    box-shadow: 0 12px 24px rgba(8, 13, 36, 0.4);
    margin-bottom: 20px;
}

.admin-visitors-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(125, 154, 255, 0.22);
}

.admin-visitors-kicker {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #7d9aff;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-visitors-head h3 {
    font-size: 15px;
    margin: 0;
    color: #f3f5ff;
}

.admin-visitors-totals {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-visitors-total-item {
    text-align: right;
}

.admin-visitors-total-item span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(200, 210, 245, 0.7);
    margin-bottom: 1px;
}

.admin-visitors-total-item strong {
    font-size: 15px;
    font-weight: 800;
    color: #eef2ff;
}

.admin-visitors-total-item--accent strong {
    color: #7d9aff;
}

.admin-visitors-chart {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    align-items: end;
    min-height: 130px;
}

.admin-visitors-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.admin-visitors-bar-value {
    font-size: 10px;
    font-weight: 700;
    color: rgba(200, 210, 245, 0.78);
    height: 12px;
}

.admin-visitors-bar-track {
    width: 100%;
    height: 80px;
    background: rgba(11, 19, 52, 0.55);
    border: 1px solid rgba(115, 146, 246, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.admin-visitors-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #7d9aff 0%, #4f6dff 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.admin-visitors-bar-wrap.is-today .admin-visitors-bar-fill {
    background: linear-gradient(180deg, #ffb05c 0%, #ff7a2d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 14px rgba(255, 122, 45, 0.35);
}

.admin-visitors-bar-wrap.is-today .admin-visitors-bar-value {
    color: #ffd49e;
}

.admin-visitors-bar-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.admin-visitors-bar-label strong {
    font-size: 11px;
    color: #eef2ff;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.admin-visitors-bar-wrap.is-today .admin-visitors-bar-label strong {
    color: #ffd49e;
}

.admin-visitors-bar-label span {
    font-size: 9.5px;
    color: rgba(180, 192, 230, 0.65);
}

@media (max-width: 600px) {
    .admin-visitors-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-visitors-totals {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }
    .admin-visitors-total-item {
        text-align: left;
    }
    .admin-visitors-chart {
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
}

/* ----- Insights (Top pages + Top referrers) ----- */
.admin-insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-insights-panel {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(125, 154, 255, 0.34);
    background:
        radial-gradient(circle at 8% 0%, rgba(125, 154, 255, 0.08), transparent 55%),
        rgba(13, 21, 56, 0.72);
    box-shadow: 0 12px 24px rgba(8, 13, 36, 0.4);
}

.admin-insights-head {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(125, 154, 255, 0.22);
}

.admin-insights-kicker {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #7d9aff;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-insights-kicker--alt {
    color: #ffb05c;
}

.admin-insights-head h3 {
    font-size: 14px;
    margin: 0;
    color: #f3f5ff;
}

.admin-insights-empty {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(180, 192, 230, 0.65);
    font-style: italic;
}

.admin-insights-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-insights-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-insights-item-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.admin-insights-item-label {
    font-size: 12px;
    color: #eef2ff;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.admin-insights-item-value {
    font-size: 11px;
    color: rgba(200, 210, 245, 0.75);
    white-space: nowrap;
    flex-shrink: 0;
}

.admin-insights-item-value strong {
    color: #f3f5ff;
    font-weight: 800;
    margin-right: 4px;
}

.admin-insights-item-value em {
    font-style: normal;
    color: rgba(180, 192, 230, 0.6);
    font-size: 10.5px;
}

.admin-insights-bar {
    height: 5px;
    background: rgba(11, 19, 52, 0.55);
    border-radius: 999px;
    overflow: hidden;
}

.admin-insights-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7d9aff 0%, #4f6dff 100%);
    border-radius: 999px;
    transition: width 0.4s ease;
}

.admin-insights-bar--alt .admin-insights-bar-fill {
    background: linear-gradient(90deg, #ffb05c 0%, #ff7a2d 100%);
}

.admin-insights-grid--single {
    grid-template-columns: 1fr;
}

@media (max-width: 760px) {
    .admin-insights-grid {
        grid-template-columns: 1fr;
    }
}

/* ----- Trend arrows in stats ----- */
.admin-trend {
    font-weight: 700;
    margin-right: 4px;
}

.admin-trend--up   { color: #6fe09a; }
.admin-trend--down { color: #ff8a8c; }

/* ----- Monthly revenue panel ----- */
.admin-revenue-panel {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(125, 154, 255, 0.34);
    background:
        radial-gradient(circle at 8% 0%, rgba(111, 224, 154, 0.08), transparent 55%),
        rgba(13, 21, 56, 0.72);
    box-shadow: 0 12px 24px rgba(8, 13, 36, 0.4);
    margin-bottom: 20px;
}

.admin-revenue-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(125, 154, 255, 0.22);
}

.admin-revenue-kicker {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #6fe09a;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-revenue-head h3 {
    font-size: 15px;
    margin: 0;
    color: #f3f5ff;
}

.admin-revenue-totals {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.admin-revenue-total-item {
    text-align: right;
}

.admin-revenue-total-item span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(200, 210, 245, 0.7);
    margin-bottom: 1px;
}

.admin-revenue-total-item strong {
    font-size: 15px;
    font-weight: 800;
    color: #eef2ff;
}

.admin-revenue-total-item--accent strong {
    color: #6fe09a;
}

.admin-revenue-chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    align-items: end;
    min-height: 140px;
}

.admin-revenue-bar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
}

.admin-revenue-bar-value {
    font-size: 10px;
    font-weight: 700;
    color: rgba(200, 210, 245, 0.78);
    height: 12px;
}

.admin-revenue-bar-track {
    width: 100%;
    height: 90px;
    background: rgba(11, 19, 52, 0.55);
    border: 1px solid rgba(115, 146, 246, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.admin-revenue-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #6fe09a 0%, #2bb673 100%);
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.admin-revenue-bar-wrap.is-current .admin-revenue-bar-fill {
    background: linear-gradient(180deg, #ffb05c 0%, #ff7a2d 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3),
                0 0 14px rgba(255, 122, 45, 0.35);
}

.admin-revenue-bar-wrap.is-current .admin-revenue-bar-value {
    color: #ffd49e;
}

.admin-revenue-bar-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
}

.admin-revenue-bar-label strong {
    font-size: 11px;
    color: #eef2ff;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.admin-revenue-bar-wrap.is-current .admin-revenue-bar-label strong {
    color: #ffd49e;
}

.admin-revenue-bar-label span {
    font-size: 9.5px;
    color: rgba(180, 192, 230, 0.65);
}

/* ----- Recent activity ----- */
.admin-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.admin-activity-panel {
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(125, 154, 255, 0.34);
    background:
        radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.04), transparent 55%),
        rgba(13, 21, 56, 0.72);
    box-shadow: 0 12px 24px rgba(8, 13, 36, 0.4);
}

.admin-activity-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(125, 154, 255, 0.22);
}

.admin-activity-head h3 {
    font-size: 14px;
    margin: 0;
    color: #f3f5ff;
}

.admin-activity-link {
    font-size: 11px;
    font-weight: 700;
    color: #ffb05c;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.admin-activity-link:hover {
    color: #ffd49e;
}

.admin-activity-empty {
    margin: 8px 0 0;
    font-size: 13px;
    color: rgba(180, 192, 230, 0.65);
    font-style: italic;
}

.admin-activity-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(11, 19, 52, 0.55);
    border: 1px solid rgba(115, 146, 246, 0.22);
}

.admin-activity-item-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-activity-item-main strong {
    font-size: 12px;
    color: #eef2ff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-activity-meta {
    font-size: 10.5px;
    color: rgba(180, 192, 230, 0.72);
    margin-top: 1px;
}

.admin-activity-badge {
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-activity-badge.is-paid {
    background: rgba(95, 132, 255, 0.18);
    border: 1px solid rgba(106, 150, 255, 0.5);
    color: #bfd2ff;
}

.admin-activity-badge.is-pending {
    background: rgba(255, 170, 63, 0.18);
    border: 1px solid rgba(255, 176, 73, 0.5);
    color: #ffd49e;
}

.admin-activity-badge.is-alert {
    background: rgba(255, 77, 79, 0.18);
    border: 1px solid rgba(255, 90, 92, 0.55);
    color: #ffb6b8;
}

/* ----- Responsive ----- */
@media (max-width: 1000px) {
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .admin-actions-grid,
    .admin-activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-revenue-chart {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 18px;
    }
    .admin-revenue-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .admin-revenue-totals {
        width: 100%;
        justify-content: space-between;
    }
    .admin-revenue-total-item {
        text-align: left;
    }
}

@media (max-width: 520px) {
    .admin-stats-grid {
        grid-template-columns: 1fr;
    }
    .admin-action-card {
        grid-template-columns: 48px 1fr;
        padding: 16px;
    }
    .admin-action-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }
    .admin-action-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* =========================================================
   ADMIN PAGES (orders / templates lists) — compact layout
========================================================= */
.admin-page {
    padding-top: 18px;
}

.admin-page-container {
    max-width: 980px;
}

.admin-toolbar {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(8, 12, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.admin-toolbar-input {
    width: 100%;
    padding: 9px 12px;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font: inherit;
    font-size: 13px;
}

.admin-toolbar-input::placeholder {
    color: rgba(200, 210, 245, 0.55);
}

.admin-toolbar-input:focus {
    outline: none;
    border-color: rgba(255, 150, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 120, 30, 0.16);
}

.admin-toolbar-btn {
    padding: 8px 16px;
    font-size: 13px;
    min-width: 0;
}

.admin-toolbar-reset {
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(200, 210, 245, 0.8);
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid rgba(180, 198, 255, 0.28);
    background: rgba(11, 19, 52, 0.45);
    transition: var(--transition);
}

.admin-toolbar-reset:hover {
    color: #ffd49e;
    border-color: rgba(255, 173, 92, 0.55);
}

.admin-empty {
    text-align: center;
    color: rgba(200, 210, 245, 0.65);
    font-size: 13px;
    padding: 28px 12px;
    border: 1px dashed rgba(180, 198, 255, 0.28);
    border-radius: 12px;
    background: rgba(11, 19, 52, 0.45);
}

.admin-table-wrap--compact {
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(8, 13, 36, 0.35);
}

.admin-table--compact {
    min-width: 640px;
}

.admin-table--compact thead th {
    padding: 9px 12px;
    font-size: 11px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(200, 210, 245, 0.85);
}

.admin-table--compact tbody td {
    padding: 9px 12px;
    font-size: 13px;
}

.admin-num {
    font-weight: 700;
    text-align: left;
}

.admin-num--pending { color: #ffb84d; }
.admin-num--paid    { color: #6da4ff; }

.admin-toolbar--filters {
    grid-template-columns: 1fr 160px auto auto;
}

.admin-toolbar-select {
    padding-right: 26px;
    cursor: pointer;
}

/* ----- Per-row meta + actions ----- */
.admin-table-meta {
    display: inline;
    font-size: 11px;
    color: rgba(200, 210, 245, 0.65);
    margin-left: 6px;
}

.admin-table-meta--block {
    display: block;
    margin-left: 0;
    line-height: 1.3;
}

.admin-table--compact tbody td strong {
    color: #f3f5ff;
}

.admin-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.admin-status-pill--paid {
    background: rgba(95, 132, 255, 0.18);
    border: 1px solid rgba(106, 150, 255, 0.5);
    color: #bfd2ff;
}

.admin-status-pill--pending {
    background: rgba(255, 170, 63, 0.18);
    border: 1px solid rgba(255, 176, 73, 0.5);
    color: #ffd49e;
}

.admin-col-actions {
    text-align: right;
    white-space: nowrap;
}

.admin-row-actions {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.admin-row-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    cursor: pointer;
    line-height: 1.2;
}

.admin-row-btn.btn {
    box-shadow: 0 4px 12px rgba(255, 122, 24, 0.3);
}

.admin-row-btn--ghost {
    color: rgba(200, 210, 245, 0.85);
    border-color: rgba(180, 198, 255, 0.32);
    background: rgba(11, 19, 52, 0.45);
}

.admin-row-btn--ghost:hover {
    color: #ffd49e;
    border-color: rgba(255, 173, 92, 0.55);
}

.admin-row-btn--danger {
    color: #ffb6b8;
    border-color: rgba(255, 90, 92, 0.55);
    background: rgba(255, 77, 79, 0.12);
}

.admin-row-btn--danger:hover {
    color: #fff;
    background: rgba(255, 77, 79, 0.32);
    border-color: rgba(255, 90, 92, 0.85);
}

@media (max-width: 600px) {
    .admin-toolbar--filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .admin-toolbar {
        grid-template-columns: 1fr;
    }
    .admin-toolbar-btn,
    .admin-toolbar-reset {
        text-align: center;
    }
}

/* =========================================================
   ADMIN TABLES
========================================================= */
.admin-filters {
    display: grid;
    grid-template-columns: 1.6fr 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-filters input,
.admin-filters select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-filters input {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.admin-filters input:focus,
.admin-filters select:focus {
    outline: none;
    border-color: rgba(255, 150, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 120, 30, 0.18);
}

.admin-table-wrap {
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(6, 8, 20, 0.9);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.admin-table thead th {
    background: rgba(255, 255, 255, 0.05);
    text-align: left;
    padding: 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.admin-table thead th a {
    color: var(--text-main);
}

.admin-table tbody td {
    padding: 14px;
    border-top: 1px solid var(--border);
    vertical-align: middle;
    font-size: 14px;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-active {
    background: rgba(255, 122, 24, 0.18);
    color: #ffbf85;
}

.status-inactive {
    background: rgba(255, 184, 77, 0.18);
    color: #ffb84d;
}

.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* =========================================================
   ADMIN TICKET PANEL
========================================================= */
.ticket-panel {
    border-color: rgba(255, 184, 77, 0.25);
}

.ticket-panel-section {
    margin-top: 24px;
}

.ticket-panel-section:first-of-type {
    margin-top: 4px;
}

.ticket-panel-kicker {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 178, 74, 0.12);
    border: 1px solid rgba(255, 183, 121, 0.4);
    color: #ffe3bf;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.ticket-panel-divider {
    height: 1px;
    margin: 26px 0 0;
    background: linear-gradient(90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.12) 20%,
        rgba(255, 255, 255, 0.12) 80%,
        rgba(255, 255, 255, 0) 100%);
}

.ticket-panel-actions-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
}

.ticket-panel-actions-row .btn {
    min-width: 0;
    margin-top: 0;
}

.ticket-panel-actions-row .ticket-panel-actions-primary,
.ticket-panel-actions-row .ticket-panel-actions-danger {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.ticket-panel-info {
    margin: 0 0 4px;
    color: rgba(220, 228, 255, 0.72);
    font-size: 14px;
    line-height: 1.55;
}

.btn-danger {
    border: 1px solid rgba(255, 99, 99, 0.6) !important;
    color: #ffd5d5 !important;
    background: rgba(255, 60, 60, 0.12) !important;
    box-shadow: none !important;
}

.btn-danger:hover {
    background: rgba(255, 60, 60, 0.22) !important;
    color: #fff !important;
    border-color: rgba(255, 99, 99, 0.85) !important;
    box-shadow: 0 8px 18px rgba(255, 60, 60, 0.25) !important;
    transform: translateY(-1px);
}

.ticket-panel-closed-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(79, 124, 255, 0.08);
    border: 1px solid rgba(79, 124, 255, 0.25);
    color: #c9d2ee;
    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   FOOTER
========================================================= */
.site-footer {
    margin-top: 40px;
}

.footer-modern {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(136, 168, 255, 0.28);
    background:
        radial-gradient(circle at 10% 0%, rgba(255, 165, 89, 0.12), transparent 36%),
        radial-gradient(circle at 90% 100%, rgba(118, 151, 255, 0.16), transparent 40%),
        linear-gradient(180deg, rgba(29, 46, 105, 0.66), rgba(16, 27, 69, 0.82));
    backdrop-filter: blur(3px);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(154, 179, 255, 0.22);
}

.footer-column h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-column p,
.footer-column a {
    display: block;
    margin-bottom: 10px;
    color: rgba(180, 195, 220, 0.75);
    font-size: 14px;
    transition: var(--transition);
}

.footer-column a:hover {
    color: #ff9f50;
}

.footer-payments-bar {
    background: linear-gradient(
        165deg,
        rgba(72, 88, 138, 0.97) 0%,
        rgba(52, 66, 112, 0.98) 45%,
        rgba(44, 56, 98, 0.99) 100%
    );
    border-top: 1px solid rgba(165, 188, 255, 0.22);
}

.footer-payments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 36px;
    padding: 22px 0 16px;
    flex-wrap: wrap;
}

.payment-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 0;
    line-height: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.85;
}

.payment-logo:hover {
    transform: translateY(-2px);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    color: rgba(214, 223, 250, 0.7);
    font-size: 14px;
    padding-bottom: 18px;
}

.store-category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.store-category-tab {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: #e8edff;
    text-decoration: none;
    border: 1px solid rgba(165, 188, 255, 0.35);
    background: rgba(36, 48, 88, 0.55);
    transition: var(--transition);
}

.store-category-tab:hover {
    border-color: rgba(255, 185, 125, 0.55);
    color: #fff7ec;
}

.store-category-tab.is-active {
    border-color: rgba(255, 168, 82, 0.75);
    background: linear-gradient(135deg, rgba(255, 138, 43, 0.35), rgba(255, 192, 110, 0.22));
    color: #fff4e6;
}

.store-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(8, 12, 28, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.store-toolbar-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.store-toolbar-left strong {
    font-size: 20px;
    color: #f4f7ff;
}

.store-toolbar-left span {
    color: rgba(200, 214, 250, 0.82);
    font-size: 13px;
}

.store-toolbar-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.store-toolbar-right label {
    color: rgba(200, 214, 250, 0.82);
    font-size: 13px;
}

.store-toolbar-right select {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-main);
    border-radius: 9px;
    padding: 9px 12px;
    font-family: var(--font);
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.store-toolbar-right select:hover {
    border-color: rgba(255, 150, 60, 0.4);
}

.store-toolbar-right select:focus {
    outline: none;
    border-color: rgba(255, 150, 60, 0.7);
    box-shadow: 0 0 0 3px rgba(255, 120, 30, 0.18);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1100px) {
    .template-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .header-nav-group {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: center;
        padding: 14px 0;
        gap: 12px;
    }

    .logo-image {
        width: 330px;
        height: 60px;
    }

    .header-nav-group {
        width: 100%;
        justify-content: center;
    }

    .main-nav--cluster,
    .auth-nav--cluster {
        justify-content: center;
    }

    .main-nav-core,
    .auth-nav-pills {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .register-card {
        padding: 20px 16px;
    }

    .register-card-head h2 {
        font-size: 24px;
    }

    .promo-bar-inner {
        min-height: 46px;
        font-size: 12px;
    }

    .template-grid,
    .info-grid,
    .footer-top,
    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-gallery-zoom--main,
    .product-gallery > img.main-product-image {
        width: 100%;
        max-width: 100%;
        min-height: min(200px, 45vw);
        max-height: min(400px, 55vh);
    }

    .product-gallery-zoom--main .main-product-image {
        max-height: min(400px, 55vh);
    }

    .hero h1 {
        font-size: 32px;
    }

    .store-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-filters {
        grid-template-columns: 1fr;
    }

    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-layout--compact {
        max-width: 420px;
    }

    .account-compact-duo {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .account-compact-col--orders {
        border-right: none;
        border-bottom: 1px solid rgba(125, 154, 255, 0.28);
    }

    .account-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

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

    .page-hero-content h1 {
        font-size: 24px;
    }

    .page-hero {
        padding: 40px 0 22px;
    }

    .page-hero-content p {
        font-size: 13px;
    }

    .admin-hero {
        padding: 40px 0 22px;
    }

    .admin-hero .page-hero-content h1 {
        font-size: 24px;
    }

    .admin-hero .page-hero-content p {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .logo-image {
        width: 250px;
        height: 50px;
    }

    .register-trust {
        flex-direction: column;
        align-items: flex-start;
    }

    .register-btn {
        width: 100%;
        min-width: 0;
    }

    .account-stats-grid {
        grid-template-columns: 1fr;
    }

    .account-order-top {
        flex-direction: column;
    }
}

/* =========================================================
   CHECKOUT PAGE (checkout.php)
========================================================= */
.checkout-summary {
    margin-bottom: 20px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: rgba(220, 230, 255, 0.85);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
}

.checkout-summary-total strong {
    color: #ffcb8e;
    font-size: 20px;
}

.checkout-payment-element {
    margin: 4px 0 8px;
    min-height: 60px;
}

.checkout-secure-note {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: rgba(180, 195, 220, 0.6);
}

.checkout-back {
    margin-top: 10px;
    text-align: center;
    font-size: 13px;
}

.checkout-back a {
    color: rgba(180, 195, 220, 0.7);
    transition: color 0.2s ease;
}

.checkout-back a:hover {
    color: #ffb36e;
}

/* =========================================================
   SITE ADS (partner banners, admin-controlled)
========================================================= */
.site-ad-slot {
    padding: 10px 0 12px;
    background: none;
    border: none;
}

.site-ad-slot[data-ad-placement="global_above_footer"] {
    border: none;
    background: none;
    padding-top: 12px;
    margin-top: 4px;
}

.site-ad-slot-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Под хедъра: до 3 реклами в ред (на тесен екран — една под друга). */
.site-ad-slot-inner.site-ad-slot-inner--triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    justify-items: stretch;
}

/* Една реклама = една колона (~⅓ ширина), центрирана в средната трета. */
.site-ad-slot-inner.site-ad-slot-inner--triple[data-ad-count="1"] .site-ad-item {
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
}

.site-ad-slot-inner.site-ad-slot-inner--triple .site-ad-item {
    max-width: none;
    width: 100%;
    margin-inline: 0;
}

/* Широк хоризонтален бокс; височината на картинката остава същата (max-height по-долу). */
.site-ad-slot-inner.site-ad-slot-inner--triple .site-ad-link {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.site-ad-slot-inner.site-ad-slot-inner--triple .site-ad-link,
.site-ad-slot-inner.site-ad-slot-inner--triple .site-ad-img {
    max-height: min(28vh, 120px);
}

.site-ad-slot-inner.site-ad-slot-inner--triple .site-ad-img {
    width: auto;
    max-width: 100%;
}

@media (max-width: 720px) {
    .site-ad-slot-inner.site-ad-slot-inner--triple {
        grid-template-columns: 1fr;
    }

    .site-ad-slot-inner.site-ad-slot-inner--triple[data-ad-count="1"] .site-ad-item {
        grid-column: 1;
        max-width: none;
    }
}

.site-ad-item {
    position: relative;
    width: 100%;
    max-width: min(100%, 520px);
    margin-inline: auto;
    text-align: center;
}

.site-ad-link {
    display: inline-block;
    max-width: 100%;
    max-height: min(32vh, 168px);
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-ad-link:hover {
    border-color: rgba(255, 178, 102, 0.45);
    box-shadow: 0 12px 36px rgba(255, 122, 24, 0.18);
    transform: translateY(-1px);
}

/* Само картинката — без видима „кутия“ (рамка/сянка). Зоната има aria-label. */
.site-ad-slot .site-ad-link,
.site-ad-slot .site-ad-link:hover {
    border: none;
    box-shadow: none;
    background: transparent;
    transform: none;
    border-radius: 0;
}

.site-ad-slot .site-ad-link:hover {
    opacity: 0.92;
}

.site-ad-slot .site-ad-link {
    transition: opacity 0.2s ease;
}

.site-ad-slot .site-ad-badge {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-ad-img {
    display: block;
    max-width: 100%;
    max-height: min(32vh, 168px);
    width: auto;
    height: auto;
    object-fit: contain;
    vertical-align: middle;
    margin-inline: auto;
}

.site-ad-badge {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

/* =========================================================
   ADMIN: ad placement map (add / edit ad)
========================================================= */
.admin-ad-map {
    margin: 14px 0 20px;
    padding: 14px 16px 16px;
    border-radius: 12px;
    border: 1px solid rgba(95, 136, 255, 0.35);
    background: rgba(9, 16, 45, 0.55);
}

.admin-ad-map-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 214, 170, 0.95);
    margin-bottom: 12px;
}

.admin-ad-map-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-ad-map-row {
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.admin-ad-map-row--muted {
    opacity: 0.75;
    font-size: 12px;
}

.admin-ad-map-row--header,
.admin-ad-map-row--footer {
    font-size: 13px;
    font-weight: 600;
}

.admin-ad-map-row--body {
    padding-bottom: 12px;
}

.admin-ad-map-row--slot {
    border-style: dashed;
    border-color: rgba(255, 178, 102, 0.35);
    background: rgba(255, 122, 24, 0.08);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-ad-map-row--slot.is-selected {
    border-style: solid;
    border-color: rgba(255, 178, 102, 0.85);
    background: rgba(255, 122, 24, 0.16);
    box-shadow: 0 0 0 2px rgba(255, 178, 102, 0.2);
}

.admin-ad-map-row--slot-nested {
    margin-top: 4px;
}

.admin-ad-map-slot-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 184, 120, 0.9);
}

.admin-ad-map-label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.admin-ad-map-meta {
    font-size: 12px;
    color: rgba(210, 220, 255, 0.75);
}

.admin-ad-map-triple-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin: 6px 0 2px;
}

.admin-ad-map-triple-mini-cell {
    height: 22px;
    border-radius: 4px;
    border: 1px dashed rgba(255, 184, 120, 0.45);
    background: rgba(0, 0, 0, 0.18);
}

.admin-ad-map-nested {
    margin-top: 10px;
    padding: 10px 10px 8px;
    border-radius: 8px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.2);
}

.admin-ad-map-nested-title {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(180, 200, 255, 0.85);
    margin-bottom: 8px;
}

/* Add ad — modern compact layout (add-ad.php only) */
.admin-add-ad-page {
    padding: 8px 0 22px;
}

.admin-add-ad-wrap {
    max-width: 960px;
}

.admin-add-ad-hero {
    margin-bottom: 10px;
}

.admin-add-ad-back {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    padding: 4px 10px 4px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(220, 230, 255, 0.9);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 28, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--transition), background var(--transition), color var(--transition);
}

.admin-add-ad-back:hover {
    color: #fff;
    border-color: rgba(255, 178, 102, 0.55);
    background: rgba(255, 122, 24, 0.12);
}

.admin-add-ad-back__icon {
    font-size: 16px;
    line-height: 1;
    opacity: 0.85;
}

.admin-add-ad-kicker {
    display: inline-block;
    margin-bottom: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 214, 170, 0.98);
    border: 1px solid rgba(255, 178, 102, 0.35);
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.2), rgba(79, 124, 255, 0.18));
}

.admin-add-ad-title {
    margin: 0 0 3px;
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    background: linear-gradient(105deg, #fff 0%, #ffd4a8 42%, #9eb8ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.admin-add-ad-lead {
    margin: 0;
    max-width: 46ch;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-muted);
}

.admin-add-ad-alert {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
}

.admin-add-ad-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(200px, 268px);
    gap: 10px 14px;
    align-items: start;
}

.admin-add-ad-main {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.admin-add-ad-card {
    position: relative;
    padding: 10px 12px 11px;
    border-radius: 11px;
    border: 1px solid rgba(120, 150, 255, 0.22);
    background: linear-gradient(145deg, rgba(12, 18, 42, 0.82), rgba(8, 12, 28, 0.65));
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
}

.admin-add-ad-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #5f8eeb, rgba(120, 60, 255, 0.6));
    opacity: 0.85;
}

.admin-add-ad-card__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.admin-add-ad-card__head h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #f4f7ff;
}

.admin-add-ad-step {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #5f8eeb);
    box-shadow: 0 4px 14px var(--accent-glow);
}

.admin-add-ad-card__sub {
    margin: -2px 0 6px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(148, 163, 184, 0.95);
}

.admin-add-ad-fields {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-add-ad-fields--duo,
.admin-add-ad-fields--publish {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}

.admin-add-ad-field--full {
    grid-column: 1 / -1;
}

.admin-add-ad-label {
    display: block;
    margin-bottom: 3px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(200, 215, 255, 0.9);
}

.admin-add-ad-input,
.admin-add-ad-select {
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    font: inherit;
    font-size: 13px;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.admin-add-ad-input::placeholder {
    color: rgba(148, 163, 184, 0.55);
}

.admin-add-ad-input:hover,
.admin-add-ad-select:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.admin-add-ad-input:focus,
.admin-add-ad-select:focus {
    outline: none;
    border-color: rgba(255, 178, 102, 0.75);
    background: rgba(0, 0, 0, 0.32);
    box-shadow:
        0 0 0 3px var(--accent-soft),
        0 0 22px rgba(95, 142, 235, 0.15);
}

.admin-add-ad-select {
    cursor: pointer;
    color-scheme: dark;
}

.admin-add-ad-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 84px;
    padding: 10px 12px;
    border-radius: 9px;
    border: 1px dashed rgba(95, 142, 235, 0.45);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 122, 24, 0.12), transparent 55%),
        rgba(0, 0, 0, 0.2);
    cursor: pointer;
    text-align: center;
    transition: border-color var(--transition), background var(--transition), transform 0.2s ease;
}

.admin-add-ad-dropzone:hover,
.admin-add-ad-dropzone:focus-within {
    border-color: rgba(255, 178, 102, 0.65);
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 122, 24, 0.18), transparent 55%),
        rgba(255, 122, 24, 0.06);
    transform: translateY(-1px);
}

.admin-add-ad-dropzone.has-file {
    border-style: solid;
    border-color: rgba(61, 214, 140, 0.55);
    background: rgba(61, 214, 140, 0.08);
}

.admin-add-ad-dropzone__icon svg {
    width: 22px;
    height: 22px;
}

.admin-add-ad-dropzone__ring {
    position: absolute;
    inset: 5px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.admin-add-ad-dropzone__icon {
    display: flex;
    color: #ffb46a;
    filter: drop-shadow(0 0 12px var(--accent-glow));
}

.admin-add-ad-dropzone__title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.admin-add-ad-dropzone__hint {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 28ch;
}

.admin-add-ad-dropzone__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.admin-add-ad-spec {
    margin: 6px 0 0;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 11px;
    line-height: 1.35;
    color: rgba(200, 212, 245, 0.88);
    border: 1px solid rgba(95, 142, 235, 0.25);
    background: rgba(79, 124, 255, 0.08);
}

.admin-add-ad-switch {
    display: inline-flex;
    align-items: center;
    margin-top: 2px;
    cursor: pointer;
}

.admin-add-ad-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.admin-add-ad-switch__track {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.admin-add-ad-switch__track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform var(--transition);
}

.admin-add-ad-switch input:checked + .admin-add-ad-switch__track {
    background: linear-gradient(135deg, var(--accent), #5f8eeb);
    border-color: rgba(255, 178, 102, 0.5);
    box-shadow: 0 0 16px var(--accent-soft);
}

.admin-add-ad-switch input:checked + .admin-add-ad-switch__track::after {
    transform: translateX(18px);
}

.admin-add-ad-switch input:focus-visible + .admin-add-ad-switch__track {
    outline: 2px solid rgba(255, 178, 102, 0.8);
    outline-offset: 2px;
}

.admin-add-ad-aside__label {
    margin: 0 0 5px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 200, 160, 0.95);
}

.admin-add-ad-map-shell {
    position: sticky;
    top: 68px;
    padding: 1px;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(255, 122, 24, 0.55), rgba(95, 142, 235, 0.5));
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
}

.admin-add-ad-map-shell .admin-ad-map {
    margin: 0;
    padding: 8px 9px 10px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(160deg, rgba(10, 16, 40, 0.95), rgba(6, 10, 26, 0.92));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.admin-add-ad-map-shell .admin-ad-map-title {
    display: none;
}

.admin-add-ad-map-shell .admin-ad-map-stack {
    gap: 4px;
}

.admin-add-ad-map-shell .admin-ad-map-row {
    padding: 5px 7px;
    border-radius: 7px;
}

.admin-add-ad-map-shell .admin-ad-map-row--slot.is-selected {
    border-color: rgba(255, 178, 102, 0.9);
    box-shadow:
        0 0 0 1px rgba(255, 178, 102, 0.35),
        0 8px 24px rgba(255, 122, 24, 0.2);
}

.admin-add-ad-map-shell .admin-ad-map-label {
    font-size: 11px;
}

.admin-add-ad-map-shell .admin-ad-map-meta {
    font-size: 9px;
    line-height: 1.3;
}

.admin-add-ad-map-shell .admin-ad-map-slot-kicker {
    font-size: 9px;
}

.admin-add-ad-map-shell .admin-ad-map-triple-mini {
    gap: 4px;
    margin: 4px 0 0;
}

.admin-add-ad-map-shell .admin-ad-map-triple-mini-cell {
    height: 12px;
    border-color: rgba(255, 184, 120, 0.5);
}

.admin-add-ad-map-shell .admin-ad-map-nested {
    margin-top: 4px;
    padding: 5px 6px;
}

.admin-add-ad-map-shell .admin-ad-map-nested-title {
    margin-bottom: 4px;
    font-size: 9px;
}

.admin-add-ad-actions {
    margin-top: 2px;
}

.admin-add-ad-actions .btn-flow {
    min-width: 140px;
}

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

    .admin-add-ad-map-shell {
        position: static;
    }

    .admin-add-ad-fields--publish {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .admin-add-ad-fields--duo {
        grid-template-columns: 1fr;
    }

    .admin-add-ad-actions .btn-flow {
        width: 100%;
    }
}

/* Admin — compact email settings */
.admin-hero--compact {
    padding: 28px 0 18px;
}

.admin-hero--compact .page-hero-content p {
    display: none;
}

.admin-hero--compact h1 {
    margin-bottom: 0;
}

.admin-email-wrap {
    max-width: 720px;
}

.admin-email-page {
    padding-top: 12px;
}

.admin-email-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-email-status {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}

.admin-email-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.3;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #aab);
}

.admin-email-pill.is-ok {
    border-color: rgba(72, 187, 120, 0.45);
    color: #9ae6b4;
}

.admin-email-pill.is-bad {
    border-color: rgba(245, 101, 101, 0.45);
    color: #feb2b2;
}

.admin-email-pill--muted {
    opacity: 0.85;
}

.admin-email-alert {
    margin-bottom: 10px;
    padding: 10px 12px;
    font-size: 13px;
}

.admin-email-help {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 12, 28, 0.55);
    font-size: 13px;
    color: var(--text-muted, #aab);
}

.admin-email-help summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--text-main);
    list-style: none;
}

.admin-email-help summary::-webkit-details-marker {
    display: none;
}

.admin-email-help summary::before {
    content: '▸ ';
    opacity: 0.7;
}

.admin-email-help[open] summary::before {
    content: '▾ ';
}

.admin-email-help ol {
    margin: 10px 0 0;
    padding-left: 18px;
    line-height: 1.55;
}

.admin-email-help-preset {
    margin: 8px 0 0;
    font-size: 12px;
    opacity: 0.9;
}

.admin-email-form.register-card {
    padding: 16px 18px;
}

.admin-email-form .admin-email-form-note {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--text-muted, #aab);
    line-height: 1.45;
}

.admin-email-form-note--reset {
    margin: -6px 0 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(95, 142, 235, 0.08);
    border: 1px solid rgba(95, 142, 235, 0.2);
    font-size: 12px;
}

.admin-email-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-bottom: 14px;
}

.admin-email-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
}

.admin-email-toggle input[type="checkbox"] {
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    accent-color: var(--accent, #ff7a18);
    cursor: pointer;
}

.admin-email-toggle input[type="checkbox"]:focus,
.admin-email-toggle input[type="checkbox"]:focus-visible {
    outline: none;
    border: none;
    box-shadow: none;
    background: transparent;
}

.admin-email-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.admin-email-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.admin-email-field span {
    font-size: 12px;
    color: var(--text-muted, #aab);
}

.admin-email-field input,
.admin-email-field select {
    padding: 8px 10px;
    font-size: 14px;
}

.admin-email-field--wide {
    grid-column: 1 / -1;
}

.admin-email-test-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-email-field--grow {
    flex: 1;
    min-width: 200px;
}

.admin-email-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
}

.admin-email-form.contact-form label:not(.admin-email-toggle) {
    margin-bottom: 0;
}

@media (max-width: 520px) {
    .admin-email-grid {
        grid-template-columns: 1fr;
    }

    .admin-email-field--wide {
        grid-column: 1;
    }

    .admin-email-actions {
        width: 100%;
    }

    .admin-email-actions .btn {
        flex: 1;
    }
}