/* ══════════════════════════════════════════
   EasyeSIM Floating Support Widget
   ══════════════════════════════════════════ */

.ceb-sw {
    --sw-primary: #F37015;
    --sw-primary-dark: #D96A10;
    --sw-dark: #0F172A;
    --sw-gray: #64748B;
    --sw-light: #F8FAFC;
    --sw-border: #E2E8F0;
    --sw-green: #22C55E;
    --sw-wa: #25D366;
    --sw-radius: 16px;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99990;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── FAB Button ── */
.ceb-sw__fab {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--sw-primary) !important;
    border: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(243, 112, 21, 0.4), 0 2px 4px rgba(0,0,0,0.1);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    z-index: 2;
    color: #fff !important;
    outline: none !important;
}
.ceb-sw__fab:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(243, 112, 21, 0.5), 0 2px 8px rgba(0,0,0,0.15);
    background: var(--sw-primary-dark) !important;
}
.ceb-sw__fab:active { transform: scale(0.96); }
.ceb-sw__fab svg { color: #fff !important; stroke: #fff; }
.ceb-sw__fab-icon--close { display: none; }
.ceb-sw--open .ceb-sw__fab-icon--chat { display: none; }
.ceb-sw--open .ceb-sw__fab-icon--close { display: block; }

/* Pulse ring */
.ceb-sw__fab::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--sw-primary);
    opacity: 0;
    animation: ceb-sw-pulse 2.5s ease-out infinite;
}
.ceb-sw--open .ceb-sw__fab::after { animation: none; opacity: 0; }

@keyframes ceb-sw-pulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ── Panel ── */
.ceb-sw__panel {
    position: absolute;
    bottom: 76px;
    right: 0;
    width: 380px;
    max-height: 560px;
    background: #fff;
    border-radius: var(--sw-radius);
    box-shadow: 0 12px 48px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.04);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    animation: ceb-sw-slideIn .25s ease-out;
}
.ceb-sw--open .ceb-sw__panel { display: flex; }

@keyframes ceb-sw-slideIn {
    from { opacity: 0; transform: scale(0.92) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ── Header ── */
.ceb-sw__header {
    background: var(--sw-primary);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.ceb-sw__header-brand {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ceb-sw__logo {
    font-family: 'League Spartan', 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #fff !important;
    letter-spacing: -0.02em;
}
.ceb-sw__logo span { color: #FCD34D !important; }
.ceb-sw__online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.85);
}
.ceb-sw__online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sw-green);
    flex-shrink: 0;
}
.ceb-sw__close {
    background: rgba(255,255,255,0.15) !important;
    border: none !important;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff !important;
    transition: background .15s;
    outline: none !important;
}
.ceb-sw__close:hover { background: rgba(255,255,255,0.25) !important; }
.ceb-sw__close svg { color: #fff !important; stroke: #fff; }

/* ── Body / Tabs ── */
.ceb-sw__body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}
.ceb-sw__tab { display: none; padding: 20px; }
.ceb-sw__tab--active { display: block; }

/* ── HOME TAB ── */
.ceb-sw__welcome { margin-bottom: 16px; }
.ceb-sw__welcome-heading {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sw-dark);
    margin: 0 0 6px;
}
.ceb-sw__welcome-text {
    font-size: 0.88rem;
    color: var(--sw-gray);
    line-height: 1.55;
    margin: 0;
}

/* WhatsApp Card */
.ceb-sw__wa-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #ECFDF5 !important;
    border: 1.5px solid #BBF7D0;
    border-radius: 12px;
    text-decoration: none !important;
    transition: border-color .15s, box-shadow .15s;
    margin-bottom: 20px;
    color: var(--sw-dark) !important;
}
.ceb-sw__wa-card:hover {
    border-color: var(--sw-wa);
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.15);
    color: var(--sw-dark) !important;
}
.ceb-sw__wa-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--sw-wa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}
.ceb-sw__wa-card-content {
    flex: 1;
    min-width: 0;
}
.ceb-sw__wa-card-content strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--sw-dark);
}
.ceb-sw__wa-card-content span {
    font-size: 0.78rem;
    color: var(--sw-gray);
}
.ceb-sw__wa-card-arrow {
    color: var(--sw-gray);
    flex-shrink: 0;
}

/* Quick FAQ links */
.ceb-sw__section-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--sw-gray);
    margin: 0 0 10px;
}
.ceb-sw__quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 14px;
    background: var(--sw-light) !important;
    border: 1px solid var(--sw-border) !important;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--sw-dark) !important;
    text-align: left;
    margin-bottom: 8px;
    transition: background .15s, border-color .15s;
    font-family: inherit;
    outline: none !important;
}
.ceb-sw__quick-link:hover {
    background: #EFF6FF !important;
    border-color: #BFDBFE !important;
}
.ceb-sw__quick-link svg { color: var(--sw-gray); flex-shrink: 0; }
.ceb-sw__quick-link span { flex: 1; }

