/* =====================================================================
   Slivatus Shop — style.css
   Reuses the frontend slivatus.css design language.
   ===================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f0f0f0;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --accent-color: #ff1744;
    --accent-hover: #d50032;
    --theme-color: #1e005e;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(0, 0, 0, 0.3);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color .25s ease; }
button { font-family: 'Montserrat', sans-serif; cursor: pointer; border: none; background: none; transition: all .25s ease; }

h1, h2, h3 { line-height: 1.2; }

/* ===== Navigation (clone of frontend .navbar) ===== */
.navbar {
    position: sticky; top: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 0;
}

.logo {
    font-size: 28px; font-weight: 800; letter-spacing: -1px;
    display: flex; align-items: center;
}
.logo-text { color: var(--text-primary); }
.logo-dot { color: var(--accent-color); margin-left: 2px; }

.nav-links { display: flex; align-items: center; gap: 32px; }

.nav-link {
    font-size: 15px; font-weight: 500;
    color: var(--text-secondary);
    position: relative; padding: 8px 0;
}
.nav-link:hover, .nav-link.active { color: var(--accent-color); }
.nav-link.active::after {
    content: '';
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 2px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

.nav-link.nav-link-cta {
    background: var(--accent-color);
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 13px;
    font-weight: 700;
}
.nav-link.nav-link-cta:hover { background: var(--accent-hover); color: #fff; }
.nav-link.nav-link-cta::after { display: none; }

.mobile-menu-toggle {
    display: none;
    flex-direction: column; gap: 6px;
    width: 32px; height: 32px;
    justify-content: center;
}
.mobile-menu-toggle span {
    width: 100%; height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.mobile-menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
    position: fixed; top: 81px; left: 0; right: 0; bottom: 0;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0; visibility: hidden;
    transition: transform .3s ease, opacity .3s ease, visibility .3s ease;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.active { transform: translateY(0); opacity: 1; visibility: visible; }

.mobile-menu-content {
    padding: 24px;
    display: flex; flex-direction: column; gap: 16px;
    min-height: 100%;
}
.mobile-nav-link {
    font-size: 16px; font-weight: 500;
    color: var(--text-secondary);
    padding: 12px 16px; border-radius: 12px;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background-color: var(--bg-secondary);
    color: var(--accent-color);
}

@media (max-width: 992px) {
    .nav-links { display: none; }
    .mobile-menu-toggle { display: flex; }
}

/* ===== Footer ===== */
.footer {
    padding: 64px 0 32px;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    margin-top: 80px;
}
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-title { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.footer-description { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.footer-heading { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: var(--text-secondary); }
.footer-links a:hover { color: var(--accent-color); }
.footer-bottom { text-align: center; padding-top: 28px; border-top: 1px solid var(--border-color); }
.footer-bottom p { font-size: 14px; color: var(--text-secondary); }

@media (max-width: 992px) {
    .footer-content { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 576px) {
    .footer-content { grid-template-columns: 1fr; gap: 28px; }
}

/* ===== Breadcrumbs (sitewide) ===== */
.breadcrumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    font-size: 13px; color: var(--text-tertiary);
    padding: 6px 0 6px;
}
.breadcrumbs__link { color: var(--text-tertiary); }
.breadcrumbs__link:hover { color: var(--accent-color); }
.breadcrumbs__sep { color: var(--border-color); padding: 0 4px; }
.breadcrumbs__current { color: var(--text-secondary); font-weight: 500; }

/* ===== Page header (used for static pages) ===== */
.page-header {
    padding: 60px 0 32px;
    background-color: var(--bg-secondary);
    text-align: center;
}
.page-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.page-subtitle { font-size: 18px; color: var(--text-secondary); max-width: 720px; margin: 0 auto; }

.page-body { padding: 48px 0 64px; }
.page-content-wrap { max-width: 880px; margin: 0 auto; }

.page-content { font-size: 16px; line-height: 1.85; color: var(--text-primary); }
.page-content h2 { font-size: 26px; font-weight: 700; margin: 2rem 0 .75rem; }
.page-content h3 { font-size: 20px; font-weight: 600; margin: 1.5rem 0 .5rem; }
.page-content p  { margin-bottom: 1rem; color: var(--text-secondary); }
.page-content ul, .page-content ol { padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-secondary); }
.page-content li { margin-bottom: .35rem; }
.page-content a  { color: var(--accent-color); text-decoration: underline; }
.page-content a:hover { color: var(--accent-hover); }
.page-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 12px 20px; margin: 1.5rem 0;
    background: var(--bg-secondary);
    border-radius: 0 10px 10px 0;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 768px) {
    .page-body { padding: 28px 0 48px; }
    .page-content { font-size: 15px; }
    .page-content h2 { font-size: 21px; }
    .page-content h3 { font-size: 17px; }
}

/* ===== Generic buttons ===== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px;
    background: var(--accent-color);
    color: #fff !important;
    font-weight: 700;
    border-radius: 12px;
    transition: background .2s, transform .15s, box-shadow .2s;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,23,68,.25); }

.btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 700;
    border-radius: 12px;
}
.btn-outline:hover { background: var(--accent-color); color: #fff; }

/* =====================================================================
   HOMEPAGE — hero + features + spotlight + CTA
   ===================================================================== */
.hero {
    position: relative;
    padding: 80px 0 96px;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 23, 68, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(30, 0, 94, 0.10) 0%, transparent 50%),
        var(--bg-primary);
    overflow: hidden;
}
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    background: rgba(255,23,68,.08);
    color: var(--accent-color);
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .08em;
    border-radius: 999px;
    margin-bottom: 20px;
}
.hero__eyebrow::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255,23,68,.2);
}
.hero__title {
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 900;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    line-height: 1.05;
}
.hero__title span {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero__lead {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 540px;
    line-height: 1.6;
}
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 540px;
}
.hero__stat-num {
    font-size: 32px; font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 6px;
}
.hero__stat-label { font-size: 13px; color: var(--text-tertiary); }

.hero__visual {
    position: relative;
    max-width: 480px;
    margin-left: auto;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 244px 176px;
    gap: 10px;
}
.hero__card {
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-tertiary);
    box-shadow: var(--shadow-md);
    transition: transform .3s ease;
}
.hero__card:hover { transform: scale(1.02); }
.hero__card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__card--main { grid-row: span 2; }
.hero__card--count {
    background: linear-gradient(145deg, var(--theme-color) 0%, #3b007f 50%, var(--accent-color) 100%);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #fff; gap: 4px;
}
.hero__count-num   { font-size: 28px; font-weight: 900; line-height: 1; }
.hero__count-label { font-size: 11px; font-weight: 600; opacity: .75; text-transform: uppercase; letter-spacing: .07em; }
.hero__badge-float {
    position: absolute;
    bottom: 16px; left: 16px;
    z-index: 3;
    padding: 9px 16px;
    background: var(--bg-primary);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    white-space: nowrap;
}
.hero__badge-float .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #00c853;
    box-shadow: 0 0 0 3px rgba(0,200,83,.2);
}

@media (max-width: 992px) {
    .hero { padding: 60px 0 72px; }
    .hero__inner { grid-template-columns: 1fr; gap: 56px; text-align: center; }
    .hero__lead, .hero__stats { margin-left: auto; margin-right: auto; }
    .hero__cta { justify-content: center; }
    .hero__visual { margin: 0 auto; max-width: 380px; grid-template-rows: 200px 148px; }
}
@media (max-width: 576px) {
    .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .hero__stat-num { font-size: 24px; }
}

