/* ===================================
   BOT CHOICE MODAL
   Modal for choosing Telegram or Max bot
   Styling matches site: retention-card, cta-block, btn-primary
   =================================== */

.bot-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.bot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.bot-modal-content {
    position: relative;
    width: 100%;
    max-width: 440px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid var(--color-orange-100);
    box-shadow: 0 40px 80px -20px rgba(249, 115, 22, 0.12), var(--shadow-2xl);
    transform: scale(0.96) translateY(12px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.bot-modal.is-open .bot-modal-content {
    transform: scale(1) translateY(0);
}

/* Subtle orange glow - like retention-glow */
.bot-modal-content::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 280px;
    height: 280px;
    background: rgba(255, 237, 213, 0.5);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

/* Corner accent - like cta-card */
.bot-modal-content::after {
    content: "";
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-top: 3px solid rgba(249, 115, 22, 0.2);
    border-left: 3px solid rgba(249, 115, 22, 0.2);
    border-top-left-radius: 1rem;
    pointer-events: none;
}

.bot-modal-title {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.bot-modal-subtitle {
    font-size: 0.8125rem;
    color: var(--color-slate-500);
    margin-bottom: 1.75rem;
    text-align: center;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

.bot-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    position: relative;
    z-index: 1;
}

.bot-modal-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.bot-modal-btn:hover {
    transform: translateY(-3px);
}

.bot-modal-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Primary - matches btn-primary / btn-cta-main */
.bot-modal-btn-telegram {
    background: linear-gradient(180deg, var(--color-orange-600) 0%, var(--color-orange-700) 100%);
    color: white;
    box-shadow: var(--shadow-xl), 0 0 0 0 rgba(124, 45, 18, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bot-modal-btn-telegram:hover {
    background: linear-gradient(180deg, var(--color-orange-700) 0%, #c2410c 100%);
    box-shadow: 0 15px 40px -10px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.bot-modal-btn-telegram svg {
    flex-shrink: 0;
}

/* Secondary - matches btn-cta-secondary */
.bot-modal-btn-max {
    background: var(--color-slate-900);
    color: white;
    box-shadow: var(--shadow-xl);
}

.bot-modal-btn-max:hover {
    background: var(--color-slate-800);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.2);
}

.bot-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    color: var(--color-slate-400);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    z-index: 2;
}

.bot-modal-close:hover {
    color: var(--color-slate-700);
    background: var(--color-orange-50);
}
