:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-alt: #e9edf7;
    --text: #1f2a44;
    --muted: #63708a;
    --primary: #1677ff;
    --primary-dark: #0d5fce;
    --secondary: #13a37f;
    --danger: #d93025;
    --shadow: 0 12px 30px rgba(24, 39, 75, 0.08);
    --radius: 14px;
}

@keyframes premium-rise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes premium-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-7px);
    }
}

@keyframes glass-glint {
    from {
        transform: translateX(-120%) skewX(-22deg);
    }
    to {
        transform: translateX(220%) skewX(-22deg);
    }
}

@keyframes glass-sweep {
    from {
        background-position: -190% 0;
    }
    to {
        background-position: 190% 0;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Plus Jakarta Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 10% 0%, #edf3ff 0%, #dfe7ef 42%, #d7e0ea 100%);
}

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #dbe2f0;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 64px;
    padding: 8px 0;
}

.site-header h1 {
    margin: 0;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    min-height: 48px;
    min-width: 0;
}

.site-brand,
.site-brand:link,
.site-brand:visited,
.site-brand:hover,
.site-brand:active {
    text-decoration: none !important;
    color: #1b2f51 !important;
}

.site-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #c8d9f3;
    background: #fff;
}

.site-brand-title {
    font-size: clamp(1rem, 2.2vw, 1.28rem);
    font-weight: 700;
    color: #1b2f51;
    max-width: min(74vw, 760px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #b4cbec;
    background: linear-gradient(180deg, #ffffff 0%, #e6f0ff 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #244f91;
    text-decoration: none;
    box-shadow: 0 7px 14px rgba(26, 46, 76, 0.14);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.header-icon-btn:hover {
    transform: translateY(-1px);
    border-color: #88abd9;
    box-shadow: 0 10px 18px rgba(26, 46, 76, 0.2);
}

.header-icon-btn:focus-visible {
    outline: 3px solid #cde0ff;
    outline-offset: 2px;
}

.header-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.icon-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.intro {
    color: var(--muted);
    margin: 24px 0 14px;
}

.site-ad-box {
    border: 1px solid #cfe0fa;
    background: linear-gradient(180deg, #fdfefe 0%, #f1f7ff 100%);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 16px;
}

.site-ad-label {
    margin: 0 0 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #476493;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.site-ad-slot {
    min-height: 70px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    padding: 8px 0 36px;
}

.product-card {
    background: linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
    border: 1px solid #c5d4ec;
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 12px 28px rgba(20, 33, 56, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: #a8c2ea;
    box-shadow: 0 18px 34px rgba(22, 35, 58, 0.24);
}

.thumb-shell {
    position: relative;
}

.thumb-wrap {
    aspect-ratio: 16 / 9;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    border-bottom: 1px solid #d8e4f6;
    border-radius: 14px 14px 0 0;
}

.thumb-wrap:focus-visible {
    box-shadow: inset 0 0 0 3px #9bc4ff;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.03) contrast(1.02);
    transition: transform 0.35s ease;
}

.thumb-wrap:hover img,
.product-card:hover .thumb-wrap img {
    transform: scale(1.04);
}

.product-badge {
    position: absolute;
    right: 14px;
    top: -16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #89201d;
    background: linear-gradient(135deg, #530b0b 0%, #9a1a17 54%, #4e0909 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 10px 18px rgba(25, 31, 44, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    max-width: 76%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 6;
}

.product-badge span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f0b8b1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.card-body {
    padding: 13px 13px 14px;
}

.product-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #182b4a;
    min-height: 2.7em;
    margin-bottom: 10px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 4px;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.market-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid #97b4de;
    border-radius: 7px;
    background: linear-gradient(180deg, #ffffff 0%, #edf5ff 100%);
    color: #214a8f;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
}

.market-btn:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e5f0ff 100%);
    border-color: #769ed3;
    transform: translateY(-1px);
}

.demo-btn {
    width: 100%;
    height: 33px;
    padding: 0 9px;
    font-size: 0.79rem;
    border-radius: 6px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.2s ease;
}

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

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}

.btn-secondary:hover {
    filter: brightness(0.95);
}

.btn-dark {
    background: #0f2447;
    color: #fff;
}

.btn-ghost {
    background: var(--surface-alt);
    color: var(--text);
    border-color: #cad6ed;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn.wide {
    width: 100%;
}

.empty-state {
    background: var(--surface);
    border: 1px dashed #c7d4ee;
    border-radius: var(--radius);
    padding: 26px 18px;
    text-align: center;
    color: var(--muted);
}

.empty-state.compact {
    padding: 16px;
}

.card-description {
    margin-top: 12px;
    border: 1px solid #d8e4f6;
    background: #f2f7ff;
    border-radius: 9px;
    padding: 10px 10px 9px;
}

.card-description h3 {
    margin: 0 0 6px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #455777;
}

.card-description p {
    margin: 0;
    line-height: 1.45;
    color: #3b4a67;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.card-description .inline-link {
    color: #1258a5;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: 600;
}

.card-description .inline-link:hover {
    color: #0f4b8c;
}

.card-description .desc-extra-btn {
    margin-top: 10px;
    min-height: 33px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 0.78rem;
}

.description-buttons-list {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.premium-home {
    --glass-panel: rgba(244, 250, 255, 0.38);
    --glass-panel-strong: rgba(248, 252, 255, 0.54);
    --glass-border: rgba(255, 255, 255, 0.62);
    --glass-shadow: rgba(17, 40, 61, 0.24);
    position: relative;
    min-height: 100vh;
    background:
        radial-gradient(1200px 700px at -8% -14%, rgba(94, 159, 224, 0.4), transparent 58%),
        radial-gradient(900px 600px at 108% -25%, rgba(76, 186, 167, 0.34), transparent 56%),
        radial-gradient(880px 520px at 50% 120%, rgba(127, 171, 216, 0.28), transparent 62%),
        linear-gradient(168deg, #dce7f1 0%, #d0dbe5 46%, #c7d3de 100%);
}

.premium-home::before,
.premium-home::after {
    content: "";
    position: fixed;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.premium-home::before {
    top: -180px;
    left: -160px;
    background: radial-gradient(circle, rgba(136, 198, 255, 0.6) 0%, rgba(136, 198, 255, 0) 72%);
    animation: premium-float 12s ease-in-out infinite;
}

.premium-home::after {
    right: -190px;
    bottom: -200px;
    background: radial-gradient(circle, rgba(129, 222, 210, 0.52) 0%, rgba(129, 222, 210, 0) 72%);
    animation: premium-float 14s ease-in-out infinite;
}

.premium-home .site-header {
    background: rgba(241, 248, 254, 0.5);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    box-shadow: 0 14px 36px rgba(14, 36, 58, 0.2);
}

.premium-home .site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.premium-home .site-header-row {
    min-height: 74px;
}

.premium-home .site-logo {
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 8px 20px rgba(22, 43, 64, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.premium-home .site-brand-title {
    font-size: clamp(1rem, 2.1vw, 1.32rem);
    letter-spacing: 0.02em;
    color: #17324e;
}

.premium-home .header-icon-btn {
    border: 1px solid var(--glass-border);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(231, 245, 255, 0.34) 100%);
    color: #193d62;
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    box-shadow: 0 10px 24px rgba(15, 37, 60, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.premium-home .header-icon-btn:hover {
    border-color: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 28px rgba(15, 37, 60, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.premium-home .home-main {
    padding: 30px 0 38px;
}

.premium-home .hero-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 20px;
    align-items: end;
    border-radius: 26px;
    padding: 28px;
    margin-bottom: 22px;
    border: 1px solid var(--glass-border);
    background: linear-gradient(154deg, rgba(255, 255, 255, 0.56) 0%, rgba(226, 240, 251, 0.34) 100%);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
    box-shadow: 0 24px 42px -18px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.86);
    animation: premium-rise 0.5s ease forwards;
}

.premium-home .hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 42%);
}

.premium-home .hero-panel::after {
    content: "";
    position: absolute;
    top: -30%;
    left: -40%;
    width: 40%;
    height: 170%;
    pointer-events: none;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.46) 50%, rgba(255, 255, 255, 0) 100%);
    animation: glass-glint 10s ease-in-out infinite;
}

.premium-home .hero-copy {
    max-width: 740px;
}

.premium-home .hero-kicker {
    margin: 0 0 10px;
    font-size: 0.74rem;
    letter-spacing: 0.19em;
    text-transform: uppercase;
    font-weight: 800;
    color: #2d5f7a;
}

.premium-home .hero-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.85vw, 2.2rem);
    color: #14324f;
    line-height: 1.18;
}

.premium-home .intro {
    margin: 12px 0 0;
    color: #47627e;
    max-width: 62ch;
}

.premium-home .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.premium-home .hero-stat {
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(238, 247, 255, 0.33) 100%);
    border-radius: 15px;
    padding: 12px 12px 11px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.premium-home .hero-stat strong {
    display: block;
    color: #1c3b59;
    font-size: 1.34rem;
    line-height: 1;
    margin-bottom: 5px;
}

.premium-home .hero-stat span {
    display: block;
    color: #5a7592;
    font-size: 0.79rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.premium-home .site-ad-box {
    border: 1px solid var(--glass-border);
    background: linear-gradient(154deg, rgba(255, 255, 255, 0.54) 0%, rgba(226, 240, 251, 0.32) 100%);
    border-radius: 20px;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: 0 20px 36px -20px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    padding: 15px;
    margin-bottom: 18px;
}

.premium-home .site-ad-label {
    margin-bottom: 9px;
    color: #325f7e;
}

.premium-home .site-ad-slot {
    border-radius: 12px;
}

.premium-home .products-grid {
    gap: 26px;
}

.premium-home .product-card {
    position: relative;
    overflow: visible;
    border: 1px solid var(--glass-border);
    background: linear-gradient(158deg, rgba(255, 255, 255, 0.56) 0%, rgba(225, 240, 251, 0.3) 100%);
    backdrop-filter: blur(20px) saturate(175%);
    -webkit-backdrop-filter: blur(20px) saturate(175%);
    border-radius: 22px;
    box-shadow: 0 24px 42px -20px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.84);
    animation: premium-rise 0.52s ease forwards;
    isolation: isolate;
}

.premium-home .product-card:nth-child(2n) {
    animation-delay: 0.08s;
}

.premium-home .product-card:nth-child(3n) {
    animation-delay: 0.16s;
}

.premium-home .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 40%);
    z-index: 0;
}

.premium-home .product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background-image: linear-gradient(112deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.36) 48%, rgba(255, 255, 255, 0) 66%);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    animation: glass-sweep 6.8s ease-in-out infinite;
    opacity: 0.74;
    z-index: 0;
}

