.site-nav a {
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
/* Restore header nav spacing */
.site-nav {
    display: flex;
    gap: clamp(8px, 4vw, 20px);
    margin-right: -22px;
}
/* Color Palette */
:root {
    --main: #E2FF00;
    --sub: #FFF86F;
    --red: #F24992;
    --dark: #272E1C;
    --white: #ffffff;
    --black: #000000;
}

/* Snack Box Font */
@font-face {
    font-family: 'Snack Box';
    src: url('fonts/Snack Box.otf') format('opentype'),
         url('fonts/Snack Box.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--dark);
    font-family: 'Snack Box', sans-serif;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Scrollbars ── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 255, 0, 0.35) transparent;
}

/* ── Header ── */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 72px;
    background: rgba(0, 0, 0, 0.35);
    border-bottom: 2px solid var(--main);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.site-logo {
    font-size: 2em;
    color: var(--main);
    text-decoration: none;
    transition: color 0.2s;
    margin-left: -28px;
}

.site-logo img {
    height: 56px;
    width: auto;
    display: block;
    filter: brightness(0) saturate(100%) invert(100%) sepia(63%) saturate(7499%) hue-rotate(7deg) brightness(99%) contrast(104%);
    transition: none;
}

.site-logo:hover img {
    filter: brightness(0) saturate(100%) invert(95%) sepia(33%) saturate(994%) hue-rotate(332deg) brightness(105%) contrast(105%);
}

.site-logo:hover {
    color: var(--sub);
}

h2 {
     color: var(--sub);
     margin-bottom: 15px;
     border-bottom: 1px solid rgba(226,255,0,0.2);
     padding-bottom: 6px;
     font-size: clamp(1.44em, 3.52vw, 2.08em);
}

.site-nav a:hover {
    color: var(--main);
}

.site-nav a.active {
    color: var(--main);
    border-bottom: 2px solid var(--main);
    padding-bottom: 2px;
}

/* ── Page Content Wrapper ── */
.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    padding: 16px 20px 40px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Footer ── */
.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 40px;
    /* border-top: 1px solid rgba(226, 255, 0, 0.2); */
    background: linear-gradient(0deg, #111508 0%, #181e0e 100%);
    /* fallback: background: #1b2010; */
    border-top: 2px solid var(--main);
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--main);
    background: transparent;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    text-decoration: none;
}

.social-btn img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: filter 0.2s;
}

.social-btn:hover {
    background: var(--main);
    border-color: var(--main);
    transform: scale(1.1);
}

.social-btn:hover img {
    filter: brightness(0);
}

h1 {
    color: var(--main);
    margin-bottom: 20px;
}

h2 {
    color: var(--sub);
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(226,255,0,0.2);
    padding-bottom: 6px;
    font-size: clamp(1.44em, 3.52vw, 2.08em);
    text-align: left;
    width: 100%;
}

/* All paragraphs on the site are centered */
p, .section-desc {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center !important;
}

a {
    color: var(--main);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--sub);
}

/* .prices-content is now .page-content */

/* ── Tier Selector ── */
.price-tiers {
    display: flex;
    gap: 4px;
    width: 100%;
    margin-bottom: 32px;
}

.tier-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 18px 12px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.tier-btn:hover {
    border-color: rgba(226,255,0,0.4);
}

.tier-btn.active {
    background: rgba(226,255,0,0.08);
    border-color: var(--main);
}

.tier-name {
    font-size: clamp(1.1rem, 2.7vw, 1.6rem);
    color: var(--main);
    letter-spacing: 0.04em;
}

.tier-btn.active .tier-name {
    color: var(--main);
}

.tier-desc {
    font-size: 1em;
    color: #aaa;
    letter-spacing: 0.03em;
}

.tier-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--sub);
    margin-top: 4px;
}

/* ── Price Sections ── */
.price-section {
    width: 100%;
    margin-bottom: 28px;
}

