/* Creatorz AI Chatbot — Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Variables ─────────────────────────────── */
:root {
    --cac-primary:   #6C63FF;
    --cac-secondary: #FF6584;
    --cac-font:      Inter, -apple-system, sans-serif;

    /* Light theme */
    --cac-bg:        #ffffff;
    --cac-surface:   #f7f7fc;
    --cac-border:    rgba(0,0,0,0.09);
    --cac-text:      #1a1a2e;
    --cac-muted:     #6b6b8a;
    --cac-msg-user:  var(--cac-primary);
    --cac-msg-bot:   #f0f0f9;
    --cac-input-bg:  #f0f0f9;
    --cac-shadow:    0 24px 80px rgba(108,99,255,0.22), 0 4px 24px rgba(0,0,0,0.12);
}

/* Dark theme */
.cac-theme-dark {
    --cac-bg:       #13131f;
    --cac-surface:  #1a1a2e;
    --cac-border:   rgba(255,255,255,0.08);
    --cac-text:     #e8e8f0;
    --cac-muted:    #7a7a9a;
    --cac-msg-bot:  #1e1e32;
    --cac-input-bg: #0d0d1a;
    --cac-shadow:   0 24px 80px rgba(0,0,0,0.5), 0 4px 24px rgba(108,99,255,0.2);
}

/* Auto: follow OS */
@media (prefers-color-scheme: dark) {
    .cac-theme-auto {
        --cac-bg:       #13131f;
        --cac-surface:  #1a1a2e;
        --cac-border:   rgba(255,255,255,0.08);
        --cac-text:     #e8e8f0;
        --cac-muted:    #7a7a9a;
        --cac-msg-bot:  #1e1e32;
        --cac-input-bg: #0d0d1a;
        --cac-shadow:   0 24px 80px rgba(0,0,0,0.5), 0 4px 24px rgba(108,99,255,0.2);
    }
}

/* ── Chatbot Wrap ───────────────────────────── */
.cac-chatbot-wrap {
    position: fixed;
    z-index: 999999;
    font-family: var(--cac-font), Inter, sans-serif;
    bottom: 24px;
}
.cac-position-bottom-right { right: 24px; }
.cac-position-bottom-left  { left: 24px; }

/* ── Bubble Button ──────────────────────────── */
.cac-bubble-btn {
    width: 60px; height: 60px;
    border-radius: 50%;
    border: none; cursor: pointer;
    padding: 0; position: relative;
    background: transparent;
    box-shadow: 0 8px 28px rgba(108,99,255,0.45);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
    display: flex; align-items: center; justify-content: center;
}
.cac-bubble-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(108,99,255,0.6);
}
.cac-bubble-icon { width: 60px; height: 60px; border-radius: 50%; }