.premium-home .product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 30px 48px -18px rgba(17, 40, 61, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-home .thumb-wrap {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.54);
    border-radius: 22px 22px 0 0;
}

.premium-home .thumb-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(116deg, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0.4) 48%, rgba(255, 255, 255, 0) 66%);
    background-size: 220% 100%;
    background-repeat: no-repeat;
    animation: glass-sweep 5.9s ease-in-out infinite;
    opacity: 0.56;
    z-index: 2;
}

.premium-home .thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 42%);
    z-index: 2;
}

.premium-home .thumb-wrap img {
    position: relative;
    z-index: 1;
    filter: saturate(1.08) contrast(1.04);
}

.premium-home .product-badge {
    z-index: 14;
    top: -18px;
    border: 1px solid rgba(185, 255, 246, 0.52);
    background: linear-gradient(140deg, rgba(14, 42, 70, 0.9) 0%, rgba(11, 92, 103, 0.88) 56%, rgba(9, 35, 63, 0.9) 100%);
    box-shadow: 0 12px 22px rgba(10, 26, 44, 0.34), inset 0 1px 0 rgba(214, 255, 249, 0.36);
}

.premium-home .product-badge span {
    background: #c8fff7;
}

.premium-home .card-body {
    position: relative;
    z-index: 1;
    padding: 15px 15px 16px;
    border-radius: 0 0 22px 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.5) 0%, rgba(224, 238, 250, 0.26) 100%);
    backdrop-filter: blur(10px) saturate(165%);
    -webkit-backdrop-filter: blur(10px) saturate(165%);
}