/* Price Table */
.price-table {
    display: flex;
    gap: 2px;
    width: 100%;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    overflow: hidden;
}

.price-card {
    flex: 1;
    min-width: 0;
    width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 18px 12px;
    background: rgba(0,0,0,0.35);
    border-right: 2px solid rgba(255,255,255,0.1);
    text-align: center;
}

.price-card:last-child {
    border-right: none;
}

.price-card-title {
    font-size: clamp(1.1rem, 2.7vw, 1.6rem);
    letter-spacing: 0.08em;
    color: var(--main);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    justify-content: center;
}

.price-modifier {
    color: var(--red);
    letter-spacing: 0.03em;
}

.price-card-body {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--sub);
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.price-per {
    font-size: 0.5em;
    color: #aaa;
    margin-left: 2px;
    display: block;
}

/* Animated Loop */
.anim-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.anim-row > p {
    flex: 2;
    min-width: 0;
}


.anim-calc {
    font-size: 0.5em;
    color: #aaa;
    white-space: nowrap;
}

.anim-total {
    font-size: 2.2rem;
    color: var(--sub);
    white-space: nowrap;
}

/* Special Products */
.special-products {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.special-product-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.4);
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s;
}

.special-product-btn:hover {
    border-color: rgba(226,255,0,0.4);
}

.special-product-btn.active {
    background: rgba(226,255,0,0.08);
    border-color: var(--main);
}

.special-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.special-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.special-title {
    font-size: clamp(1.1rem, 2.7vw, 1.6rem);
    color: var(--main);
    letter-spacing: 0.04em;
}

.special-desc {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
}

.special-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--sub);
    white-space: nowrap;
    flex-shrink: 0;
}

/* What's Included */
.included-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.included-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    color: var(--white);
}

.included-list li::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('/assets/img/thumbnails/check.png');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* ── Carousel ── */
.carousel {
    position: relative;
    width: 100%;
    margin-top: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.carousel-track-wrap {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(0,0,0,0.35);
    aspect-ratio: 9 / 5;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    display: flex;
}

.carousel-slide.cs-in-right {
    animation: cs-slide-in-right 0.1s ease forwards;
}

.carousel-slide.cs-in-left {
    animation: cs-slide-in-left 0.1s ease forwards;
}

.carousel-slide.cs-out-left {
    animation: cs-slide-out-left 0.1s ease forwards;
}

.carousel-slide.cs-out-right {
    animation: cs-slide-out-right 0.1s ease forwards;
}

@keyframes cs-slide-in-right {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cs-slide-in-left {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes cs-slide-out-left {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-50px); }
}

@keyframes cs-slide-out-right {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(50px); }
}

.carousel-slide img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 0;
}

.carousel-placeholder {
    color: #666;
    font-size: 1em;
    letter-spacing: 0.05em;
    padding: 40px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--main);
    border: none;
    font-size: 1.6em;
    line-height: 1;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    z-index: 2;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn img {
    width: 55%;
    height: 55%;
    object-fit: contain;
    display: block;
}

.carousel-btn:hover {
    background: rgba(226, 255, 0, 0.18);
}

.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--main);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s;
}

.carousel-dot.active {
    background: var(--main);
}

/* .box-content is now .page-content */

.page-title {
    font-size: clamp(2rem, 8vw, 6em);
    color: var(--main);
    text-align: center;
    margin-bottom: 10px;
    margin-top: 0;
}

@media (min-width: 701px) {
    .page-title { font-size: 3.5rem; }
}

.subtitle {
    text-align: center;
    color: var(--white);
    margin-bottom: 20px;
    max-width: 600px;
    align-self: center;
}

.box-image {
    margin-top: 20px;
    margin-bottom: 30px;
    max-width: 400px;
    width: 90%;
    height: auto;
}

.container {
    max-width: 600px;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-top: 20px;
    margin-bottom: 20px;
}

