/* ============================================================
    NOVA BRAND SYSTEM
    ============================================================ */
:root {
    --bg: #05070d;
    --text: #f7f9fc;
    --muted: #9aa7b9;
    --muted2: #68758a;
    --purple: #9a67ff;
    --blue: #39a9ff;
    --green: #43e6a4;
    --line: rgba(255, 255, 255, .09);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 67% 8%, rgba(113, 66, 255, .16), transparent 25%),
        radial-gradient(circle at 94% 35%, rgba(31, 151, 255, .09), transparent 23%),
        var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
    background-size: 55px 55px;
    mask-image: radial-gradient(circle at 72% 20%, black, transparent 68%);
    z-index: -1;
}

/* ============================================================
    WOW LAYER
    ============================================================ */
.nova-wow-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.nova-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .22;
    animation: novaFloat 12s ease-in-out infinite;
}
.nova-orb.a {
    width: 320px;
    height: 320px;
    background: #7b4dff;
    left: -120px;
    top: 14vh;
}
.nova-orb.b {
    width: 260px;
    height: 260px;
    background: #159eff;
    right: -90px;
    top: 42vh;
    animation-delay: -4s;
}
.nova-orb.c {
    width: 210px;
    height: 210px;
    background: #c85cff;
    left: 45%;
    bottom: -90px;
    animation-delay: -7s;
}
@keyframes novaFloat {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(30px, -35px, 0) scale(1.12);
    }
}

/* ============================================================
    CARD
    ============================================================ */
.card {
    width: min(100%, 780px);
    background: linear-gradient(155deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0) 40%),
        linear-gradient(145deg, #101b2c, #070e1a);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .5);
    padding: 32px 40px 28px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    transition: transform .24s ease, box-shadow .24s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 34px 100px rgba(0, 0, 0, .6);
}

/* ============================================================
    HEADER
    ============================================================ */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    flex: none;
}
.card-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.brand-icon {
    width: 40px;
    height: 40px;
    flex: none;
    position: relative;
}
.brand-icon svg {
    width: 40px;
    height: 40px;
}
.brand-icon::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    right: -1px;
    top: -1px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
    box-shadow: 0 0 12px #fff, 0 0 24px #9a67ff;
    animation: novaSpark 2.4s ease-in-out infinite;
}
@keyframes novaSpark {
    0%,
    100% {
        transform: rotate(45deg) scale(.8);
        opacity: .65;
    }
    50% {
        transform: rotate(45deg) scale(1.15);
        opacity: 1;
    }
}
.card-header h1 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.5px;
    background: linear-gradient(105deg, #fff 8%, #c7a9ff 72%, #9b7cff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.card-header .sub {
    font-size: 13px;
    color: var(--muted);
    font-weight: 400;
    display: block;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: var(--muted);
}
.close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.035);
    color: #8996a8;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
    font-family: inherit;
    flex: none;
}
.close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: rotate(90deg);
}

/* ============================================================
    SCROLLABLE CONTENT
    ============================================================ */
.scroll-content {
    overflow-y: auto;
    padding-right: 6px;
    flex: 1;
}
.scroll-content::-webkit-scrollbar {
    width: 4px;
}
.scroll-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}
.scroll-content::-webkit-scrollbar-thumb {
    background: rgba(154, 103, 255, 0.4);
    border-radius: 8px;
}
.scroll-content::-webkit-scrollbar-thumb:hover {
    background: rgba(154, 103, 255, 0.6);
}

/* ============================================================
    SUPPORT CONTENT
    ============================================================ */
.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 24px;
}
.support-card {
    background: rgba(255, 255, 255, .025);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 22px;
    transition: border-color .2s, background .2s, transform .2s;
}
.support-card:hover {
    border-color: rgba(154, 103, 255, .25);
    background: rgba(255, 255, 255, .04);
    transform: translateY(-2px);
}
.support-card .icon {
    font-size: 28px;
    margin-bottom: 10px;
}
.support-card .icon i {
    color: var(--purple);
    display: inline-block;
}
.support-card h3 {
    font-size: 15px;
    font-weight: 700;
    color: #f0f3f8;
    margin-bottom: 4px;
}
.support-card p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}
.support-card a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
}
.support-card a:hover {
    text-decoration: underline;
}

/* ============================================================
    FAQ SECTION
    ============================================================ */
.faq-section h2 {
    font-size: 18px;
    font-weight: 700;
    color: #f0f3f8;
    margin-bottom: 14px;
    letter-spacing: -.3px;
}
.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
}
.faq-item:last-child {
    border-bottom: 0;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 600;
    color: #e4e9f1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: "+";
    font-size: 20px;
    color: var(--muted2);
    font-weight: 400;
    transition: transform .2s;
}
.faq-item details[open] summary::after {
    content: "−";
}
.faq-item p {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
    margin-top: 10px;
    padding-right: 12px;
}

