:root {
    --bg: #09090b;
    --bg-card: #121216;
    --bg-elevated: #1a1a22;
    --text: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent: #10b981;
    --accent-hover: #059669;
    --amber: #f59e0b;
    --border: #27272a;
    --danger: #ef4444;
}

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.55;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar {
    background: linear-gradient(90deg, #991b1b 0%, #065f46 50%, #991b1b 100%);
    border-bottom: 1px solid rgba(251, 191, 36, 0.45);
    color: #fff;
    text-align: center;
    padding: 9px 14px;
    font-size: 0.88rem;
}

.xmas-hat {
    font-size: 1.15rem;
    margin-left: 2px;
}

.xmas-garland {
    height: 4px;
    width: 100%;
    background: repeating-linear-gradient(
        90deg,
        #ef4444 0px, #ef4444 18px,
        #fbbf24 18px, #fbbf24 36px,
        #10b981 36px, #10b981 54px,
        #3b82f6 54px, #3b82f6 72px
    );
    box-shadow: 0 2px 12px rgba(251, 191, 36, 0.45);
}

.xmas-badge {
    background: rgba(220, 38, 38, 0.22) !important;
    color: #fca5a5 !important;
    border-color: rgba(251, 191, 36, 0.55) !important;
}

.snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 90;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10%;
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.1rem;
    animation: snowfall linear infinite;
}

.snowflake:nth-child(1)  { left: 5%;  animation-duration: 11s; animation-delay: 0s;   font-size: 0.9rem; }
.snowflake:nth-child(2)  { left: 14%; animation-duration: 14s; animation-delay: 2s;   font-size: 1.3rem; }
.snowflake:nth-child(3)  { left: 23%; animation-duration: 10s; animation-delay: 4s;   font-size: 1.0rem; }
.snowflake:nth-child(4)  { left: 34%; animation-duration: 16s; animation-delay: 1s;   font-size: 1.2rem; }
.snowflake:nth-child(5)  { left: 45%; animation-duration: 12s; animation-delay: 3s;   font-size: 0.85rem; }
.snowflake:nth-child(6)  { left: 56%; animation-duration: 15s; animation-delay: 5s;   font-size: 1.25rem; }
.snowflake:nth-child(7)  { left: 65%; animation-duration: 11s; animation-delay: 1.5s; font-size: 1.0rem; }
.snowflake:nth-child(8)  { left: 74%; animation-duration: 13s; animation-delay: 3.5s; font-size: 1.15rem; }
.snowflake:nth-child(9)  { left: 82%; animation-duration: 17s; animation-delay: 0.5s; font-size: 0.95rem; }
.snowflake:nth-child(10) { left: 89%; animation-duration: 12s; animation-delay: 2.5s; font-size: 1.3rem; }
.snowflake:nth-child(11) { left: 94%; animation-duration: 14s; animation-delay: 4.5s; font-size: 1.0rem; }
.snowflake:nth-child(12) { left: 50%; animation-duration: 18s; animation-delay: 6s;   font-size: 1.1rem; }

@keyframes snowfall {
    0%   { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity: 0.8; }
    50%  { transform: translateY(50vh) translateX(18px) rotate(180deg); opacity: 0.6; }
    100% { transform: translateY(108vh) translateX(-18px) rotate(360deg); opacity: 0.15; }
}

.navbar {
    border-bottom: 1px solid var(--border);
    background: rgba(9, 9, 11, 0.9);
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    cursor: pointer;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.logo span {
    color: var(--accent);
}

.brand-banner {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.86) 0%, rgba(6, 78, 59, 0.88) 52%, rgba(9, 9, 11, 0.94) 100%),
        url('https://images.unsplash.com/photo-1512389142860-9c449e58a543?w=1400&h=450&fit=crop&q=80') center/cover no-repeat;
    border-bottom: 2px solid rgba(251, 191, 36, 0.45);
    padding: 36px 0;
}

.brand-banner-inner {
    display: flex;
    align-items: center;
    gap: 26px;
}