/* Pulse ring */
.cac-bubble-pulse {
    position: absolute; inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(108,99,255,0.4);
    animation: cac-pulse 2s ease-out infinite;
    pointer-events: none;
}
@keyframes cac-pulse {
    0%   { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ── Chat Window ────────────────────────────── */
.cac-chat-window {
    position: absolute;
    bottom: 76px;
    width: 380px;
    max-height: 600px;
    background: var(--cac-bg);
    border: 1px solid var(--cac-border);
    border-radius: 24px;
    box-shadow: var(--cac-shadow);
    display: flex; flex-direction: column;
    overflow: hidden;
    opacity: 0; pointer-events: none;
    transform: translateY(16px) scale(.96);
    transform-origin: bottom center;
    transition: opacity .28s cubic-bezier(.4,0,.2,1),
                transform .28s cubic-bezier(.4,0,.2,1);
}
.cac-position-bottom-right .cac-chat-window { right: 0; }
.cac-position-bottom-left  .cac-chat-window { left: 0; }

.cac-chatbot-wrap.cac-open .cac-chat-window {
    opacity: 1; pointer-events: all;
    transform: translateY(0) scale(1);
}
.cac-chatbot-wrap.cac-open .cac-bubble-btn {
    transform: scale(.9);
}

/* Mobile fullscreen */
@media (max-width: 480px) {
    .cac-chatbot-wrap { bottom: 0 !important; left: 0 !important; right: 0 !important; }
    .cac-chat-window { position: fixed; bottom: 0; left: 0; right: 0; width: 100%; max-height: 92dvh; border-radius: 24px 24px 0 0; }
    .cac-bubble-btn { position: fixed; bottom: 20px; right: 20px; }
    .cac-chatbot-wrap.cac-open .cac-bubble-btn { bottom: calc(92dvh + 8px); }
}

/* ── Header ─────────────────────────────────── */
.cac-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--cac-primary) 0%, var(--cac-secondary) 100%);
    flex-shrink: 0;
}
.cac-header-left { display: flex; align-items: center; gap: 10px; }
.cac-avatar-wrap { position: relative; flex-shrink: 0; }
.cac-avatar-img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.4); object-fit: cover; }
.cac-avatar-initials {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    color: #fff; font-size: 18px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.4);
}
.cac-online-dot {
    position: absolute; bottom: 1px; right: 1px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #22c55e; border: 2px solid #fff;
}
.cac-header-info {}
.cac-bot-name { color: #fff; font-size: 15px; font-weight: 700; line-height: 1.2; }
.cac-bot-status { color: rgba(255,255,255,0.75); font-size: 11px; display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.cac-status-dot { width: 6px; height: 6px; border-radius: 50%; background: #86efac; flex-shrink: 0; }
.cac-header-actions { display: flex; gap: 6px; }
.cac-btn-icon {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.15); border: none;
    color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.cac-btn-icon:hover { background: rgba(255,255,255,0.3); }
.cac-btn-icon svg { width: 14px; height: 14px; }

/* ── Usage Bar ──────────────────────────────── */
.cac-usage-bar {
    height: 4px; background: var(--cac-border);
    position: relative; flex-shrink: 0; cursor: default;
}
.cac-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cac-primary), var(--cac-secondary));
    transition: width .6s ease;
    min-width: 2px;
}
.cac-usage-label {
    position: absolute; right: 8px; top: 6px;
    font-size: 10px; color: var(--cac-muted); white-space: nowrap;
    font-family: var(--cac-font);
}

/* ── Messages ───────────────────────────────── */
.cac-messages {
    flex: 1; overflow-y: auto; padding: 16px 14px;
    display: flex; flex-direction: column; gap: 12px;
    scroll-behavior: smooth;
}
.cac-messages::-webkit-scrollbar { width: 4px; }
.cac-messages::-webkit-scrollbar-track { background: transparent; }
.cac-messages::-webkit-scrollbar-thumb { background: var(--cac-border); border-radius: 2px; }

/* Individual message */
.cac-msg { display: flex; align-items: flex-end; gap: 8px; animation: cac-msg-in .22s ease; }
@keyframes cac-msg-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Bot message */
.cac-msg-bot { flex-direction: row; }
.cac-msg-bot .cac-msg-bubble {
    background: var(--cac-msg-bot);
    color: var(--cac-text);
    border-radius: 18px 18px 18px 4px;
    max-width: 75%;
}

/* User message */
.cac-msg-user { flex-direction: row-reverse; }
.cac-msg-user .cac-msg-bubble {
    background: linear-gradient(135deg, var(--cac-primary), color-mix(in srgb, var(--cac-primary) 70%, var(--cac-secondary)));
    color: #fff;
    border-radius: 18px 18px 4px 18px;
    max-width: 75%;
    margin-left: auto;
}

.cac-msg-bubble {
    padding: 10px 14px; font-size: 14px; line-height: 1.6;
    word-break: break-word; white-space: pre-wrap;
}
.cac-msg-bubble p { margin: 0 0 8px; }
.cac-msg-bubble p:last-child { margin: 0; }
.cac-msg-bubble code { font-family: monospace; font-size: 12px; background: rgba(0,0,0,0.1); padding: 1px 5px; border-radius: 4px; }

.cac-msg-avatar { flex-shrink: 0; }
.cac-avatar-sm {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
    color: #fff; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.cac-avatar-sm img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

.cac-msg-time {
    font-size: 10px; color: var(--cac-muted);
    margin-top: 3px; display: block; padding: 0 4px;
    align-self: flex-end; flex-shrink: 0;
    opacity: 0; transition: opacity .2s;
}
.cac-msg:hover .cac-msg-time { opacity: 1; }

/* Error message */
.cac-msg-error .cac-msg-bubble {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.2);
}

