/*
 * saas-module-teasers.css — „Mai poți activa” (rândurile 🔒 din meniu + panoul „Cere activarea”) la firmele SaaS Webinar.
 * Logica: public/js/saas/saasModuleTeasers.js. Namespace .smt-*; tokenii din light-theme.css (--primary-*, --gray-*),
 * cu valori de rezervă. Ținte ≥ 44 px, focus vizibil, prefers-reduced-motion.
 *
 * ATENȚIE la light-theme.css: (1) `[class*="panel"], [class*="section"], [class*="card"] { border:none !important;
 * box-shadow:… !important }` ⇒ NICIO clasă de aici nu conține „panel” / „section” / „card” / „close” (de aceea
 * .smt-sheet / .smt-hd / .smt-bd / .smt-zone / .smt-dismiss); (2) `*, *::before, *::after { border-color: … !important }`
 * ⇒ orice border-color care contează e scris cu !important (o clasă bate selectorul universal la egalitate de !important);
 * (3) `button { border-radius / font-weight … !important }` ⇒ rotunjirile butoanelor tot cu !important.
 */

/* Plasa de siguranță: grupurile reale ascunse la firmele EXCLUSIV SaaS fără modul (JS pune și display:none inline). */
body.saas-lock-cm #sidebar .call-manager-group { display: none !important; }
/* Plasa de siguranță pe bara de jos (telefon): butoanele Call Manager rămân ascunse chiar dacă alt cod le re-afișează. */
body.saas-lock-cm #mobileBottomNav .mobile-nav-item[data-page="overview"],
body.saas-lock-cm #mobileBottomNav .mobile-nav-item[data-page="calls"],
body.saas-lock-cm #mobileBottomNav .mobile-nav-item[data-page="centrala"],
body.saas-lock-cm #mobileBottomNav .mobile-nav-item[data-page="batchCalls"],
body.saas-lock-cm #mobileBottomNav .mobile-nav-item[data-page="agents"] { display: none !important; }
body.saas-lock-wa #sidebar .whatsapp-module,
body.saas-lock-wa #mobileBottomNav .whatsapp-module { display: none !important; }

