/* Onion Nexus promo + Tor help modal (deploy this file with HTML/JS updates) */
.onyx-onion-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 1rem 0.75rem 1.25rem;
    background-color: var(--color-gray-300, #d1d5db);
}

.onyx-onion-nexus {
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.25rem 1rem;
    color: #fff;
    background: linear-gradient(135deg, #041a17 0%, #0c4a3e 100%);
    border: 1px solid rgba(61, 214, 112, 0.35);
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(4, 26, 23, 0.22);
}

.onyx-onion-nexus__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.onyx-onion-nexus__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    font-size: 1.25rem;
    color: rgb(61, 214, 112);
    background: rgba(61, 214, 112, 0.12);
}

.onyx-onion-nexus__content {
    width: 100%;
    min-width: 0;
}

.onyx-onion-nexus__content h2 {
    margin: 0 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.onyx-onion-nexus__content > p:first-of-type {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}

.onyx-onion-nexus__btn {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 1.15rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    color: #fff !important;
    background-color: rgb(22, 101, 52);
    transition: background-color 0.25s ease, transform 0.2s ease, color 0.25s ease;
}

.onyx-onion-nexus__btn:hover {
    color: #041a17 !important;
    background-color: rgb(61, 214, 112);
    transform: translateY(-1px);
}

.onyx-onion-nexus__hint {
    margin: 0.75rem 0 0 !important;
    font-size: 0.75rem !important;
    line-height: 1.45 !important;
    color: rgba(255, 255, 255, 0.55) !important;
}

.onyx-onion-nexus__steps {
    margin: 0 0 1rem;
    padding-left: 1.15rem;
    text-align: left;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
}

.onyx-onion-nexus__steps li {
    margin-bottom: 0.35rem;
    list-style: decimal;
}

body.onyx-onion-modal-open {
    overflow: hidden;
}

.onyx-onion-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-sizing: border-box;
}

.onyx-onion-modal[hidden] {
    display: none !important;
}

.onyx-onion-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.onyx-onion-modal__panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 26rem;
    max-height: min(90vh, 32rem);
    overflow-y: auto;
    padding: 1.25rem 1.25rem 1rem;
    border-radius: 0.75rem;
    background: #fff;
    color: #15222c;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    outline: none;
}

.onyx-onion-modal__x {
    position: absolute;
    top: 0.35rem;
    right: 0.5rem;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #6b7280;
    padding: 0.25rem 0.5rem;
}

.onyx-onion-modal__title {
    margin: 0 2rem 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
}

.onyx-onion-modal__lead {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #374151;
}

.onyx-onion-modal__steps {
    margin: 0 0 0.75rem;
    padding-left: 1.2rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #4b5563;
}

.onyx-onion-modal__steps li {
    margin-bottom: 0.35rem;
}

.onyx-onion-modal__url {
    margin: 0 0 1rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.375rem;
    background: #f3f4f6;
    font-size: 0.7rem;
    line-height: 1.4;
    word-break: break-all;
    color: #111827;
    user-select: text;
}

.onyx-onion-modal__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.onyx-onion-modal__btn {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.onyx-onion-modal__btn--primary {
    background: rgb(22, 101, 52);
    color: #fff !important;
}

.onyx-onion-modal__btn--primary:hover {
    background: rgb(61, 214, 112);
    color: #041a17 !important;
}

.onyx-onion-modal__btn--secondary {
    background: #e5e7eb;
    color: #15222c !important;
}

.onyx-onion-modal__btn--secondary:hover {
    background: #d1d5db;
}

.onyx-onion-modal__btn--ghost {
    background: transparent;
    color: #166534 !important;
    border: 1px solid #166534;
}

.onyx-onion-modal__close {
    margin-top: 0.75rem;
    width: 100%;
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
}

.onyx-onion-modal__panel,
.onyx-onion-modal__panel * {
    user-select: text;
}

@media (min-width: 640px) {
    .onyx-onion-wrap {
        padding: 1.25rem 1.5rem 1.5rem;
    }

    .onyx-onion-nexus {
        padding: 1.5rem 1.75rem;
    }

    .onyx-onion-nexus__inner {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 1.25rem;
    }

    .onyx-onion-nexus__content h2 {
        font-size: 1.3rem;
    }

    .onyx-onion-nexus__btn {
        display: inline-block;
        width: auto;
    }
}

@media (max-width: 1023px) {
    .onyx-onion-wrap {
        padding-bottom: 5.75rem;
    }
}

main .onyx-onion-wrap {
    margin-top: 2rem;
    padding-left: 0;
    padding-right: 0;
    background: transparent;
}

main .onyx-onion-nexus {
    max-width: none;
}