/* ── Typing Indicator ───────────────────────── */
.cac-typing-indicator {
    display: flex; align-items: center; gap: 8px;
    padding: 0 14px 6px;
    flex-shrink: 0;
}
.cac-typing-avatar .cac-avatar-sm { opacity: .7; }
.cac-typing-dots {
    background: var(--cac-msg-bot);
    border-radius: 18px 18px 18px 4px;
    padding: 12px 16px;
    display: flex; gap: 5px; align-items: center;
}
.cac-typing-dots span {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--cac-muted);
    animation: cac-dot 1.2s ease-in-out infinite;
}
.cac-typing-dots span:nth-child(2) { animation-delay: .15s; }
.cac-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes cac-dot {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* ── Input Area ─────────────────────────────── */
.cac-input-area {
    padding: 10px 14px 14px;
    border-top: 1px solid var(--cac-border);
    flex-shrink: 0;
    background: var(--cac-bg);
}
.cac-input-wrap { display: flex; gap: 8px; align-items: flex-end; }
.cac-input {
    flex: 1;
    background: var(--cac-input-bg);
    border: 1.5px solid transparent;
    border-radius: 14px;
    padding: 10px 14px;
    font-size: 14px; font-family: var(--cac-font);
    color: var(--cac-text); resize: none;
    max-height: 120px; overflow-y: auto;
    line-height: 1.5;
    transition: border-color .2s;
    outline: none;
}
.cac-input:focus { border-color: rgba(108,99,255,0.4); }
.cac-input::placeholder { color: var(--cac-muted); }

.cac-send-btn {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
    border: none; color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, opacity .2s;
    box-shadow: 0 4px 14px rgba(108,99,255,0.35);
}
.cac-send-btn:hover { transform: scale(1.07); }
.cac-send-btn:active { transform: scale(.95); }
.cac-send-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cac-send-btn svg { width: 18px; height: 18px; }

.cac-powered-by {
    text-align: center; font-size: 10px; color: var(--cac-muted);
    margin-top: 7px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.cac-powered-by a { color: var(--cac-primary); text-decoration: none; }
.cac-model-badge {
    background: rgba(108,99,255,0.12); color: var(--cac-primary);
    font-size: 9px; font-weight: 700; padding: 2px 6px;
    border-radius: 20px; letter-spacing: .5px;
}

/* ── Error display ──────────────────────────── */
.cac-error {
    background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3);
    color: #ef4444; padding: 12px 16px; border-radius: 10px;
    font-size: 13px; font-family: var(--cac-font);
}

/* ═══════════════════════════════════════════════
   PRICING PAGE
═══════════════════════════════════════════════ */
.cac-pricing-wrap {
    font-family: var(--cac-font), Inter, sans-serif;
    padding: 20px 0 60px;
    color: #1a1a2e;
}
@media (prefers-color-scheme: dark) {
    .cac-pricing-wrap { color: #e8e8f0; }
}

.cac-pricing-header { text-align: center; margin-bottom: 48px; }
.cac-pricing-title {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 900; line-height: 1.1;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, #1a1a2e 30%, #6C63FF);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 14px;
}
@media (prefers-color-scheme: dark) {
    .cac-pricing-title {
        background: linear-gradient(135deg, #e8e8f0 30%, #a89cff);
        -webkit-background-clip: text; background-clip: text;
    }
}
.cac-pricing-sub { color: #6b6b8a; font-size: 16px; max-width: 540px; margin: 0 auto; line-height: 1.6; }

/* Plans Grid */
.cac-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 16px;
}
@media (max-width: 820px) { .cac-plans-grid { grid-template-columns: 1fr; max-width: 440px; } }

.cac-plan-card {
    background: #fff;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 22px;
    padding: 30px 26px 28px;
    position: relative;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    display: flex; flex-direction: column;
}
.cac-plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(108,99,255,0.14);
    border-color: rgba(108,99,255,0.25);
}
.cac-plan-popular {
    border-color: var(--cac-primary) !important;
    box-shadow: 0 8px 40px rgba(108,99,255,0.2);
    transform: translateY(-6px) scale(1.02);
}
.cac-plan-popular:hover { transform: translateY(-10px) scale(1.02); }

@media (prefers-color-scheme: dark) {
    .cac-plan-card { background: #1a1a2e; border-color: rgba(255,255,255,0.07); }
    .cac-plan-card:hover { border-color: rgba(108,99,255,0.35); }
    .cac-plan-popular { border-color: rgba(108,99,255,0.6) !important; }
}

/* Popular badge */
.cac-popular-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary));
    color: #fff; font-size: 11px; font-weight: 700;
    padding: 5px 14px; border-radius: 20px;
    display: flex; align-items: center; gap: 5px;
    white-space: nowrap; letter-spacing: .3px;
}
.cac-popular-badge svg { width: 13px; height: 13px; fill: #fff; }

/* Plan header */
.cac-plan-header { text-align: center; margin-bottom: 22px; }
.cac-plan-icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.cac-plan-icon svg { width: 28px; height: 28px; }
.cac-plan-icon-starter  { background: rgba(108,99,255,0.12); color: var(--cac-primary); }
.cac-plan-icon-pro      { background: rgba(255,101,132,0.12); color: var(--cac-secondary); }
.cac-plan-icon-business { background: rgba(250,204,21,0.12); color: #d97706; }

.cac-plan-name { font-size: 18px; font-weight: 800; color: inherit; margin: 0 0 12px; }
.cac-plan-price { display: flex; align-items: flex-end; justify-content: center; gap: 3px; line-height: 1; margin-bottom: 12px; }
.cac-currency { font-size: 16px; font-weight: 700; color: #6b6b8a; padding-bottom: 6px; }
.cac-amount { font-size: 48px; font-weight: 900; letter-spacing: -2px; color: inherit; }
.cac-period { font-size: 14px; color: #6b6b8a; padding-bottom: 6px; }

.cac-token-highlight {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(108,99,255,0.1); color: var(--cac-primary);
    font-size: 12px; font-weight: 700; padding: 5px 12px;
    border-radius: 20px; border: 1px solid rgba(108,99,255,0.2);
}
.cac-token-highlight svg { width: 14px; height: 14px; }

/* Features */
.cac-features-list { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.cac-features-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13.5px; color: #4a4a6a; padding: 7px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05); line-height: 1.4;
}
.cac-features-list li:last-child { border-bottom: none; }
@media (prefers-color-scheme: dark) {
    .cac-features-list li { color: #aaaac0; border-bottom-color: rgba(255,255,255,0.05); }
}
.cac-check { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }

/* Buy button */
.cac-buy-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; padding: 13px 20px;
    border-radius: 14px; border: 1.5px solid rgba(108,99,255,0.3);
    background: rgba(108,99,255,0.07);
    color: var(--cac-primary); font-size: 14px; font-weight: 700;
    cursor: pointer; font-family: var(--cac-font);
    transition: all .2s; letter-spacing: .2px;
}
.cac-buy-btn:hover {
    background: rgba(108,99,255,0.15);
    border-color: var(--cac-primary);
    transform: translateY(-1px);
}
.cac-buy-btn svg { width: 16px; height: 16px; }

.cac-buy-primary {
    background: linear-gradient(135deg, var(--cac-primary), var(--cac-secondary)) !important;
    color: #fff !important; border-color: transparent !important;
    box-shadow: 0 6px 24px rgba(108,99,255,0.35);
}
.cac-buy-primary:hover {
    box-shadow: 0 10px 32px rgba(108,99,255,0.5) !important;
    transform: translateY(-2px) !important;
}

/* ── Payment Modal ──────────────────────────── */
.cac-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(10,10,20,0.7);
    backdrop-filter: blur(6px);
    z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    animation: cac-fade-in .2s ease;
}
@keyframes cac-fade-in { from { opacity: 0; } to { opacity: 1; } }

.cac-modal {
    background: #fff;
    border-radius: 24px;
    width: 100%; max-width: 460px;
    position: relative;
    padding: 28px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.2);
    animation: cac-slide-up .25s cubic-bezier(.4,0,.2,1);
}
@keyframes cac-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-color-scheme: dark) {
    .cac-modal { background: #1a1a2e; color: #e8e8f0; }
}

.cac-modal-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(0,0,0,0.06); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; font-size: 20px; line-height: 1;
    color: #6b6b8a; display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.cac-modal-close:hover { background: rgba(0,0,0,0.12); }

.cac-modal-header {
    display: flex; align-items: center; gap: 14px; margin-bottom: 22px;
}
.cac-modal-logo svg { width: 40px; height: 40px; }
.cac-modal-title { font-size: 20px; font-weight: 800; margin: 0; color: inherit; }
.cac-modal-plan-name { font-size: 13px; color: var(--cac-primary); font-weight: 600; margin: 0; }

/* Form inside modal */
.cac-modal .cac-form-group { margin-bottom: 16px; }
.cac-modal .cac-form-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #6b6b8a; margin-bottom: 6px; }
.cac-modal .cac-form-group input {
    width: 100%; border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px; padding: 11px 14px; font-size: 14px;
    font-family: var(--cac-font); box-sizing: border-box;
    transition: border-color .2s; outline: none;
    color: #1a1a2e;
}
.cac-modal .cac-form-group input:focus { border-color: var(--cac-primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
.cac-modal .cac-form-group small { font-size: 11px; color: #9b9bbb; display: block; margin-top: 4px; }
@media (prefers-color-scheme: dark) {
    .cac-modal .cac-form-group input { background: #0d0d1a; border-color: rgba(255,255,255,0.1); color: #e8e8f0; }
}

.cac-price-summary {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(108,99,255,0.07);
    border: 1px solid rgba(108,99,255,0.15);
    border-radius: 10px; padding: 12px 16px; margin: 20px 0;
    font-size: 14px; color: #6b6b8a;
}
.cac-price-summary strong { font-size: 20px; font-weight: 800; color: var(--cac-primary); }

.cac-pay-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 20px;
    background: linear-gradient(135deg, #00c896, #00a87a);
    color: #fff; border: none; border-radius: 14px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    font-family: var(--cac-font);
    transition: transform .2s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(0,200,150,0.3);
}
.cac-pay-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,200,150,0.4); }
.cac-pay-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.cac-pay-btn svg { width: 18px; height: 18px; }

.cac-secure-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11px; color: #9b9bbb; margin: 12px 0 0; text-align: center;
}
.cac-secure-note svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Success state */
.cac-modal-success { text-align: center; padding: 10px 0; }
.cac-success-icon { margin-bottom: 20px; }
.cac-success-icon svg { width: 60px; height: 60px; }
.cac-modal-success h3 { font-size: 22px; font-weight: 800; margin: 0 0 10px; color: inherit; }
.cac-modal-success p { font-size: 14px; color: #6b6b8a; line-height: 1.6; margin-bottom: 18px; }
.cac-license-display {
    display: flex; align-items: center; gap: 10px;
    background: rgba(108,99,255,0.07); border: 1px dashed rgba(108,99,255,0.3);
    border-radius: 12px; padding: 12px 14px;
}
.cac-license-code {
    font-family: monospace; font-size: 13px; color: var(--cac-primary);
    font-weight: 700; word-break: break-all; flex: 1; text-align: left;
}
.cac-copy-btn {
    background: rgba(108,99,255,0.12); border: none;
    width: 34px; height: 34px; border-radius: 8px;
    color: var(--cac-primary); cursor: pointer; display: flex;
    align-items: center; justify-content: center; flex-shrink: 0; transition: background .2s;
}
.cac-copy-btn:hover { background: rgba(108,99,255,0.25); }
.cac-copy-btn svg { width: 16px; height: 16px; }

/* ═══════════════════════════════════════════════
   BOT CONFIG PANEL (Shortcode)
═══════════════════════════════════════════════ */
.cac-config-panel {
    font-family: var(--cac-font), Inter, sans-serif;
    max-width: 720px; margin: 0 auto;
}
.cac-config-auth {
    display: flex; align-items: center; justify-content: center;
    min-height: 360px;
}
.cac-config-auth-inner {
    text-align: center; max-width: 380px; width: 100%;
    background: #fff; border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 22px; padding: 40px 32px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
@media (prefers-color-scheme: dark) {
    .cac-config-auth-inner { background: #1a1a2e; border-color: rgba(255,255,255,0.07); }
}
.cac-config-logo { margin-bottom: 20px; }
.cac-config-logo svg { width: 52px; height: 52px; }
.cac-config-auth-inner h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: inherit; }
.cac-config-auth-inner p { font-size: 14px; color: #6b6b8a; margin: 0 0 24px; }
.cac-config-auth-inner input {
    width: 100%; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 10px;
    padding: 11px 14px; font-size: 13px; font-family: var(--cac-font);
    box-sizing: border-box; margin-bottom: 12px; outline: none;
    transition: border-color .2s; text-align: center; letter-spacing: 1px;
    color: #1a1a2e;
}
.cac-config-auth-inner input:focus { border-color: var(--cac-primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
.cac-config-msg { font-size: 13px; margin-top: 10px; min-height: 20px; }
.cac-config-msg.error { color: #ef4444; }
.cac-config-msg.success { color: #22c55e; }

.cac-btn-primary.cac-config-btn {
    width: 100%; justify-content: center; padding: 12px;
    font-size: 14px; border-radius: 12px;
}

/* Config form */
.cac-config-form {
    background: #fff; border: 1.5px solid rgba(0,0,0,0.07);
    border-radius: 22px; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}
@media (prefers-color-scheme: dark) {
    .cac-config-form { background: #1a1a2e; border-color: rgba(255,255,255,0.07); }
}

.cac-config-tabs {
    display: flex; border-bottom: 1px solid rgba(0,0,0,0.07); overflow-x: auto;
    scrollbar-width: none; padding: 0 6px;
}
.cac-config-tabs::-webkit-scrollbar { display: none; }
.cac-config-tab {
    display: flex; align-items: center; gap: 7px;
    padding: 14px 18px; font-size: 13px; font-weight: 600;
    color: #6b6b8a; border: none; background: transparent; cursor: pointer;
    border-bottom: 2px solid transparent; white-space: nowrap;
    font-family: var(--cac-font); transition: color .2s;
}
.cac-config-tab svg { width: 15px; height: 15px; }
.cac-config-tab.active { color: var(--cac-primary); border-bottom-color: var(--cac-primary); }
.cac-config-tab:hover { color: var(--cac-primary); }

.cac-config-tab-pane { display: none; padding: 24px; }
.cac-config-tab-pane.active { display: block; }

.cac-config-form .cac-form-group { margin-bottom: 18px; }
.cac-config-form .cac-form-group label {
    display: block; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; color: #6b6b8a; margin-bottom: 7px;
}
.cac-config-form input[type="text"],
.cac-config-form input[type="url"],
.cac-config-form select,
.cac-config-form textarea {
    width: 100%; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 10px;
    padding: 10px 14px; font-size: 14px; font-family: var(--cac-font);
    box-sizing: border-box; outline: none; transition: border-color .2s;
    color: #1a1a2e;
}
.cac-config-form input:focus,
.cac-config-form select:focus,
.cac-config-form textarea:focus { border-color: var(--cac-primary); box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
@media (prefers-color-scheme: dark) {
    .cac-config-form input, .cac-config-form select, .cac-config-form textarea {
        background: #0d0d1a; border-color: rgba(255,255,255,0.1); color: #e8e8f0;
    }
}
.cac-config-form textarea { resize: vertical; min-height: 80px; }

/* Color pickers row */
.cac-color-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cac-color-picker-wrap { display: flex; align-items: center; gap: 10px; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 10px; padding: 8px 12px; }
.cac-color-picker-wrap input[type="color"] { width: 36px; height: 36px; border: none; padding: 0; border-radius: 8px; cursor: pointer; }
.cac-color-picker-wrap input[type="text"] { border: none !important; box-shadow: none !important; padding: 0 !important; width: 80px !important; font-family: monospace; font-size: 13px; }

/* Radios / segmented controls */
.cac-seg-control { display: flex; border: 1.5px solid rgba(0,0,0,0.1); border-radius: 10px; overflow: hidden; }
.cac-seg-option { flex: 1; }
.cac-seg-option input { display: none; }
.cac-seg-option label { display: block; text-align: center; padding: 9px 8px; font-size: 12px; font-weight: 600; color: #6b6b8a; cursor: pointer; transition: background .2s, color .2s; }
.cac-seg-option input:checked + label { background: var(--cac-primary); color: #fff; }

/* Preview pane */
.cac-preview-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #9b9bbb; margin-bottom: 12px; }
.cac-live-preview { border: 1.5px solid rgba(0,0,0,0.08); border-radius: 16px; overflow: hidden; height: 260px; position: relative; background: #f5f5fa; }

/* Save button */
.cac-config-save-wrap { padding: 0 24px 24px; display: flex; align-items: center; gap: 14px; border-top: 1px solid rgba(0,0,0,0.05); padding-top: 18px; }
.cac-config-save-msg { font-size: 13px; }
.cac-config-save-msg.success { color: #22c55e; }
.cac-config-save-msg.error { color: #ef4444; }

/* Pro/Business lock */
.cac-locked-field { position: relative; }
.cac-lock-overlay {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: #6b6b8a; gap: 6px; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .cac-lock-overlay { background: rgba(13,13,26,0.6); } }
.cac-lock-overlay svg { width: 14px; height: 14px; }