.premium-home .card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(122deg, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 42%);
}

.premium-home .card-body > * {
    position: relative;
    z-index: 1;
}

.premium-home .product-title {
    margin-bottom: 8px;
    color: #133955;
}

.premium-home .product-meta {
    margin: 0 0 10px;
    font-size: 0.84rem;
    color: #486a87;
    display: flex;
    gap: 6px;
    align-items: center;
    font-weight: 600;
}

.premium-home .product-kpis {
    display: flex;
    gap: 8px;
    margin-bottom: 11px;
    flex-wrap: wrap;
}

.premium-home .kpi-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(233, 246, 255, 0.38) 100%);
    color: #245370;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.premium-home .market-btn {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.7) 0%, rgba(225, 240, 252, 0.44) 100%);
    color: #214f6f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.94), 0 8px 16px -12px rgba(18, 41, 63, 0.4);
    backdrop-filter: blur(10px) saturate(170%);
    -webkit-backdrop-filter: blur(10px) saturate(170%);
}

.premium-home .market-btn:hover {
    border-color: rgba(255, 255, 255, 0.94);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.82) 0%, rgba(214, 234, 250, 0.52) 100%);
    color: #163e5f;
}

.premium-home .card-description {
    border: 1px solid rgba(255, 255, 255, 0.76);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(233, 246, 255, 0.34) 100%);
    border-radius: 11px;
    backdrop-filter: blur(12px) saturate(155%);
    -webkit-backdrop-filter: blur(12px) saturate(155%);
}

