/* ==========================================================================
   WhichAIPlan - Master Modal Engine (Bento, Launchpad & Copy Share)
   ========================================================================== */

/* Frosted Modal Overlay Backdrop */
.plans-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 13, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}
.plans-modal-overlay.open { opacity: 1; visibility: visible; }

/* Shared Modal Card Container */
.plans-modal-card {
    background: rgba(11, 16, 26, 0.98);
    border: 1px solid rgba(52, 211, 153, 0.45);
    border-radius: 14px;
    padding: 22px 24px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(52, 211, 153, 0.18);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.plans-modal-overlay.open .plans-modal-card { transform: scale(1); }

/* Modal Header Anatomy */
.plans-modal-header { display: flex; justify-content: center; border-bottom: 1px solid rgba(52, 211, 153, 0.2); padding-bottom: 10px; }
.plans-modal-title-group { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.plans-modal-title-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.plans-modal-plan-name { font-size: 20.5px; font-weight: 800; color: #ffffff; letter-spacing: -0.3px; line-height: 1.2; }
.plans-modal-company-name { font-size: 18px; font-weight: 600; color: #94a3b8; letter-spacing: -0.2px; line-height: 1.2; }
.plans-modal-icon { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.plans-modal-section-tag { font-size: 13.5px; font-weight: 800; color: #34d399; text-transform: uppercase; letter-spacing: 0.5px; }

/* 1. Bento Popup Body */
.bento-modal-body { font-size: 17px; line-height: 1.55; color: #f1f5f9; text-align: center; }

/* 2. Launchpad Action Buttons Body */
.launchpad-modal-body { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.launchpad-btn-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.launchpad-action-btn {
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(52, 211, 153, 0.4);
    color: #f8fafc;
    font-family: var(--font-sans);
    font-size: 17.5px;
    font-weight: 700;
    padding: 13px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    transition: all 0.18s ease;
}
.launchpad-action-btn:hover {
    background: linear-gradient(135deg, rgba(52, 211, 153, 0.28) 0%, rgba(15, 23, 42, 0.95) 100%);
    border-color: #34d399;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(52, 211, 153, 0.25);
}
.launchpad-action-btn:active { transform: scale(0.98); }
.launchpad-btn-icon { font-size: 22px; margin-right: 10px; vertical-align: middle; }
.launchpad-btn-arrow { color: #34d399; font-size: 17px; }
.launchpad-tooltip {
    position: absolute;
    top: calc(100% - 1px);
    right: 10px;
    background: rgba(11, 16, 26, 0.98);
    border: 1px solid rgba(52, 211, 153, 0.55);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.8);
    z-index: 20;
}
.launchpad-btn-wrapper:hover .launchpad-tooltip { opacity: 1; transform: translateY(0); }

/* 3. Copy & Share Body Anatomy */
.share-modal-body { display: flex; flex-direction: column; gap: 12px; }
.share-steps-list { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.share-step-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.4;
}
.share-step-num {
    background: rgba(52, 211, 153, 0.2);
    border: 1px solid #34d399;
    color: #34d399;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Modal Footer Action Buttons */
.plans-modal-footer { display: flex; justify-content: center; margin-top: 4px; }
.plans-modal-dismiss-btn {
    background: #34d399;
    color: #051610;
    border: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 800;
    padding: 7px 32px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(52, 211, 153, 0.35);
    transition: all 0.15s ease;
}
.plans-modal-dismiss-btn:hover { background: #5eead4; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(52, 211, 153, 0.5); }
.plans-modal-dismiss-btn:active { transform: scale(0.96); }

/* Responsive Overrides (Narrow Mobile Screens <= 480px) */
@media (max-width: 480px) {
    .plans-modal-overlay { padding: 12px; }
    .plans-modal-card { padding: 18px 16px; gap: 12px; }
    .plans-modal-plan-name { font-size: 18.5px; }
    .plans-modal-company-name { font-size: 16px; }
    .launchpad-action-btn { padding: 11px 14px; font-size: 16px; }
    .bento-modal-body { font-size: 15.5px; }
    .share-step-item { font-size: 13px; }
}
