@import url('tokens.css');

/* Purchase guide modal — homepage */

.purchase-guide-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.purchase-guide-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.purchase-guide-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 9, 11, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.purchase-guide-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    max-height: min(88vh, 720px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #12121a);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.55),
        0 0 0 1px var(--stroke);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.32s ease;
}

.purchase-guide-modal.is-open .purchase-guide-dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.purchase-guide-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.35rem 0.75rem;
    border-bottom: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    flex-shrink: 0;
}

.purchase-guide-dialog-header h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.purchase-guide-close {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary, #b8b8c8);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.purchase-guide-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.purchase-guide-body {
    padding: 1.25rem 1.35rem 1.5rem;
    overflow-y: auto;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary, #c8c8d4);
}

.purchase-guide-body p {
    margin: 0 0 1rem;
}

.purchase-guide-body p:last-child {
    margin-bottom: 0;
}

.purchase-guide-steps {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    color: var(--text-secondary, #c8c8d4);
}

.purchase-guide-steps li {
    margin-bottom: 0.75rem;
}

.purchase-guide-steps li:last-child {
    margin-bottom: 0;
}

.purchase-guide-steps strong {
    color: var(--text-primary, #ececf2);
    font-weight: 600;
}

.purchase-guide-note {
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--stroke);
    font-size: 0.9rem;
    color: var(--text-primary);
}

.purchase-guide-note strong {
    color: var(--accent);
    font-weight: 600;
}

.purchase-guide-email {
    color: var(--accent);
    font-weight: 500;
    word-break: break-all;
}