.premium-home .card-description h3 {
    color: #315b7a;
}

.premium-home .card-description p {
    color: #395a78;
}

.premium-home .card-description .desc-extra-btn {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 16px -10px rgba(5, 116, 113, 0.26) !important;
}

.premium-home .card-description .inline-link {
    color: #055d5b;
}

.premium-home .card-description .inline-link:hover {
    color: #044644;
}

.premium-home .empty-state {
    border: 1px dashed rgba(255, 255, 255, 0.86);
    background: linear-gradient(154deg, rgba(255, 255, 255, 0.56) 0%, rgba(225, 240, 251, 0.34) 100%);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    box-shadow: 0 20px 36px -20px var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

@media (prefers-reduced-motion: reduce) {
    .premium-home::before,
    .premium-home::after,
    .premium-home .hero-panel,
    .premium-home .hero-panel::after,
    .premium-home .product-card,
    .premium-home .product-card::after,
    .premium-home .thumb-wrap::before {
        animation: none;
    }
}

.admin-bg {
    min-height: 100vh;
    background: linear-gradient(150deg, #eef3ff 0%, #f7f9fc 45%, #ecf9f4 100%);
}

.auth-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px;
}

.auth-card {
    width: min(420px, 100%);
    background: var(--surface);
    border: 1px solid #dbe2f0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    gap: 10px;
}

.auth-card h1 {
    margin: 0 0 3px;
    font-size: 1.4rem;
}

.auth-card p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.admin-header {
    position: static;
    margin-bottom: 20px;
}

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

.admin-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-bottom: 28px;
}

.admin-main {
    display: grid;
    gap: 18px;
    align-content: start;
}

.admin-side-nav {
    padding: 14px;
    position: sticky;
    top: 84px;
}

.admin-side-nav h2 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #49618b;
    margin: 0 0 10px;
}

.side-nav-link {
    display: block;
    text-decoration: none;
    border: 1px solid #c8d7ef;
    border-radius: 10px;
    padding: 10px 12px;
    color: #1f3d6d;
    font-weight: 600;
    margin-bottom: 8px;
    background: #f4f8ff;
}

.side-nav-link:hover {
    background: #e9f2ff;
}

.side-nav-link.active {
    border-color: #6c96d6;
    background: #dbeafe;
    color: #123c7a;
}

.panel {
    background: var(--surface);
    border: 1px solid #dbe2f0;
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
}

.panel h2 {
    margin: 0 0 6px;
    font-size: 1.2rem;
}

.panel p {
    margin: 0 0 14px;
    color: var(--muted);
}

.admin-form,
.auth-card {
    display: grid;
}