label {
    display: block;
    color: var(--main);
    margin-bottom: 8px;
    font-weight: bold;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--main);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--white);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 2px dotted var(--main);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
}

input[type="file"]::file-selector-button {
    background: var(--main);
    color: var(--black);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-right: 10px;
    font-family: inherit;
}

input[type="file"]::file-selector-button:hover {
    background: var(--sub);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--main);
    color: var(--black);
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--sub);
    color: var(--black);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.note {
    color: #aaa;
    font-size: 12px;
    margin-top: 5px;
}

.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: rgba(226, 255, 0, 0.2);
    border: 2px solid var(--main);
    color: var(--main);
}

.message.error {
    background: rgba(242, 73, 146, 0.2);
    border: 2px solid var(--red);
    color: var(--red);
}

/* ── Tabs ── */
.tab-bar {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    width: 100%;
    position: relative;
}

.tab-bar::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

.tab-btn {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px clamp(6px, 2vw, 28px);
    flex: 1;
    color: var(--white);
    font-family: inherit;
    font-size: clamp(0.9em, 2.2vw, 1.3em);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.tab-btn:hover {
    color: var(--main);
}

.tab-btn.active {
    color: var(--main);
    border-bottom: 2px solid var(--main);
}

.tab-content {
    display: none;
    width: 100%;
}

.tab-content.active {
    display: block;
}

/* ── Centered Page Layout (redirect & error pages) ── */
body.centered {
    text-align: center;
    justify-content: center;
    align-items: center;
}

body.centered .site-header,
body.centered .site-footer {
    align-self: stretch;
}

.error-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

body.centered h2 {
    text-align: center;
    border-bottom: none;
    padding-bottom: 0;
}

/* ── Error Pages ── */
.error-code {
    font-size: 6em;
    margin-bottom: 10px;
}

body.error-page p {
    margin-bottom: 10px;
}

.error-content > img {
    margin-top: 20px;
    max-width: 90%;
    height: auto;
}

/* ═══════════════════════════════════════════
   Commission Request Page
   ═══════════════════════════════════════════ */

/* ── Item List ── */
.request-section-label {
    display: block;
    color: var(--main);
    font-weight: bold;
    margin-bottom: 8px;
}
.request-items-container {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--main);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}
.request-items-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
    min-height: 48px;
}
.request-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    padding: 20px 0;
    margin: 0;
    font-size: 0.9em;
}
.request-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 11px 13px;
}
.request-card-icon {
    font-size: 1.4em;
    flex-shrink: 0;
}
.request-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.request-card-title {
    color: var(--white);
    font-size: 0.92em;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.request-card-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.request-card-price {
    color: var(--main);
    font-weight: 700;
    font-size: 0.92em;
    flex-shrink: 0;
}
.request-card-edit {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.7);
    width: 30px;
    height: 30px;
    font-size: 1em;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
}
.request-card-edit:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
}

/* ── Add Item button ── */
.request-add-btn {
    background: none;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.5);
    padding: 13px 30px;
    font-family: inherit;
    font-size: 0.95em;
    cursor: pointer;
    width: 100%;
    transition: border-color 0.15s, color 0.15s;
    margin-bottom: 16px;
}
.request-add-btn:hover {
    border-color: var(--main);
    color: var(--main);
}

