.aioracula-chat-wrapper {
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px;
    border-radius: 16px;
    background: #0c0a1a;
    color: #f5f5ff;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.aioracula-chat-header h2 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 1.6rem;
}

.aioracula-chat-header p {
    margin: 0 0 4px;
    font-size: 0.95rem;
    color: #d2d2ff;
}

.aioracula-chat-note {
    font-size: 0.75rem;
    color: #9b9bcc;
}

.aioracula-chat-window {
    margin-top: 16px;
    padding: 12px;
    background: #131129;
    border-radius: 12px;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.aioracula-chat-message {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.aioracula-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #ff9cf5, #7b5cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.aioracula-bubble {
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.45;
}

.aioracula-system .aioracula-bubble,
.aioracula-oracle .aioracula-bubble {
    background: rgba(123, 92, 255, 0.15);
    border: 1px solid rgba(123, 92, 255, 0.35);
}

.aioracula-user .aioracula-bubble {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.aioracula-chat-form {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.aioracula-chat-form textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0c0a1a;
    color: #f5f5ff;
    padding: 10px 12px;
    resize: vertical;
    min-height: 80px;
    font-size: 0.95rem;
}

.aioracula-chat-form textarea:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.7);
}

.aioracula-chat-submit {
    align-self: flex-end;
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.aioracula-chat-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(79, 70, 229, 0.6);
}

.aioracula-chat-submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.aioracula-chat-disclaimer {
    font-size: 0.75rem;
    color: #a3a3c7;
}

@media (max-width: 600px) {
    .aioracula-chat-wrapper {
        padding: 16px 12px;
        border-radius: 12px;
    }
}
/* ===============================
   CREDITI – PACKS GRID
================================ */

.aioracula-credits-section {
    margin-top: 50px;
    padding: 30px 20px;
}

.aioracula-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.aioracula-pack {
    background: rgba(15, 15, 30, 0.85);
    border-radius: 18px;
    padding: 22px 20px;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 45px rgba(0,0,0,0.45);
    transition: transform .25s ease, box-shadow .25s ease;
}

.aioracula-pack:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.aioracula-pack-title {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.aioracula-pack-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
}

.aioracula-pack-price {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

.aioracula-pack-buy {
    width: 100%;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: linear-gradient(135deg, #f97316, #ec4899);
    color: #fff;
}

.aioracula-pack-buy:hover {
    opacity: 0.95;
}
/* Fix contrasto testi dentro le card (tema potrebbe sovrascrivere) */
.aioracula-pack,
.aioracula-pack * {
  color: #fff !important;
}

.aioracula-pack-desc {
  opacity: .85;
}

.aioracula-pack-price,
.aioracula-pack-price * {
  color: #fff !important;
  opacity: .95;
}
/* ============================= */
/*  AIORACULA PURCHASE MODAL    */
/* ============================= */

#aioracula-purchase-modal {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important; /* sopra QUALSIASI tema */
    display: none;
}

#aioracula-purchase-modal .aioracula-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important;
    z-index: 1;
}

#aioracula-purchase-modal .aioracula-modal-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-width: 960px !important;
    height: 85vh !important;
    background: #0b0715 !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    z-index: 2 !important;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6) !important;
}

#aioracula-purchase-modal iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

#aioracula-purchase-modal .aioracula-modal-close {
    position: absolute !important;
    top: 10px !important;
    right: 14px !important;
    z-index: 3 !important;
    background: none !important;
    border: none !important;
    color: #fff !important;
    font-size: 30px !important;
    cursor: pointer !important;
}