/* Section heading shared */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-secondary); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section__eyebrow {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: .08em;
    margin-bottom: 12px;
}
.section__title {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.section__lead { font-size: 17px; color: var(--text-secondary); }

/* Feature grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.feature-card {
    padding: 32px 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.feature-card__icon {
    width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,23,68,.10);
    color: var(--accent-color);
    border-radius: 14px;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card__text  { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* CTA banner */
.cta-banner {
    position: relative;
    padding: 56px 48px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #1e005e 50%, #d50032 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 16px 48px rgba(30, 0, 94, 0.35);
}
.cta-banner::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255,255,255,.10) 0%, transparent 40%),
        radial-gradient(circle at 85% 70%, rgba(255,255,255,.08) 0%, transparent 40%);
    pointer-events: none;
}
.cta-banner__title {
    position: relative;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 900;
    margin-bottom: 14px;
    letter-spacing: -.5px;
}
.cta-banner__text {
    position: relative;
    font-size: 17px;
    color: rgba(255,255,255,.85);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.6;
}
.cta-banner .btn-primary {
    position: relative;
    background: #fff;
    color: var(--accent-color) !important;
    padding: 16px 36px;
    font-size: 16px;
}
.cta-banner .btn-primary:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,.25); }

/* Section: featured items */
.spotlight { background: var(--bg-secondary); padding: 72px 0; }
.spotlight__foot { text-align: center; margin-top: 40px; }

/* =====================================================================
   SHOP (verbatim from frontend slivatus.css, lightly trimmed)
   ===================================================================== */
.shop-catalog { padding: 24px 0 80px; }
@media (max-width: 600px) { .shop-catalog { padding-left: 10px; padding-right: 10px; } }
.shop-catalog__head { text-align: center; margin-bottom: 32px; }
.shop-catalog__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 8px;
}
.shop-catalog__lead { color: var(--text-secondary); max-width: 640px; margin: 0 auto; }

.shop-catalog__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    align-items: flex-start;
}
@media (max-width: 900px) { .shop-catalog__layout { grid-template-columns: 1fr; } }

.shop-filter {
    position: sticky;
    top: 96px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .shop-filter { position: static; } }
.shop-filter__form { display: flex; flex-direction: column; gap: 14px; }
.shop-filter__group { display: flex; flex-direction: column; gap: 6px; }
.shop-filter__label {
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .03em;
    color: var(--text-secondary);
}
.shop-filter__label small { font-weight: 400; color: var(--text-tertiary); text-transform: none; letter-spacing: 0; }
.shop-filter__input,
.shop-filter__select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}
.shop-filter__input:focus,
.shop-filter__select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(255,23,68,.12);
}
.shop-filter__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-filter__input--sm { padding: 6px 8px; font-size: 13px; }
.shop-filter__actions { display: flex; gap: 8px; margin-top: 4px; }

.shop-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 18px;
    font-size: 14px; font-weight: 600;
    border: none; border-radius: 8px;
    cursor: pointer; text-decoration: none;
    transition: transform .12s, box-shadow .15s, background .15s, color .15s;
}
.shop-btn--sm  { padding: 7px 12px; font-size: 13px; }
.shop-btn--lg  { padding: 14px 28px; font-size: 16px; }
.shop-btn--primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(213,0,50,.30);
}
.shop-btn--primary:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(213,0,50,.45);
}
.shop-btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.shop-btn--ghost:hover { background: var(--bg-secondary); color: var(--text-primary); }
.shop-btn--success {
    background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(46,125,50,.30);
}
.shop-btn--success:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(46,125,50,.45);
}
.shop-btn--success.shop-btn--sm { gap: 5px; }
.shop-btn--success.shop-btn--lg { gap: 8px; letter-spacing: .3px; }