/* ── Footer (discord + total + submit) ── */
.request-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.request-discord-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.request-discord-row label {
    color: var(--main);
    font-weight: bold;
}
.request-discord-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: var(--white);
    padding: 10px 14px;
    font-size: 1em;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s;
}
.request-discord-input:focus      { border-color: var(--main); }
.request-discord-input::placeholder { color: rgba(255, 255, 255, 0.28); }
.request-discord-input:-webkit-autofill,
.request-discord-input:-webkit-autofill:hover,
.request-discord-input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #2d341f inset;
    -webkit-text-fill-color: var(--white);
    caret-color: var(--white);
}
.request-contact-row {
    display: flex;
    gap: 8px;
}
.request-contact-row .request-discord-input {
    flex: 1;
}
.platform-toggle {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.platform-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.18);
    background: #080906;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.platform-toggle-btn img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.4;
    transition: opacity 0.15s;
}
.platform-toggle-btn.active {
    border-color: var(--main);
}
.platform-toggle-btn.active img {
    opacity: 1;
    filter: brightness(0) saturate(100%) invert(96%) sepia(60%) saturate(500%) hue-rotate(20deg);
}
.platform-toggle-btn:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.35);
}
.platform-toggle-btn:hover:not(.active) img {
    opacity: 0.65;
}
.request-total-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(226, 255, 0, 0.06);
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 8px 8px;
    margin: 0 -16px -16px;
}
.request-total-label { color: rgba(255, 255, 255, 0.65); font-size: 0.92em; }
.request-total-amount { color: var(--main); font-weight: 700; font-size: 1.1em; }
.request-total-strike { color: rgba(255, 255, 255, 0.38); font-weight: 400; text-decoration: line-through; font-size: 0.88em; margin-right: 4px; }
.voucher-badge { font-size: 0.72em; font-weight: 700; background: rgba(226, 255, 0, 0.18); color: var(--main); border-radius: 4px; padding: 1px 5px; margin-left: 5px; vertical-align: middle; letter-spacing: 0.02em; }

/* ── Voucher row ── */
.voucher-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
    margin-bottom: 16px;
}
.voucher-input-row {
    display: flex;
    gap: 8px;
}
.voucher-input-row .request-discord-input {
    flex: 1;
}
.voucher-apply-btn {
    flex-shrink: 0;
    padding: 0 18px;
    height: 44px;
    background: var(--main);
    border: none;
    border-radius: 5px;
    color: var(--black);
    font-family: inherit;
    font-size: 0.9em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    white-space: nowrap;
}
.voucher-apply-btn:hover:not(:disabled) {
    background: var(--sub);
    color: var(--black);
}
.voucher-apply-btn:disabled {
    opacity: 0.5;
    cursor: default;
}
.voucher-status {
    font-size: 0.83em;
    min-height: 0;
    text-align: center;
    margin-top: 4px;
    overflow: hidden;
    transition: margin-bottom 0.2s;
}
.voucher-status:not(:empty) {
    margin-bottom: 12px;
}
.voucher-status.voucher-success { color: var(--main); }
.voucher-status.voucher-error   { color: #ff7c7c; }

/* ═══════════════════════════════════════════
   Comm Overlays (window / mobile drawer)
   ═══════════════════════════════════════════ */
.comm-overlay[hidden] { display: none; }
.comm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    animation: cw-overlay-in 0.22s ease forwards;
}
.comm-overlay.closing {
    animation: cw-overlay-out 0.18s ease forwards;
}
@keyframes cw-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes cw-overlay-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}
.comm-window {
    background: #111;
    border: 2px solid var(--main);
    border-radius: 12px;
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-size: 1.13em;
    animation: cw-zoom-in 0.22s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes cw-zoom-in {
    from { opacity: 0; transform: scale(0.88); }
    to   { opacity: 1; transform: scale(1); }
}

.comm-window.closing {
    animation: cw-zoom-out 0.18s cubic-bezier(0.55, 0.06, 0.68, 0.19) forwards;
}

@keyframes cw-zoom-out {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(0.88); }
}

/* Mobile: bottom drawer */
@media (max-width: 600px) {
    .comm-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .comm-window {
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 88vh;
        animation: cw-slide-up 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    @keyframes cw-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .comm-window.closing {
        animation: cw-slide-down 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    }
    @keyframes cw-slide-down {
        from { transform: translateY(0); }
        to   { transform: translateY(100%); }
    }
}

.comm-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 0;
    flex-shrink: 0;
}
.comm-window-title {
    font-size: 1.15em;
    color: var(--main);
    margin: 0;
    border: none;
    padding: 0;
}
.comm-window-close {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 1em;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    line-height: 1;
    transition: background 0.15s;
}
.comm-window-close img {
    width: 14px;
    height: 14px;
    display: block;
}
.comm-window-close:hover {
    background: rgba(255, 255, 255, 0.1);
}
.comm-window-tabs {
    display: flex;
    gap: 0;
    padding: 12px 18px 0;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.comm-window-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    padding: 6px 16px 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}