.banner-logo-img {
    width: 112px;
    height: 112px;
    border-radius: 18px;
    border: 2px solid #fbbf24;
    box-shadow: 0 12px 30px rgba(220, 38, 38, 0.35);
    flex-shrink: 0;
}

.banner-text h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 8px;
}

.banner-text h2 span {
    color: var(--accent);
}

.banner-text p {
    color: #d4d4d8;
    font-size: 1rem;
}

.hero-card-banner {
    position: relative;
    height: 170px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.hero-card-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(9, 9, 11, 0.88);
    color: var(--amber);
    border: 1px solid var(--amber);
    font-weight: 800;
    font-size: 0.74rem;
    padding: 4px 10px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.pack-img-wrap {
    position: relative;
    height: 195px;
    margin: -22px -22px 16px -22px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.pack-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.pack-card:hover .pack-img-wrap img {
    transform: scale(1.06);
}

.pack-card {
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pack-card:hover {
    transform: translateY(-4px);
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
}

.nav-links a:hover {
    color: var(--text);
}

.hero {
    padding: 56px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: start;
}

.badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.14);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 14px;
}

h1 {
    font-size: 2.35rem;
    line-height: 1.15;
    margin-bottom: 16px;
}

h1 span {
    color: var(--accent);
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.hero-bullets {
    list-style: none;
    margin-bottom: 24px;
}

.hero-bullets li {
    margin-bottom: 10px;
    font-size: 0.96rem;
}

.hero-cta-box {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.current-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
}

.btn-primary {
    background: var(--accent);
    color: #052e16;
    font-weight: 800;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

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

.btn-secondary {
    background: var(--amber);
    color: #1c1917;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
}

.security-note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.bundle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.tag-verified {
    background: #1f2937;
    color: var(--accent);
    font-size: 0.75rem;
    padding: 3px 9px;
    border-radius: 6px;
}

.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
}

.file-item a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}

.order-bump-preview,
.bump-box {
    background: rgba(245, 158, 11, 0.1);
    border: 1px dashed var(--amber);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.86rem;
    margin-bottom: 16px;
}

.bump-label,
.bump-box label {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
}

.diagnostic-section {
    padding: 20px 0 40px;
}

.diag-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
}

.diag-form {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.diag-form input,
.form-group input,
.form-group select {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.diag-result {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--accent);
    font-size: 0.92rem;
}

.catalog-section {
    padding: 40px 0 70px;
}

.section-head {
    margin-bottom: 24px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.filter-btn {
    background: var(--bg-elevated);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent);
    color: #052e16;
    border-color: var(--accent);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 16px;
}

.step-item {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 16px;
    border-radius: 10px;
}

.api-config-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.api-config-box summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--amber);
}

.api-form {
    margin-top: 12px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 22px;
}

.pack-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pack-card h3 {
    margin: 8px 0;
}

.pack-meta {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 14px;
}

.pack-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
}

.hidden {
    display: none !important;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    padding: 26px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-wide {
    max-width: 820px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

.modal-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 6px 0 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.15rem;
    margin: 14px 0;
}

.full-width {
    width: 100%;
}

.download-vault {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.download-vault h4 {
    color: var(--accent);
    margin-bottom: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 16px 0 22px;
}

.stat-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.stat-box span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.stat-box strong {
    font-size: 1.25rem;
    color: var(--accent);
}

.scripts-grid {
    display: grid;
    gap: 10px;
    margin: 10px 0 22px;
}

.script-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.85rem;
}

.error-msg {
    color: var(--danger);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.legal-footer {
    border-top: 1px solid var(--border);
    background: #060608;
    padding: 36px 0 44px;
    margin-top: 20px;
}

.disclaimer-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 20px;
}

.disclaimer-box strong {
    display: block;
    color: var(--text);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.disclaimer-box p {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
}

.copyright-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.82rem;
}

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

    h1 {
        font-size: 1.85rem;
    }
}