.shop-grid__toolbar {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.shop-grid__count { color: var(--text-secondary); font-size: 14px; }
.shop-grid__sort  { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.shop-grid__sort label { color: var(--text-tertiary); font-size: 13px; margin-right: 4px; }
.shop-grid__sort-link {
    padding: 4px 10px; font-size: 13px;
    color: var(--text-tertiary); text-decoration: none;
    border-radius: 6px; transition: background .15s, color .15s;
}
.shop-grid__sort-link:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.shop-grid__sort-link.is-active {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #fff;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}
.shop-grid--small { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }

.shop-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s, box-shadow .2s;
    display: flex; flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.shop-card__cover-link {
    display: block; position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.shop-card__cover {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}
.shop-card:hover .shop-card__cover { transform: scale(1.04); }
.shop-card__badges {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 6px;
}
.shop-badge {
    display: inline-block; padding: 4px 10px;
    font-size: 11px; font-weight: 700;
    border-radius: 999px; color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,.2);
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.shop-badge--hot      { background: linear-gradient(135deg, #ff6b6b, #d62828); }
.shop-badge--new      { background-color: var(--accent-color); }
.shop-badge--discount { background: linear-gradient(135deg, #ffd60a, #ff9f1c); color: #5a3500; text-shadow: none; }
.shop-badge--success  { background: linear-gradient(135deg, #2e7d32, #66bb6a); box-shadow: 0 2px 6px rgba(46,125,50,.25); }

.shop-card__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.shop-card__title { font-size: 16px; font-weight: 700; margin: 0; line-height: 1.3; }
.shop-card__title a { color: var(--text-primary); }
.shop-card__title a:hover { color: var(--accent-color); }
.shop-card__desc { font-size: 13px; color: var(--text-secondary); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card__meta { display: flex; gap: 10px; font-size: 12px; color: var(--text-tertiary); margin-top: auto; align-items: center; justify-content: space-between; }
.shop-card__meta-item { display: flex; align-items: center; gap: 5px; }
.shop-meta-icon { width: 14px; height: 14px; flex-shrink: 0; }
.shop-card__footer {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    margin-top: 4px;
}
.shop-card__price-block { display: flex; flex-direction: column; line-height: 1.1; }
.shop-card__price-old   { font-size: 12px; text-decoration: line-through; color: var(--text-tertiary); }
.shop-card__price       { font-size: 18px; font-weight: 800; color: var(--accent-color); }

.shop-empty { text-align: center; padding: 60px 20px; color: var(--text-secondary); }
.shop-empty h3 { color: var(--text-primary); margin-bottom: 8px; }
.shop-pagination { margin-top: 32px; display: flex; justify-content: center; }
.shop-pagination .pagination { display: flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.shop-pagination .page-item .page-link,
.shop-pagination .prev > a, .shop-pagination .prev > span,
.shop-pagination .next > a, .shop-pagination .next > span {
    display: flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px;
    color: var(--text-secondary); text-decoration: none;
    border: 1px solid var(--border-color); border-radius: 6px;
    transition: background .12s, color .12s; line-height: 1;
    font-size: 15px;
}
.shop-pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #fff; border-color: transparent;
}
.shop-pagination .page-item.disabled .page-link,
.shop-pagination .prev.disabled > span,
.shop-pagination .next.disabled > span { color: var(--text-tertiary); pointer-events: none; opacity: .45; }
.shop-pagination .page-item .page-link:hover,
.shop-pagination .prev > a:hover, .shop-pagination .next > a:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,23,68,.18);
}

/* ----- Single item view ----- */
.shop-view { padding: 16px 0 80px; }

.shop-breadcrumbs {
    display: flex; align-items: center; flex-wrap: wrap; gap: 4px;
    font-size: 13px; color: var(--text-tertiary);
    margin-bottom: 20px;
}
.shop-breadcrumbs__link { color: var(--text-tertiary); }
.shop-breadcrumbs__link:hover { color: var(--accent-color); }
.shop-breadcrumbs__sep { color: var(--border-color); padding: 0 2px; }
.shop-breadcrumbs__current { color: var(--text-secondary); font-weight: 500; }

.shop-view__meta-item { display: inline-flex; align-items: center; gap: 5px; }

.shop-view__hero {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 28px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
@media (max-width: 800px) { .shop-view__hero { grid-template-columns: 1fr; } }

.shop-view__cover-col { position: relative; }
.shop-view__cover {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg-tertiary);
}
.shop-view__cover-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-direction: column; gap: 6px;
}

.shop-view__title { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 0 0 12px; }
.shop-view__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; }
.shop-view__lead { font-size: 15px; color: var(--text-secondary); line-height: 1.55; margin: 0 0 18px; }

.shop-view__attrs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px 16px;
    margin: 0 0 22px;
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}
.shop-view__attr  { display: flex; flex-direction: column; }
.shop-view__attr dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); font-weight: 600; }
.shop-view__attr dd { margin: 2px 0 0; font-size: 14px; color: var(--text-primary); font-weight: 500; }

.shop-view__buy {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 16px; padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color); border-radius: 12px;
}
.shop-view__price-block { display: flex; flex-direction: column; line-height: 1.1; }
.shop-view__price-old   { font-size: 14px; text-decoration: line-through; color: var(--text-tertiary); }
.shop-view__price       { font-size: 28px; font-weight: 800; color: var(--accent-color); }

.shop-view__section { margin-top: 36px; }
.shop-view__h2 {
    font-size: 22px; font-weight: 700;
    margin: 0 0 16px; padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}
.shop-view__content { color: var(--text-secondary); line-height: 1.65; font-size: 15px; }
.shop-view__content img { max-width: 100%; height: auto; border-radius: 8px; }

.shop-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.shop-gallery__item {
    position: relative; display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: transform .15s;
}
.shop-gallery__item:hover { transform: scale(1.02); }
.shop-gallery__item img,
.shop-gallery__item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery__item--video { background: #000; }
.shop-gallery__play {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 28px;
    background: rgba(0,0,0,.25); pointer-events: none;
    transition: background .15s;
}
.shop-gallery__item--video:hover .shop-gallery__play { background: rgba(0,0,0,.45); }

.shop-gallery__cta {
    position: relative; display: flex;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
}
.shop-gallery__cta-inner {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 0px; padding: 8px;
    text-align: center; color: #fff; width: 100%;
}
.shop-gallery__cta-lock   { font-size: 28px; line-height: 1; }
.shop-gallery__cta-count  { font-size: 22px; font-weight: 800; }
.shop-gallery__cta-text   { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1.4; }
.shop-gallery__cta .shop-btn { margin-top: 4px; font-size: 13px; padding: 8px 18px; }
@media (max-width: 600px) {
    .shop-gallery__cta-inner { gap: 6px; padding: 10px; }
    .shop-gallery__cta-lock  { font-size: 20px; }
    .shop-gallery__cta-count { font-size: 16px; }
    .shop-gallery__cta-text  { font-size: 10px; }
    .shop-gallery__cta .shop-btn { font-size: 11px; padding: 6px 12px; }
}

.shop-archive-promo {
    display: flex; align-items: center; gap: 24px;
    margin-top: 28px;
    padding: 32px 36px;
    background: linear-gradient(135deg, #1e1b4b 0%, #3730a3 55%, #6d28d9 100%);
    border-radius: 16px;
    color: #fff;
    flex-wrap: wrap;
    box-shadow: 0 8px 40px rgba(55, 48, 163, 0.35);
    position: relative;
    overflow: hidden;
}
.shop-archive-promo::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(167, 139, 250, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.shop-archive-promo__icon { display: flex; align-items: center; flex-shrink: 0; opacity: .85; }
.shop-archive-promo__body { flex: 1; min-width: 220px; position: relative; }
.shop-archive-promo__title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.shop-archive-promo__text  { font-size: 14px; color: rgba(255,255,255,.85); line-height: 1.6; margin-bottom: 12px; }
.shop-archive-promo__features {
    display: flex; flex-wrap: wrap; gap: 8px 20px;
    font-size: 13px; color: rgba(255,255,255,.9);
}
.shop-archive-promo__features span { display: flex; align-items: center; gap: 5px; }
.shop-archive-promo__cta {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    flex-shrink: 0; position: relative;
}
.shop-archive-promo__price-block { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.shop-archive-promo__old-price   { font-size: 14px; text-decoration: line-through; color: rgba(255,255,255,.5); }
.shop-archive-promo__price       { font-size: 34px; font-weight: 900; color: #fff; }
.shop-archive-promo__social-proof { font-size: 13px; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 5px; }
.shop-archive-promo .shop-btn--primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #1c1007;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
    font-weight: 700;
}
.shop-archive-promo .shop-btn--primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #1c1007;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
}

.shop-preview {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92);
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.shop-preview__media { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.shop-preview__close {
    position: absolute; top: 18px; right: 22px;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.15); color: #fff;
    border: none; font-size: 24px; line-height: 40px; cursor: pointer;
    transition: background .15s;
}
.shop-preview__close:hover { background: rgba(255,255,255,.3); }

/* Payment modal */
.pay-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pay-modal[hidden] { display: none; }
.pay-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); }
.pay-modal__dialog {
    position: relative; z-index: 1;
    background: var(--card-bg, #1a1a1a);
    color: var(--text-color, #fff);
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%; max-width: 460px;
    box-shadow: 0 30px 80px rgba(0,0,0,.6);
    border: 1px solid rgba(255,255,255,.06);
}
.pay-modal__close {
    position: absolute; top: 12px; right: 14px;
    width: 36px; height: 36px; border-radius: 50%;
    background: transparent; color: inherit;
    border: none; font-size: 26px; line-height: 36px; cursor: pointer;
    opacity: .6;
}
.pay-modal__close:hover { opacity: 1; }
.pay-modal__title { margin: 0 0 14px; font-size: 20px; font-weight: 700; }
.pay-modal__summary {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 12px 14px; margin-bottom: 18px;
    background: rgba(255,255,255,.04); border-radius: 10px;
    font-size: 14px;
}
.pay-modal__price { font-weight: 700; color: var(--accent-color, #f59e0b); white-space: nowrap; }
.pay-modal__methods { display: flex; flex-direction: column; gap: 10px; }
.pay-modal__loading { text-align: center; padding: 24px 0; opacity: .7; font-size: 14px; }
.pay-modal__error { margin-top: 14px; padding: 10px 12px; background: rgba(239,68,68,.12); color: #f87171; border-radius: 8px; font-size: 13px; }
.pay-modal__email-wrap { margin-bottom: 16px; }
.pay-modal__email-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; opacity: .8; }
.pay-modal__email-input {
    width: 100%; padding: 10px 12px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    color: inherit; font-family: inherit; font-size: 14px;
    outline: none; box-sizing: border-box;
    transition: border-color .15s;
}
.pay-modal__email-input:focus { border-color: var(--accent-color, #ff1744); }
.pay-modal__email-input.is-invalid { border-color: #f87171; }
.pay-method {
    display: flex; align-items: center; gap: 14px;
    padding: 12px 14px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    color: inherit; cursor: pointer; text-align: left;
    transition: background .15s, border-color .15s, transform .15s;
}
.pay-method:hover:not(:disabled) {
    background: rgba(255,255,255,.06);
    border-color: var(--accent-color, #f59e0b);
    transform: translateY(-1px);
}
.pay-method:disabled { opacity: .5; cursor: not-allowed; }
.pay-method__icon { width: 36px; height: 36px; object-fit: contain; border-radius: 6px; }
.pay-method__name { flex: 1; font-weight: 600; font-size: 15px; }
.pay-method__fee { font-size: 12px; opacity: .65; }

/* Error page */
.error-page { text-align: center; padding: 96px 20px; }
.error-page__code {
    font-size: clamp(96px, 18vw, 180px);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -6px;
}
.error-page__title { font-size: clamp(22px, 4vw, 32px); margin-bottom: 14px; font-weight: 800; }
.error-page__text  { color: var(--text-secondary); margin-bottom: 32px; max-width: 540px; margin-left: auto; margin-right: auto; }
.error-page__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* =====================================================================
   PARTNER PROGRAM — landing, auth, panel
   ===================================================================== */

/* --- Landing hero --- */
.partner-hero {
    padding: 96px 0 80px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(255,23,68,.10) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(30,0,94,.10) 0%, transparent 50%),
        var(--bg-secondary);
    text-align: center;
}
.partner-hero__inner { max-width: 760px; margin: 0 auto; }
.partner-hero__badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(255,23,68,.12);
    color: var(--accent-color);
    font-size: 13px; font-weight: 700; letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.partner-hero__title {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    letter-spacing: -2px;
    line-height: 1.05;
    margin-bottom: 20px;
}
.partner-hero__sub {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}
.partner-hero__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* --- Section common --- */
.partner-section-title {
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -1px;
}

/* --- Steps --- */
.partner-steps { padding: 80px 0; }
.partner-steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}
.partner-step {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 36px 28px;
    border: 1px solid var(--border-color);
    transition: box-shadow .2s;
}
.partner-step:hover { box-shadow: var(--shadow-md); }
.partner-step__num {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-size: 22px; font-weight: 900;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.partner-step__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.partner-step__text  { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* --- Perks --- */
.partner-perks { padding: 64px 0 80px; background: var(--bg-secondary); }
.partner-perks__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.partner-perk {
    background: var(--bg-primary);
    border-radius: 20px;
    padding: 32px 28px;
    border: 1px solid var(--border-color);
}
.partner-perk__icon { font-size: 36px; margin-bottom: 16px; }
.partner-perk h3    { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.partner-perk p     { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* --- CTA --- */
.partner-cta { padding: 80px 0; }
.partner-cta__inner {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--theme-color) 100%);
    border-radius: 28px;
    padding: 64px 40px;
    text-align: center;
    color: #fff;
}
.partner-cta__inner h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 900; margin-bottom: 16px; letter-spacing: -1px; }
.partner-cta__inner p  { font-size: 18px; opacity: .9; margin-bottom: 36px; }
.partner-cta__btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.partner-cta__btns .btn-primary  { background: #fff; color: var(--accent-color) !important; }
.partner-cta__btns .btn-primary:hover { background: rgba(255,255,255,.9); }
.partner-cta__btns .btn-outline  { border-color: rgba(255,255,255,.6); color: #fff; }
.partner-cta__btns .btn-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

@media (max-width: 768px) {
    .partner-hero  { padding: 64px 0 56px; }
    .partner-steps { padding: 56px 0; }
    .partner-perks { padding: 48px 0 56px; }
    .partner-cta   { padding: 48px 0; }
    .partner-cta__inner { padding: 40px 24px; }
    .partner-steps__grid { grid-template-columns: 1fr; gap: 20px; }
    .partner-perks__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* --- Auth page --- */
.partner-auth-wrap {
    min-height: calc(100vh - 200px);
    display: flex; align-items: center;
    padding: 60px 0;
}
.partner-auth-card {
    max-width: 440px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 36px;
    box-shadow: var(--shadow-md);
    width: 100%;
}
.partner-auth-card__back {
    display: inline-block;
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 24px;
    transition: color .2s;
}
.partner-auth-card__back:hover { color: var(--accent-color); }
.partner-auth-card__title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.partner-auth-card__sub   { font-size: 14px; color: var(--text-secondary); margin-bottom: 28px; }
.partner-auth-card__error {
    background: rgba(255,23,68,.10);
    color: var(--accent-color);
    border: 1px solid rgba(255,23,68,.25);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px; font-weight: 600;
    margin-bottom: 20px;
}
.partner-auth-form { display: flex; flex-direction: column; gap: 20px; }
.partner-auth-form__field { display: flex; flex-direction: column; gap: 8px; }
.partner-auth-form__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.partner-auth-form__input {
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit; font-size: 15px;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color .2s;
    width: 100%;
}
.partner-auth-form__input:focus { outline: none; border-color: var(--accent-color); }
.partner-auth-form__submit { width: 100%; padding: 15px; font-size: 16px; margin-top: 4px; }

@media (max-width: 480px) {
    .partner-auth-card { padding: 28px 20px; }
}

/* --- Panel --- */
.partner-panel { padding: 48px 0 80px; }

.partner-panel__header {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.partner-panel__title { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.partner-panel__id    { font-size: 14px; color: var(--text-secondary); }
.partner-panel__logout {
    padding: 10px 22px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px; font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    background: none;
    transition: border-color .2s, color .2s;
}
.partner-panel__logout:hover { border-color: var(--accent-color); color: var(--accent-color); }

.partner-panel__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 56px;
}
.partner-stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 28px 24px;
}
.partner-stat-card__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-tertiary); margin-bottom: 12px; }
.partner-stat-card__value { font-size: 28px; font-weight: 800; margin-bottom: 6px; letter-spacing: -1px; }
.partner-stat-card__value--accent { color: var(--accent-color); }
.partner-stat-card__hint  { font-size: 12px; color: var(--text-tertiary); }

.partner-panel__section { margin-bottom: 56px; }
.partner-panel__section-title { font-size: 22px; font-weight: 700; margin-bottom: 20px; }
.partner-panel__empty { font-size: 15px; color: var(--text-secondary); padding: 24px 0; }

.partner-links { display: flex; flex-direction: column; gap: 16px; }
.partner-link-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 24px;
}
.partner-link-card__meta {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.partner-link-card__name  { font-weight: 700; font-size: 15px; }
.partner-link-card__stats { font-size: 13px; color: var(--text-secondary); }
.partner-link-card__url-row {
    display: flex; align-items: center; gap: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 8px;
}
.partner-link-card__url {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-all;
    overflow: hidden;
}
.partner-link-card__copy {
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 8px;
    background: var(--accent-color);
    color: #fff;
    font-size: 13px; font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: background .2s;
}
.partner-link-card__copy:hover { background: var(--accent-hover); }
.partner-link-card__copy.copied { background: #22c55e; }
.partner-link-card__code { font-size: 12px; color: var(--text-tertiary); }
.partner-link-card__code code { color: var(--text-secondary); }

.partner-earnings-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--border-color); }
.partner-earnings-table {
    width: 100%; border-collapse: collapse;
    font-size: 14px;
}
.partner-earnings-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .4px;
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}
.partner-earnings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}
.partner-earnings-table tbody tr:last-child td { border-bottom: none; }
.partner-earnings-table tbody tr:hover td { background: var(--bg-secondary); }
.partner-earnings-table__id     { color: var(--text-tertiary); font-size: 12px; }
.partner-earnings-table__earned { color: #22c55e; font-weight: 700; }
.partner-earnings-table__date   { color: var(--text-tertiary); font-size: 13px; white-space: nowrap; }
.muted { color: var(--text-tertiary); }

.partner-pagination { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.partner-pagination__btn {
    min-width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    border: 1.5px solid var(--border-color);
    font-size: 14px; font-weight: 600;
    color: var(--text-secondary);
    transition: all .2s;
}
.partner-pagination__btn:hover { border-color: var(--accent-color); color: var(--accent-color); }
.partner-pagination__btn.active { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }

@media (max-width: 768px) {
    .partner-panel { padding: 32px 0 56px; }
    .partner-panel__stats { grid-template-columns: repeat(2, 1fr); }
    .partner-stat-card__value { font-size: 22px; }
}
@media (max-width: 480px) {
    .partner-panel__stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .partner-link-card { padding: 16px; }
    .partner-link-card__url { font-size: 11px; }
}

/* ── Partner panel section header ─────────────────────────────────────────── */
.partner-panel__section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.partner-btn-new {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 7px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.partner-btn-new:hover { opacity: .85; }

/* ── Compact link rows (.plc) ─────────────────────────────────────────────── */
.partner-links-compact { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--border-color, #e2e8f0); border-radius: 12px; overflow: hidden; }
.plc { padding: 12px 16px; border-bottom: 1px solid var(--border-color, #e2e8f0); background: #fff; }
.plc:last-child { border-bottom: none; }
.plc__top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.plc__name { font-weight: 600; font-size: 14px; color: var(--text-color, #1a202c); flex: 1 1 auto; }
.plc__stats { display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.plc__stat { font-size: 12px; color: var(--text-muted, #718096); }
.plc__stat--earned { color: var(--accent-color); font-weight: 600; }
.plc__sep { color: var(--text-muted, #718096); font-size: 12px; }
.plc__url-row { display: flex; align-items: center; gap: 8px; }
.plc__url { flex: 1 1 0; font-size: 12px; color: var(--text-muted, #718096); background: var(--bg-secondary, #f7fafc); padding: 4px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.plc__copy, .plc__edit {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted, #718096);
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.plc__copy:hover { border-color: var(--accent-color); color: var(--accent-color); }
.plc__copy.copied { border-color: #38a169; color: #38a169; }
.plc__edit:hover { border-color: var(--accent-color); color: var(--accent-color); }

/* ── Modal (<dialog>) ─────────────────────────────────────────────────────── */
.pmodal {
    border: none;
    border-radius: 16px;
    padding: 0;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
.pmodal::backdrop { background: rgba(0,0,0,.45); }
.pmodal__card { padding: 28px 28px 24px; }
.pmodal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pmodal__title { font-size: 18px; font-weight: 700; color: var(--text-color, #1a202c); margin: 0; }
.pmodal__close { background: none; border: none; font-size: 18px; color: var(--text-muted, #718096); cursor: pointer; padding: 0 4px; line-height: 1; transition: color .15s; }
.pmodal__close:hover { color: var(--text-color, #1a202c); }
.pmodal__hint { font-size: 13px; color: var(--text-muted, #718096); margin: 0 0 16px; }
.pmodal__field { margin-bottom: 20px; }
.pmodal__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-color, #1a202c); margin-bottom: 6px; }
.pmodal__input {
    width: 100%;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    color: var(--text-color, #1a202c);
    outline: none;
    transition: border-color .15s;
    box-sizing: border-box;
}
.pmodal__input:focus { border-color: var(--accent-color); }
.pmodal__actions { display: flex; gap: 10px; }
.pmodal__submit {
    flex: 1;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
}
.pmodal__submit:hover { opacity: .85; }
.pmodal__cancel {
    flex: 1;
    background: none;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 8px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-muted, #718096);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.pmodal__cancel:hover { border-color: var(--text-muted, #718096); color: var(--text-color, #1a202c); }
@media (max-width: 480px) {
    .pmodal { max-width: calc(100vw - 32px); }
    .pmodal__card { padding: 20px; }
    .plc__url-row { flex-wrap: wrap; }
}

/* ── Age verification gate ─────────────────────────────────────────────────── */
.age-gate {
    border: none;
    border-radius: 20px;
    padding: 0;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
}
.age-gate::backdrop {
    background: rgba(0, 0, 0, .8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.age-gate__card { padding: 44px 36px 36px; text-align: center; }
.age-gate__badge {
    display: inline-block;
    font-size: 40px;
    font-weight: 900;
    color: #fff;
    background: var(--accent-color);
    border-radius: 14px;
    width: 80px;
    line-height: 80px;
    margin-bottom: 20px;
}
.age-gate__title { font-size: 22px; font-weight: 800; color: var(--text-color, #1a202c); margin: 0 0 12px; }
.age-gate__text { font-size: 15px; color: var(--text-muted, #718096); line-height: 1.6; margin: 0 0 28px; }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.age-gate__yes {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
}
.age-gate__yes:hover { opacity: .87; }
.age-gate__no {
    background: none;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    color: var(--text-muted, #718096);
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.age-gate__no:hover { border-color: #a0aec0; color: var(--text-color, #1a202c); }
.age-gate__legal { font-size: 11px; color: #a0aec0; line-height: 1.6; margin: 0; }
.age-gate__legal a { color: var(--accent-color); text-decoration: underline; }

/* ── Cookie consent bar ────────────────────────────────────────────────────── */
.cookie-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a202c;
    color: #e2e8f0;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9998;
    flex-wrap: wrap;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .2);
}
.cookie-bar.hidden { display: none !important; }
.cookie-bar__text { flex: 1 1 auto; font-size: 13px; line-height: 1.5; margin: 0; }
.cookie-bar__text a { color: var(--accent-color); text-decoration: underline; }
.cookie-bar__btn {
    flex-shrink: 0;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.cookie-bar__btn:hover { opacity: .85; }
@media (max-width: 480px) {
    .age-gate { max-width: calc(100vw - 32px); }
    .age-gate__card { padding: 28px 20px 24px; }
    .age-gate__badge { font-size: 32px; width: 64px; line-height: 64px; }
    .cookie-bar { padding: 12px 16px; gap: 10px; }
}
/* ── Payment success page ───────────────────────────────── */
.pay-success-page { min-height:60vh; display:flex; align-items:center; justify-content:center; padding:40px 16px; background:var(--bg-secondary,#f8f9fa); }
.pay-success-box { background:var(--bg-primary,#fff); border:1px solid var(--border-color,#e0e0e0); border-radius:16px; padding:40px 32px; text-align:center; max-width:480px; width:100%; box-shadow:var(--shadow-md,0 4px 16px rgba(0,0,0,.1)); }
@media (max-width:520px) { .pay-success-box { padding:28px 18px; } }
.pay-success-spinner { width:52px; height:52px; border:4px solid var(--border-color,#e0e0e0); border-top-color:var(--accent-color,#ff1744); border-radius:50%; animation:pay-spin .8s linear infinite; margin:0 auto 22px; }
@keyframes pay-spin { to { transform:rotate(360deg); } }
.pay-success-check { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#43a047,#66bb6a); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; box-shadow:0 6px 20px rgba(67,160,71,.28); }
.pay-success-check svg { width:30px; height:30px; }
.pay-success-title { font-size:1.3rem; font-weight:700; margin-bottom:6px; color:var(--text-primary,#1a1a1a); }
.pay-success-sub   { color:var(--text-secondary,#666); font-size:.9rem; }
.pay-success-order { display:inline-block; margin:12px 0 6px; padding:5px 14px; background:var(--bg-secondary,#f8f9fa); border:1px solid var(--border-color,#e0e0e0); border-radius:20px; font-size:.78rem; color:var(--text-secondary,#666); letter-spacing:.5px; }
.pay-success-order span { font-weight:700; color:var(--text-primary,#1a1a1a); font-family:monospace; font-size:.85rem; }
.pay-success-archive-btn { display:inline-flex; align-items:center; gap:8px; margin:16px 0 4px; padding:11px 24px; background:var(--accent-color,#ff1744); color:#fff; border:0; border-radius:10px; text-decoration:none; font-weight:700; font-size:.95rem; font-family:inherit; transition:transform .12s,box-shadow .12s; }
.pay-success-archive-btn:hover { transform:translateY(-1px); box-shadow:0 5px 16px rgba(255,23,68,.35); color:#fff; }
.pay-success-email-line { margin:14px 0 20px; font-size:.9rem; color:var(--text-secondary,#666); }
.pay-success-email-line strong { color:var(--text-primary,#1a1a1a); }
.pay-success-error { color:#c62828; margin-top:20px; font-size:.9rem; background:rgba(198,40,40,.07); border-radius:8px; padding:10px 14px; }
.pay-success-divider { border:none; border-top:1px solid var(--border-color,#e0e0e0); margin:20px 0; }
.pay-success-tg-hint { font-size:.82rem; color:var(--text-secondary,#666); margin-bottom:10px; }
.pay-success-tg-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 20px; background:#229ED9; color:#fff; border:0; border-radius:10px; font-weight:600; font-size:.9rem; font-family:inherit; cursor:pointer; text-decoration:none; transition:transform .12s ease,box-shadow .12s ease; }
.pay-success-tg-btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(34,158,217,.35); color:#fff; }
.pay-fallback-form { margin-top:20px; text-align:left; }
.pay-fallback-form label { display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:var(--text-secondary,#666); }
.pay-fallback-input { width:100%; padding:10px 12px; background:var(--bg-secondary,#f8f9fa); border:1px solid var(--border-color,#e0e0e0); border-radius:8px; color:var(--text-primary,#1a1a1a); font-size:.9rem; font-family:inherit; box-sizing:border-box; margin-bottom:10px; outline:none; transition:border-color .15s; }
.pay-fallback-input:focus { border-color:var(--accent-color,#ff1744); }
.pay-fallback-submit { width:100%; padding:11px; background:var(--accent-color,#ff1744); color:#fff; border:0; border-radius:8px; font-weight:700; font-family:inherit; cursor:pointer; transition:transform .12s,box-shadow .12s; }
.pay-fallback-submit:hover:not([disabled]) { transform:translateY(-1px); box-shadow:0 5px 14px rgba(255,23,68,.3); }
.pay-fallback-submit[disabled] { opacity:.6; cursor:not-allowed; }
.pay-fallback-msg { margin-top:8px; font-size:.82rem; min-height:1.1em; }
.pay-fallback-msg.is-error   { color:#c62828; }
.pay-fallback-msg.is-success { color:#2e7d32; }

/* ── Payment success page ───────────────────────────────── */
.pay-success-page { min-height:60vh; display:flex; align-items:center; justify-content:center; padding:40px 16px; background:var(--bg-secondary,#f8f9fa); }
.pay-success-box { background:var(--bg-primary,#fff); border:1px solid var(--border-color,#e0e0e0); border-radius:16px; padding:40px 32px; text-align:center; max-width:480px; width:100%; box-shadow:var(--shadow-md,0 4px 16px rgba(0,0,0,.1)); }
@media (max-width:520px) { .pay-success-box { padding:28px 18px; } }
.pay-success-spinner { width:52px; height:52px; border:4px solid var(--border-color,#e0e0e0); border-top-color:var(--accent-color,#ff1744); border-radius:50%; animation:pay-spin .8s linear infinite; margin:0 auto 22px; }
@keyframes pay-spin { to { transform:rotate(360deg); } }
.pay-success-check { width:60px; height:60px; border-radius:50%; background:linear-gradient(135deg,#43a047,#66bb6a); display:flex; align-items:center; justify-content:center; margin:0 auto 18px; box-shadow:0 6px 20px rgba(67,160,71,.28); }
.pay-success-check svg { width:30px; height:30px; }
.pay-success-title { font-size:1.3rem; font-weight:700; margin-bottom:6px; color:var(--text-primary,#1a1a1a); }
.pay-success-sub   { color:var(--text-secondary,#666); font-size:.9rem; }
.pay-success-order { display:inline-block; margin:12px 0 6px; padding:5px 14px; background:var(--bg-secondary,#f8f9fa); border:1px solid var(--border-color,#e0e0e0); border-radius:20px; font-size:.78rem; color:var(--text-secondary,#666); letter-spacing:.5px; }
.pay-success-order span { font-weight:700; color:var(--text-primary,#1a1a1a); font-family:monospace; font-size:.85rem; }
.pay-success-archive-btn { display:inline-flex; align-items:center; gap:8px; margin:16px 0 4px; padding:11px 24px; background:var(--accent-color,#ff1744); color:#fff; border:0; border-radius:10px; text-decoration:none; font-weight:700; font-size:.95rem; font-family:inherit; transition:transform .12s,box-shadow .12s; }
.pay-success-archive-btn:hover { transform:translateY(-1px); box-shadow:0 5px 16px rgba(255,23,68,.35); color:#fff; }
.pay-success-email-line { margin:14px 0 20px; font-size:.9rem; color:var(--text-secondary,#666); }
.pay-success-email-line strong { color:var(--text-primary,#1a1a1a); }
.pay-success-error { color:#c62828; margin-top:20px; font-size:.9rem; background:rgba(198,40,40,.07); border-radius:8px; padding:10px 14px; }
.pay-success-divider { border:none; border-top:1px solid var(--border-color,#e0e0e0); margin:20px 0; }
.pay-success-tg-hint { font-size:.82rem; color:var(--text-secondary,#666); margin-bottom:10px; }
.pay-success-tg-btn { display:inline-flex; align-items:center; gap:8px; padding:10px 20px; background:#229ED9; color:#fff; border:0; border-radius:10px; font-weight:600; font-size:.9rem; font-family:inherit; cursor:pointer; text-decoration:none; transition:transform .12s ease,box-shadow .12s ease; }
.pay-success-tg-btn:hover { transform:translateY(-1px); box-shadow:0 6px 16px rgba(34,158,217,.35); color:#fff; }
.pay-fallback-form { margin-top:20px; text-align:left; }
.pay-fallback-form label { display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:var(--text-secondary,#666); }
.pay-fallback-input { width:100%; padding:10px 12px; background:var(--bg-secondary,#f8f9fa); border:1px solid var(--border-color,#e0e0e0); border-radius:8px; color:var(--text-primary,#1a1a1a); font-size:.9rem; font-family:inherit; box-sizing:border-box; margin-bottom:10px; outline:none; transition:border-color .15s; }
.pay-fallback-input:focus { border-color:var(--accent-color,#ff1744); }
.pay-fallback-submit { width:100%; padding:11px; background:var(--accent-color,#ff1744); color:#fff; border:0; border-radius:8px; font-weight:700; font-family:inherit; cursor:pointer; transition:transform .12s,box-shadow .12s; }
.pay-fallback-submit:hover:not([disabled]) { transform:translateY(-1px); box-shadow:0 5px 14px rgba(255,23,68,.3); }
.pay-fallback-submit[disabled] { opacity:.6; cursor:not-allowed; }
.pay-fallback-msg { margin-top:8px; font-size:.82rem; min-height:1.1em; }
.pay-fallback-msg.is-error   { color:#c62828; }
.pay-fallback-msg.is-success { color:#2e7d32; }

/* ── Nav badge ─────────────────────────────────────────────────────────────── */
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--accent-color);
    color: #fff;
    font-size: 11px; font-weight: 700; line-height: 1;
    vertical-align: middle;
    margin-left: 4px;
    box-shadow: 0 2px 6px rgba(255,23,68,.35);
    letter-spacing: 0;
    place-self: center;
}
.nav-badge:empty { display: none; }

/* ── Partner income chart ──────────────────────────────────────────────────── */
.partner-income-section { margin-bottom: 48px; }
.partner-income-section__chart-wrap {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px 20px 16px;
    position: relative;
}

/* ── Copy icon button ──────────────────────────────────────────────────────── */
.plc__copy-icon {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    padding: 5px 6px;
    cursor: pointer;
    color: var(--text-muted, #718096);
    display: flex; align-items: center; justify-content: center;
    transition: border-color .15s, color .15s;
    line-height: 0;
}
.plc__copy-icon:hover  { border-color: var(--accent-color); color: var(--accent-color); }
.plc__copy-icon.copied { border-color: #22c55e; color: #22c55e; }

/* ── Stats button ──────────────────────────────────────────────────────────── */
.plc__stats-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted, #718096);
    transition: border-color .15s, color .15s;
    white-space: nowrap;
}
.plc__stats-btn:hover { border-color: var(--theme-color); color: var(--theme-color); }

/* ── Stats modal (wider, scrollable) ──────────────────────────────────────── */
.pmodal--stats { max-width: 680px; max-height: 90vh; overflow-y: auto; }
.pstats-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.pstats-summary__item { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; padding: 16px 20px; }
.pstats-summary__label { font-size: 11px; color: var(--text-tertiary); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.pstats-summary__value { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }
.pstats-summary__value--accent { color: var(--accent-color); }
.pstats-chart-block { margin-bottom: 24px; }
.pstats-chart-block__title { font-size: 11px; font-weight: 700; color: var(--text-tertiary); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px; }
.pstats-chart-wrap { position: relative; height: 140px; }
.pstats-people { margin-bottom: 8px; }
.pstats-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.pstats-table th { text-align: left; padding: 8px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--text-tertiary); border-bottom: 1px solid var(--border-color); }
.pstats-table td { padding: 9px 10px; border-bottom: 1px solid var(--border-color); color: var(--text-primary); }
.pstats-table tbody tr:last-child td { border-bottom: none; }
.pstats-table tbody tr:hover td { background: var(--bg-secondary); }
.pstats-table__empty { text-align: center !important; color: var(--text-tertiary); padding: 20px !important; }
.pstats-cnt    { text-align: right; color: var(--text-secondary); }
.pstats-earned { text-align: right; color: #22c55e; font-weight: 700; }
@media (max-width: 480px) {
    .pmodal--stats { max-width: calc(100vw - 32px); }
    .pstats-chart-wrap { height: 110px; }
    .pstats-summary { grid-template-columns: 1fr; }
}

/* ── "New leak" popup ── */
.leak-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 300px;
    background: var(--bg-primary, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}
.leak-popup--visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.leak-popup__close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background: rgba(0,0,0,.35);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background .2s;
}
.leak-popup__close:hover { background: rgba(0,0,0,.6); }
.leak-popup__inner {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}
.leak-popup__img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.leak-popup__body {
    padding: 12px 14px 14px;
}
.leak-popup__label {
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent-color, #ff1744);
    margin-bottom: 4px;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.leak-popup__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.leak-popup__desc {
    font-size: .8rem;
    color: var(--text-muted, #6b7280);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 480px) {
    .leak-popup { width: calc(100vw - 24px); right: 12px; bottom: 16px; }
}

#dle-comments-form{
    display: none;
}

dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
}
/* 1. Общие настройки светлого окна */
dialog.slv-light-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.96);
    margin: 0;
    
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 0;
    max-width: 680px;
    width: 90%;
    box-sizing: border-box;
    overflow: hidden;
    
    background: #ffffff;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15), 
                0 10px 30px rgba(0, 0, 0, 0.05);
    
    color: #111111;
    font-family: 'Montserrat', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

dialog[open].slv-light-modal {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

/* Светлое матовое размытие фона */
dialog::backdrop {
    background-color: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Сплит-контейнер */
.slv-split-container {
    display: flex;
    flex-direction: row;
    min-height: 380px;
}

/* 2. Левая сторона: Превью архива */
.slv-preview-side {
    position: relative;
    width: 40%;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slv-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

/* Красивый градиентный оверлей поверх картинки */
.slv-preview-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.5) 0%, rgba(17, 17, 17, 0.6) 100%);
    z-index: 1;
}

.slv-preview-overlay.success {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.5) 0%, rgba(17, 17, 17, 0.6) 100%);
}

.slv-preview-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 8px;
    letter-spacing: 2px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 2;
}

/* 3. Правая сторона: Оплата и Чек */
.slv-info-side {
    position: relative;
    width: 60%;
    padding: 35px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

/* Кнопка закрытия (Крестик) */
.slv-modal-close-x {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #bbb;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.slv-modal-close-x:hover {
    color: #ff1744;
}

.slv-brand-micro {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff1744;
    margin-bottom: 8px;
}
.slv-brand-micro.success {
    color: #4caf50;
}

.slv-modal-title {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #111;
}

.slv-modal-desc {
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 20px 0;
    font-weight: 500;
}

/* Секция цены */
.slv-price-section {
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
    padding: 14px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.slv-price-tag {
    font-size: 9px;
    font-weight: 800;
    color: #999;
    letter-spacing: 1.5px;
}

.slv-price-val {
    font-size: 28px;
    font-weight: 900;
    color: #ff1744;
    line-height: 1;
}

/* Безопасность */
.slv-security-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    margin-bottom: 20px;
}

.slv-sec-icon {
    width: 14px;
    height: 14px;
    color: #4caf50;
}

/* Кнопки */
.slv-btn-pay {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #ff1744;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    box-sizing: border-box;
}

.slv-btn-pay:hover {
    background: #ff2d55;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 23, 68, 0.35);
}

.slv-btn-pay.success {
    background: #4caf50;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    text-align: center;
}
.slv-btn-pay.success:hover {
    background: #66bb6a;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.slv-btn-cancel {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #bbb;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    cursor: pointer;
    transition: color 0.2s;
}

.slv-btn-cancel:hover {
    color: #777;
}

/* 4. Оформление окна Успеха */
.slv-success-badge-icon {
    position: absolute;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.slv-receipt-details {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 20px;
    text-align: left;
}

.slv-receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.slv-receipt-row.warning {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eee;
    color: #ff9800;
    font-weight: 700;
}

.slv-receipt-label {
    color: #999;
    font-weight: 700;
}

.slv-receipt-val {
    color: #333;
    font-family: monospace;
    font-weight: 600;
}

/* 5. Адаптивность для мобильных телефонов (Схлопывание в вертикаль) */
@media (max-width: 600px) {
    .slv-split-container {
        flex-direction: column;
    }
    .slv-preview-side {
        width: 100%;
        height: 160px;
    }
    .slv-info-side {
        width: 100%;
        padding: 25px 20px 20px 20px;
    }
    .slv-success-badge-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

/* =========================================================================
   Slivatus Shop — Премиум Промо-Баннер (Адаптивный)
   ========================================================================= */
.shop-catalog-banner {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    border: 1px solid rgb(255 23 68 / 8%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 35px;
    position: relative;
    overflow: hidden;
    /* box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6); */
}

/* Мягкое неоновое свечение в углу баннера */
.shop-catalog-banner::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255, 23, 68, 0.16) 0%, rgba(255, 23, 68, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 1;
}

.slv-banner-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.slv-banner-text-col {
    flex: 1;
    max-width: 60%;
    text-align: left;
}

.slv-banner-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ff1744;
    background: rgba(255, 23, 68, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 23, 68, 0.2);
    margin-bottom: 18px;
}

.slv-banner-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 15px 0;
    color: rgb(0, 0, 0);
    text-transform: uppercase;
    letter-spacing: -1px;
}

.slv-banner-accent {
    color: #ff1744;
    text-shadow: 0 0 15px rgba(255, 23, 68, 0.4);
}

.slv-banner-lead {
    font-size: 13.5px;
    color: #b3b3b3;
    line-height: 1.6;
    margin: 0 0 25px 0;
    font-weight: 500;
}

.slv-banner-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #1d1d1d;
}

.slv-feat-item {
    padding: 6px 12px;


}

/* Правая сторона: Накладывающиеся 3D-превью карточки */
.slv-banner-preview-col {
    position: relative;
    width: 35%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slv-preview-stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.slv-stack-card {
    position: absolute;
    width: 130px;
    height: 185px;
    border-radius: 12px;
    overflow: hidden;
    /* border: 2px solid rgba(255, 255, 255, 0.08); */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    /* background: #111; */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.slv-stack-card:hover {
    transform: translateY(-5px) rotate(0deg) scale(1.05) !important;
    border-color: rgba(255, 23, 68, 0.5);
    z-index: 10 !important;
}

.slv-stack-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slv-stack-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-size: 8px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slv-stack-tag.text-red { color: #ff1744; border-color: rgba(255, 23, 68, 0.2); }
.slv-stack-tag.text-green { color: #4caf50; border-color: rgba(76, 175, 80, 0.2); }

/* Эффект веера (наложения) для десктопных карточек */
.slv-card-1 {
    left: 0;
    top: 25px;
    transform: rotate(-10deg);
    z-index: 1;
}

.slv-card-2 {
    left: 75px;
    top: 5px;
    transform: rotate(3deg) scale(1.05);
    z-index: 3;
    border-color: rgba(255, 23, 68, 0.25);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
}

.slv-card-3 {
    left: 155px;
    top: 25px;
    transform: rotate(12deg);
    z-index: 2;
}

/* =========================================================================
   Адаптивность под планшеты и мобильные
   ========================================================================= */
@media (max-width: 1024px) {
    .slv-banner-title { font-size: 34px; }
    .slv-stack-card { width: 110px; height: 160px; }
    .slv-card-2 { left: 65px; }
    .slv-card-3 { left: 130px; }
}

@media (max-width: 768px) {
    .shop-catalog-banner {
        padding: 30px 20px;
        margin-bottom: 25px;
    }
    .slv-banner-container {
        flex-direction: column;
        gap: 0;
    }
    .slv-banner-text-col {
        max-width: 100%;
        text-align: center; /* Центрируем текст на телефонах */
    }
    .slv-banner-title {
        font-size: 28px;
    }
    .slv-banner-lead {
        font-size: 12.5px;
        margin-bottom: 20px;
    }
    .slv-banner-features {
        justify-content: center;
    }
    
    /* СКРЫВАЕМ СТОПКУ КАРТИНОК НА ТЕЛЕФОНАХ */
    /* Это делает баннер компактным и предотвращает растягивание экрана вниз */
    .slv-banner-preview-col {
        display: none;
    }
}

/* =========================================================================
   Slivatus Shop — Премиальный блок системных ошибок (info.tpl)
   ========================================================================= */
.slv-sys-error {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #fee2e2; /* Мягкий, пастельный красноватый бордюр */
    border-radius: 14px;
    padding: 24px;
    margin: 20px auto;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.02), 
                0 4px 12px rgba(0, 0, 0, 0.01);
    font-family: 'Montserrat', sans-serif;
    text-align: left;
}

.slv-sys-error__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fef2f2; /* Легкая заливка подложки иконки */
    color: #ef4444; /* Фирменный красный цвет ворнинга */
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.06);
}

.slv-error-svg {
    width: 20px;
    height: 20px;
}

.slv-sys-error__body {
    flex: 1;
}

.slv-sys-error__title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 800;
    color: #111827; /* Насыщенный темный заголовок */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slv-sys-error__text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    color: #4b5563; /* Благородный серый цвет текста */
    margin: 0;
}

/* =========================================================================
   Адаптивность под мобильные устройства
   ========================================================================= */
@media (max-width: 600px) {
    .slv-sys-error {
        flex-direction: column;
        align-items: center;
        text-align: center; /* Центрируем контент на телефонах */
        padding: 20px;
        gap: 12px;
    }
    .slv-sys-error__icon {
        width: 40px;
        height: 40px;
    }
    .slv-sys-error__title {
        font-size: 14px;
    }
    .slv-sys-error__text {
        font-size: 12px;
        line-height: 1.5;
    }
}

.contact-page {
	--accent:#ff2457;
	--text:#111827;
	--muted:#6b7280;
	--line:#eceef2;
	--soft:#f7f8fa;
}

.contact-page .breadcrumbs {
	margin: 28px 0 14px;
	font-size: 13px;
	color: #9ca3af;
}

.contact-page .breadcrumbs a {
	color: #9ca3af;
	text-decoration: none;
}

.contact-page .breadcrumbs__sep {
	margin: 0 8px;
}

.contact-page .breadcrumbs__current {
	color: #111827;
	font-weight: 600;
}

.contact-page .contact-box {
	max-width: 980px;
	margin: 0 auto 80px;
	border-radius: 28px;
	background: #fff;
	border: 1px solid var(--line);
	box-shadow: 0 24px 70px rgba(17,24,39,.07);
	overflow: hidden;
}

.contact-page .contact-hero {
	padding: 60px 34px 52px;
	text-align: center;
	background:
		radial-gradient(circle at 22% 20%, rgba(255,36,87,.16), transparent 32%),
		linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
	border-bottom: 1px solid var(--line);
}

.contact-page .contact-badge {
	display: inline-flex;
	margin-bottom: 16px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255,36,87,.09);
	color: var(--accent);
	font-size: 13px;
	font-weight: 800;
}

.contact-page .contact-title {
	margin: 0;
	font-size: 46px;
	line-height: 1.1;
	font-weight: 900;
	letter-spacing: -1px;
	color: var(--text);
}

.contact-page .contact-subtitle {
	max-width: 640px;
	margin: 18px auto 0;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--muted);
}

.contact-page .contact-main {
	padding: 42px 46px 46px;
}

.contact-page .contact-line {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 26px 0;
	border-bottom: 1px solid var(--line);
}

.contact-page .contact-line:first-child {
	padding-top: 0;
}

.contact-page .contact-line:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.contact-page .contact-icon {
	flex: 0 0 46px;
	width: 46px;
	height: 46px;
	border-radius: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,36,87,.1);
	color: var(--accent);
	font-size: 18px;
	font-weight: 900;
}

.contact-page .contact-text h2 {
	margin: 0 0 10px;
	font-size: 23px;
	line-height: 1.3;
	font-weight: 900;
	color: var(--text);
}

.contact-page .contact-text p {
	margin: 0 0 12px;
	font-size: 15.5px;
	line-height: 1.8;
	color: var(--muted);
}

.contact-page .contact-text p:last-child {
	margin-bottom: 0;
}

.contact-page a {
	color: var(--accent);
	font-weight: 800;
	text-decoration: none;
}

.contact-page a:hover {
	text-decoration: underline;
}

.contact-page .contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 6px;
	padding: 13px 20px;
	border-radius: 999px;
	background: var(--accent);
	color: #fff !important;
	font-size: 14px;
	font-weight: 900;
	text-decoration: none !important;
	box-shadow: 0 14px 32px rgba(255,36,87,.26);
}

.contact-page .contact-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 38px rgba(255,36,87,.34);
}

.contact-page .contact-note {
	margin-top: 14px;
	padding: 16px 18px;
	border-radius: 16px;
	background: var(--soft);
	border: 1px solid var(--line);
	font-size: 14.5px;
	line-height: 1.7;
	color: var(--muted);
}

@media (max-width: 768px) {
	.contact-page .contact-box {
		margin-bottom: 50px;
		border-radius: 22px;
	}

	.contact-page .contact-hero {
		padding: 44px 22px 38px;
	}

	.contact-page .contact-title {
		font-size: 34px;
	}

	.contact-page .contact-main {
		padding: 28px 22px 32px;
	}

	.contact-page .contact-line {
		gap: 14px;
		padding: 24px 0;
	}

	.contact-page .contact-icon {
		width: 42px;
		height: 42px;
		flex-basis: 42px;
	}
}