.admin-form {
    gap: 10px;
}

.field-hint {
    margin: -2px 0 3px;
    color: #677898;
    font-size: 0.82rem;
}

.panel-divider {
    border: none;
    border-top: 1px solid #d9e4f5;
    margin: 16px 0;
}

.logo-preview {
    width: 68px;
    height: 68px;
    border-radius: 14px;
    border: 1px solid #d5e0f1;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.logo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inline-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.description-buttons-editor {
    display: grid;
    gap: 8px;
}

.description-button-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr auto;
    gap: 8px;
    align-items: center;
}

.desc-row-add {
    justify-self: flex-start;
}

.desc-row-remove {
    white-space: nowrap;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2669d6;
}

label {
    font-size: 0.9rem;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 11px;
    border: 1px solid #c8d3ea;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #7eb2ff;
    box-shadow: 0 0 0 3px #e7f0ff;
    outline: none;
}

.ad-code-box {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.86rem;
}

.thumb-preview {
    margin-top: 4px;
    max-width: 230px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #d5deef;
}

.thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.form-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.alert {
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.alert.success {
    background: #e8f8ef;
    border: 1px solid #b8e4c8;
    color: #1f7242;
}

.alert.error {
    background: #ffefef;
    border: 1px solid #f8c6c6;
    color: #922626;
}

.admin-products {
    display: grid;
    gap: 12px;
}

.admin-product-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px;
    border: 1px solid #dbe2f0;
    border-radius: 12px;
    padding: 10px;
}

