/* ListingCraft AI — listingcraft.css v1.8.2 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;600;700&family=Roboto+Mono:wght@400;500&display=swap');

/* ── Reset inside root ────────────────────────────────────────── */
#lca-root, #lca-root * {
    font-family: 'Roboto', sans-serif !important;
    box-sizing: border-box;
}
.elementor-widget-container #lca-root,
.elementor-widget-container #lca-root * { visibility:visible!important; opacity:1!important; }
.elementor-widget-shortcode #lca-root { width:100%!important; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════════════ */
.lca-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: linear-gradient(135deg, #0a1628 0%, #1a2e44 100%) !important;
    border-bottom: 3px solid #f47c20 !important;
    padding: 12px 20px !important;
    border-radius: 12px 12px 0 0 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.lca-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lca-header-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #fff !important;
    letter-spacing: -0.3px;
}
.lca-header-ai {
    color: #f47c20;
    font-style: italic;
}

/* Stat pills */
/* .lca-header-stats removed in v1.8.0 — no stat pills rendered */
.lca-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}
.lca-stat-label { font-weight: 400; font-size: 11px; opacity: .8; }
.lca-stat-used    { background: rgba(34,197,94,.15);  border-color: rgba(34,197,94,.35);  color: #4ade80; }
.lca-stat-credits { background: rgba(244,124,32,.15); border-color: rgba(244,124,32,.35); color: #f47c20; }
.lca-stat-history { background: rgba(99,102,241,.15); border-color: rgba(99,102,241,.35); color: #a5b4fc; }
.lca-stat-user    { background: rgba(255,255,255,.08);border-color: rgba(255,255,255,.15);color: #cbd5e1; }

/* Header actions */
.lca-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lca-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: rgba(244,124,32,.2);
    border: 1px solid rgba(244,124,32,.5);
    color: #f47c20;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}
.lca-btn-new:hover { background: rgba(244,124,32,.35); }

.lca-history-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.lca-history-select {
    background: rgba(255,255,255,.08) !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255,255,255,.15) !important;
    padding: 6px 10px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    max-width: 180px;
}
.lca-history-select option { background: #1a2e44; color: #fff; }
.lca-history-select:focus { outline:none!important; border-color: #f47c20!important; }

.lca-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    color: #94a3b8;
    border-radius: 7px;
    cursor: pointer;
    transition: all .2s;
}
.lca-btn-icon:hover { background: rgba(244,124,32,.2); border-color: #f47c20; color: #f47c20; }

/* ═══════════════════════════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════════════════════════ */
/* ── Force full width inside any theme/page-builder wrapper ── */
#lca-root { width:100%!important; max-width:100%!important; padding:0; background:transparent; display:block!important; }
.entry-content #lca-root,
.elementor-widget-container #lca-root,
.elementor-widget-shortcode #lca-root,
.wp-block-shortcode #lca-root,
.page-content #lca-root,
.post-content #lca-root,
main #lca-root { width:100%!important; max-width:none!important; }
/* Ensure the gate root also stretches */
#lca-gate-root { width:100%!important; max-width:100%!important; }

.lca-main-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 20px !important;
    align-items: flex-start !important;
    width: 100% !important;
    padding: 20px 0 0 !important;
    box-sizing: border-box !important;
}
.lca-form-col {
    flex: 0 0 380px !important;
    max-width: 380px !important;
    min-width: 300px !important;
    display: block !important;
}
.lca-output-col {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

/* ═══════════════════════════════════════════════════════════════
   FORM CARD
═══════════════════════════════════════════════════════════════ */
.lca-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.lca-section-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0a1628 !important;
    margin: 0 0 14px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #f47c20 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
}

/* Fields */
.lca-field { margin-bottom: 12px; }
.lca-field-row { display:flex; gap:10px; margin-bottom:12px; }
.lca-field-row .lca-field { flex:1; margin-bottom:0; }
.lca-field label {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    margin-bottom: 4px !important;
}
.lca-label-hint { font-size:10px!important;font-weight:400!important;color:#94a3b8!important;text-transform:none!important;letter-spacing:0!important; }

.lca-field input[type="text"],
.lca-field textarea {
    width: 100% !important;
    padding: 8px 11px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    background: #f8fafc !important;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}
.lca-field input[type="text"]:focus,
.lca-field textarea:focus {
    outline: none !important;
    border-color: #f47c20 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(244,124,32,.12) !important;
}
.lca-field textarea { font-family:'Roboto Mono',monospace!important; font-size:12px!important; min-height:80px; }

/* Tooltip */
.lca-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    cursor: help;
    position: relative;
    text-transform: none;
    letter-spacing: 0;
    flex-shrink: 0;
}
.lca-tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a1628;
    color: #e2e8f0;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 400;
    width: 220px;
    text-align: left;
    white-space: normal;
    line-height: 1.5;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
}
.lca-tooltip:hover::after { opacity: 1; }

/* CSV button */
.lca-csv-btn {
    display: inline-flex; align-items: center; gap: 3px; margin-left: auto;
    font-size: 10px!important; font-weight: 500!important; color: #0a1628!important;
    background: #e2e8f0; padding: 2px 7px; border-radius: 4px; cursor: pointer;
    transition: background .2s; text-transform: none!important; letter-spacing: 0!important;
}
.lca-csv-btn:hover { background: #cbd5e1; }

/* Add KW button */
.lca-add-kw-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; margin-top: 6px; padding: 8px 14px;
    font-size: 13px; font-weight: 600; color: #1e40af;
    background: #eff6ff; border: 1px solid #93c5fd;
    border-radius: 7px; cursor: pointer; transition: background .2s;
}
.lca-add-kw-btn:hover { background: #dbeafe; border-color: #3b82f6; }

/* ═══════════════════════════════════════════════════════════════
   KEYWORD TARGETING PANEL
═══════════════════════════════════════════════════════════════ */
.lca-kw-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}
.lca-kw-panel-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 4px;
    font-size: 13px; font-weight: 700; color: #0a1628;
}
.lca-kw-limits { display: flex; gap: 6px; }
.lca-kw-limit-badge {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 12px;
}
.lca-t-badge { background: #fef3c7; color: #92400e; }
.lca-b-badge { background: #ccfbf1; color: #065f46; }
.lca-d-badge { background: #ede9fe; color: #4c1d95; }
.lca-limit-reached { box-shadow: 0 0 0 2px currentColor; }

.lca-kw-panel-hint { font-size: 11px; color: #94a3b8; margin-bottom: 10px; line-height: 1.4; }

.lca-kw-row {
    display: flex; align-items: center; gap: 6px;
    padding: 5px 0; border-bottom: 1px solid #e9eef5;
}
.lca-kw-row:last-child { border-bottom: none; }
.lca-kw-label {
    flex: 1; font-size: 12px; color: #334155;
    font-family: 'Roboto Mono', monospace !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Usage badge inside row */
.lca-kw-row-usage { font-size: 11px; font-weight: 700; min-width: 24px; text-align: center; }
.lca-kw-used   { color: #16a34a; }
.lca-kw-unused { color: #dc2626; }

.lca-kw-toggle {
    padding: 3px 8px; border-radius: 5px; border: 1px solid #cbd5e1;
    background: #f1f5f9; color: #64748b;
    font-size: 11px; font-weight: 700; cursor: pointer;
    transition: all .15s; min-width: 28px;
}
.lca-kw-toggle.lca-kw-t.active { background:#fef3c7; border-color:#f59e0b; color:#92400e; }
.lca-kw-toggle.lca-kw-b.active { background:#ccfbf1; border-color:#14b8a6; color:#065f46; }
.lca-kw-toggle.lca-kw-d.active { background:#ede9fe; border-color:#8b5cf6; color:#4c1d95; }
.lca-kw-toggle:hover { border-color: #94a3b8; }

/* ═══════════════════════════════════════════════════════════════
   ERROR / GENERATE / CREDIT WALL
═══════════════════════════════════════════════════════════════ */
.lca-error-box {
    background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c;
    padding: 9px 13px; border-radius: 7px; font-size: 13px; margin-bottom: 10px;
}
.lca-generate-btn {
    width: 100%; padding: 13px; background: #f47c20; color: #fff;
    border: none; border-radius: 8px; font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 8px; transition: background .2s, transform .1s;
}
.lca-generate-btn:hover:not(:disabled) { background: #e36b10; }
.lca-generate-btn:active:not(:disabled){ transform: scale(.98); }
.lca-generate-btn:disabled             { opacity:.6; cursor:not-allowed; }

.lca-credit-wall { margin-top:12px; background:#0a1628; border-radius:8px; padding:14px; color:#fff; }
.lca-wall-title  { font-size:14px; font-weight:700; margin-bottom:10px; color:#f47c20; }
.lca-packages    { display:flex; flex-direction:column; gap:7px; }
.lca-package-btn {
    display: flex; align-items: center; justify-content: space-between;
    background: #1a2e44; border: 1px solid #2a4060; border-radius: 7px;
    padding: 9px 13px; color: #fff; text-decoration: none; font-size: 13px;
    transition: border-color .2s; position: relative;
}
.lca-package-btn:hover { border-color:#f47c20; }
.lca-pkg-tag { position:absolute; top:-7px; right:10px; background:#f47c20; color:#fff; font-size:10px; font-weight:700; padding:1px 7px; border-radius:10px; }
.lca-pkg-price { color:#f47c20; font-weight:700; }

/* ═══════════════════════════════════════════════════════════════
   OUTPUT AREA
═══════════════════════════════════════════════════════════════ */
/* Download actions bar */
.lca-output-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 4px;
}
.lca-btn-download {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 7px; border: none;
    background: #0a1628; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.lca-btn-download:hover     { background: #1a2e44; }
.lca-btn-download-xl        { background: #16a34a; }
.lca-btn-download-xl:hover  { background: #15803d; }

/* Output cards */
.lca-output-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0a1628;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.lca-output-header {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
}
.lca-output-label {
    font-size: 11px; font-weight: 700; color: #0a1628;
    text-transform: uppercase; letter-spacing: 0.7px; flex: 1;
}
.lca-char-count {
    font-size: 11px; font-weight: 600;
    font-family: 'Roboto Mono', monospace !important;
    color: #94a3b8; min-width: 55px; text-align: right;
}
.lca-chars-ok   { color:#16a34a!important; }
.lca-chars-warn { color:#d97706!important; }
.lca-chars-over { color:#dc2626!important; }

.lca-output-body {
    padding: 12px 14px;
    font-size: 13px; color: #1e293b; line-height: 1.65;
    min-height: 52px; word-break: break-word;
}
#lca-card-description .lca-output-body { min-height: 110px; }
#lca-card-backend     .lca-output-body { min-height: 52px; font-family:'Roboto Mono',monospace!important; font-size:12px; }
.lca-output-body.lca-loading { background:#f8fafc; display:flex; align-items:center; justify-content:center; }

/* Spinners */
.lca-spinner {
    display:inline-block; width:20px; height:20px;
    border:2px solid #e2e8f0; border-top-color:#f47c20;
    border-radius:50%; animation:lcaSpin .7s linear infinite;
}
.lca-spinner-inline {
    display:inline-block; width:14px; height:14px;
    border:2px solid rgba(255,255,255,.4); border-top-color:#fff;
    border-radius:50%; animation:lcaSpin .7s linear infinite; vertical-align:middle;
}
@keyframes lcaSpin { to { transform:rotate(360deg); } }

/* Copy / Regen buttons */
.lca-copy-btn, .lca-regen-btn {
    display:inline-flex; align-items:center; gap:3px;
    padding:3px 8px; border-radius:5px; border:1px solid #e2e8f0;
    background:#fff; font-size:11px; font-weight:500; color:#475569;
    cursor:pointer; transition:all .15s; white-space:nowrap;
}
.lca-copy-btn:hover  { background:#f0fdf4; border-color:#86efac; color:#15803d; }
.lca-regen-btn:hover { background:#fffbeb; border-color:#fcd34d; color:#92400e; }

/* Keyword highlights */
mark.lca-hl-title   { background:#fef3c7; color:#92400e; padding:0 2px; border-radius:2px; }
mark.lca-hl-bullets { background:#ccfbf1; color:#065f46; padding:0 2px; border-radius:2px; }
mark.lca-hl-desc    { background:#ede9fe; color:#4c1d95; padding:0 2px; border-radius:2px; }

.lca-err-inline { color:#dc2626; font-size:12px; font-style:italic; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width: 820px) {
    .lca-main-layout { flex-direction:column!important; }
    .lca-form-col { flex:none!important; max-width:100%!important; min-width:0!important; width:100%!important; }
    .lca-field-row { flex-direction:column; }
    .lca-header { border-radius:8px 8px 0 0!important; }
    .lca-header-stats { display:none; } /* hide on very small — shown in pills only */
}

/* ═══ HISTORY PANEL (dropdown) ════════════════════════════════ */
.lca-history-trigger {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; cursor: pointer;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
    color: #cbd5e1; border-radius: 7px; font-size: 12px; font-weight: 600;
    transition: background .2s; position: relative; user-select: none;
}
.lca-history-trigger:hover { background: rgba(255,255,255,.15); }

.lca-history-wrap { position: relative; }

.lca-history-panel {
    position: absolute; top: calc(100% + 6px); right: 0;
    background: #0f2035; border: 1px solid #2a4060;
    border-radius: 10px; width: 340px; z-index: 9999;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
    overflow: hidden;
}
.lca-history-panel-title {
    padding: 10px 14px; font-size: 11px; font-weight: 700;
    color: #64748b; text-transform: uppercase; letter-spacing: .6px;
    border-bottom: 1px solid #1e3550;
}
.lca-history-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; border-bottom: 1px solid #1a2e44;
    gap: 8px; transition: background .15s;
}
.lca-history-row:last-child { border-bottom: none; }
.lca-history-row:hover { background: rgba(244,124,32,.08); }
.lca-history-row-info { flex: 1; min-width: 0; }
.lca-history-sku  { display:block; font-size:13px; font-weight:600; color:#e2e8f0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.lca-history-time { display:block; font-size:11px; color:#64748b; margin-top:1px; }
.lca-history-row-actions { display:flex; gap:4px; flex-shrink:0; }
.lca-hist-restore-btn,
.lca-hist-dl-btn,
.lca-hist-dl-csv-btn {
    display:inline-flex; align-items:center; gap:3px;
    padding:4px 8px; border-radius:5px; border:1px solid #2a4060;
    background:#1a2e44; color:#94a3b8; font-size:11px; font-weight:500;
    cursor:pointer; transition:all .15s; white-space:nowrap;
}
.lca-hist-restore-btn:hover { background:#1e3a5f; border-color:#3b82f6; color:#93c5fd; }
.lca-hist-dl-btn:hover      { background:#1e3a5f; border-color:#f47c20; color:#f47c20; }
.lca-hist-dl-csv-btn:hover  { background:#1e3a5f; border-color:#16a34a; color:#4ade80; }

/* ═══ BULLET FORMATTING ════════════════════════════════════════ */
/* Bold CAPS label inside bullets */
.lca-output-body strong {
    font-weight: 700 !important;
    color: #0a1628 !important;
}

/* ═══ KW USAGE T/B/D badges ════════════════════════════════════ */
.lca-kw-row-usage { display:inline-flex; align-items:center; gap:3px; font-size:10px; font-weight:700; }
.lca-usage-t { background:#fef3c7; color:#92400e; padding:1px 5px; border-radius:4px; }
.lca-usage-b { background:#ccfbf1; color:#065f46; padding:1px 5px; border-radius:4px; }
.lca-usage-d { background:#ede9fe; color:#4c1d95; padding:1px 5px; border-radius:4px; }
.lca-usage-miss { color:#94a3b8; font-size:10px; }

/* ═══ BOTTOM DOWNLOAD BAR ══════════════════════════════════════ */
.lca-output-actions-bottom {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.lca-download-label {
    font-size: 13px; font-weight: 600; color: #475569; flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   HISTORY DROPDOWN PANEL
═══════════════════════════════════════════════════════════════ */
.lca-history-dropdown-wrap {
    position: relative;
}
.lca-btn-history {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2); color: #cbd5e1;
    border-radius: 7px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .2s;
}
.lca-btn-history:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.35); }
.lca-history-count {
    background: #f47c20; color: #fff; font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 10px; margin-left: 2px;
}
.lca-history-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 340px; background: #1a2e44;
    border: 1px solid #2a4060; border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 9999; overflow: hidden;
}
.lca-history-panel-title {
    padding: 10px 14px; font-size: 11px; font-weight: 700;
    color: #64748b; text-transform: uppercase; letter-spacing: 0.7px;
    border-bottom: 1px solid #2a4060; background: #152336;
}
.lca-hist-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 12px; border-bottom: 1px solid #1e3550;
    gap: 8px;
}
.lca-hist-item:last-child { border-bottom: none; }
.lca-hist-item:hover { background: rgba(244,124,32,.08); }
.lca-hist-item-info { flex: 1; min-width: 0; }
.lca-hist-item-label {
    display: block; font-size: 13px; font-weight: 600; color: #e2e8f0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: 'Roboto Mono', monospace !important;
}
.lca-hist-item-time { font-size: 11px; color: #64748b; }
.lca-hist-item-actions { display: flex; gap: 4px; flex-shrink: 0; }
.lca-hist-restore-btn,
.lca-hist-dl-btn,
.lca-hist-dl-csv-btn {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 4px 8px; border-radius: 5px; border: 1px solid #2a4060;
    background: #152336; color: #94a3b8; font-size: 11px; font-weight: 500;
    cursor: pointer; transition: all .15s; white-space: nowrap;
}
.lca-hist-restore-btn:hover { background: #1e3550; border-color: #f47c20; color: #f47c20; }
.lca-hist-dl-btn:hover      { background: #1e3550; border-color: #22c55e; color: #22c55e; }
.lca-hist-dl-csv-btn:hover  { background: #1e3550; border-color: #16a34a; color: #16a34a; }

/* ─── Download bars ──────────────────────────────────────────── */
.lca-output-actions { display:flex; gap:8px; }
.lca-output-actions-bottom { padding-top: 4px; border-top: 1px solid #e2e8f0; margin-top: 4px; }
.lca-btn-download {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 7px; border: none;
    background: #0a1628; color: #fff; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: background .2s;
}
.lca-btn-download:hover    { background: #1a2e44; }
.lca-btn-download-csv      { background: #15803d; }
.lca-btn-download-csv:hover{ background: #166534; }

/* ─── Bullet body formatting ─────────────────────────────────── */
.lca-bullet-body strong {
    font-weight: 700 !important;
    color: #0a1628 !important;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ─── KW usage badges in panel ───────────────────────────────── */
.lca-kw-row-usage { font-size: 10px; font-weight: 600; display:flex; gap:3px; flex-shrink:0; }
.lca-usage-t { background:#fef3c7; color:#92400e; padding:1px 5px; border-radius:8px; white-space:nowrap; }
.lca-usage-b { background:#ccfbf1; color:#065f46; padding:1px 5px; border-radius:8px; white-space:nowrap; }
.lca-usage-d { background:#ede9fe; color:#4c1d95; padding:1px 5px; border-radius:8px; white-space:nowrap; }
.lca-usage-miss { color:#94a3b8; font-size:10px; }

/* ─── Credit wall redesign ───────────────────────────────────── */
.lca-credit-wall {
    margin-top: 14px;
    background: linear-gradient(135deg, #0a1628 0%, #1a2e44 100%);
    border: 1px solid rgba(244,124,32,.3);
    border-radius: 10px;
    padding: 16px;
    color: #fff;
}
.lca-wall-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #f47c20;
    margin-bottom: 4px;
}
.lca-wall-sub {
    font-size: 12px;
    color: #64748b;
    margin: 0 0 12px;
}
.lca-packages { display: flex; flex-direction: column; gap: 8px; }
.lca-package-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #fff;
    text-decoration: none !important;
    font-size: 13px;
    transition: all .2s;
    position: relative;
    cursor: pointer;
}
.lca-package-btn:hover {
    background: rgba(244,124,32,.15);
    border-color: rgba(244,124,32,.5);
    transform: translateY(-1px);
}
.lca-pkg-tag {
    position: absolute;
    top: -8px; right: 10px;
    background: #f47c20; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 8px; border-radius: 10px;
}
.lca-pkg-info { display: flex; flex-direction: column; gap: 2px; }
.lca-pkg-label { font-size: 14px; font-weight: 700; color: #fff; }
.lca-pkg-price { font-size: 15px; font-weight: 800; color: #f47c20; }
.lca-pkg-cta {
    font-size: 12px; font-weight: 600; color: #94a3b8;
    white-space: nowrap; margin-left: 8px;
}
.lca-package-btn:hover .lca-pkg-cta { color: #f47c20; }

/* ─── Description over-limit warning ────────────────────────── */
#lca-card-description .lca-output-header .lca-chars-over::after {
    content: ' ⚠ exceeds 2000';
    font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   PRICING BANNER
═══════════════════════════════════════════════════════════════ */
.lca-pricing-banner {
    border-radius: 0 0 12px 12px;
    padding: 16px 20px 20px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    border-top: none;
}
.lca-banner-empty {
    background: linear-gradient(135deg, #1a0a00 0%, #2d1200 100%);
    border-color: rgba(244,124,32,.4);
}
.lca-banner-low {
    background: linear-gradient(135deg, #1a1500 0%, #2d2200 100%);
    border-color: rgba(234,179,8,.3);
}
.lca-banner-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 10px 14px;
    border-radius: 8px;
}
.lca-banner-empty .lca-banner-msg { color: #fca5a5; background: rgba(239,68,68,.1); }
.lca-banner-low  .lca-banner-msg { color: #fde68a; background: rgba(234,179,8,.1); }

/* Pricing table */
.lca-pricing-table {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.lca-price-card {
    flex: 1;
    min-width: 180px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color .2s, transform .2s;
}
.lca-price-card:hover { border-color: rgba(244,124,32,.5); transform: translateY(-2px); }
.lca-price-card-featured {
    border-color: #f47c20 !important;
    background: rgba(244,124,32,.1) !important;
}
.lca-price-badge {
    position: absolute;
    top: -10px; left: 50%;
    transform: translateX(-50%);
    background: #f47c20; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 12px; border-radius: 10px;
    white-space: nowrap;
}
.lca-price-label { font-size: 13px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.5px; }
.lca-price-amount { font-size: 26px; font-weight: 800; color: #fff; line-height: 1; }
.lca-price-credits { font-size: 12px; color: #f47c20; font-weight: 600; }
.lca-price-desc { font-size: 12px; color: #64748b; margin-top: 2px; }
.lca-price-features { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 5px; }
.lca-price-features li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #94a3b8; }
.lca-price-features li svg { stroke: #22c55e; flex-shrink: 0; }
.lca-price-cta {
    display: block;
    margin-top: auto;
    padding-top: 12px;
    text-align: center;
    background: #f47c20;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 7px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    transition: background .2s;
}
.lca-price-cta:hover { background: #e36b10; }

/* ═══ INLINE CREDIT WARNING ═══════════════════════════════════ */
.lca-inline-credit-warn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 7px;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #fca5a5;
}
.lca-inline-scroll-btn {
    margin-left: auto;
    background: rgba(244,124,32,.2);
    border: 1px solid rgba(244,124,32,.4);
    color: #f47c20;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.lca-inline-scroll-btn:hover { background: rgba(244,124,32,.35); }

/* ═══ ACCOUNT DROPDOWN ════════════════════════════════════════ */
.lca-account-wrap { position: relative; }
.lca-btn-account {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.18);
    color: #e2e8f0;
    border-radius: 8px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .2s; max-width: 160px;
}
.lca-btn-account:hover { background: rgba(255,255,255,.15); }
.lca-btn-account span:not(.lca-stat-label) {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px;
}
.lca-account-panel {
    position: absolute; top: calc(100% + 8px); right: 0;
    width: 240px;
    background: #1a2e44;
    border: 1px solid #2a4060;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    z-index: 9999; overflow: hidden;
}
.lca-account-balance {
    background: linear-gradient(135deg, #0a1628 0%, #1a2e44 100%);
    padding: 14px 16px;
    border-bottom: 1px solid #2a4060;
    text-align: center;
}
.lca-account-balance-label { font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: 0.7px; font-weight: 700; }
.lca-account-balance-val   { font-size: 32px; font-weight: 800; color: #f47c20; line-height: 1.1; }
.lca-account-balance-sub   { font-size: 11px; color: #64748b; margin-top: 2px; }
.lca-account-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 11px 16px;
    background: transparent; border: none;
    color: #94a3b8; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all .15s; text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.lca-account-item:hover { background: rgba(255,255,255,.06); color: #e2e8f0; }
.lca-logout-btn { color: #f87171 !important; }
.lca-logout-btn:hover { background: rgba(239,68,68,.1) !important; }

/* Credit stat variants */
.lca-stat-credits-low   { background:rgba(234,179,8,.15); border-color:rgba(234,179,8,.35); color:#fde68a; }
.lca-stat-credits-empty { background:rgba(239,68,68,.15); border-color:rgba(239,68,68,.35);  color:#fca5a5; }

/* ═══ MODALS ══════════════════════════════════════════════════ */
.lca-modal {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.6);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.lca-modal-box {
    background: #fff; border-radius: 12px;
    width: 100%; max-width: 600px; max-height: 80vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,.4);
    overflow: hidden;
}
.lca-modal-sm { max-width: 360px; }
.lca-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
    background: #0a1628; color: #fff;
    font-size: 15px; font-weight: 700;
    flex-shrink: 0;
}
.lca-modal-close {
    background: transparent; border: none; color: #94a3b8;
    font-size: 16px; cursor: pointer; padding: 2px 6px;
    border-radius: 4px;
}
.lca-modal-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.lca-modal-body {
    overflow-y: auto; padding: 16px 20px;
    flex: 1;
}
.lca-modal-loading { text-align: center; padding: 30px; color: #64748b; display: flex; align-items: center; justify-content: center; gap: 10px; }
.lca-usage-log-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.lca-usage-log-table th { background: #f8fafc; padding: 8px 10px; text-align: left; font-weight: 700; color: #0a1628; border-bottom: 2px solid #e2e8f0; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.lca-usage-log-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.lca-usage-log-table tr:hover td { background: #f8fafc; }
.lca-log-credit-neg { color: #dc2626; font-weight: 600; }
.lca-log-credit-pos { color: #16a34a; font-weight: 600; }

/* ═══ ADMIN HEADING STYLE ═════════════════════════════════════ */
.lca-settings-heading {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0a1628 !important;
    border-left: 4px solid #f47c20 !important;
    padding-left: 10px !important;
    margin: 24px 0 4px !important;
}

/* ─── Template upload bar ────────────────────────────────────── */
.lca-template-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
    gap: 8px;
    flex-wrap: wrap;
}
.lca-template-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #15803d;
}
.lca-template-actions {
    display: flex;
    gap: 6px;
}
.lca-template-dl-btn,
.lca-template-ul-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.lca-template-dl-btn {
    background: #fff;
    border: 1px solid #86efac;
    color: #15803d;
}
.lca-template-dl-btn:hover { background: #dcfce7; }
.lca-template-ul-btn {
    background: #15803d;
    border: 1px solid #15803d;
    color: #fff;
}
.lca-template-ul-btn:hover { background: #166534; }

/* ═══════════════════════════════════════════════════════════════
   VERSION HISTORY TABS
═══════════════════════════════════════════════════════════════ */
.lca-vh-tabs {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #f0f4fa;
    border: 1px solid #dde4f0;
    border-radius: 20px;
    padding: 2px 4px;
    margin-right: 6px;
    flex-shrink: 0;
}
.lca-vh-btn {
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    color: #4a6a9a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    padding: 0;
    transition: background .15s, color .15s;
    font-family: 'Roboto', sans-serif;
}
.lca-vh-btn:hover:not(:disabled) {
    background: #0a1628;
    color: #ffffff;
}
.lca-vh-btn:disabled {
    opacity: .3;
    cursor: not-allowed;
}
.lca-vh-label {
    font-size: 10.5px;
    font-weight: 700;
    color: #0a1628;
    letter-spacing: .04em;
    min-width: 36px;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    user-select: none;
}
/* Highlight active version number in orange */
.lca-vh-label { color: #f47c20; }

