/* ── Color Palette ── */
:root {
    --main:  #6effcc;
    --sub:   #fce6a3;
    --error: #ff74a4;
    --dark:  #0e1a14;
    --white: #ffffff;
    --black: #000000;
}

/* ── Alatsi Font ── */
@font-face {
    font-family: 'Alatsi';
    src: url('fonts/Alatsi/Alatsi-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* ── Reset ── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Base ── */
body {
    background-color: var(--dark);
    font-family: 'Alatsi', sans-serif;
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Scrollbars ── */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(110, 255, 204, 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: 0;
    padding-left: 8px;
}

.site-logo img {
    height: 42px;
    width: auto;
    display: block;
    filter: invert(88%) sepia(11%) saturate(1558%) hue-rotate(96deg) brightness(95%) contrast(113%);
}

.site-logo:hover img {
    filter: invert(93%) sepia(97%) saturate(686%) hue-rotate(305deg) brightness(116%) contrast(98%);
}

/* ── Audio toggle ── */
.audio-toggle {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 200;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    border: 2px solid var(--main);
    color: var(--main);
    font-size: 1.1em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s, color 0.2s, transform 0.15s;
    box-shadow: 0 2px 16px rgba(0,0,0,0.4);
}
.audio-toggle:hover {
    transform: scale(1.1);
    background: var(--main);
    color: #000;
}
.audio-toggle.is-playing {
    background: var(--main);
    color: #000;
}
.audio-icon {
    pointer-events: none;
    line-height: 1;
}

/* ── Nav ── */
.site-nav {
    display: flex;
    gap: clamp(8px, 4vw, 20px);
}

.site-nav a {
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}

.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;
}

/* ── Typography ── */
h1 {
    color: var(--sub);
    margin-bottom: 20px;
}

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

h3 {
    color: var(--main);
    margin-bottom: 10px;
    font-size: clamp(1.1em, 2.5vw, 1.5em);
}

p, .section-desc {
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center;
}

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

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

/* ── Page Title ── */
.page-title {
    color: var(--sub);
    font-size: clamp(2em, 6vw, 3.5em);
    margin-bottom: 32px;
    letter-spacing: 0.04em;
    text-align: center;
    width: 100%;
}

/* ── Section ── */
.section {
    width: 100%;
    margin-bottom: 40px;
}

/* ── Info Card ── */
.info-card {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(110, 255, 204, 0.2);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
}

.info-card p {
    text-align: left;
    margin-bottom: 0;
}

/* ── Link Grid (for quick-link sections) ── */
.link-grid {
    display: flex;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

.link-card {
    flex: 1;
    min-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(110, 255, 204, 0.15);
    border-radius: 12px;
    color: var(--white);
    text-decoration: none;
    font-family: inherit;
    font-size: 1.05em;
    letter-spacing: 0.04em;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.link-card:hover {
    border-color: var(--main);
    background: rgba(110, 255, 204, 0.07);
    color: var(--main);
    transform: translateY(-2px);
}

.link-card-label {
    font-size: 1.2em;
    color: var(--main);
}

.link-card-desc {
    font-size: 0.85em;
    color: #aaa;
    text-align: center;
}

/* ── Footer ── */
.site-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 16px 40px;
    background: linear-gradient(0deg, #071410 0%, #0d1a14 100%);
    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);
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .site-header {
        padding: 0 18px;
    }

    .page-content {
        padding: 12px 12px 32px;
    }

    .link-grid {
        flex-direction: column;
    }
}

/* ════════════════════════════════════════════════════
   Commission Pages
   All colors adapted from sxnackx.art design:
     rgba(226,255,0,X)  → rgba(110,255,204,X)  (teal tint)
     var(--red)          → var(--error)
     'Snack Box' font   → inherit
     autofill bg #2d341f → #0a1a12
   ════════════════════════════════════════════════════ */

/* ── 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; }

/* ── 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(110,255,204,0.4); }
.tier-btn.active        { background: rgba(110,255,204,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(--error); 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(110,255,204,0.4); }
.special-product-btn.active { background: rgba(110,255,204,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: '✓';
    color: var(--main);
    font-size: 1.1em;
    font-weight: 700;
    flex-shrink: 0;
    line-height: 1;
}

/* ── 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;
}

.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(110,255,204,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); }

/* ── Centered Page Layout ── */
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
   ════════════════════════════════════════════════════ */

.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); }

/* Request footer */
.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 #0a1a12 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: #060e0b;
    cursor: pointer;
    transition: border-color 0.15s;
    flex-shrink: 0;
    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(84%) sepia(37%) saturate(500%) hue-rotate(100deg); }
.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(110,255,204,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(110,255,204,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(--dark);
    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(--dark); }
.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: var(--error); }

/* ════════════════════════════════════════════════════
   Comm Overlays
   ════════════════════════════════════════════════════ */
.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: #091410;
    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); } }

@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(110,255,204,0.07); border-color: rgba(110,255,204,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 */
.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 in editor */
.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(110,255,204,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 */
.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 */
.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; }

.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(110,255,204,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: 180px;
    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.55);
    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; }

/* Terms row */
.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-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(110,255,204,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 { 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: inherit;
    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(110,255,204,0.45); }

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

.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 {
    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 tabs (mobile only) */
.tracker-tabs { display: none; }

@media (max-width: 700px) {
    .page-content--wide { max-width: 100%; }
    .tracker-columns    { grid-template-columns: 1fr; }

    .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%; }

    .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: inherit;
        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); }
}

/* ── Request page: container, form fields, file input, submit ── */
.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;
}

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

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(--dark);
    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(--dark);
    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(--dark);
}

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

/* ── Message blocks ── */
.message {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
}
.message.success {
    background: rgba(110,255,204,0.15);
    border: 2px solid var(--main);
    color: var(--main);
}
.message.error {
    background: rgba(255,116,164,0.15);
    border: 2px solid var(--error);
    color: var(--error);
}

