@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ======================================================================
   RESET & BASE (scoped to .askeet-v2)
   ====================================================================== */
.askeet-v2 { font-family: 'Plus Jakarta Sans', sans-serif; color: #1a1a2e; position: relative; width: 100%; max-width: 100%; overflow-x: hidden; }
.askeet-v2 * { box-sizing: border-box; }

/* WordPress admin overrides — neutralize WP wrapper margins/padding */
.askeet-v2 .wrap { margin: 0; padding: 0; }
.askeet-v2 h1, .askeet-v2 h2, .askeet-v2 h3 { margin: 0; padding: 0; }
.askeet-v2 input, .askeet-v2 select, .askeet-v2 textarea, .askeet-v2 button { font-family: inherit; }

/* Fix WP admin layout — remove default content area padding/margin that causes offset */
#wpbody-content > .wrap.askeet-v2 { margin: 0; padding: 0; max-width: 100%; }
#wpcontent { padding-left: 0; }
.askeet-v2 ~ .clear { display: none; }

/* ======================================================================
   ONBOARDING -- Guided Tour with Spotlight
   (Fixed-position elements: NOT scoped under .askeet-v2)
   ====================================================================== */
.ob-backdrop{position:fixed;inset:0;z-index:5000;display:none;pointer-events:none;transition:opacity .3s;}
.ob-backdrop.active{display:block;pointer-events:auto;}
/* 4 black panels that form a window around the spotlight target */
.ob-mask{position:fixed;background:rgba(0,0,0,.6);z-index:5000;transition:all .4s cubic-bezier(.4,0,.2,1);}
/* Spotlight glow ring around target */
.ob-spotlight{position:fixed;z-index:5001;border-radius:12px;pointer-events:none;transition:all .4s cubic-bezier(.4,0,.2,1);box-shadow:0 0 0 4px rgba(0,120,212,.4),0 0 30px rgba(0,120,212,.15);}
/* Pulse animation on spotlight */
.ob-spotlight.pulse{animation:obPulse 1.5s ease-in-out infinite;}
@keyframes obPulse{0%,100%{box-shadow:0 0 0 4px rgba(0,120,212,.4),0 0 30px rgba(0,120,212,.15);}50%{box-shadow:0 0 0 8px rgba(0,120,212,.25),0 0 50px rgba(0,120,212,.2);}}
/* Tooltip */
.ob-tooltip{position:fixed;z-index:5002;background:#fff;border-radius:16px;padding:0;max-width:400px;box-shadow:0 20px 60px rgba(0,0,0,.25);overflow:hidden;opacity:0;transform:translateY(12px);transition:all .35s cubic-bezier(.4,0,.2,1);}
.ob-tooltip.visible{opacity:1;transform:translateY(0);}
.ob-tooltip-header{padding:18px 22px 0;display:flex;align-items:center;gap:10px;}
.ob-tooltip-header .ob-step-badge{width:28px;height:28px;border-radius:50%;background:linear-gradient(135deg,#005a9e,#0078d4);color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;}
.ob-tooltip-header h3{font-size:15px;font-weight:700;color:#1a1a2e;flex:1;}
.ob-tooltip-body{padding:10px 22px 16px;}
.ob-tooltip-body p{font-size:13px;color:#5f6368;line-height:1.65;margin:0;}
.ob-tooltip-footer{padding:12px 22px 16px;display:flex;align-items:center;justify-content:space-between;}
.ob-tooltip-footer .ob-progress{display:flex;gap:5px;}
.ob-tooltip-footer .ob-progress .ob-dot{width:7px;height:7px;border-radius:50%;background:#e0e0e0;transition:all .25s;}
.ob-tooltip-footer .ob-progress .ob-dot.done{background:#22c55e;transform:scale(1.1);}
.ob-tooltip-footer .ob-progress .ob-dot.current{background:#005a9e;transform:scale(1.2);}
.ob-tooltip-footer .ob-btns{display:flex;gap:6px;}
.ob-btn-skip{padding:7px 14px;border-radius:8px;border:1px solid #d1d5db;background:#fff;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;color:#6b7280;transition:all .12s;}
.ob-btn-skip:hover{border-color:#999;color:#333;}
.ob-btn-back{padding:7px 14px;border-radius:8px;border:1px solid #d1d5db;background:#fff;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;color:#374151;transition:all .12s;}
.ob-btn-next{padding:7px 18px;border-radius:8px;border:none;background:linear-gradient(135deg,#005a9e,#0078d4);color:#fff;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .15s;box-shadow:0 2px 8px rgba(0,90,158,.3);}
.ob-btn-next:hover{background:linear-gradient(135deg,#004a88,#006abb);box-shadow:0 4px 12px rgba(0,90,158,.4);}
/* Floating progress bar */
.ob-progress-bar{position:fixed;top:0;left:0;right:0;height:3px;z-index:5003;background:#e5e7eb;display:none;}
.ob-progress-bar .ob-fill{height:100%;background:linear-gradient(90deg,#005a9e,#0078d4);transition:width .4s ease;border-radius:0 2px 2px 0;}
/* Click-here hint animation */
.ob-click-hint{position:fixed;z-index:5001;pointer-events:none;display:none;}
.ob-click-hint .ob-hand{font-size:28px;animation:obHandBounce 1s ease-in-out infinite;}
@keyframes obHandBounce{0%,100%{transform:translate(0,0);}50%{transform:translate(-3px,5px);}}
.onboarding-tooltip .tooltip-actions{display:flex;gap:8px;justify-content:flex-end;}
.tooltip-actions .skip-btn{padding:8px 16px;border-radius:8px;border:1px solid #d1d5db;background:#fff;font-size:12px;font-weight:500;cursor:pointer;font-family:inherit;color:#6b7280;transition:all .12s;}
.tooltip-actions .skip-btn:hover{border-color:#9ca3af;color:#374151;}
.tooltip-actions .next-btn{padding:8px 20px;border-radius:8px;border:none;background:#005a9e;color:#fff;font-size:12px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .12s;}
.tooltip-actions .next-btn:hover{background:#004a88;}
.onboarding-arrow{position:absolute;width:0;height:0;}
.onboarding-arrow.bottom{bottom:-8px;left:50%;transform:translateX(-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-top:8px solid #fff;}
.onboarding-arrow.top{top:-8px;left:50%;transform:translateX(-50%);border-left:8px solid transparent;border-right:8px solid transparent;border-bottom:8px solid #fff;}
.onboarding-arrow.left{left:-8px;top:50%;transform:translateY(-50%);border-top:8px solid transparent;border-bottom:8px solid transparent;border-right:8px solid #fff;}

/* Progress bar (onboarding - fixed position, not scoped) */
.onboarding-progress{position:fixed;top:0;left:0;right:0;height:4px;z-index:5003;background:#e5e7eb;}
.onboarding-progress .fill{height:100%;background:linear-gradient(90deg,#005a9e,#0078d4);transition:width .4s ease;border-radius:0 2px 2px 0;}

/* ======================================================================
   TOP HEADER + NAVIGATION (scoped)
   ====================================================================== */
.askeet-v2 .top-header{height:56px;background:#fff;border-bottom:1px solid #e5e7ef;display:flex;align-items:center;padding:0 20px;gap:16px;flex-shrink:0;width:100%;}
.askeet-v2 .logo-area{display:flex;align-items:center;gap:10px;flex-shrink:0;}
/* Logo icon — transparent wrapper so the new circular Loupe_logo.svg shows
   on its own (the SVG already has its own white-circle background). */
.askeet-v2 .logo-area .logo-icon{width:36px;height:36px;background:transparent;border-radius:50%;display:flex;align-items:center;justify-content:center;overflow:visible;}
.askeet-v2 .logo-area .logo-icon img{width:32px;height:32px;display:block;}
.askeet-v2 .logo-area .logo-text{font-size:17px;font-weight:700;color:#1a1a2e;}
.askeet-v2 .logo-area .version-badge{font-size:9px;font-weight:700;background:#e8f0fe;color:#005a9e;padding:2px 6px;border-radius:4px;vertical-align:super;}

/* Tabs */
.askeet-v2 .nav-tabs{display:flex;gap:2px;flex:1;justify-content:center;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:none;min-width:0;}
.askeet-v2 .nav-tabs::-webkit-scrollbar{display:none;}
.askeet-v2 .nav-tab{padding:16px 14px;font-size:12.5px;font-weight:500;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;transition:all .15s;white-space:nowrap;position:relative;}
.askeet-v2 .nav-tab:hover{color:#1a1a2e;background:#f8f9fc;}
.askeet-v2 .nav-tab.active{color:#005a9e;border-bottom-color:#005a9e;font-weight:600;}
.askeet-v2 .nav-tab .tab-badge{position:absolute;top:10px;right:6px;background:#ef4444;color:#fff;font-size:9px;font-weight:700;padding:1px 5px;border-radius:8px;}

.askeet-v2 .header-right{display:flex;align-items:center;gap:10px;flex-shrink:0;}
.askeet-v2 .health-pill{display:flex;align-items:center;gap:6px;background:#ecfdf5;padding:4px 11px 4px 7px;border-radius:20px;font-size:11.5px;font-weight:600;color:#059669;cursor:pointer;border:1px solid #a7f3d0;transition:all .15s;}
.askeet-v2 .health-pill:hover{background:#d1fae5;}
.askeet-v2 .health-pill .mini-ring{width:18px;height:18px;border-radius:50%;background:conic-gradient(#e5e7eb 0%,#e5e7eb 100%);display:flex;align-items:center;justify-content:center;}
.askeet-v2 .health-pill .mini-ring::after{content:'';width:12px;height:12px;background:#ecfdf5;border-radius:50%;}
.askeet-v2 .plan-pill{font-size:10px;font-weight:700;background:linear-gradient(135deg,#005a9e,#0078d4);color:#fff;padding:4px 10px;border-radius:12px;cursor:pointer;}
.askeet-v2 .feedback-pill{font-size:10.5px;font-weight:600;background:#f0f5ff;color:#005a9e;border:1px solid #bfdbfe;padding:4px 12px;border-radius:12px;cursor:pointer;transition:all .15s;white-space:nowrap;}
.askeet-v2 .feedback-pill:hover{background:#dbeafe;border-color:#3b82f6;}
.askeet-v2 .header-avatar{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,#005a9e,#0078d4);color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;}

/* ======================================================================
   PAGE CONTAINER (scoped)
   ====================================================================== */
.askeet-v2 .page-container{height:calc(100vh - 56px - 32px);overflow:hidden;width:100%;}
.askeet-v2 .page{display:none;height:100%;overflow-y:auto;overflow-x:hidden;padding:24px 28px 40px;}
.askeet-v2 .page.active{display:block;animation:fadeIn .2s ease;}
.askeet-v2 .chat-page{display:none;flex-direction:column;height:100%;overflow:hidden;width:100%;}
.askeet-v2 .chat-page.active{display:flex;}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px);}to{opacity:1;transform:translateY(0);}}

/* ======================================================================
   CHAT PAGE (scoped)
   ====================================================================== */
.askeet-v2 .chat-bar{display:flex;align-items:center;justify-content:space-between;padding:8px 28px;background:#f8f9fc;border-bottom:1px solid #e5e7ef;font-size:12px;color:#6b7280;flex-shrink:0;}
.askeet-v2 .chat-bar select,
.askeet-v2 .chat-bar input{font-size:11.5px;border:1px solid #d1d5db;border-radius:4px;padding:3px 8px;font-family:inherit;outline:none;}
.askeet-v2 .chat-bar button{font-size:11px;padding:4px 10px;border-radius:4px;border:1px solid #d1d5db;background:#fff;cursor:pointer;color:#6b7280;font-family:inherit;transition:all .12s;}
.askeet-v2 .chat-bar button:hover{border-color:#005a9e;color:#005a9e;}

.askeet-v2 .chat-messages{flex:1;overflow-y:auto;overflow-x:hidden;padding:20px 28px 12px;display:flex;flex-direction:column;gap:12px;width:100%;}

/* Welcome */
.askeet-v2 .chat-welcome{display:flex;flex-direction:column;align-items:center;padding:44px 28px 24px;text-align:center;}
.askeet-v2 .chat-welcome .welcome-icon{font-size:44px;margin-bottom:14px;}
.askeet-v2 .chat-welcome h2{font-size:22px;font-weight:700;margin-bottom:6px;color:#1a1a2e;}
.askeet-v2 .chat-welcome p{font-size:13.5px;color:#6b7280;max-width:480px;margin-bottom:24px;line-height:1.6;}
.askeet-v2 .example-cards{display:flex;gap:12px;flex-wrap:wrap;justify-content:center;max-width:720px;}
.askeet-v2 .example-card{background:linear-gradient(135deg,#f8f9fc 60%,#e8f0fe 100%);border:1.5px solid #c4d4ec;border-radius:12px;padding:14px 18px;width:220px;cursor:pointer;transition:all .2s;display:flex;align-items:flex-start;gap:10px;text-align:left;}
.askeet-v2 .example-card:hover{border-color:#005a9e;box-shadow:0 4px 16px rgba(0,90,158,.12);transform:translateY(-2px);}
.askeet-v2 .example-card .card-icon{font-size:18px;flex-shrink:0;margin-top:1px;}
.askeet-v2 .example-card .card-text{font-size:12.5px;font-weight:500;color:#2a2a3e;line-height:1.5;}

/* Messages */
.askeet-v2 .msg{max-width:88%;padding:12px 16px;border-radius:14px;font-size:13px;line-height:1.6;word-break:break-word;position:relative;flex-shrink:0;}
.askeet-v2 .msg.user{align-self:flex-end;background:#e6f0ff;color:#005a9e;border-bottom-right-radius:4px;}
/* overflow:visible on both axes — the wide-table case has its own
   .results-table-wrap{overflow-x:auto}, so the bubble itself never needs to scroll.
   Mixing overflow-x:auto with overflow-y:visible promoted BOTH axes to scroll
   containers (CSS spec), which is what produced the up/down arrows on every bubble. */
.askeet-v2 .msg.ai{align-self:flex-start;background:#f4f4f8;color:#1a1a2e;border-bottom-left-radius:4px;max-width:92%;overflow:visible;}
/* AI bubbles that contain a results table or a chart should always stretch to a usable width — otherwise tiny tables collapse to ~30%. */
.askeet-v2 .msg.ai:has(.wcqa-top-controls), .askeet-v2 .msg.ai:has(.askeet-chart-wrap){width:92%;min-width:92%;}
.askeet-v2 #chat-loading{display:flex;align-items:center;gap:10px;padding:14px 18px;overflow:visible !important;width:auto;min-width:130px;}
.askeet-v2 .askeet-loader{display:flex;gap:4px;align-items:center;}
.askeet-v2 .askeet-dot{width:8px;height:8px;border-radius:50%;background:#005a9e;animation:askeetBounce 1.4s infinite ease-in-out both;}
.askeet-v2 .askeet-dot:nth-child(1){animation-delay:-0.32s;}
.askeet-v2 .askeet-dot:nth-child(2){animation-delay:-0.16s;}
.askeet-v2 .askeet-dot:nth-child(3){animation-delay:0s;}
.askeet-v2 .askeet-loading-text{font-size:13px;color:#6b7280;font-weight:500;}
@keyframes askeetBounce{0%,80%,100%{transform:scale(0);opacity:.4}40%{transform:scale(1);opacity:1}}
.askeet-v2 .msg .msg-actions{display:flex;gap:5px;margin-top:10px;flex-wrap:wrap;}
.askeet-v2 .msg .msg-actions button{font-size:11px;padding:5px 11px;border-radius:6px;border:1px solid #d1d5db;background:#fff;color:#374151;cursor:pointer;font-family:inherit;font-weight:500;transition:all .12s;display:flex;align-items:center;gap:3px;}
.askeet-v2 .msg .msg-actions button:hover{border-color:#005a9e;color:#005a9e;background:#f0f5ff;}
.askeet-v2 .msg .msg-actions button.primary{background:#005a9e;color:#fff;border-color:#005a9e;}
.askeet-v2 .msg .msg-actions button.primary:hover{background:#004a88;}
.askeet-v2 .msg .msg-actions button.automate{background:#7c3aed;color:#fff;border-color:#7c3aed;}
.askeet-v2 .msg .msg-actions button.automate:hover{background:#6d28d9;}
.askeet-v2 .sql-block{background:#1e1e2e;color:#d4d4d8;border-radius:8px;padding:12px 14px;margin:8px 0;font-family:Consolas,'Fira Code',monospace;font-size:11.5px;white-space:pre-wrap;line-height:1.5;position:relative;}
.askeet-v2 .sql-block .copy-btn{position:absolute;top:6px;right:6px;background:#333;color:#aaa;border:none;padding:2px 7px;border-radius:4px;font-size:10px;cursor:pointer;transition:color .12s;}
.askeet-v2 .sql-block .copy-btn:hover{color:#fff;}
.askeet-v2 .results-table-wrap{overflow-x:auto;margin:10px 0;border-radius:8px;border:1px solid #e5e7eb;max-width:100%;background:#fff;}
.askeet-v2 .results-table{width:100%;border-collapse:collapse;font-size:13px;}
.askeet-v2 .results-table th{background:#f8f9fc;padding:11px 14px;text-align:left;font-weight:600;font-size:12px;color:#0f172a;letter-spacing:0.2px;text-transform:uppercase;border-bottom:1px solid #e5e7eb;white-space:nowrap;}
.askeet-v2 .results-table td{padding:10px 14px;border-bottom:1px solid #f0f1f3;color:#1f2937;white-space:nowrap;}
.askeet-v2 .results-table tr:last-child td{border-bottom:none;}
.askeet-v2 .results-table tr:hover td{background:#f8f9fc;}
.askeet-v2 .msg-pagination{display:flex;align-items:center;justify-content:space-between;margin-top:6px;font-size:11px;color:#6b7280;}
.askeet-v2 .msg-pagination .page-btns{display:flex;gap:3px;}
.askeet-v2 .msg-pagination .page-btns button{width:26px;height:26px;border-radius:5px;border:1px solid #d1d5db;background:#fff;cursor:pointer;font-size:11px;display:flex;align-items:center;justify-content:center;color:#374151;transition:all .1s;}
.askeet-v2 .msg-pagination .page-btns button:hover{border-color:#005a9e;color:#005a9e;}
.askeet-v2 .msg-pagination .page-btns button.active{background:#005a9e;color:#fff;border-color:#005a9e;}

/* Input bar */
.askeet-v2 .chat-input-bar{padding:10px 28px 14px;border-top:1px solid #e5e7ef;background:#fff;display:flex;gap:8px;align-items:flex-end;flex-shrink:0;}
.askeet-v2 .chat-input-bar textarea{flex:1;resize:none;border:1.5px solid #d1d5db;border-radius:10px;padding:10px 14px;font-size:13px;font-family:inherit;min-height:42px;max-height:120px;line-height:1.5;outline:none;transition:border-color .12s;}
.askeet-v2 .chat-input-bar textarea:focus{border-color:#005a9e;box-shadow:0 0 0 3px rgba(0,90,158,.08);}
.askeet-v2 .chat-input-bar .send-btn{height:42px;padding:0 20px;background:#005a9e;color:#fff;border:none;border-radius:10px;font-size:13px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .12s;display:flex;align-items:center;gap:5px;}
.askeet-v2 .chat-input-bar .send-btn:hover{background:#004a88;}

/* ======================================================================
   DASHBOARD (scoped)
   ====================================================================== */
.askeet-v2 .stats-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px;}
.askeet-v2 .stat-card{background:#fff;border-radius:10px;padding:18px;border:1px solid #e5e7ef;transition:box-shadow .15s;}
.askeet-v2 .stat-card:hover{box-shadow:0 4px 12px rgba(0,0,0,.05);}
.askeet-v2 .stat-card .stat-label{font-size:11.5px;color:#6b7280;font-weight:500;margin-bottom:6px;}
.askeet-v2 .stat-card .stat-value{font-size:24px;font-weight:700;color:#1a1a2e;}
.askeet-v2 .stat-card .stat-change{font-size:11.5px;font-weight:600;margin-top:3px;}
.askeet-v2 .stat-card .stat-change.up{color:#059669;}
.askeet-v2 .stat-card .stat-change.down{color:#dc2626;}
.askeet-v2 .stat-card .sparkline-wrap{height:36px;margin-top:6px;}
.askeet-v2 .stat-card .sparkline-wrap canvas{width:100%;height:36px;}

.askeet-v2 .section-title{font-size:15px;font-weight:700;color:#1a1a2e;margin-bottom:14px;}
.askeet-v2 .alerts-list{display:flex;flex-direction:column;gap:8px;margin-bottom:24px;}
.askeet-v2 .alert-card{background:#fff;border-radius:8px;padding:12px 16px;border:1px solid #e5e7ef;display:flex;align-items:center;gap:12px;transition:all .12s;cursor:pointer;}
.askeet-v2 .alert-card:hover{box-shadow:0 2px 8px rgba(0,0,0,.05);}
.askeet-v2 .alert-dot{width:9px;height:9px;border-radius:50%;flex-shrink:0;}
.askeet-v2 .alert-dot.red{background:#ef4444;}
.askeet-v2 .alert-dot.yellow{background:#f59e0b;}
.askeet-v2 .alert-dot.green{background:#22c55e;}
.askeet-v2 .alert-content{flex:1;}
.askeet-v2 .alert-title{font-size:13px;font-weight:600;color:#1a1a2e;margin-bottom:1px;}
.askeet-v2 .alert-desc{font-size:11.5px;color:#6b7280;line-height:1.4;}
.askeet-v2 .alert-time{font-size:10.5px;color:#9ca3af;white-space:nowrap;}
.askeet-v2 .alert-action-btn{font-size:11.5px;font-weight:600;color:#005a9e;padding:4px 11px;border-radius:6px;border:1px solid #005a9e22;background:#f0f5ff;cursor:pointer;white-space:nowrap;transition:all .12s;}
.askeet-v2 .alert-action-btn:hover{background:#005a9e;color:#fff;}

.askeet-v2 .health-card{background:#fff;border-radius:10px;padding:22px;border:1px solid #e5e7ef;display:flex;gap:28px;margin-bottom:24px;}
.askeet-v2 .health-gauge{width:140px;height:140px;flex-shrink:0;position:relative;}
.askeet-v2 .health-gauge svg{width:100%;height:100%;}
.askeet-v2 .health-gauge .gauge-text{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;}
.askeet-v2 .health-gauge .gauge-num{font-size:32px;font-weight:800;color:#1a1a2e;}
.askeet-v2 .health-gauge .gauge-label{font-size:10.5px;color:#6b7280;}
.askeet-v2 .health-subs{flex:1;display:grid;grid-template-columns:1fr 1fr;gap:10px;align-content:center;}
.askeet-v2 .health-sub{display:flex;flex-direction:column;gap:3px;}
.askeet-v2 .health-sub .sub-name{font-size:11px;font-weight:500;color:#6b7280;}
.askeet-v2 .health-sub .sub-bar{height:5px;background:#e5e7eb;border-radius:3px;overflow:hidden;}
.askeet-v2 .health-sub .sub-fill{height:100%;border-radius:3px;}
.askeet-v2 .health-sub .sub-score{font-size:11.5px;font-weight:600;}
.askeet-v2 .chart-card{background:#fff;border-radius:10px;padding:18px;border:1px solid #e5e7ef;margin-bottom:24px;}
.askeet-v2 .chart-card canvas{width:100%;height:200px;}

/* ======================================================================
   AUTOMATED INSIGHTS (scoped)
   ====================================================================== */
.askeet-v2 .page-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;flex-wrap:wrap;gap:10px;}
.askeet-v2 .page-toolbar h2{font-size:18px;font-weight:700;}
.askeet-v2 .filter-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px;padding:12px 16px;background:#fff;border-radius:10px;border:1px solid #e5e7ef;}
.askeet-v2 .filter-group{display:flex;gap:4px;flex-wrap:wrap;align-items:center;}
.askeet-v2 .filter-group-label{font-size:10.5px;font-weight:600;color:#9ca3af;text-transform:uppercase;letter-spacing:.5px;margin-right:4px;white-space:nowrap;}
.askeet-v2 .filter-btn{padding:5px 12px;border-radius:6px;border:1px solid #d1d5db;background:#fff;font-size:11.5px;font-weight:500;cursor:pointer;color:#4b5563;font-family:inherit;transition:all .1s;white-space:nowrap;}
.askeet-v2 .filter-btn:hover{border-color:#005a9e;color:#005a9e;background:#f0f5ff;}
.askeet-v2 .filter-btn.active{background:#005a9e;color:#fff;border-color:#005a9e;}
.askeet-v2 .filter-sep{width:1px;height:22px;background:#d1d5db;margin:0 4px;flex-shrink:0;}
.askeet-v2 .search-input{padding:6px 12px 6px 30px;border:1px solid #d1d5db;border-radius:6px;font-size:12px;font-family:inherit;width:200px;outline:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%236b7280' viewBox='0 0 20 20'%3E%3Cpath d='M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z'/%3E%3C/svg%3E") 8px center/14px no-repeat;transition:border-color .1s;}
.askeet-v2 .search-input:focus{border-color:#005a9e;}
.askeet-v2 .view-toggle{display:flex;border:1px solid #d1d5db;border-radius:5px;overflow:hidden;}
.askeet-v2 .view-toggle button{padding:5px 9px;background:#fff;border:none;cursor:pointer;color:#6b7280;font-size:13px;transition:all .1s;}
.askeet-v2 .view-toggle button.active{background:#005a9e;color:#fff;}
.askeet-v2 .view-toggle button:not(:last-child){border-right:1px solid #d1d5db;}

.askeet-v2 .insights-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;}
.askeet-v2 .insights-grid.list-view{grid-template-columns:1fr;}
.askeet-v2 .insight-card{background:#fff;border-radius:10px;border:1px solid #e5e7ef;padding:16px;transition:all .12s;}
.askeet-v2 .insight-card:hover{box-shadow:0 3px 10px rgba(0,0,0,.05);border-color:#c5cee0;}
.askeet-v2 .insight-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px;}
.askeet-v2 .insight-icon{font-size:20px;}
.askeet-v2 .insight-badges{display:flex;gap:5px;}
.askeet-v2 .freq-badge{font-size:9.5px;font-weight:600;padding:2px 7px;border-radius:4px;text-transform:uppercase;}
.askeet-v2 .freq-badge.daily{background:#dbeafe;color:#1d4ed8;}
.askeet-v2 .freq-badge.weekly{background:#fef3c7;color:#92400e;}
.askeet-v2 .freq-badge.monthly{background:#ede9fe;color:#5b21b6;}
.askeet-v2 .freq-badge.quarterly{background:#fce7f3;color:#9d174d;}
.askeet-v2 .freq-badge.insight{background:#f0f1f3;color:#4b5563;}
.askeet-v2 .cat-badge{font-size:9.5px;font-weight:500;padding:2px 7px;border-radius:4px;background:#f0f1f3;color:#4b5563;}
.askeet-v2 .insight-title{font-size:13.5px;font-weight:600;color:#1a1a2e;margin-bottom:3px;}
.askeet-v2 .insight-desc{font-size:11.5px;color:#6b7280;line-height:1.5;margin-bottom:10px;}
.askeet-v2 .insight-meta{display:flex;align-items:center;gap:12px;font-size:10.5px;color:#9ca3af;margin-bottom:10px;}
.askeet-v2 .insight-status{display:flex;align-items:center;gap:3px;font-weight:500;}
.askeet-v2 .insight-status .dot{width:6px;height:6px;border-radius:50%;}
.askeet-v2 .dot.active{background:#22c55e;}
.askeet-v2 .dot.paused{background:#f59e0b;}
.askeet-v2 .insight-delivery{font-size:10px;color:#9ca3af;}
.askeet-v2 .insight-footer{display:flex;gap:5px;padding-top:10px;border-top:1px solid #f0f1f3;}
.askeet-v2 .insight-footer button{font-size:11px;padding:4px 10px;border-radius:5px;border:1px solid #d1d5db;background:#fff;cursor:pointer;font-family:inherit;font-weight:500;color:#4b5563;transition:all .1s;}
.askeet-v2 .insight-footer button:hover{border-color:#005a9e;color:#005a9e;}
.askeet-v2 .insight-footer button.run-now{background:#005a9e;color:#fff;border-color:#005a9e;}
.askeet-v2 .insight-footer button.run-now:hover{background:#004a88;}

.askeet-v2 .insights-grid.list-view .insight-card{display:flex;align-items:center;gap:14px;padding:12px 16px;}
.askeet-v2 .insights-grid.list-view .insight-header{margin-bottom:0;flex-shrink:0;}
.askeet-v2 .insights-grid.list-view .insight-body{flex:1;min-width:0;}
.askeet-v2 .insights-grid.list-view .insight-desc{margin-bottom:0;}
.askeet-v2 .insights-grid.list-view .insight-footer{border-top:none;padding-top:0;margin-top:0;flex-shrink:0;}
.askeet-v2 .insights-grid.list-view .insight-meta{margin-bottom:0;}

/* Pagination */
.askeet-v2 .pagination-bar{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;font-size:11.5px;color:#6b7280;margin-top:14px;background:#fff;border-radius:8px;border:1px solid #e5e7ef;}
.askeet-v2 .pagination-bar .page-btns{display:flex;gap:3px;}
.askeet-v2 .pagination-bar .page-btns button{width:28px;height:28px;border-radius:5px;border:1px solid #d1d5db;background:#fff;cursor:pointer;font-size:11.5px;font-weight:500;color:#374151;transition:all .1s;}
.askeet-v2 .pagination-bar .page-btns button:hover{border-color:#005a9e;color:#005a9e;}
.askeet-v2 .pagination-bar .page-btns button.active{background:#005a9e;color:#fff;border-color:#005a9e;}
.askeet-v2 .per-page-select{font-size:11px;border:1px solid #d1d5db;border-radius:4px;padding:3px 6px;font-family:inherit;}

/* ======================================================================
   GENERATED REPORTS (scoped)
   ====================================================================== */
.askeet-v2 .bulk-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;flex-wrap:wrap;gap:10px;}
.askeet-v2 .bulk-bar .left{display:flex;align-items:center;gap:10px;font-size:12px;color:#4b5563;}
.askeet-v2 .bulk-bar .left input{width:15px;height:15px;accent-color:#005a9e;cursor:pointer;}
.askeet-v2 .bulk-bar .right{display:flex;gap:6px;}
.askeet-v2 .bulk-bar .right button{font-size:11.5px;padding:5px 12px;border-radius:5px;border:1px solid #d1d5db;background:#fff;cursor:pointer;font-family:inherit;font-weight:500;color:#4b5563;transition:all .1s;}
.askeet-v2 .bulk-bar .right button:hover{border-color:#005a9e;color:#005a9e;}
.askeet-v2 .bulk-bar .right button.del:hover{border-color:#dc2626;color:#dc2626;}
.askeet-v2 .bulk-bar .right button:disabled{opacity:.4;cursor:not-allowed;}
.askeet-v2 .reports-table-wrap{background:#fff;border-radius:10px;border:1px solid #e5e7ef;overflow:hidden;}
.askeet-v2 .reports-table{width:100%;border-collapse:collapse;font-size:12.5px;}
.askeet-v2 .reports-table th{background:#f8f9fc;padding:9px 13px;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb;font-size:11px;text-transform:uppercase;letter-spacing:.4px;}
.askeet-v2 .reports-table td{padding:9px 13px;border-bottom:1px solid #f0f1f3;color:#4b5563;}
.askeet-v2 .reports-table tr:last-child td{border-bottom:none;}
.askeet-v2 .reports-table tr:hover td{background:#f8f9fc;}
.askeet-v2 .reports-table td input[type=checkbox]{width:14px;height:14px;accent-color:#005a9e;cursor:pointer;}
.askeet-v2 .report-name{font-weight:600;color:#1a1a2e;display:flex;align-items:center;gap:5px;}
.askeet-v2 .status-badge{font-size:10px;font-weight:600;padding:2px 7px;border-radius:4px;}
.askeet-v2 .status-badge.delivered{background:#dcfce7;color:#15803d;}
.askeet-v2 .status-badge.saved{background:#dbeafe;color:#1d4ed8;}
.askeet-v2 .status-badge.failed{background:#fee2e2;color:#dc2626;}
.askeet-v2 .action-btns{display:flex;gap:3px;}
.askeet-v2 .action-btns button{padding:4px 7px;border-radius:4px;border:1px solid #e5e7eb;background:#fff;cursor:pointer;font-size:12.5px;color:#6b7280;transition:all .1s;}
.askeet-v2 .action-btns button:hover{color:#005a9e;border-color:#005a9e;}
.askeet-v2 .action-btns button.delete:hover{color:#dc2626;border-color:#dc2626;}

/* ======================================================================
   SETTINGS (scoped)
   ====================================================================== */
.askeet-v2 .settings-grid{display:grid;grid-template-columns:200px 1fr;gap:0;background:#fff;border-radius:10px;border:1px solid #e5e7ef;min-height:460px;}
.askeet-v2 .settings-nav{border-right:1px solid #e5e7ef;padding:14px 0;}
.askeet-v2 .settings-nav-item{padding:9px 18px;font-size:12.5px;font-weight:500;color:#6b7280;cursor:pointer;transition:all .1s;border-left:3px solid transparent;}
.askeet-v2 .settings-nav-item:hover{background:#f8f9fc;color:#1a1a2e;}
.askeet-v2 .settings-nav-item.active{background:#f0f5ff;color:#005a9e;border-left-color:#005a9e;font-weight:600;}
.askeet-v2 .settings-content{padding:22px 28px;}
/* Settings / insights / reports / history don't need the chat-page's fixed-viewport
   layout. Let the browser's own scroll handle long content — kills the inner
   scrollbar that stacked on top of the page scrollbar. Chat page keeps its
   constrained height so .chat-messages can flex-scroll internally. */
.askeet-v2 .page-container:has(#page-settings.active),
.askeet-v2 .page-container:has(#page-insights.active),
.askeet-v2 .page-container:has(#page-reports.active),
.askeet-v2 .page-container:has(#page-history.active),
.askeet-v2 .page-container:has(#page-dashboard.active){height:auto;overflow:visible;}
.askeet-v2 .settings-section{display:none;}
.askeet-v2 .settings-section.active{display:block;animation:fadeIn .2s ease;}
.askeet-v2 .settings-section h3{font-size:16px;font-weight:700;margin-bottom:3px;}
.askeet-v2 .settings-section .section-desc{font-size:12.5px;color:#6b7280;margin-bottom:20px;line-height:1.5;}
.askeet-v2 .form-group{margin-bottom:16px;}
.askeet-v2 .form-group label{display:block;font-size:12.5px;font-weight:600;color:#374151;margin-bottom:5px;}
.askeet-v2 .form-group .form-hint{font-size:11px;color:#9ca3af;margin-top:3px;line-height:1.4;}
.askeet-v2 .form-group input[type=text],
.askeet-v2 .form-group input[type=email],
.askeet-v2 .form-group input[type=number],
.askeet-v2 .form-group input[type=password],
.askeet-v2 .form-group input[type=url],
.askeet-v2 .form-group select{width:100%;max-width:380px;padding:8px 12px;border:1px solid #d1d5db;border-radius:7px;font-size:12.5px;font-family:inherit;outline:none;transition:border-color .1s;}
.askeet-v2 .form-group input:focus,
.askeet-v2 .form-group select:focus{border-color:#005a9e;box-shadow:0 0 0 3px rgba(0,90,158,.06);}
.askeet-v2 .form-row{display:flex;gap:14px;}
.askeet-v2 .form-row .form-group{flex:1;}
.askeet-v2 .toggle-row{display:flex;align-items:center;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f0f1f3;}
.askeet-v2 .toggle-row:last-child{border-bottom:none;}
.askeet-v2 .toggle-info{flex:1;}
.askeet-v2 .toggle-label{font-size:13px;font-weight:500;color:#1a1a2e;}
.askeet-v2 .toggle-desc{font-size:11.5px;color:#6b7280;margin-top:1px;}
.askeet-v2 .toggle-switch{position:relative;width:40px;height:22px;flex-shrink:0;}
.askeet-v2 .toggle-switch input{opacity:0;width:0;height:0;}
.askeet-v2 .toggle-switch .slider{position:absolute;inset:0;background:#d1d5db;border-radius:22px;cursor:pointer;transition:background .2s;}
.askeet-v2 .toggle-switch .slider::before{content:'';position:absolute;left:2px;bottom:2px;width:18px;height:18px;background:#fff;border-radius:50%;transition:transform .2s;box-shadow:0 1px 3px rgba(0,0,0,.12);}
.askeet-v2 .toggle-switch input:checked+.slider{background:#005a9e;}
.askeet-v2 .toggle-switch input:checked+.slider::before{transform:translateX(18px);}
.askeet-v2 .save-btn{padding:9px 24px;background:#005a9e;color:#fff;border:none;border-radius:7px;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .12s;margin-top:6px;}
.askeet-v2 .save-btn:hover{background:#004a88;}
.askeet-v2 .test-btn{padding:7px 16px;background:#fff;color:#005a9e;border:1px solid #005a9e;border-radius:6px;font-size:11.5px;font-weight:600;cursor:pointer;font-family:inherit;transition:all .12s;margin-left:6px;}
.askeet-v2 .test-btn:hover{background:#005a9e;color:#fff;}

/* Webhook logs */
.askeet-v2 .webhook-logs{margin-top:20px;}
.askeet-v2 .webhook-logs h4{font-size:13.5px;font-weight:600;margin-bottom:10px;color:#1a1a2e;}
.askeet-v2 .log-table{width:100%;border-collapse:collapse;font-size:11.5px;border:1px solid #e5e7eb;border-radius:8px;overflow:hidden;}
.askeet-v2 .log-table th{background:#f8f9fc;padding:7px 10px;text-align:left;font-weight:600;color:#374151;border-bottom:1px solid #e5e7eb;font-size:10px;text-transform:uppercase;letter-spacing:.3px;}
.askeet-v2 .log-table td{padding:6px 10px;border-bottom:1px solid #f0f1f3;color:#4b5563;}
.askeet-v2 .log-table tr:last-child td{border-bottom:none;}
.askeet-v2 .log-status{font-size:10px;font-weight:600;padding:2px 6px;border-radius:3px;}
.askeet-v2 .log-status.ok{background:#dcfce7;color:#15803d;}
.askeet-v2 .log-status.fail{background:#fee2e2;color:#dc2626;}
.askeet-v2 .log-status.timeout{background:#fef3c7;color:#92400e;}

/* ======================================================================
   MODAL (fixed-position overlay -- NOT scoped)
   ====================================================================== */
.askeet-modal-overlay{position:fixed!important;inset:0!important;background:rgba(0,0,0,.45)!important;z-index:100000!important;display:none!important;align-items:center!important;justify-content:center!important;}
.askeet-modal-overlay.show{display:flex!important;}
.askeet-modal-overlay .askeet-modal{display:block!important;background:#fff!important;border-radius:12px;width:520px;max-width:95vw;max-height:85vh;overflow-y:auto;box-shadow:0 20px 60px rgba(0,0,0,.2);animation:fadeIn .15s ease;position:relative;z-index:100001;}
.askeet-modal-overlay .modal-header{padding:18px 22px 14px;border-bottom:1px solid #e5e7ef;display:flex;align-items:center;justify-content:space-between;}
.askeet-modal-overlay .modal-header h3{font-size:16px;font-weight:700;margin:0;}
.askeet-modal-overlay .modal-close{width:30px;height:30px;border-radius:7px;border:none;background:#f0f1f3;cursor:pointer;font-size:16px;color:#6b7280;display:flex;align-items:center;justify-content:center;transition:all .1s;}
.askeet-modal-overlay .modal-close:hover{background:#e5e7eb;color:#1a1a2e;}
.askeet-modal-overlay .modal-body{padding:18px 22px;}
.askeet-modal-overlay .modal-footer{padding:14px 22px;border-top:1px solid #e5e7ef;display:flex;justify-content:flex-end;gap:8px;}
.askeet-modal-overlay .modal-footer .cancel-btn{padding:8px 18px;border-radius:7px;border:1px solid #d1d5db;background:#fff;font-size:12.5px;font-weight:500;cursor:pointer;font-family:inherit;color:#4b5563;transition:all .1s;}
.askeet-modal-overlay .modal-footer .create-btn{padding:8px 18px;border-radius:7px;border:none;background:#7c3aed;color:#fff;font-size:12.5px;font-weight:600;cursor:pointer;font-family:inherit;transition:background .12s;}
.askeet-modal-overlay .modal-footer .create-btn:hover{background:#6d28d9;}
.freq-selector{display:flex;gap:6px;margin-bottom:14px;}
.freq-option{flex:1;padding:9px;border:1.5px solid #e5e7eb;border-radius:7px;cursor:pointer;text-align:center;transition:all .12s;}
.freq-option:hover{border-color:#7c3aed44;}
.freq-option.selected{border-color:#7c3aed;background:#f5f3ff;}
.freq-option .freq-name{font-size:12.5px;font-weight:600;color:#1a1a2e;}
.freq-option .freq-detail{font-size:10.5px;color:#6b7280;margin-top:1px;}
.delivery-options{background:#f8f9fc;border-radius:7px;padding:12px;margin-bottom:14px;}
.delivery-options h4{font-size:12.5px;font-weight:600;margin-bottom:8px;}

/* ======================================================================
   TOAST (fixed-position -- NOT scoped)
   ====================================================================== */
.toast{position:fixed;bottom:20px;right:20px;background:#1a1a2e;color:#fff;padding:11px 18px;border-radius:9px;font-size:12.5px;font-weight:500;z-index:4000;display:none;box-shadow:0 8px 24px rgba(0,0,0,.2);}
.toast.show{display:flex;align-items:center;gap:6px;animation:slideUp .25s ease;}
.toast.success{background:#059669;}
.toast.error{background:#dc2626;}
@keyframes slideUp{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}

/* ======================================================================
   SUBSCRIPTION MODAL (existing Stripe payment flow)
   ====================================================================== */
#wcqa-premium-modal {
  /* existing modal styles */
}

/* ======================================================================
   RESPONSIVE (scoped)
   ====================================================================== */
@media(max-width:1024px){
  .askeet-v2 .stats-row{grid-template-columns:repeat(2,1fr);}
  .askeet-v2 .health-card{flex-direction:column;align-items:center;}
  .askeet-v2 .insights-grid{grid-template-columns:1fr 1fr;}
  .askeet-v2 .filter-bar{padding:10px 12px;gap:6px;}
  .askeet-v2 .filter-sep{display:none;}
  .askeet-v2 .filter-group{width:100%;}
}
@media(max-width:768px){
  .askeet-v2 .stats-row{grid-template-columns:1fr;}
  .askeet-v2 .example-cards{flex-direction:column;align-items:center;}
  .askeet-v2 .example-card{width:100%;}
  .askeet-v2 .nav-tabs{gap:0;}
  .askeet-v2 .nav-tab{padding:14px 10px;font-size:11.5px;}
  .askeet-v2 .settings-grid{grid-template-columns:1fr;}
  .askeet-v2 .settings-nav{display:flex;overflow-x:auto;border-right:none;border-bottom:1px solid #e5e7ef;padding:0;}
  .askeet-v2 .settings-nav-item{white-space:nowrap;border-left:none;border-bottom:2px solid transparent;}
  .askeet-v2 .settings-nav-item.active{border-bottom-color:#005a9e;border-left:none;}
  .askeet-v2 .insights-grid{grid-template-columns:1fr;}
  .askeet-v2 .filter-btn{padding:4px 9px;font-size:10.5px;}
  .askeet-v2 .search-input{width:100% !important;}
  .askeet-v2 .page{padding:14px 14px 28px;}
  .askeet-v2 .top-header{padding:0 10px;gap:8px;}
  .askeet-v2 .health-subs{grid-template-columns:1fr;}
  .askeet-v2 .bulk-bar{flex-direction:column;align-items:flex-start;}
  .askeet-v2 .askeet-pricing-cards-v2{grid-template-columns:1fr !important;}
  .askeet-v2 .chat-messages{padding:14px 14px 10px;}
  .askeet-v2 .chat-input-bar{padding:8px 14px 10px;}
  .askeet-v2 .chat-bar{padding:6px 14px;}
  .askeet-v2 .msg{max-width:95%;font-size:12.5px;}
  .askeet-v2 .msg.ai{max-width:98%;}
  .askeet-v2 .wcqa-top-controls{flex-direction:column;align-items:stretch;}
  .askeet-v2 .wcqa-export-controls{flex-wrap:wrap;}
  .askeet-v2 .export-btn{flex:1;text-align:center;min-width:0;}
  .askeet-v2 .msg .msg-actions{flex-wrap:wrap;}
  .askeet-v2 .msg .msg-actions button{font-size:10.5px;padding:4px 8px;}
  .askeet-v2 .logo-area .logo-text{display:none;}
  .askeet-v2 .health-pill span:not(.mini-ring){display:none;}
  .askeet-v2 .header-right{gap:8px;}
}

/* ── Query History Table ────────────────────────────────────────── */
.askeet-v2 .askeet-table{width:100%;border-collapse:collapse;background:#fff;border-radius:10px;border:1px solid #e5e7ef;overflow:hidden;font-size:13px;}
.askeet-v2 .askeet-table thead th{background:#f8f9fc;border-bottom:1px solid #e5e7ef;padding:10px 14px;text-align:left;font-weight:600;font-size:12px;color:#374151;}
.askeet-v2 .askeet-table tbody td{padding:10px 14px;border-bottom:1px solid #f3f4f6;vertical-align:top;}
.askeet-v2 .askeet-table tbody tr:hover{background:#f8f9fc;}
.askeet-v2 .history-btn{padding:4px 10px;font-size:11px;border:1px solid #d1d5db;border-radius:5px;background:#fff;color:#374151;cursor:pointer;transition:all .15s;font-weight:500;}
.askeet-v2 .history-btn:hover{background:#f0f5ff;border-color:#4f8cff;color:#1d4ed8;}
.askeet-v2 .history-delete-btn:hover{background:#fef2f2;border-color:#ef4444;color:#ef4444;}

/* ── Pricing Cards (Settings > Subscription) ────────────────────── */
.askeet-v2 .askeet-pricing-cards-v2{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:16px;}
.askeet-v2 .price-card-v2{background:#fff;border:1px solid #e5e7ef;border-radius:12px;padding:20px;text-align:center;position:relative;transition:all .2s;}
.askeet-v2 .price-card-v2:hover{box-shadow:0 4px 16px rgba(0,0,0,0.08);}
.askeet-v2 .price-card-v2.current{border-color:#4f8cff;box-shadow:0 0 0 2px rgba(79,140,255,0.15);}
.askeet-v2 .price-card-v2.popular{border-color:#4f8cff;}
.askeet-v2 .pc-badge{display:inline-block;font-size:10px;font-weight:600;padding:3px 10px;border-radius:20px;background:#e5e7ef;color:#374151;margin-bottom:8px;}
.askeet-v2 .pc-badge.popular{background:#dbeafe;color:#1d4ed8;}
.askeet-v2 .pc-badge.premium{background:#fef3c7;color:#92400e;}
.askeet-v2 .price-card-v2 h4{font-size:18px;font-weight:700;margin:0 0 6px;}
.askeet-v2 .pc-price{margin-bottom:12px;}
.askeet-v2 .pc-amount{font-size:28px;font-weight:800;color:#1a1a2e;}
.askeet-v2 .pc-period{font-size:13px;color:#6b7280;}
.askeet-v2 .price-card-v2 ul{list-style:none;padding:0;margin:0 0 16px;text-align:left;}
.askeet-v2 .price-card-v2 ul li{font-size:12.5px;padding:4px 0;color:#374151;}
.askeet-v2 .price-card-v2 ul li::before{content:"\2713 ";color:#059669;font-weight:700;margin-right:4px;}
.askeet-v2 .pc-btn{width:100%;padding:10px;border:none;border-radius:8px;font-size:13px;font-weight:600;cursor:pointer;transition:all .2s;}
.askeet-v2 .pc-btn.current{background:#e5e7ef;color:#6b7280;cursor:default;}
.askeet-v2 .pc-btn.upgrade{background:linear-gradient(90deg,#4f8cff,#6f6fff);color:#fff;}
.askeet-v2 .pc-btn.upgrade:hover{opacity:0.9;}

/* ── Error, Retry, Fixing ───────────────────────────────────── */
.askeet-v2 .query-error{background:#fef2f2;border:1px solid #fecaca;border-radius:8px;padding:10px 14px;color:#dc2626;font-size:12.5px;line-height:1.5;}
.askeet-v2 .query-fixing{background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:10px 14px;color:#92400e;font-size:12.5px;line-height:1.5;}
.askeet-v2 .query-success{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:11px 14px;color:#15803d;font-size:13px;font-weight:500;}
.askeet-v2 .ai-summary-text{background:#f0f5ff;border:1px solid #bfdbfe;border-radius:8px;padding:12px 16px;color:#1e40af;font-size:13.5px;line-height:1.6;margin:8px 0;}
.askeet-v2 .retry-btn{display:inline-block;margin-left:8px;padding:4px 12px;font-size:11.5px;font-weight:600;border:1px solid #dc2626;border-radius:6px;background:#fff;color:#dc2626;cursor:pointer;transition:all .15s;vertical-align:middle;}
.askeet-v2 .retry-btn:hover{background:#dc2626;color:#fff;}

/* ── Feedback / Evaluation ──────────────────────────────────── */
.askeet-v2 .msg-feedback{display:flex;align-items:center;gap:6px;margin-top:6px;padding-top:6px;border-top:1px solid #f3f4f6;}
.askeet-v2 .feedback-label{font-size:11px;color:#9ca3af;margin-right:2px;}
.askeet-v2 .feedback-btn{background:none;border:1px solid #e5e7ef;border-radius:6px;padding:3px 8px;font-size:14px;cursor:pointer;transition:all .15s;line-height:1;}
.askeet-v2 .feedback-btn:hover{background:#f0f5ff;border-color:#4f8cff;}
.askeet-v2 .feedback-btn.selected{background:#dbeafe;border-color:#3b82f6;}
.askeet-v2 .feedback-btn.dimmed{opacity:0.3;cursor:default;}

/* Star rating */
.askeet-v2 .star-rating{display:inline-flex;gap:2px;margin:0 4px;}
.askeet-v2 .star-rating .star{font-size:20px;color:#d1d5db;cursor:pointer;transition:color .15s,transform .15s;line-height:1;}
.askeet-v2 .star-rating .star.hover{color:#fbbf24;}
.askeet-v2 .star-rating .star.selected{color:#f59e0b;transform:scale(1.15);}
.askeet-v2 .star-rating .star.dimmed{color:#e5e7eb;cursor:default;}
.askeet-v2 .msg-feedback .feedback-text-btn{font-size:12px;padding:3px 10px;margin-left:6px;}

/* Top controls: rows per page + export buttons */
.askeet-v2 .wcqa-top-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:10px;padding:8px 12px;background:#f8fafc;border:1px solid #e5e7ef;border-radius:8px;max-width:100%;}
.askeet-v2 .wcqa-rows-selector{display:flex;align-items:center;gap:6px;font-size:13px;color:#475569;}
.askeet-v2 .wcqa-rows-selector select{padding:5px 8px;border:1px solid #d1d5db;border-radius:6px;font-size:13px;background:#fff;}
.askeet-v2 .wcqa-export-controls{display:flex;gap:6px;}
.askeet-v2 .export-btn{padding:4px 10px;font-size:11.5px;font-weight:500;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#374151;cursor:pointer;transition:all .15s;}
.askeet-v2 .export-btn:hover{background:#f0f5ff;border-color:#4f8cff;color:#005a9e;}
.askeet-v2 .export-all-btn{border-color:#059669;color:#059669;}
.askeet-v2 .export-all-btn:hover{background:#ecfdf5;border-color:#059669;}

/* Export warning */
.askeet-v2 .wcqa-export-warning{background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:6px 10px;font-size:11.5px;color:#92400e;margin-bottom:6px;}

/* Performance notice */
.askeet-v2 .wcqa-performance-notice{position:relative;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:8px 32px 8px 12px;font-size:12px;color:#1e40af;margin-bottom:6px;line-height:1.5;}
.askeet-v2 .wcqa-performance-notice .notice-close{position:absolute;top:4px;right:8px;background:none;border:none;font-size:16px;color:#6b7280;cursor:pointer;padding:0;line-height:1;}
.askeet-v2 .feedback-text-btn{font-size:11.5px !important;color:#6b7280;padding:3px 10px;}
.askeet-v2 .feedback-text-btn:hover{color:#1d4ed8;}

/* =====================================================================
   V3 — billing banner, upgrade modal, charts, cross-sell
   ===================================================================== */

/* Top banner (free counter / trial countdown) */
.askeet-banner{display:flex;align-items:center;gap:10px;background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:10px 14px;margin:0 0 12px;font-size:13px;color:#1e3a8a;}
.askeet-banner-icon{font-size:18px;}
.askeet-banner-text{flex:1;line-height:1.4;}
.askeet-banner-cta{font-weight:600;color:#1d4ed8;text-decoration:none;border:1px solid #1d4ed8;padding:5px 12px;border-radius:6px;background:#fff;}
.askeet-banner-cta:hover{background:#1d4ed8;color:#fff;}
.askeet-banner-trial-ending{background:#fff7ed;border-color:#fdba74;color:#9a3412;}
.askeet-banner-trial-ending .askeet-banner-cta{color:#c2410c;border-color:#c2410c;}
.askeet-banner-trial-ending .askeet-banner-cta:hover{background:#c2410c;color:#fff;}
.askeet-banner-warn{background:#fef3c7;border-color:#fde68a;color:#92400e;}
.askeet-banner-progress{display:inline-block;width:120px;height:6px;background:#dbeafe;border-radius:3px;overflow:hidden;margin:0 6px;}
.askeet-banner-progress-fill{display:block;height:100%;background:#1d4ed8;transition:width .3s;}
.askeet-banner-warn .askeet-banner-progress{background:#fde68a;}
.askeet-banner-warn .askeet-banner-progress-fill{background:#92400e;}

/* Upgrade modal */
.askeet-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.55);z-index:99999;display:flex;align-items:center;justify-content:center;padding:20px;}
.askeet-modal{background:#fff;border-radius:14px;max-width:880px;width:100%;max-height:90vh;overflow:auto;box-shadow:0 20px 60px rgba(0,0,0,.3);position:relative;padding:32px;}
.askeet-modal-close{position:absolute;top:14px;right:18px;background:none;border:none;font-size:28px;color:#94a3b8;cursor:pointer;line-height:1;}
.askeet-modal-close:hover{color:#0f172a;}
.askeet-upgrade-title{margin:0 0 4px;font-size:24px;font-weight:700;text-align:center;}
.askeet-upgrade-subtitle{margin:0 0 28px;text-align:center;color:#64748b;font-size:13px;}
.askeet-pricing-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
@media (max-width:720px){.askeet-pricing-grid{grid-template-columns:1fr;}}
.askeet-pricing-card{border:1px solid #e2e8f0;border-radius:12px;padding:24px;display:flex;flex-direction:column;gap:8px;}
.askeet-pricing-card-business{background:#f8fafc;border-color:#cbd5e1;}
.askeet-pricing-card-suggested{border-color:#1d4ed8;border-width:2px;box-shadow:0 0 0 4px rgba(29,78,216,0.08);}
.askeet-pricing-name{font-size:18px;font-weight:700;color:#0f172a;}
.askeet-pricing-price{display:flex;align-items:baseline;gap:6px;margin-top:4px;}
.askeet-pricing-amount{font-size:36px;font-weight:800;color:#0f172a;}
.askeet-pricing-suffix{font-size:13px;color:#64748b;}
.askeet-pricing-alt{font-size:12px;color:#94a3b8;margin-bottom:10px;}
.askeet-pricing-features{list-style:none;padding:0;margin:0 0 16px;font-size:13px;color:#334155;line-height:1.8;}
.askeet-pricing-cta{display:block;width:100%;padding:11px 16px;border-radius:8px;border:none;font-weight:600;font-size:14px;cursor:pointer;margin-bottom:6px;}
.askeet-pricing-cta-primary{background:#1d4ed8;color:#fff;}
.askeet-pricing-cta-primary:hover{background:#1e40af;}
.askeet-pricing-cta-secondary{display:block;width:100%;padding:9px 16px;border-radius:8px;background:#fff;color:#1d4ed8;border:1px solid #1d4ed8;font-size:13px;cursor:pointer;}
.askeet-pricing-cta-secondary:hover:not(:disabled){background:#eff6ff;}
/* Disabled state — applies to "Free" button when on a paid plan, "Current plan" buttons, etc. */
.askeet-pricing-cta:disabled,
.askeet-pricing-cta-secondary:disabled{background:#f1f5f9;color:#94a3b8;border-color:#cbd5e1;cursor:not-allowed;opacity:0.7;}
.askeet-pricing-cta:disabled:hover,
.askeet-pricing-cta-secondary:disabled:hover{background:#f1f5f9;}
.askeet-founder-link{display:block;text-align:center;margin-top:10px;font-size:12px;color:#c2410c;text-decoration:none;font-weight:600;}
.askeet-founder-link:hover{text-decoration:underline;}

/* Charts inside chat bubbles — bigger and more readable */
.askeet-chart-wrap{margin-top:14px;padding:16px;background:#fff;border:1px solid #e2e8f0;border-radius:10px;height:340px;position:relative;}
.askeet-chart-title{font-size:14px;font-weight:600;color:#0f172a;margin-bottom:10px;}

/* Chart paywall placeholder for Free users */
.askeet-chart-paywall{margin-top:12px;display:flex;align-items:center;gap:10px;padding:14px;background:linear-gradient(135deg,#eff6ff 0%, #dbeafe 100%);border:1px dashed #93c5fd;border-radius:8px;cursor:pointer;color:#1e3a8a;font-size:13px;transition:all .2s;}
.askeet-chart-paywall:hover{border-color:#1d4ed8;background:#dbeafe;}
.askeet-chart-paywall-icon{font-size:22px;}

/* Cross-sell cards in chat */
.askeet-crosssell-card{display:flex;align-items:flex-start;gap:10px;margin-top:10px;padding:11px 14px;background:#f8fafc;border:1px solid #e2e8f0;border-left:3px solid #5b8def;border-radius:8px;font-size:12.5px;color:#334155;}
.askeet-crosssell-icon{font-size:16px;flex-shrink:0;}
.askeet-crosssell-text{flex:1;line-height:1.5;}
.askeet-crosssell-text a{color:#1d4ed8;text-decoration:none;font-weight:600;}
.askeet-crosssell-text a:hover{text-decoration:underline;}
.askeet-crosssell-dismiss{background:none;border:none;color:#94a3b8;cursor:pointer;font-size:18px;line-height:1;padding:0 4px;}
.askeet-crosssell-dismiss:hover{color:#475569;}

/* Cross-sell footer encart (Free only, full-width) */
.askeet-crosssell-footer{margin:24px 0 0;padding:14px 20px;background:#0f172a;border-radius:10px;color:#cbd5e1;font-size:12.5px;display:flex;align-items:center;gap:10px;}
.askeet-crosssell-footer a{color:#93c5fd;text-decoration:none;font-weight:600;}
.askeet-crosssell-footer a:hover{color:#dbeafe;text-decoration:underline;}
.askeet-crosssell-rocket{font-size:18px;}

/* Plan-pill variations for trial */
.plan-pill[data-status="trial"]{background:#fef3c7;color:#92400e;border-color:#fde68a;}
.plan-pill[data-status="pro"]{background:#dbeafe;color:#1e3a8a;border-color:#93c5fd;}
.plan-pill[data-status="business"]{background:#0f172a;color:#fff;border-color:#0f172a;}

/* =====================================================================
   Subscription page redesign — anchor, 3-col grid, ribbon, founder strip,
   value props, FAQ. Compact cards.
   ===================================================================== */

.askeet-v2 .askeet-sub-anchor{margin:0 0 18px;text-align:center;padding:18px 8px 6px;}
.askeet-v2 .askeet-sub-anchor-title{margin:0 0 6px;font-size:22px;font-weight:700;color:#0f172a;line-height:1.3;}
.askeet-v2 .askeet-sub-anchor-sub{margin:0;font-size:13.5px;color:#475569;line-height:1.55;}
.askeet-v2 .askeet-sub-anchor-meta{font-size:12px;color:#94a3b8;}

/* 3-column grid (override the 2-col default in upgrade modal) */
.askeet-v2 .askeet-pricing-grid-3{grid-template-columns:1fr 1fr 1fr;gap:14px;}
@media (max-width:980px){.askeet-v2 .askeet-pricing-grid-3{grid-template-columns:1fr 1fr;}}
@media (max-width:640px){.askeet-v2 .askeet-pricing-grid-3{grid-template-columns:1fr;}}

/* Compact card overrides (Subscription page only) */
.askeet-v2 .askeet-pricing-grid-3 .askeet-pricing-card{padding:18px 18px 16px;gap:6px;position:relative;}
.askeet-v2 .askeet-pricing-grid-3 .askeet-pricing-name{font-size:15px;}
.askeet-v2 .askeet-pricing-grid-3 .askeet-pricing-amount{font-size:30px;}
.askeet-v2 .askeet-pricing-grid-3 .askeet-pricing-features{font-size:12.5px;line-height:1.7;margin:8px 0 12px;}
.askeet-v2 .askeet-pricing-grid-3 .askeet-pricing-cta,
.askeet-v2 .askeet-pricing-grid-3 .askeet-pricing-cta-secondary{padding:9px 14px;font-size:13px;margin-bottom:4px;}

/* Most-popular ribbon */
.askeet-v2 .askeet-pricing-card-popular{border-color:#1d4ed8;border-width:2px;box-shadow:0 4px 16px rgba(29,78,216,0.10);transform:translateY(-4px);}
.askeet-v2 .askeet-pricing-ribbon{position:absolute;top:-11px;left:50%;transform:translateX(-50%);background:#1d4ed8;color:#fff;font-size:10px;font-weight:700;letter-spacing:0.7px;padding:4px 12px;border-radius:999px;}

/* Current-plan emphasis (used when the user is already on this plan) */
.askeet-v2 .askeet-pricing-card-current{border-color:#10b981 !important;border-width:2px !important;}
.askeet-v2 .askeet-pricing-card-current::after{content:"YOUR PLAN";position:absolute;top:8px;right:10px;background:#d1fae5;color:#065f46;font-size:9.5px;font-weight:700;letter-spacing:0.6px;padding:3px 7px;border-radius:4px;}

/* Founder's strip — full width below cards */
.askeet-v2 .askeet-founder-strip{display:flex;align-items:center;gap:14px;margin:14px 0 24px;padding:14px 18px;background:linear-gradient(135deg,#fff7ed 0%, #fed7aa 100%);border:1px solid #fdba74;border-radius:10px;}
.askeet-v2 .askeet-founder-flame{font-size:24px;flex-shrink:0;}
.askeet-v2 .askeet-founder-text{flex:1;line-height:1.45;font-size:13px;color:#9a3412;}
.askeet-v2 .askeet-founder-text strong{font-size:14px;color:#7c2d12;}
.askeet-v2 .askeet-founder-counter{display:inline-block;margin-left:6px;font-weight:600;color:#c2410c;}
.askeet-v2 .askeet-founder-explainer{display:block;font-size:11.5px;color:#9a3412;margin-top:2px;opacity:0.85;}
.askeet-v2 .askeet-founder-cta{padding:10px 18px;background:#c2410c;color:#fff;border:none;border-radius:8px;font-weight:600;font-size:13px;cursor:pointer;flex-shrink:0;}
.askeet-v2 .askeet-founder-cta:hover{background:#9a3412;}
.askeet-v2 .askeet-founder-cta:disabled{background:#94a3b8;cursor:not-allowed;}
.askeet-v2 .askeet-founder-strip[data-loading="1"] .askeet-founder-counter{opacity:0.5;}

/* Value props (3-up below cards) */
.askeet-v2 .askeet-value-props{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;margin:24px 0;}
@media (max-width:720px){.askeet-v2 .askeet-value-props{grid-template-columns:1fr;}}
.askeet-v2 .askeet-value-prop{padding:14px;background:#f8fafc;border-radius:8px;text-align:center;}
.askeet-v2 .askeet-value-prop-icon{font-size:28px;margin-bottom:6px;}
.askeet-v2 .askeet-value-prop-title{font-size:14px;font-weight:600;color:#0f172a;margin-bottom:4px;}
.askeet-v2 .askeet-value-prop-text{font-size:12.5px;color:#475569;line-height:1.5;}

/* FAQ */
.askeet-v2 .askeet-pricing-faq{margin:28px 0 12px;}
.askeet-v2 .askeet-pricing-faq h4{font-size:15px;font-weight:600;color:#0f172a;margin:0 0 10px;}
.askeet-v2 .askeet-pricing-faq details{padding:10px 14px;background:#f8fafc;border-radius:6px;margin-bottom:6px;border:1px solid #e2e8f0;}
.askeet-v2 .askeet-pricing-faq summary{cursor:pointer;font-weight:600;font-size:13px;color:#1e293b;list-style:none;}
.askeet-v2 .askeet-pricing-faq summary::-webkit-details-marker{display:none;}
.askeet-v2 .askeet-pricing-faq summary::before{content:"+ ";color:#1d4ed8;font-weight:700;}
.askeet-v2 .askeet-pricing-faq details[open] summary::before{content:"− ";}
.askeet-v2 .askeet-pricing-faq details p{margin:8px 0 0;font-size:12.5px;color:#475569;line-height:1.55;}