.comm-window-tab.active {
    color: var(--main);
    border-bottom: 2px solid var(--main);
}
.comm-window-tab:hover:not(.active) {
    color: var(--white);
}
.comm-window-body {
    padding: 16px 18px;
    flex: 1;
    overflow-y: auto;
}
.comm-window-body .message {
    margin-top: 10px;
    margin-bottom: 0;
}
.comm-window-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 18px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}
.comm-window-footer .message,
.comm-window-footer .message.error,
.comm-window-footer .message.success {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.82em;
}

/* ── Add-type selector ── */
.add-type-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.add-type-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 13px 15px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.add-type-btn:hover {
    background: rgba(226, 255, 0, 0.07);
    border-color: rgba(226, 255, 0, 0.4);
}
.add-type-icon { font-size: 1.7em; flex-shrink: 0; }
.add-type-info { display: flex; flex-direction: column; gap: 3px; }
.add-type-label { color: var(--white); font-weight: 600; font-size: 0.97em; }
.add-type-desc  { color: rgba(255, 255, 255, 0.46); font-size: 0.8em; }

/* ── Editor section label ── */
.editor-section-label {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 8px;
}
.comm-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin: 4px 0 16px;
}

/* ── Tier buttons ── */
.detail-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 20px;
}
@media (max-width: 400px) {
    .detail-tiers { grid-template-columns: repeat(2, 1fr); }
}
.detail-tier-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 9px 5px;
    color: rgba(255, 255, 255, 0.65);
    font-family: inherit;
    font-size: 0.87em;
    cursor: pointer;
    transition: all 0.15s;
}
.detail-tier-btn.active {
    background: rgba(226, 255, 0, 0.11);
    border-color: var(--main);
    color: var(--main);
}
.detail-tier-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--white);
}
.tier-sub-price {
    font-size: 0.73em;
    opacity: 0.7;
    display: block;
}

/* ── Qty rows ── */
.item-qty-rows {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 16px;
}
.item-qty-row {
    display: flex;
    align-items: center;
    gap: 9px;
}
.item-qty-label {
    flex: 1;
    color: var(--white);
    font-size: 0.9em;
}
.qty-ctrl {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}
.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--white);
    font-family: inherit;
    font-size: 1.1em;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s;
}
.qty-btn:hover { background: rgba(255, 255, 255, 0.18); }
.qty-val {
    min-width: 22px;
    text-align: center;
    color: var(--white);
    font-size: 1em;
    font-weight: 600;
}
.item-unit-price {
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.78em;
    width: 34px;
    text-align: left;
    flex-shrink: 0;
}
.qty-sym {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8em;
    width: 10px;
    text-align: center;
    flex-shrink: 0;
}
.item-total-price {
    color: var(--white);
    font-size: 1em;
    font-weight: 600;
    width: 40px;
    text-align: center;
    flex-shrink: 0;
}

/* ── Animated toggle row ── */
.animated-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.animated-row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}
.anim-toggle {
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.18);
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    padding: 0;
}
.anim-toggle[aria-checked="true"] {
    background: var(--main);
    border-color: var(--main);
}
.anim-toggle-handle {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s, background 0.2s;
}
.anim-toggle[aria-checked="true"] .anim-toggle-handle {
    transform: translateX(18px);
    background: var(--dark);
}