.admin-thumb {
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.admin-product-body h3 {
    margin: 0 0 6px;
}

.admin-product-body p {
    margin: 0 0 8px;
    color: var(--muted);
    line-height: 1.45;
}

.admin-meta {
    font-size: 0.86rem;
}

.quick-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.quick-links a {
    color: #2858b7;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

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

.inline-form {
    margin: 0;
}

.ads-provider-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.ads-provider-card {
    border: 1px solid #d2dff4;
    border-radius: 12px;
    padding: 12px;
    background: #f8fbff;
}

.ads-provider-card h3 {
    margin: 0 0 6px;
    color: #1f3f70;
}

.ads-provider-card p {
    margin: 0 0 8px;
    color: #5b6f90;
    font-size: 0.9rem;
    line-height: 1.45;
}

.ads-provider-card .provider-best {
    font-weight: 700;
    color: #355a93;
}

.ads-provider-card a {
    text-decoration: none;
    color: #1f5db8;
    font-weight: 700;
}

@media (max-width: 980px) {
    .premium-home .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .premium-home .hero-panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

    .premium-home .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .admin-side-nav {
        position: static;
    }
}

@media (max-width: 760px) {
    .premium-home .home-main {
        padding-top: 18px;
    }

    .premium-home .hero-panel {
        border-radius: 18px;
        padding: 16px;
        margin-bottom: 16px;
    }

    .premium-home .hero-stats {
        grid-template-columns: 1fr;
    }

    .admin-header .row-between {
        flex-direction: column;
        align-items: flex-start;
    }

    .premium-home .site-brand-title {
        font-size: 1rem;
        max-width: 68vw;
    }

    .premium-home .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .side-nav-link {
        margin-bottom: 6px;
    }

    .premium-home .product-badge {
        right: 8px;
        top: -12px;
    }

    .premium-home .product-title {
        font-size: 0.98rem;
    }

    .premium-home .card-footer {
        align-items: center;
    }

    .premium-home .demo-btn {
        width: 100%;
    }

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

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

/* Teal premium refresh for public homepage */
.premium-home {
    --brand-teal: #057471;
    --brand-teal-deep: #055d5b;
    --brand-border: rgba(5, 116, 113, 0.38);
    --brand-shadow: rgba(4, 58, 56, 0.22);
    --brand-ink: #10333d;
    background:
        radial-gradient(960px 520px at -8% -14%, rgba(5, 116, 113, 0.24), transparent 64%),
        radial-gradient(840px 440px at 104% -12%, rgba(32, 161, 145, 0.22), transparent 66%),
        radial-gradient(700px 390px at 52% 108%, rgba(5, 116, 113, 0.12), transparent 64%),
        linear-gradient(155deg, #eef8f7 0%, #dfefee 48%, #d4e7e6 100%);
}

.premium-home .site-brand-title,
.premium-home .hero-title,
.premium-home .product-title {
    font-family: "Lexend", "Plus Jakarta Sans", "Trebuchet MS", sans-serif;
}

.premium-home::before {
    top: -170px;
    left: -170px;
    background: radial-gradient(circle, rgba(5, 116, 113, 0.52) 0%, rgba(5, 116, 113, 0) 74%);
}

.premium-home::after {
    right: -180px;
    bottom: -200px;
    background: radial-gradient(circle, rgba(29, 154, 142, 0.48) 0%, rgba(29, 154, 142, 0) 74%);
}

.premium-home .site-header {
    background: rgba(243, 252, 251, 0.62);
    border-bottom: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: 0 12px 30px rgba(10, 65, 76, 0.16);
}

.premium-home .site-brand-title {
    color: #0f3f48;
}

.premium-home .header-icon-btn {
    border-color: var(--brand-border);
    color: var(--brand-teal-deep);
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.12), rgba(5, 116, 113, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74), 0 8px 18px rgba(5, 116, 113, 0.14);
}

.premium-home .header-icon-btn:hover {
    border-color: rgba(5, 116, 113, 0.62);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 10px 20px rgba(5, 116, 113, 0.18);
}

.premium-home .home-main {
    position: relative;
    padding: 34px 0 44px;
}

.premium-home .home-main::before {
    content: "";
    position: absolute;
    left: 4%;
    right: 4%;
    top: -28px;
    height: 110px;
    border-radius: 999px;
    background: radial-gradient(circle at 50% 50%, rgba(5, 116, 113, 0.2) 0%, rgba(5, 116, 113, 0) 74%);
    filter: blur(24px);
    pointer-events: none;
    z-index: -1;
}

.premium-home .hero-panel {
    border-color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.64) 0%, rgba(228, 246, 245, 0.72) 55%, rgba(216, 240, 238, 0.7) 100%);
    box-shadow: 0 26px 44px -22px var(--brand-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.premium-home .hero-kicker {
    color: #0e5f66;
}

.premium-home .hero-title {
    color: #0f3f48;
    text-wrap: balance;
}

.premium-home .intro {
    color: #365f66;
}

.premium-home .hero-stat {
    border-color: rgba(5, 116, 113, 0.32);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.72) 0%, rgba(222, 241, 239, 0.66) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.premium-home .hero-stat strong {
    color: var(--brand-teal-deep);
}

.premium-home .hero-stat span {
    color: #397a7b;
}

.premium-home .site-ad-box {
    border-color: rgba(5, 116, 113, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(228, 246, 245, 0.62));
    box-shadow: 0 18px 34px -26px rgba(5, 116, 113, 0.42);
}

.premium-home .site-ad-label {
    color: #0d6363;
}

.premium-home .products-grid {
    gap: 24px;
}

.premium-home .product-card {
    border-color: rgba(255, 255, 255, 0.92);
    background: linear-gradient(156deg, rgba(255, 255, 255, 0.72) 0%, rgba(224, 243, 241, 0.78) 100%);
    box-shadow: 0 24px 40px -24px var(--brand-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.premium-home .product-card:hover {
    border-color: rgba(5, 116, 113, 0.42);
    box-shadow: 0 28px 44px -20px rgba(5, 116, 113, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.premium-home .product-card::after {
    opacity: 0.5;
    background-image: linear-gradient(108deg, rgba(255, 255, 255, 0) 32%, rgba(198, 244, 237, 0.58) 49%, rgba(255, 255, 255, 0) 66%);
}

.premium-home .thumb-wrap {
    border-bottom: 1px solid rgba(5, 116, 113, 0.2);
}

.premium-home .product-badge {
    border: 1px solid rgba(180, 255, 245, 0.7);
    background: linear-gradient(145deg, #043d44 0%, #06635f 56%, #034851 100%);
    box-shadow: 0 12px 22px rgba(4, 58, 56, 0.28), inset 0 1px 0 rgba(226, 255, 250, 0.34);
}

.premium-home .card-body {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.62) 0%, rgba(221, 242, 240, 0.56) 100%);
}

.premium-home .product-title {
    color: #0e3f47;
}

.premium-home .product-meta {
    color: #3b6c73;
}

.premium-home .kpi-pill {
    border-color: rgba(5, 116, 113, 0.34);
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.12), rgba(5, 116, 113, 0.07));
    color: #055d5b;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.premium-home .market-btn {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.12), rgba(5, 116, 113, 0.07));
    border-color: rgba(5, 116, 113, 0.5) !important;
    color: #055d5b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(5, 116, 113, 0.18) !important;
}

.premium-home .market-btn:hover {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.2), rgba(5, 116, 113, 0.1));
    border-color: rgba(5, 116, 113, 0.72) !important;
    color: #044644 !important;
}

.premium-home .market-btn:focus-visible {
    outline: 3px solid rgba(5, 116, 113, 0.24);
    outline-offset: 2px;
}

.premium-home .card-description {
    border-color: rgba(5, 116, 113, 0.32);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(220, 240, 238, 0.72));
}

.premium-home .card-description h3 {
    color: #0d656a;
}

.premium-home .card-description p {
    color: #365f66;
}

.premium-home .empty-state {
    border-color: rgba(5, 116, 113, 0.36);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.66), rgba(226, 244, 242, 0.7));
    color: #37666c;
}