/* ============================================================
    CONTACT FORM
    ============================================================ */
.contact-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.contact-form h2 {
    font-size: 18px;
    font-weight: 700;
    color: #f0f3f8;
    margin-bottom: 14px;
    letter-spacing: -.3px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 4px;
    letter-spacing: .3px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(154, 103, 255, .15);
}
.form-group textarea {
    resize: vertical;
    min-height: 90px;
}
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2368758a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted2);
    opacity: .6;
}

.btn-submit {
    padding: 12px 32px;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
    background: linear-gradient(105deg, #9655ff, #188cff);
    color: #fff;
    box-shadow: 0 8px 30px rgba(93, 56, 255, .2);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(93, 56, 255, .3);
}
.btn-submit:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
    TOAST
    ============================================================ */
.toast-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 15, 0.6);
    backdrop-filter: blur(8px);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.toast-overlay.open {
    opacity: 1;
    visibility: visible;
}
.toast {
    background: linear-gradient(145deg, #101b2c, #070e1a);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 28px 32px 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .6);
    transform: translateY(20px) scale(.96);
    transition: transform 0.3s cubic-bezier(.22, .68, .35, 1);
    text-align: center;
}
.toast-overlay.open .toast {
    transform: none;
}
.toast .icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.toast h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}
.toast p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 18px;
}
.toast-btn {
    padding: 10px 28px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    font-family: inherit;
    background: linear-gradient(105deg, #9655ff, #188cff);
    color: #fff;
    box-shadow: 0 8px 30px rgba(93, 56, 255, .2);
}
.toast-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(93, 56, 255, .3);
}

/* ============================================================
    FOOTER
    ============================================================ */
.card-footer {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--muted2);
    flex: none;
}
.card-footer a {
    color: var(--muted2);
    text-decoration: none;
    transition: color .2s;
}
.card-footer a:hover {
    color: var(--text);
}
.card-footer .meta-links {
    display: flex;
    gap: 18px;
}

/* ============================================================
    ALERT / CUSTOM NOTIFICATION
    ============================================================ */
.alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 15, 0.6);
    backdrop-filter: blur(8px);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.alert-overlay.open {
    opacity: 1;
    visibility: visible;
}
.alert-box {
    background: linear-gradient(145deg, #101b2c, #070e1a);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    padding: 32px 28px 24px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, .6);
    transform: translateY(20px) scale(.96);
    transition: transform 0.3s cubic-bezier(.22, .68, .35, 1);
    text-align: center;
}
.alert-overlay.open .alert-box {
    transform: none;
}
.alert-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    background: rgba(154, 103, 255, .12);
    border: 1px solid rgba(154, 103, 255, .25);
}
.alert-icon i {
    font-size: 28px;
    display: block;
}
.alert-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(154, 103, 255, .2);
    border-top-color: var(--purple);
    border-radius: 50%;
    animation: alertSpin 1s linear infinite;
}
@keyframes alertSpin {
    to { transform: rotate(360deg); }
}
.alert-box h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 8px;
}
.alert-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.alert-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, #6c5ce7, #a855f7);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}
.alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 92, 231, 0.3);
}

/* ============================================================
    NOVA SELECT
    ============================================================ */
.nova-select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #f7f9fc;
    font-size: 0.95rem;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, Arial, sans-serif;
    transition: border-color 0.2s, background 0.2s;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa7b9' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}
.nova-select:hover {
    background-color: rgba(255, 255, 255, 0.08);
}
.nova-select:focus {
    outline: none;
    border-color: #6c5ce7;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}
.nova-select option {
    background: #0a0e1a;
    color: #f7f9fc;
    padding: 8px 12px;
}
.nova-select option:hover {
    background: rgba(108, 92, 231, 0.3);
}
.nova-select option[value=""] {
    color: rgba(255, 255, 255, 0.4);
}
.nova-select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.nova-select:-moz-focusring {
    color: transparent;
    text-shadow: 0 0 0 #f7f9fc;
}

/* ============================================================
    RESPONSIVE
    ============================================================ */
@media (max-width: 700px) {
    .card {
        padding: 24px 20px 20px;
        border-radius: 20px;
        max-height: 95vh;
    }
    .card-header h1 {
        font-size: 18px;
    }
    .support-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .support-card {
        padding: 16px 18px;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .faq-item summary {
        font-size: 13px;
    }
    .close-btn {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .card-footer {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .nova-select {
        padding: 10px 12px;
        font-size: 0.9rem;
        background-size: 10px 7px;
        background-position: right 12px center;
        padding-right: 36px;
    }
}
@media (max-width: 520px) {
    .card {
        padding: 18px 14px 16px;
        border-radius: 18px;
    }
}