/* ── Editor delete button (shown in footer when editing existing item) ── */
.editor-del-btn {
    background: none;
    border: 2px solid rgba(255, 80, 80, 0.45);
    border-radius: 8px;
    color: rgba(255, 110, 110, 0.9);
    padding: 10px 22px;
    font-family: inherit;
    font-size: 0.93em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.editor-del-btn:hover {
    background: rgba(255, 70, 70, 0.12);
    border-color: rgba(255, 70, 70, 0.7);
    color: #ff6b6b;
}

/* ── Editor footer total ── */
.modal-error {
    color: rgba(255, 80, 80, 0.9);
    font-size: 0.8em;
    flex: 1;
    min-width: 0;
}
.editor-total { color: rgba(255, 255, 255, 0.6); font-size: 1.1em; flex: 1; }
.editor-total-price { color: var(--main); font-size: 1.2em; }

/* ── Primary button ── */
.comm-btn-primary {
    background: var(--main);
    color: var(--dark);
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 10px 22px;
    font-family: inherit;
    font-size: 0.93em;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.comm-btn-primary:hover    { opacity: 0.86; }
.comm-btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.comm-window-footer .editor-del-btn:not([hidden]),
.comm-window-footer .comm-btn-primary:not([hidden]) {
    width: 90px;
    height: 40px;
    padding: 0;
    text-align: center;
    justify-content: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* ── Special selector ── */
.special-selector { display: flex; flex-direction: column; gap: 8px; }
.special-select-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 9px 11px;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.special-select-btn.selected {
    background: rgba(226, 255, 0, 0.09);
    border-color: var(--main);
}
.special-select-btn:hover:not(.selected) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.24);
}
.special-select-thumb {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.special-select-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.07);
    font-size: 1.4em;
}
.special-select-info { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.special-select-title { color: var(--white); font-size: 0.93em; font-weight: 600; }
.special-select-price { color: var(--main); font-size: 0.83em; font-weight: 700; }

/* ── Confirm overlay ── */
.confirm-items-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.confirm-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}
.confirm-item-body { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.confirm-item-title { color: var(--white); font-size: 0.88em; font-weight: 600; }
.confirm-item-desc {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.78em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.confirm-item-price { color: var(--main); font-weight: 700; font-size: 0.88em; flex-shrink: 0; }
.confirm-total-row {
    text-align: right;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9em;
    padding: 6px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    margin-bottom: 14px;
}
.confirm-total-row strong { color: var(--main); font-size: 1.08em; }

.confirm-tos-box {
    max-height: 420px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 13px;
    margin-bottom: 14px;
    font-size: 0.83em;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}
.confirm-tos-box p { margin: 0; }
.confirm-tos-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.confirm-tos-box h1,
.confirm-tos-box h2,
.confirm-tos-box h3 {
    font-size: 0.9em;
    font-weight: 600;
    color: #ffffff;
    margin: 10px 0 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.confirm-tos-box h1:first-child,
.confirm-tos-box h2:first-child,
.confirm-tos-box h3:first-child { margin-top: 0; }
.confirm-tos-box ol,
.confirm-tos-box ul {
    margin: 0 0 8px;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.confirm-tos-box li { margin: 0; }

/* ── TOS page ── */
.tos-content {
    max-width: 680px;
    line-height: 1.75;
}
.tos-content h1 { font-size: 1.4em; margin: 0 0 0.5em; color: var(--sub); }
.tos-content h2 { font-size: 1.1em; margin: 1.6em 0 0.4em; text-transform: uppercase; letter-spacing: 0.04em; color: var(--sub); }
.tos-content h3 { font-size: 0.95em; margin: 1.2em 0 0.3em; color: var(--sub); }
.tos-content p  { margin: 0 0 0.8em; }
.tos-content ol,
.tos-content ul { margin: 0 0 1em; padding-left: 1.4em; display: flex; flex-direction: column; gap: 6px; }
.tos-content hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 1.5em 0; }

/* ── Terms row + custom checkbox ── */
.comm-terms-row {
    display: flex;
    align-items: center;
    gap: 11px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88em;
}
.comm-terms-row a { color: var(--main); }
.custom-checkbox {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.07);
    border: 2px solid rgba(255, 255, 255, 0.22);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}
.custom-checkbox[aria-checked="true"] {
    background: var(--main);
    border-color: var(--main);
}
.custom-check-inner {
    width: 10px;
    height: 6px;
    border-left: 2px solid var(--dark);
    border-bottom: 2px solid var(--dark);
    transform: translateY(-1px) rotate(-45deg);
    opacity: 0;
    transition: opacity 0.12s;
}
.custom-checkbox[aria-checked="true"] .custom-check-inner { opacity: 1; }

/* ── Confirm status message ── */
.confirm-footer-total  { color: rgba(255,255,255,0.65); font-size: 0.88em; }
.confirm-footer-total strong { color: var(--main); font-weight: 700; }

/* ── Notes textarea ── */
.comm-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: var(--white);
    padding: 11px 13px;
    font-size: 0.9em;
    font-family: inherit;
    resize: vertical;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.comm-textarea:focus         { border-color: rgba(226, 255, 0, 0.5); }
.comm-textarea::placeholder  { color: rgba(255, 255, 255, 0.26); }

/* ── Tracker page ── */
.page-content--wide {
    max-width: 1100px;
    align-items: stretch;
}

/* ── Tracker filters ── */
.tracker-filters {
    display: flex;
    gap: 12px;
    width: 100%;
    margin-bottom: 18px;
}

.tracker-filter-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 9px 14px;
    color: var(--white);
    font-family: 'Snack Box', sans-serif;
    font-size: 0.78em;
    letter-spacing: 0.04em;
    outline: none;
    transition: border-color 0.2s;
}

.tracker-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.tracker-filter-input:focus {
    border-color: rgba(226, 255, 0, 0.45);
}

.tracker-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    width: 100%;
    align-items: start;
}

