/* PIVOQLT Store — доработанный дизайн */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600&display=swap');

:root {
    --accent: #00b8fb;
    --accent-dim: rgba(0, 184, 251, 0.15);
    --accent-glow: rgba(0, 184, 251, 0.35);
    --primary1: hsl(199, 90%, 95%);
    --primary5: #00b8fb;
    --neutral1: #0f1419;
    --neutral2: #161b22;
    --neutral3: #21262d;
    --neutral4: #30363d;
    --textColor: #e6edf3;
    --textColorDimmed: #b1bac4;
    --textColorMuted: #8b949e;
    --pageBg: #0f1419;
    --contentBg: #161b22;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
    --ease: 0.22s ease;
    --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.store-body {
    font-family: var(--font);
    background: var(--pageBg);
    color: var(--textColor);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ========== HEADER ========== */
.store-header {
    position: relative;
    background: linear-gradient(165deg, #0f1419 0%, #1a2332 45%, #0d1929 100%);
    background-image: url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?w=1920');
    background-size: cover;
    background-position: center;
    padding-bottom: 72px;
    overflow: hidden;
}
.store-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 20, 25, 0.75) 0%, rgba(15, 20, 25, 0.92) 70%, var(--pageBg) 100%);
    pointer-events: none;
}
.store-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 184, 251, 0.08) 0%, transparent 55%);
    pointer-events: none;
}
.logo-row {
    position: relative;
    z-index: 2;
    padding: 28px 24px 0;
}
.logo-row-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.logo-three-cols {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}
.logo-three-cols .cc-header-left {
    justify-self: start;
}
.logo-three-cols .cc-header-center {
    justify-self: center;
}
.logo-three-cols .cc-header-right {
    justify-self: end;
}
.cc-header-left,
.cc-header-right {
    min-width: 0;
}
.cc-header-center {
    display: flex;
    justify-content: center;
}
.cc-header-center a {
    display: block;
    text-decoration: none;
    transition: opacity var(--ease);
}
.cc-header-center a:hover { opacity: 0.92; }
.cc-header-center .site-logo,
.cc-header-center img {
    max-height: 200px;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}