/* ── CHAT TAB ── */
.ceb-sw__chat-intro {
    text-align: center;
    padding: 8px 0 16px;
}
.ceb-sw__chat-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sw-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}
.ceb-sw__chat-intro h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sw-dark);
    margin: 0 0 4px;
}
.ceb-sw__chat-intro p {
    font-size: 0.82rem;
    color: var(--sw-gray);
    margin: 0;
    line-height: 1.5;
}
.ceb-sw__chat-bubble {
    background: var(--sw-light);
    border: 1px solid var(--sw-border);
    border-radius: 12px 12px 12px 4px;
    padding: 14px 16px;
    margin: 0 0 16px;
}
.ceb-sw__chat-bubble p {
    font-size: 0.88rem;
    color: var(--sw-dark);
    margin: 0 0 6px;
    line-height: 1.5;
}
.ceb-sw__chat-time {
    font-size: 0.72rem;
    color: var(--sw-gray);
}

.ceb-sw__chat-input {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--sw-light);
    border: 1.5px solid var(--sw-border);
    border-radius: 12px;
    padding: 6px 6px 6px 14px;
    transition: border-color .15s;
}
.ceb-sw__chat-input:focus-within { border-color: var(--sw-wa); }
.ceb-sw__chat-field {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 0.88rem;
    font-family: inherit;
    color: var(--sw-dark) !important;
    outline: none !important;
    padding: 8px 0 !important;
    width: auto !important;
    min-width: 0;
    box-shadow: none !important;
}
.ceb-sw__chat-field::placeholder { color: var(--sw-gray); }
.ceb-sw__chat-send {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--sw-wa) !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff !important;
    flex-shrink: 0;
    transition: background .15s;
    text-decoration: none !important;
}
.ceb-sw__chat-send:hover { background: #1fbc5a !important; color: #fff !important; }
.ceb-sw__chat-send svg { color: #fff !important; fill: #fff; }

/* ── HELP TAB ── */
.ceb-sw__search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--sw-light);
    border: 1.5px solid var(--sw-border);
    border-radius: 10px;
    padding: 8px 14px;
    margin-bottom: 16px;
    transition: border-color .15s;
}
.ceb-sw__search-wrap:focus-within { border-color: var(--sw-primary); }
.ceb-sw__search-wrap svg { color: var(--sw-gray); flex-shrink: 0; }
.ceb-sw__search {
    flex: 1;
    border: none !important;
    background: transparent !important;
    font-size: 0.85rem;
    font-family: inherit;
    color: var(--sw-dark) !important;
    outline: none !important;
    padding: 2px 0 !important;
    width: auto !important;
    box-shadow: none !important;
}
.ceb-sw__search::placeholder { color: var(--sw-gray); }

.ceb-sw__faq {
    border: 1px solid var(--sw-border);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color .15s;
}
.ceb-sw__faq--open { border-color: var(--sw-primary); }
.ceb-sw__faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 12px 14px;
    background: #fff !important;
    border: none !important;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--sw-dark) !important;
    text-align: left;
    font-family: inherit;
    outline: none !important;
    transition: background .15s;
}
.ceb-sw__faq-q:hover { background: var(--sw-light) !important; }
.ceb-sw__faq-q span { flex: 1; }
.ceb-sw__faq-q svg {
    color: var(--sw-gray);
    transition: transform .2s;
    flex-shrink: 0;
}
.ceb-sw__faq--open .ceb-sw__faq-q { background: var(--sw-light) !important; }
.ceb-sw__faq--open .ceb-sw__faq-q svg { transform: rotate(180deg); color: var(--sw-primary); }
.ceb-sw__faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
}
.ceb-sw__faq--open .ceb-sw__faq-a { max-height: 300px; }
.ceb-sw__faq-a p {
    padding: 0 14px 14px;
    font-size: 0.82rem;
    color: var(--sw-gray);
    line-height: 1.6;
    margin: 0;
}
.ceb-sw__faq-empty {
    text-align: center;
    padding: 24px 0;
    color: var(--sw-gray);
    font-size: 0.88rem;
}

/* ── Bottom Nav ── */
.ceb-sw__nav {
    display: flex;
    border-top: 1px solid var(--sw-border);
    flex-shrink: 0;
    background: #fff;
}
.ceb-sw__nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 10px 4px;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    color: var(--sw-gray) !important;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: inherit;
    transition: color .15s;
    outline: none !important;
    position: relative;
}
.ceb-sw__nav-btn:hover { color: var(--sw-dark) !important; }
.ceb-sw__nav-btn--active { color: var(--sw-primary) !important; }
.ceb-sw__nav-btn--active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--sw-primary);
    border-radius: 0 0 2px 2px;
}
.ceb-sw__nav-btn svg { width: 20px; height: 20px; }
.ceb-sw__nav-btn--active svg { color: var(--sw-primary) !important; stroke: var(--sw-primary); }

/* ── Mobile ── */
@media (max-width: 767px) {
    .ceb-sw { bottom: 70px; right: 16px; }
}
@media (max-width: 480px) {
    .ceb-sw__panel {
        width: calc(100vw - 32px);
        max-height: calc(100dvh - 140px);
        right: 0;
    }
    .ceb-sw__fab { width: 54px; height: 54px; }
}