/* ── Tracker column ── */
.tracker-column {
    min-width: 0;
    min-height: 0;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.tracker-column-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.tracker-column-title {
    font-size: 1.05em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--main);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.tracker-empty {
    font-size: 0.78em;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    padding: 20px 0;
}

/* ── Tracker card ── */
.tracker-card {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}
.tracker-card:last-child { margin-bottom: 0; }

.tracker-card-thumb {
    display: block;
    width: 100%;
    height: 140px;
    padding: 0;
    border: none;
    background: rgba(0,0,0,0.3);
    cursor: pointer;
    overflow: hidden;
    transition: opacity 0.2s;
}

.tracker-card-thumb:hover { opacity: 0.85; }

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

.tracker-card-body {
    padding: 12px;
}

.tracker-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}

.tracker-label {
    display: inline-block;
    font-size: 0.6em;
    padding: 2px 9px 3px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.tracker-card-title {
    font-size: 0.88em;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.tracker-card-desc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.tracker-card-desc .desc-item {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.4;
}

.tracker-card-desc .desc-sub {
    font-size: 0.72em;
    color: rgba(255, 255, 255, 0.38);
    padding-left: 12px;
    line-height: 1.4;
}

.tracker-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.tracker-progress-bar {
    flex: 1;
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.tracker-progress-fill {
    height: 100%;
    background: var(--main);
    border-radius: 3px;
    transition: width 0.4s ease;
}

.tracker-progress-pct {
    font-size: 0.65em;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    min-width: 28px;
    text-align: right;
}

/* Tracker tab bar — hidden on desktop, shown on mobile by media query */
.tracker-tabs { display: none; }

@media (max-width: 700px) {
    .page-content--wide { max-width: 100%; }

    /* fallback (no-JS): single stacked column */
    .tracker-columns {
        grid-template-columns: 1fr;
    }

    /* JS-activated slider */
    .tracker-columns.tracker-slider-active {
        display: block;
        overflow: hidden;
    }

    .tracker-slide-track {
        display: flex;
        flex-direction: row;
        height: 100%;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }

    .tracker-columns.tracker-slider-active .tracker-column {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
    }

    /* Tab bar */
    .tracker-tabs {
        display: flex;
        gap: 0;
        width: 100%;
        position: relative;
        margin-top: 12px;
    }

    .tracker-tabs::before {
        content: '';
        position: absolute;
        top: 0; bottom: 0; left: 0; right: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 0;
    }

    .tracker-tab {
        flex: 1;
        background: none;
        border: none;
        border-bottom: 2px solid transparent;
        padding: 10px 6px;
        color: var(--white);
        font-family: 'Snack Box', sans-serif;
        font-size: clamp(0.75em, 3vw, 1em);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        cursor: pointer;
        transition: color 0.2s, border-color 0.2s;
        white-space: nowrap;
        position: relative;
        z-index: 1;
    }

    .tracker-tab:hover { color: var(--main); }

    .tracker-tab.active {
        color: var(--main);
        border-bottom: 2px solid var(--main);
    }
}

/* ── Age Gate ── */
#age-gate {
    z-index: 10000;
}

/* ── Patreon Tiers ── */
.patreon-tiers {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    margin-top: 20px;
    margin-bottom: 32px;
    align-items: stretch;
}

.patreon-tiers .patron-tier {
    max-width: 420px;
    width: 100%;
}

.patron-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.35);
    border: 2px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 24px 20px 20px;
    gap: 16px;
    transition: border-color 0.2s;
}