/* ========== NOTIFICATION ========== */
#store-notification {
    display: none;
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 9999;
    padding: 14px 22px;
    background: #161b22;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--textColor);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
}
.store-toast--success {
    background: rgba(34, 197, 94, 0.95) !important;
    border-color: #22c55e !important;
    color: #fff !important;
}
#store-notification[style*="display: block"] {
    animation: toastIn 0.3s ease;
}
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== MAIN LAYOUT ========== */
.decus-wrapper {
    max-width: 1100px;
    margin: -36px auto 0;
    padding: 0 24px 56px;
    position: relative;
    z-index: 3;
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
@media (max-width: 900px) {
    .decus-wrapper { flex-direction: column; margin-top: -24px; gap: 20px; }
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
}
@media (max-width: 900px) { .sidebar { width: 100%; } }

.sidebar-nav {
    background: var(--contentBg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 0;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav a {
    display: block;
    padding: 14px 20px;
    color: var(--textColorDimmed);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background var(--ease), color var(--ease);
    border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
    background: var(--accent-dim);
    color: var(--accent);
}
.sidebar-nav a.active {
    background: var(--accent-dim);
    color: var(--accent);
    border-left-color: var(--accent);
}
.sidebar-nav-social {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-nav-social i { width: 1.1em; text-align: center; }
.sidebar-nav-social--discord i { color: #5865F2; }
.sidebar-nav-social--telegram i { color: #0088cc; }
.sidebar-nav-social--twitch i { color: #9146FF; }

/* Секции контента (переключение без перезагрузки) */
.content-section--hidden { display: none !important; }

/* Panel */
.panel {
    background: var(--contentBg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: border-color var(--ease), box-shadow var(--ease);
}
.panel:hover { border-color: rgba(0, 184, 251, 0.15); }
.panel-heading {
    background: linear-gradient(135deg, rgba(0, 184, 251, 0.12) 0%, rgba(0, 184, 251, 0.04) 100%);
    border: none;
    border-bottom: 1px solid var(--border);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--textColor);
    padding: 18px 24px;
    position: relative;
    overflow: hidden;
}
.panel-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    border-radius: 0 2px 0 0;
}
.panel-body {
    padding: 28px 24px;
    color: var(--textColor);
}
.panel-body p { margin-bottom: 1em; color: var(--textColorDimmed); }

/* Плашки соцсетей под меню (без блока) */
.sidebar-socials-plates {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}
.sidebar-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    transition: opacity var(--ease), transform var(--ease);
}
.sidebar-social-link:hover { opacity: 0.9; transform: translateX(4px); }
.sidebar-social-link i { font-size: 1.2rem; width: 1.2em; text-align: center; }
.sidebar-social-link--discord { background: #5865F2; }
.sidebar-social-link--telegram { background: #0088cc; }
.sidebar-social-link--twitch { background: #9146FF; }

/* Правила */
.panel-rules .panel-body { padding: 28px 24px; }
.rules-intro { margin-bottom: 1.5rem; color: var(--textColorDimmed); font-size: 1rem; line-height: 1.6; }
.rules-section { margin-bottom: 1.75rem; }
.rules-section:last-of-type { margin-bottom: 1.25rem; }
.rules-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 0.6rem;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 184, 251, 0.3);
}
.rules-list {
    margin: 0 0 0.75rem;
    padding-left: 1.25rem;
    color: var(--textColor);
    line-height: 1.65;
}
.rules-list li { margin-bottom: 0.4rem; }
.rules-list--nested { padding-left: 1.5rem; }
.rules-list--punishments { list-style: disc; margin-bottom: 1rem; }
.rules-note { margin: 0 0 0.5rem; color: var(--textColorDimmed); font-size: 0.95rem; }
.rules-outro { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--textColorMuted); font-size: 0.95rem; }

.decus-user-module .panel-body {
    padding: 20px;
}
.decus-user-module .panel-body p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.content { flex: 1; min-width: 0; }

/* ========== FORM ========== */
.onepage-form { max-width: 440px; }
.onepage-form--full {
    max-width: none;
    width: 100%;
}
.onepage-form--full .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
@media (max-width: 640px) {
    .onepage-form--full .form-row { grid-template-columns: 1fr; }
}
.onepage-form .form-group { margin-bottom: 22px; }
.onepage-form--full .form-row .form-group { margin-bottom: 0; }
.onepage-form--full .form-row { margin-bottom: 22px; }
.onepage-form--full .form-submit { margin-top: 28px; }
.onepage-form .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--textColor);
}
.onepage-form .form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--neutral1);
    color: var(--textColor);
    font-family: var(--font);
    font-size: 1rem;
    transition: border-color var(--ease), box-shadow var(--ease);
}
.onepage-form .form-control:hover { border-color: rgba(255, 255, 255, 0.12); }
.onepage-form .form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
.onepage-form .form-control::placeholder { color: var(--textColorMuted); }
.onepage-form .form-submit { margin-top: 28px; margin-bottom: 0; }

.btn {
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: opacity var(--ease), transform var(--ease), box-shadow var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn:hover { opacity: 0.95; transform: translateY(-1px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #0099d4 100%);
    color: #fff;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 6px 24px var(--accent-glow); }
.btn-block { width: 100%; }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--neutral1);
    color: var(--textColor);
    font-size: 1rem;
    font-family: var(--font);
}

/* ========== MONITORING ========== */
.monitoring-block {
    margin-bottom: 28px;
    padding: 20px 22px;
    background: var(--neutral1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color var(--ease);
}
.monitoring-block:last-child { margin-bottom: 0; }
.monitoring-block:hover { border-color: rgba(0, 184, 251, 0.2); }

/* Мониторинг в сайдбаре (без блока, сверху) */
.sidebar-monitoring-standalone {
    margin-bottom: 20px;
}
.sidebar-monitoring-standalone .monitoring-block {
    margin-bottom: 12px;
    padding: 12px 14px;
}
.sidebar-monitoring-standalone .monitoring-block:last-child { margin-bottom: 0; }
.sidebar-monitoring-standalone .monitoring-status,
.sidebar-monitoring-standalone .js-monitoring-ip {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 6px;
}
.sidebar-monitoring-standalone .monitoring-stats { font-size: 0.8rem; margin-bottom: 8px; }
.sidebar-monitoring-standalone .progress-store { height: 6px; }

.monitoring-status,
.monitoring-ip {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--accent);
    margin-bottom: 8px;
}
.monitoring-offline { color: #f87171; }
.monitoring-stats {
    font-size: 0.9rem;
    color: var(--textColorMuted);
    margin-bottom: 14px;
}
.progress-store {
    height: 8px;
    background: var(--neutral3);
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-store {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #22d3ee);
    border-radius: 4px;
    transition: width 0.5s ease;
}
.progress-bar-store.progress-bar-danger { background: #f87171; }

/* ========== FOOTER ========== */
.site-footer--new {
    margin-top: 56px;
    padding: 48px 24px 28px;
    background: var(--neutral2);
    border-top: 1px solid var(--border);
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.footer-brand { flex: 0 0 auto; }
.footer-logo-link {
    display: inline-block;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    transition: opacity var(--ease);
}
.footer-logo-link:hover { opacity: 0.9; }
.footer-tagline { font-size: 0.9rem; color: var(--textColorMuted); margin: 0; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
}
.footer-link {
    color: var(--textColorDimmed);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color var(--ease);
}
.footer-link:hover,
.footer-link.active { color: var(--accent); }
.footer-socials { display: flex; gap: 12px; align-items: center; }
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: #fff;
    text-decoration: none;
    transition: opacity var(--ease), transform var(--ease);
}
.footer-social-btn:hover { opacity: 0.9; transform: scale(1.08); }
.footer-social-btn--discord { background: #5865F2; }
.footer-social-btn--telegram { background: #0088cc; }
.footer-social-btn--twitch { background: #9146FF; }
.footer-bottom { padding-top: 24px; text-align: center; }
.footer-copy { margin: 0; font-size: 0.9rem; color: var(--textColorMuted); }

@media (max-width: 640px) {
    .footer-top { flex-direction: column; align-items: center; text-align: center; }
    .footer-links { justify-content: center; }
}

/* Responsive */
@media (max-width: 768px) {
    .logo-three-cols {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .logo-three-cols .cc-header-left { justify-self: center; }
    .logo-three-cols .cc-header-right { justify-self: center; }
    .cc-header-center .site-logo,
    .cc-header-center img { max-height: 140px; }
}
@media (max-width: 600px) {
    .store-header { padding-bottom: 56px; }
    .logo-row { padding: 20px 16px 0; }
    .decus-wrapper { padding: 0 12px 40px; max-width: none; }
    .content { width: 100%; max-width: none; }
    .panel-form-full,
    .panel-form-full .panel-body { width: 100%; box-sizing: border-box; }
    .panel-body { padding: 22px 16px; }
    .onepage-form .form-control { padding: 12px 16px; }
    .cc-header-center .site-logo,
    .cc-header-center img { max-height: 120px; }
}
