:root {
    --bg: #0f1115;
    --bg-elevated: #171a21;
    --border: #262b35;
    --text: #e8eaed;
    --text-muted: #9aa1ac;
    --brand: #ef4444;
    --brand-hover: #dc2626;
    --success: #22c55e;
    --error: #f87171;
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    color: var(--brand-hover);
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(23, 26, 33, 0.94);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
    gap: 1.5rem;
}

.brand {
    font-size: 1.3rem;
    letter-spacing: 0.01em;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}

.brand span {
    color: var(--brand);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 0.65rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 4px 0;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1.25rem;
    min-width: 0;
    flex: 1;
}

.site-nav__links,
.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.site-nav__links {
    color: var(--text-muted);
}

.site-nav a {
    color: var(--text-muted);
}

.site-nav a:hover {
    color: var(--text);
}

.site-nav__live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.nav-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    color: white;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: rgba(230, 231, 231, 0.45);
}

.nav-icon:hover {
    color: var(--text);
    border-color: var(--brand);
    background: var(--bg);
}

.nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.nav-icon__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.nav-text-button {
    border: 0;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.nav-text-button:hover {
    color: var(--text);
}

.inline-form {
    display: inline;
}

.link-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.link-button:hover {
    color: var(--text);
}

main.container {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
    min-height: calc(100vh - 64px - 60px);
}

@media (min-width: 961px) {
    .menu-toggle {
        display: none !important;
    }

    .site-nav {
        display: flex !important;
    }
}

@media (max-width: 960px) {
    body.menu-open {
        overflow: hidden;
    }

    .site-header__inner {
        align-items: center;
        flex-wrap: wrap;
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .menu-toggle {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .site-nav {
        width: 100%;
        display: none !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 0.75rem;
        padding: 0.75rem;
        border: 1px solid var(--border);
        border-radius: 10px;
        background: var(--bg-elevated);
    }

    .site-nav.is-open {
        display: flex !important;
    }

    .site-nav__links {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .site-nav__links a,
    .site-nav__actions > a,
    .site-nav__actions > .inline-form {
        min-height: 42px;
        display: flex;
        align-items: center;
        padding: 0.5rem 0.35rem;
        border-bottom: 1px solid var(--border);
    }

    .site-nav__actions {
        width: 100%;
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-top: 0.35rem;
    }

    .site-nav__actions .nav-icon {
        width: auto;
        height: auto;
        justify-content: flex-start;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .site-nav__actions .nav-icon svg {
        flex: 0 0 auto;
        margin-right: 0.65rem;
    }

    .site-nav__actions .nav-icon__count {
        position: static;
        margin-left: 0.5rem;
    }

    .site-nav__actions .button,
    .site-nav__actions .nav-text-button {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .site-nav__actions .inline-form {
        width: 100%;
    }

    .site-nav__links a:last-child,
    .site-nav__actions > :last-child {
        border-bottom: 0;
    }
}

@media (max-width: 560px) {
    .site-nav__links {
        font-size: 0.875rem;
    }

    .hero {
        padding: 2.75rem 0.5rem;
    }

    .hero__logo {
        height: 72px;
    }

    .site-nav__actions {
        gap: 0;
    }

    .shop-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .shop-filters {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        overflow-x: visible;
        padding: 1rem;
    }

    .shop-filters__fields {
        display: grid;
        grid-template-columns: 1fr;
        min-width: 0;
        width: 100%;
    }

    .shop-filters__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-filters__actions .button {
        width: 100%;
    }
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.925rem;
}

.alert--success {
    background: rgba(34, 197, 94, 0.12);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.alert--error {
    background: rgba(248, 113, 113, 0.12);
    color: var(--error);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.auth-card h1 {
    margin-top: 0;
    font-size: 1.5rem;
}

.auth-card__subtitle {
    color: var(--text-muted);
    margin-top: -0.5rem;
    font-size: 0.925rem;
}

.auth-card__links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.form-field input {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.625rem 0.75rem;
    color: var(--text);
    font-size: 1rem;
}

.form-field input:focus {
    outline: none;
    border-color: var(--brand);
}

.form-field input,
.form-field select {
    min-height: 44px;
}

.form-field select {
    appearance: none;
    background-color: var(--bg);
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.625rem 2.25rem 0.625rem 0.75rem;
}

.form-field select:focus {
    outline: none;
    border-color: var(--brand);
}

.form-field small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.button {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
}

.button:hover {
    background: var(--brand-hover);
    color: #fff;
}

.button--full {
    width: 100%;
}

.shop-heading {
    align-items: end;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.shop-heading h1 {
    margin: 0.15rem 0 0;
}

.eyebrow {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0;
    text-transform: uppercase;
}

.shop-results-count {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0 0 0.25rem;
}

.shop-filters {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding: 1.25rem;
}

.shop-filters__clear {
    color: var(--text-muted);
    font-size: 0.875rem;
    white-space: nowrap;
}

.shop-filters__clear:hover {
    color: var(--text);
}

.shop-filters__fields {
    align-items: flex-end;
    display: flex;
    flex: 1 0 auto;
    gap: 0.6rem;
    min-width: 840px;
}

.shop-filters__fields .form-field {
    flex: 1 1 0;
    min-width: 92px;
}

.shop-filters__fields .form-field:first-child {
    flex-basis: 190px;
    flex-grow: 2;
}

.shop-filters__actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 0.65rem;
    justify-content: flex-end;
    white-space: nowrap;
}

.shop-filters__actions .button {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.button--small {
    padding: 0.4rem 0.85rem;
    font-size: 0.875rem;
}

.account-page h1 {
    margin-bottom: 1.5rem;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.card h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
}

.product-card:hover {
    border-color: var(--brand);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.product-card__placeholder {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.product-card__body {
    padding: 1rem;
}

.product-card__body h2 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.product-card__price {
    color: var(--brand);
    font-weight: 700;
    margin: 0;
}

.product-detail {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 2fr;
    gap: 2rem;
}

.product-detail__gallery img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.product-detail__price {
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 700;
}

.product-detail__meta {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.product-detail__stock {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.form--inline {
    flex-direction: row;
    align-items: flex-end;
    gap: 0.75rem;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.checkout-summary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.checkout-summary-list li {
    display: flex;
    justify-content: space-between;
}

.checkout-breakdown p {
    display: flex;
    justify-content: space-between;
    margin: 0.45rem 0;
}

.checkout-total {
    font-size: 1.1rem;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

#card-container {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem;
    min-height: 40px;
}

#payment-status-container {
    color: var(--error);
    font-size: 0.875rem;
}

.hero {
    text-align: center;
    padding: 4rem 1rem;
}

.hero__logo {
    display: block;
    height: 96px;
    width: auto;
    margin: 0 auto 1.25rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero h1 span {
    color: var(--brand);
}

.hero__subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto 1.5rem;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.giveaway-countdown {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
    margin: 0.5rem 0 1.25rem;
    padding: 0.9rem 1.1rem;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius);
    background: rgba(239, 68, 68, 0.08);
}

.giveaway-countdown__label {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.giveaway-countdown__value {
    font-size: 1.35rem;
    letter-spacing: 0.02em;
}

.giveaway-countdown__date {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.giveaway-countdown--ended {
    border-color: var(--border);
    background: var(--bg-elevated);
}

.giveaway-countdown--ended .giveaway-countdown__label {
    color: var(--text-muted);
}

.button--outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
}

.button--outline:hover {
    border-color: var(--brand);
    color: var(--text);
}

.home-section {
    margin-top: 3rem;
}

.home-section__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.home-section__header h2 {
    margin: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.blog-card {
    display: block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
}

.blog-card:hover {
    border-color: var(--brand);
}

.blog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.blog-card__body {
    padding: 1rem;
}

.blog-card__body h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.blog-card__body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.blog-post__meta {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.blog-post__image {
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius);
    margin: 1rem 0;
}

.blog-post__content {
    line-height: 1.7;
}

.order-steps {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.order-steps li {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.order-steps li.order-steps__done {
    background: rgba(239, 68, 68, 0.12);
    border-color: var(--brand);
    color: var(--text);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    color: var(--text);
}

.member-card:hover {
    border-color: var(--brand);
}

.member-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-muted);
    overflow: hidden;
    flex-shrink: 0;
}

.member-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card__avatar--large {
    width: 96px;
    height: 96px;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.member-profile {
    max-width: 480px;
}

.member-profile__joined {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.member-profile__meta {
    list-style: none;
    padding: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.giveaway-detail {
    max-width: 640px;
}

.giveaway-detail__image {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 1rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-list li {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
}

.comment-list li p {
    margin: 0.35rem 0 0;
}

.blog-comments {
    margin-top: 2rem;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.page-intro {
    color: var(--text-muted);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.live-placeholder {
    max-width: 680px;
    margin: 3rem auto;
    text-align: center;
    padding: 3rem 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.eyebrow {
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.live-placeholder__modules {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.live-placeholder__modules span {
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}