.patron-tier:hover {
    border-color: rgba(226,255,0,0.35);
}

.patron-tier--featured {
    border-color: var(--main);
    padding-top: 36px;
}

.patron-tier--featured:hover {
    border-color: var(--sub);
}

.patron-tier-badge {
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main);
    color: #000;
    font-size: 0.7em;
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 14px;
    border-radius: 0 0 8px 8px;
    white-space: nowrap;
}

.patron-tier-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    text-align: center;
}

.patron-tier-name {
    font-size: 1.05em;
    font-weight: bold;
    color: var(--main);
}

.patron-tier-price {
    font-size: 1.7em;
    font-weight: bold;
    color: var(--sub);
    line-height: 1.1;
}

.patron-tier-per {
    font-size: 0.42em;
    color: #aaa;
    font-weight: normal;
    margin-left: 2px;
}

.patron-tier-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.patron-tier-perks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88em;
    color: #ccc;
    line-height: 1.5;
}

.patron-tier-perks li::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url('/assets/img/thumbnails/check.png');
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.patron-tier-warning {
    display: block;
    margin-top: 6px;
    font-size: 0.9em;
    color: var(--red);
}

.patron-join-btn {
    display: block;
    text-align: center;
    padding: 10px 0;
    background: var(--main);
    color: #000;
    font-weight: bold;
    font-family: inherit;
    font-size: 0.95em;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s;
}

.patron-join-btn:hover {
    background: var(--sub);
    color: #000;
}

/* ── Homepage Commissions Section ── */
.comms-section {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.comms-section-text {
    flex: 0 0 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
}

.comms-section-carousel {
    flex: 0 0 calc(70% - 24px);
    min-width: 0;
}

@media (max-width: 720px) {
    .comms-section {
        flex-direction: column;
    }
    .comms-section-text,
    .comms-section-carousel {
        flex: unset;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .patreon-tiers .patron-tier {
        max-width: 100%;
    }
}

#page-veil {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    pointer-events: none;
    animation: veil-out 1s 0.1s ease forwards;
}

@keyframes veil-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

#age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

#age-confirm-btn {
    padding: 13px 20px;
    background: var(--main);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: bold;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

#age-confirm-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

#age-confirm-btn:not(:disabled):hover {
    background: var(--sub);
}

#age-deny-btn {
    padding: 12px 20px;
    background: transparent;
    color: #888;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.88em;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

#age-deny-btn:hover {
    border-color: #aaa;
    color: #ddd;
}