/* ── zona din meniu ──────────────────────────────────────────────────── */
#saasModuleTeasers[hidden] { display: none !important; }
#saasModuleTeasers {
    margin: 14px 0 6px;
    padding: 12px 10px 10px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--gray-50, #f9fafb) 0%, #ffffff 100%);
    border: 1px dashed var(--gray-300, #d1d5db) !important;
    border-color: var(--gray-300, #d1d5db) !important;
}
.smt-head {
    display: flex;
    flex-wrap: wrap; /* meniul îngust: „la cerere” trece pe rândul următor, titlul nu se rupe în cuvinte */
    align-items: baseline;
    column-gap: 6px;
    row-gap: 0;
    padding: 0 6px 8px;
}
.smt-head-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500, #6b7280);
    white-space: nowrap;
}
.smt-head-hint { font-size: 11px; color: var(--gray-400, #9ca3af); white-space: nowrap; }
.smt-head-hint::before { content: '· '; }
.smt-list { display: flex; flex-direction: column; gap: 2px; }

.smt-row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 6px 10px;
    border: 0;
    border-radius: 10px !important;
    background: transparent;
    color: var(--gray-600, #4b5563);
    font: inherit;
    font-size: 14px;
    font-weight: 400 !important;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, color .15s ease;
}
.smt-row:hover { background: var(--primary-50, #eff6ff); color: var(--gray-900, #111827); }
.smt-row:focus-visible {
    outline: 2px solid var(--primary-500, #3b82f6);
    outline-offset: 2px;
    background: var(--primary-50, #eff6ff);
}
.smt-row[aria-expanded="true"] { background: var(--primary-50, #eff6ff); color: var(--primary-700, #1d4ed8); }
.smt-row-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--gray-100, #f3f4f6);
    font-size: 16px;
    filter: grayscale(0.55);
    opacity: .85;
    transition: filter .15s ease, opacity .15s ease;
}
.smt-row:hover .smt-row-icon, .smt-row:focus-visible .smt-row-icon, .smt-row[aria-expanded="true"] .smt-row-icon { filter: none; opacity: 1; }
.smt-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.smt-row-name { font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; } /* „Call Manager” încape întreg (rupt pe 2 rânduri la nevoie) */
.smt-row-lock { flex: 0 0 auto; color: var(--gray-400, #9ca3af); }

.smt-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    padding: 1px 7px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    border-color: #fed7aa !important;
    background: #fff7ed;
    color: #9a3412;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}
.smt-badge--sent { background: #ecfdf5; color: #047857; border-color: #a7f3d0 !important; }
/* Meniul lateral e îngust: insigna „Cerere trimisă · data” se rupe pe 2 rânduri ⇒ colțuri de etichetă, nu de pastilă. */
.smt-zone--nav .smt-badge--sent { border-radius: 6px !important; line-height: 1.3; padding: 2px 6px; }

/* Panoul mobil „Mai mult” */
.smt-zone--sheet {
    margin: 14px 2px 4px;
    padding: 10px 6px 6px;
    border-top: 1px solid #e2e8f0;
    border-top-color: #e2e8f0 !important;
}
.smt-zone--sheet .smt-row { min-height: 52px; font-size: 15px; }

/* ── tooltip ─────────────────────────────────────────────────────────── */
.smt-tip {
    position: fixed;
    z-index: 10060;
    max-width: 300px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--gray-900, #111827);
    color: #ffffff;
    font-size: 12.5px;
    line-height: 1.35;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .22);
}
.smt-tip[hidden] { display: none; }

/* ── panoul (dialog) ─────────────────────────────────────────────────── */
.smt-scrim {
    position: fixed;
    inset: 0;
    z-index: 10039;
    background: rgba(15, 23, 42, .28);
    opacity: 0;
    transition: opacity .2s ease;
}
.smt-scrim.smt-in { opacity: 1; }
.smt-scrim[hidden], .smt-sheet[hidden] { display: none !important; }

.smt-sheet {
    --smt-left: 280px;
    position: fixed;
    z-index: 10040;
    top: 12px;
    bottom: 12px;
    left: calc(var(--smt-left) + 12px);
    width: min(420px, calc(100vw - var(--smt-left) - 24px));
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--gray-900, #111827);
    border-radius: 16px;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-color: var(--gray-200, #e5e7eb) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .22), 0 2px 8px rgba(15, 23, 42, .08);
    overflow: hidden;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity .2s ease, transform .2s ease;
}
.smt-sheet.smt-in { opacity: 1; transform: none; }
.smt-grip { display: none; }

.smt-hd {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 16px 14px 18px;
    background: linear-gradient(135deg, var(--primary-50, #eff6ff) 0%, #ffffff 70%);
    border-bottom: 1px solid var(--gray-200, #e5e7eb);
    border-bottom-color: var(--gray-200, #e5e7eb) !important;
}
.smt-hd-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--primary-100, #dbeafe);
    border-color: var(--primary-100, #dbeafe) !important;
    font-size: 22px;
}
.smt-hd-titles { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.smt-hd-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.2; color: var(--gray-900, #111827); }
.smt-dismiss {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    border: 1px solid var(--gray-200, #e5e7eb);
    border-color: var(--gray-200, #e5e7eb) !important;
    background: #ffffff;
    color: var(--gray-600, #4b5563);
    font-size: 16px;
    font-weight: 400 !important;
    cursor: pointer;
}
.smt-dismiss:hover { background: var(--gray-100, #f3f4f6); }
.smt-dismiss:focus-visible { outline: 2px solid var(--primary-500, #3b82f6); outline-offset: 2px; }

.smt-bd {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px 18px 18px;
}
.smt-promise { margin: 0 0 12px; font-size: 17px; font-weight: 700; line-height: 1.35; color: var(--gray-900, #111827); }
.smt-benefits { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.smt-benefits li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--gray-700, #374151);
}
.smt-benefits li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-100, #dbeafe) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231d4ed8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M4.5 8.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.smt-example {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #faf5ff;
    border: 1px solid #e9d5ff;
    border-color: #e9d5ff !important;
}
.smt-example-label { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: #6b21a8; }
.smt-example p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--gray-800, #1f2937); }
.smt-activation { margin: 0 0 16px; font-size: 13px; line-height: 1.45; color: var(--gray-500, #6b7280); }

.smt-form { margin: 0; }
.smt-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.smt-legend { padding: 0; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--gray-900, #111827); }
.smt-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.smt-chip { position: relative; display: block; cursor: pointer; }
.smt-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.smt-chip-face {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 6px 4px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-color: var(--gray-200, #e5e7eb) !important;
    background: #ffffff;
    text-align: center;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.smt-chip-label { font-size: 13px; font-weight: 600; color: var(--gray-800, #1f2937); }
.smt-chip-hint { font-size: 12px; color: var(--gray-500, #6b7280); }
.smt-chip:hover .smt-chip-face { border-color: var(--primary-300, #93c5fd) !important; }
.smt-chip input:checked + .smt-chip-face {
    border-color: var(--primary-500, #3b82f6) !important;
    background: var(--primary-50, #eff6ff);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .14);
}
.smt-chip input:checked + .smt-chip-face .smt-chip-label { color: var(--primary-700, #1d4ed8); }
.smt-chip input:focus-visible + .smt-chip-face { outline: 2px solid var(--primary-500, #3b82f6); outline-offset: 2px; }

.smt-note-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--gray-700, #374151); }
.smt-note-label span { font-weight: 400; color: var(--gray-500, #6b7280); }
.smt-note {
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px !important;
    border-radius: 10px !important;
    border: 1px solid var(--gray-300, #d1d5db);
    border-color: var(--gray-300, #d1d5db) !important;
    background: #ffffff;
    color: var(--gray-900, #111827);
    font: inherit;
    font-size: 16px; /* fără zoom automat pe iOS */
}
.smt-note:focus { outline: none; border-color: var(--primary-500, #3b82f6) !important; box-shadow: 0 0 0 3px rgba(59, 130, 246, .15); }
.smt-note-count { margin: 4px 0 10px; font-size: 11.5px; color: var(--gray-400, #9ca3af); text-align: right; }

.smt-contact { margin: 4px 0 0; font-size: 13px; line-height: 1.45; color: var(--gray-600, #4b5563); overflow-wrap: anywhere; }
.smt-contact b { color: var(--gray-900, #111827); font-weight: 600; }
.smt-info {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--gray-50, #f9fafb);
    border: 1px solid var(--gray-200, #e5e7eb);
    border-color: var(--gray-200, #e5e7eb) !important;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gray-700, #374151);
}
.smt-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-color: #fecaca !important;
    color: #b91c1c;
    font-size: 13px;
    line-height: 1.45;
}
.smt-error[hidden] { display: none; }

/* Limita zilnică: mesajul ÎN LOCUL formularului, primul lucru din zona de jos. */
.smt-limit, .smt-done {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.45;
}
.smt-limit { background: #fffbeb; border: 1px solid #fde68a; border-color: #fde68a !important; color: #78350f; }
.smt-limit p { margin: 4px 0 0; color: #92400e; }
.smt-limit a { color: #92400e; font-weight: 600; }
.smt-limit-icon { flex: 0 0 auto; font-size: 20px; line-height: 1.2; }
.smt-limit:focus, .smt-done:focus { outline: none; }
.smt-done { background: #ecfdf5; border: 1px solid #a7f3d0; border-color: #a7f3d0 !important; color: #065f46; }
.smt-done p { margin: 2px 0 0; color: #047857; }
.smt-done-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
}
.smt-again {
    margin-top: 8px;
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: #047857;
    font: inherit;
    font-size: 14px;
    font-weight: 600 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
.smt-again:focus-visible { outline: 2px solid var(--primary-500, #3b82f6); outline-offset: 2px; }

/* Bara de acțiune FIXĂ de jos (în afara zonei care derulează) — butonul e mereu vizibil. */
.smt-ft {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 12px;
    background: #ffffff;
    border-top: 1px solid var(--gray-200, #e5e7eb);
    border-top-color: var(--gray-200, #e5e7eb) !important;
    box-shadow: 0 -6px 16px rgba(15, 23, 42, .06);
}
.smt-ft:empty { display: none; } /* firmele ERP după trimitere: fără link spre Webinar ⇒ bara goală dispare */
.smt-submit {
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px !important;
    background: var(--primary-600, #2563eb);
    color: #ffffff !important;
    font: inherit;
    font-size: 15px;
    font-weight: 700 !important;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
    transition: background-color .15s ease, transform .1s ease;
}
.smt-submit:hover { background: var(--primary-700, #1d4ed8); }
.smt-submit:active { transform: translateY(1px); }
.smt-submit:focus-visible { outline: 3px solid var(--primary-300, #93c5fd); outline-offset: 2px; }
.smt-submit:disabled { background: var(--gray-300, #d1d5db); box-shadow: none; cursor: not-allowed; }
.smt-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-700, #1d4ed8);
    text-decoration: none;
    border-radius: 10px;
}
.smt-link:hover { text-decoration: underline; }
.smt-link:focus-visible { outline: 2px solid var(--primary-500, #3b82f6); outline-offset: 2px; }
.smt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── mobil: foaie de jos ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .smt-sheet {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        max-height: 92dvh;
        border-radius: 18px 18px 0 0;
        border-width: 1px 0 0 0;
        border-top-color: #cbd5e1 !important;
        box-shadow: 0 -12px 32px rgba(15, 23, 42, .22);
        transform: translateY(24px);
    }
    .smt-sheet.smt-in { transform: none; }
    .smt-grip {
        display: block;
        flex: 0 0 auto;
        width: 40px;
        height: 4px;
        margin: 8px auto 0;
        border-radius: 999px;
        background: #cbd5e1;
    }
    .smt-hd { padding: 10px 12px 12px 16px; background: #f8fafc; border-bottom-color: #e2e8f0 !important; }
    .smt-bd { padding: 14px 16px 16px; }
    .smt-ft { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
    .smt-ft .smt-link { min-height: 40px; }
    .smt-scrim { background: rgba(15, 23, 42, .45); }
}
@media (max-width: 360px) {
    .smt-chips { grid-template-columns: 1fr; }
    .smt-chip-face { flex-direction: row; justify-content: space-between; padding: 8px 14px; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    .smt-row, .smt-row-icon, .smt-sheet, .smt-scrim, .smt-chip-face, .smt-submit { transition: none !important; }
    .smt-sheet, .smt-sheet.smt-in { transform: none !important; }
}

.smt-top:empty { display: none; }
.smt-top { margin: 0 0 14px; }
.smt-row .smt-badge { max-width: 100%; white-space: normal; } /* „Cerere trimisă · data” nu iese peste lacăt în meniul îngust */

/* ── Webinar: „Activează acum” la firmele doar ERP (582) ─────────────── */
.smt-badge--now { background: #eef2ff; color: #3730a3; border-color: #c7d2fe !important; }
.smt-zone--nav .smt-badge--now { border-radius: 6px !important; line-height: 1.3; padding: 2px 6px; }
.smt-plans { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
.smt-plan { position: relative; display: block; cursor: pointer; }
.smt-plan input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.smt-plan-face {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1.5px solid var(--gray-200, #e5e7eb) !important;
    border-color: var(--gray-200, #e5e7eb) !important;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color .15s ease, background-color .15s ease;
}
.smt-plan:hover .smt-plan-face { border-color: var(--primary-300, #93c5fd) !important; }
.smt-plan input:checked + .smt-plan-face {
    border-color: var(--primary-600, #2563eb) !important;
    background: var(--primary-50, #eff6ff);
    box-shadow: 0 0 0 1px var(--primary-600, #2563eb) inset;
}
.smt-plan input:focus-visible + .smt-plan-face { outline: 2px solid var(--primary-500, #3b82f6); outline-offset: 2px; }
.smt-plan--off { cursor: not-allowed; }
.smt-plan--off .smt-plan-face { background: var(--gray-50, #f9fafb); opacity: .75; }
.smt-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.smt-plan-name { font-size: 15px; font-weight: 700; color: var(--gray-900, #111827); }
.smt-plan-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #047857; white-space: nowrap; }
.smt-plan-tag--soon { background: var(--gray-100, #f3f4f6); color: var(--gray-600, #4b5563); }
.smt-plan-price { font-size: 14px; color: var(--gray-700, #374151); }
.smt-plan-price b { font-size: 16px; color: var(--gray-900, #111827); }
.smt-plan-meta { font-size: 12.5px; color: var(--gray-500, #6b7280); line-height: 1.4; }
.smt-act-trial { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--gray-700, #374151); }
.smt-act-trial b { color: #047857; }
.smt-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    margin: 0 0 8px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--gray-700, #374151);
    cursor: pointer;
}
.smt-terms input { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--primary-600, #2563eb); }
.smt-terms a { color: var(--primary-700, #1d4ed8); font-weight: 600; }
.smt-act-wait {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 12px;
    background: var(--gray-50, #f9fafb);
    font-size: 14px;
    color: var(--gray-700, #374151);
}
.smt-spin {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--gray-300, #d1d5db) !important;
    border-top-color: var(--primary-600, #2563eb) !important;
    animation: smt-rot .8s linear infinite;
}
@keyframes smt-rot { to { transform: rotate(360deg); } }
.smt-alt {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    color: var(--primary-700, #1d4ed8);
    font: inherit;
    font-size: 14px;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer;
}
.smt-alt:hover { text-decoration: underline; }
.smt-alt:focus-visible { outline: 2px solid var(--primary-500, #3b82f6); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .smt-spin { animation: none; } }