@media (max-width: 980px) {
    .premium-home .products-grid {
        gap: 20px;
    }

    .premium-home .hero-panel {
        gap: 16px;
    }
}

@media (max-width: 760px) {
    .premium-home .home-main {
        padding: 20px 0 30px;
    }

    .premium-home .hero-panel {
        border-radius: 20px;
        padding: 17px;
    }

    .premium-home .hero-title {
        font-size: clamp(1.28rem, 6.4vw, 1.72rem);
    }

    .premium-home .hero-kicker {
        letter-spacing: 0.14em;
    }

    .premium-home .intro {
        font-size: 0.92rem;
    }

    .premium-home .product-card {
        border-radius: 18px;
    }

    .premium-home .thumb-wrap {
        border-radius: 18px 18px 0 0;
    }

    .premium-home .card-body {
        border-radius: 0 0 18px 18px;
        padding: 13px 13px 14px;
    }

    .description-buttons-list {
        flex-direction: column;
    }

    .card-description .desc-extra-btn {
        width: 100%;
    }

    .description-button-row {
        grid-template-columns: 1fr;
    }
}

/* Teal premium refresh for admin area */
.admin-bg {
    --admin-teal: #057471;
    --admin-teal-deep: #055d5b;
    --admin-border: rgba(5, 116, 113, 0.32);
    --admin-shadow: rgba(5, 116, 113, 0.22);
    background:
        radial-gradient(980px 520px at -8% -20%, rgba(5, 116, 113, 0.22), transparent 66%),
        radial-gradient(860px 460px at 108% -14%, rgba(26, 153, 137, 0.2), transparent 64%),
        linear-gradient(154deg, #edf8f7 0%, #deefee 52%, #d3e8e7 100%);
}

.admin-bg .site-header {
    background: rgba(243, 252, 251, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(16px) saturate(165%);
    -webkit-backdrop-filter: blur(16px) saturate(165%);
    box-shadow: 0 14px 28px rgba(7, 70, 74, 0.14);
}

.admin-bg .site-header h1 {
    color: #0f444b;
    letter-spacing: 0.01em;
}

.admin-bg .panel,
.admin-bg .auth-card,
.admin-bg .admin-product-card,
.admin-bg .ads-provider-card {
    border: 1px solid rgba(255, 255, 255, 0.88);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.68) 0%, rgba(224, 243, 241, 0.72) 100%);
    box-shadow: 0 24px 38px -26px var(--admin-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.admin-bg .admin-side-nav h2,
.admin-bg .panel h2,
.admin-bg .auth-card h1 {
    color: #0c555a;
}

.admin-bg .panel p,
.admin-bg .auth-card p,
.admin-bg .field-hint,
.admin-bg .admin-meta,
.admin-bg .ads-provider-card p {
    color: #3c6c71;
}

.admin-bg .side-nav-link {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.12), rgba(5, 116, 113, 0.07));
    border-color: rgba(5, 116, 113, 0.5) !important;
    color: #055d5b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(5, 116, 113, 0.18) !important;
}

