/* ================= RESET ================= */

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: black;
    font-family: system-ui, -apple-system, sans-serif;
}

.contact-link {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: 0.2s;
}

.contact-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ================= CANVAS ================= */

canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    will-change: transform;
}

/* ================= TOOLTIP ================= */

#tooltip {
    position: fixed;
    padding: 12px 14px;
    background: rgba(8, 8, 12, 0.96);
    color: white;
    border-radius: 12px;
    font-size: 13px;
    pointer-events: none;
    display: none;
    max-width: 280px;
    min-width: 160px;
    transform: translate(-50%, -110%);
    line-height: 1.4;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.25);
    z-index: 900;
}

.tt-header {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 6px;
}

.tt-icon {
    font-size: 15px;
    color: gold;
    flex-shrink: 0;
}

.tt-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 215, 0, 0.75);
}

.tt-name {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.35;
}

.tt-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.tt-message {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.tt-date {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.02em;
}

.tt-cta {
    margin-top: 8px;
    font-size: 11px;
    color: rgba(255, 215, 0, 0.6);
    letter-spacing: 0.02em;
}

/* ================= PURCHASE MODAL ================= */

#purchaseModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

#purchaseModal .modal-box {
    width: 90%;
    max-width: 400px;
    background: #0b0b0b;
    border-radius: 14px;
    padding: 18px;
    color: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
}

/* ================= INPUTS ================= */

#purchaseModal input,
#purchaseModal textarea {
    width: 100%;
    margin-top: 10px;
    padding: 8px;
    border-radius: 8px;
    border: none;
    box-sizing: border-box;
    font-size: 14px;
}

#purchaseModal textarea {
    height: 90px;
    resize: vertical;
}

/* ================= PLAN SELECT ================= */

.plan-select {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.plan-select input[type="radio"] {
    display: none;
}

.plan-select label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid #2a2a2a;
    cursor: pointer;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-select label:hover {
    border-color: gold;
}

.plan-select label:has(input[type="radio"]:checked) {
    border-color: gold;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.35);
}

/* ================= COLOR PICKER ================= */

#colorPickerWrapper {
    margin-top: 10px;
}

.color-label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
}

#starColorPicker {
    margin-top: 4px;
}

#starColorPicker .pickr .pcr-button {
    width: 100%;
    height: 38px;
    border-radius: 8px;
}

/* ================= MODAL BUTTONS ================= */

#purchaseModal button {
    margin-top: 12px;
    padding: 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    background: #eee;
    color: #000;
    font-weight: 600;
}

#purchaseModal button:active {
    background: gold;
    transform: scale(0.98);
}

/* ================= MENU BUTTON ================= */

#menuToggleBtn,
#storyNav {
    visibility: visible;
}

#menuToggleBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border: 1px solid #555;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

/* ================= SIDE MENU ================= */

#sideMenu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 300px;
    max-width: 85vw;
    background: rgba(5, 5, 5, 0.96);
    -webkit-backdrop-filter: blur(8px);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 3000;
    display: flex;
    flex-direction: column;
}

#sideMenu.open {
    transform: translateX(0);
}

.side-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.side-menu-header button {
    background: none;
    border: none;
    font-size: 18px;
    color: white;
    cursor: pointer;
}

.side-menu-content {
    padding: 14px;
    overflow-y: auto;
    color: white;
    font-size: 14px;
}

/* ================= STORY NAV ================= */

#storyNav {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 2000;
}

#storyNav button {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    border: 1px solid #555;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================= COUNTERS ================= */

.input-wrap {
    position: relative;
    margin-top: 10px;
}

.char-counter {
    position: absolute;
    right: 6px;
    bottom: -18px;
    font-size: 11px;
    opacity: 0.6;
    color: #ccc;
}

.disclaimer {
    margin-top: 10px;
    font-size: 11px;
    opacity: 0.6;
    text-align: left;
    line-height: 1.4;
}

/* ================= TERMS ACCORDION ================= */

.terms-toggle {
    cursor: pointer;
    user-select: none;
    margin-top: 16px;
}

.terms-content {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.85;
    margin-top: 8px;
}

/* ================= PRIVACY ACCORDION ================= */

.privacy-toggle {
    cursor: pointer;
    user-select: none;
    margin-top: 16px;
}

.privacy-content {
    font-size: 12px;
    line-height: 1.6;
    opacity: 0.85;
    margin-top: 8px;
}

.side-menu-content p strong {
    color: gold;
}

/* ================= BEAUTIFUL UI ALERT ================= */

.ui-alert {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.ui-alert-box {
    background: #0b0b0b;
    color: white;
    padding: 22px;
    border-radius: 14px;
    max-width: 340px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    animation: alertPop 0.2s ease;
}

.ui-alert-box button {
    margin-top: 16px;
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background: gold;
    color: black;
    font-weight: 700;
    cursor: pointer;
}

@keyframes alertPop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