.admin-bg .side-nav-link:hover,
.admin-bg .side-nav-link.active {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.2), rgba(5, 116, 113, 0.1));
    border-color: rgba(5, 116, 113, 0.72) !important;
    color: #044644 !important;
}

.admin-bg label,
.admin-bg .check-row span {
    color: #0f4e56;
}

.admin-bg input,
.admin-bg select,
.admin-bg textarea {
    border: 1px solid var(--admin-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(229, 245, 243, 0.88));
    color: #11474d;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.74);
}

.admin-bg input::placeholder,
.admin-bg textarea::placeholder {
    color: #5c8387;
}

.admin-bg input:focus,
.admin-bg select:focus,
.admin-bg textarea:focus {
    border-color: rgba(5, 116, 113, 0.62);
    box-shadow: 0 0 0 3px rgba(5, 116, 113, 0.16);
}

.admin-bg select {
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #0b5c63 50%),
        linear-gradient(135deg, #0b5c63 50%, transparent 50%);
    background-position:
        calc(100% - 18px) calc(50% - 3px),
        calc(100% - 12px) calc(50% - 3px);
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

.admin-bg .check-row input[type="checkbox"] {
    accent-color: #057471;
}

.admin-bg .btn,
.admin-bg .btn-primary,
.admin-bg .btn-secondary,
.admin-bg .btn-ghost,
.admin-bg .btn-dark {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.12), rgba(5, 116, 113, 0.07));
    border-color: rgba(5, 116, 113, 0.5) !important;
    color: #055d5b !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(5, 116, 113, 0.18) !important;
}

.admin-bg .btn:hover,
.admin-bg .btn-primary:hover,
.admin-bg .btn-secondary:hover,
.admin-bg .btn-ghost:hover,
.admin-bg .btn-dark:hover {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.2), rgba(5, 116, 113, 0.1));
    border-color: rgba(5, 116, 113, 0.72) !important;
    color: #044644 !important;
}

.admin-bg .btn-danger {
    border-color: rgba(143, 32, 32, 0.56) !important;
    background: linear-gradient(180deg, rgba(180, 42, 42, 0.15), rgba(180, 42, 42, 0.08));
    color: #7a1f1f !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 8px 18px rgba(143, 32, 32, 0.16) !important;
}

.admin-bg .btn-danger:hover {
    background: linear-gradient(180deg, rgba(180, 42, 42, 0.24), rgba(180, 42, 42, 0.14));
}

.admin-bg .logo-preview,
.admin-bg .thumb-preview,
.admin-bg .admin-thumb {
    border-color: rgba(5, 116, 113, 0.26);
    box-shadow: 0 10px 20px -16px rgba(5, 116, 113, 0.36);
}

.admin-bg .quick-links a,
.admin-bg .ads-provider-card a {
    color: #055d5b;
}

.admin-bg .quick-links a:hover,
.admin-bg .ads-provider-card a:hover {
    color: #044644;
}

.admin-bg .alert.success {
    background: linear-gradient(180deg, rgba(5, 116, 113, 0.14), rgba(5, 116, 113, 0.08));
    border: 1px solid rgba(5, 116, 113, 0.36);
    color: #055d5b;
}

.admin-bg .alert.error {
    background: linear-gradient(180deg, rgba(180, 42, 42, 0.16), rgba(180, 42, 42, 0.08));
    border: 1px solid rgba(143, 32, 32, 0.4);
    color: #7a1f1f;
}

.admin-bg .empty-state {
    border-color: rgba(5, 116, 113, 0.34);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(224, 243, 241, 0.78));
    color: #3b6c70;
}

@media (max-width: 980px) {
    .admin-bg .admin-shell {
        gap: 14px;
    }
}

@media (max-width: 760px) {
    .admin-bg .auth-card,
    .admin-bg .panel {
        border-radius: 12px;
        padding: 14px;
    }
}
