/* ==========================================================================
   ELITE AI STRATEGY SUGGESTER CSS
   Glassmorphism, SVG Monte Carlo, AI Animations
   ========================================================================== */

/* Layout & Globals */
.ais-container { margin-left: 20px; padding: 32px; min-height: 100vh; color: #ffffff; font-family: 'Inter', sans-serif; position: relative; overflow-x: hidden; }
.ais-content-wrapper { display: flex; flex-direction: column; gap: 24px; }
.ais-layout-2col { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; }

/* Utilities */
.hidden { display: none !important; opacity: 0; pointer-events: none; }
.hidden-mobile { display: flex; }
@media (max-width: 768px) { .hidden-mobile { display: none !important; } .ais-layout-2col { grid-template-columns: 1fr; } }
.m-0 { margin: 0; } .mx-auto { margin-left: auto; margin-right: auto; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mb-4 { margin-bottom: 4px; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.p-0 { padding: 0 !important; } .p-16 { padding: 16px; } .pt-8 { padding-top: 8px; } .pt-16 { padding-top: 16px; } .pb-8 { padding-bottom: 8px; } .pb-16 { padding-bottom: 16px; } .border-top { border-top: 1px solid rgba(255,255,255,0.1); } .border-bottom { border-bottom: 1px solid rgba(255,255,255,0.1); }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.85rem; } .text-muted { color: rgba(255,255,255,0.6); } .w-full { width: 100%; } .text-center { text-align: center; } .text-right { text-align: right; }
.uppercase { text-transform: uppercase; } .letter-spacing { letter-spacing: 1px; } .font-bold { font-weight: 700; } .tabular-nums { font-variant-numeric: tabular-nums; }
.cursor-pointer { cursor: pointer; } .hover-cyan:hover { color: #06b6d4; transition: 0.2s; }
.flex-between { display: flex; justify-content: space-between; align-items: center; } .flex-align-center { display: flex; align-items: center; } .align-start { align-items: flex-start; } .align-end { align-items: flex-end; } .flex-end { display: flex; justify-content: flex-end; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .flex-grow { flex-grow: 1; min-height: 0; } .flex-shrink-0 { flex-shrink: 0; }

/* Palette */
.text-purple { color: #c084fc; } .text-cyan { color: #06b6d4; } .text-gold { color: #fbbf24; } .text-red { color: #ef5350; } .text-green { color: #22c55e; } .text-orange { color: #fb923c; } .text-white { color: #ffffff; }
.bg-purple { background: #c084fc; color: #000; } .bg-cyan { background: #06b6d4; color: #000; } .bg-gold { background: #fbbf24; color: #000; } .bg-green { background: #22c55e; color: #000; } .bg-red { background: #ef5350; color: #fff; } .bg-dark { background: rgba(0,0,0,0.5); }
.border-cyan { border: 1px solid rgba(6,182,212,0.4); } .border-green { border: 1px solid rgba(34,197,94,0.4); } .border-purple { border: 1px solid rgba(192,132,252,0.4); } .border-red { border: 1px solid rgba(239,83,80,0.4); } .border-gold { border: 1px solid rgba(251,191,36,0.4); }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes popIn { 0% { transform: scale(0.9); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.4); } 70% { box-shadow: 0 0 0 15px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
@keyframes spinSlow { 100% { transform: rotate(360deg); } }

.fade-in { animation: fadeInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.pulse-btn { animation: pulseGlow 2s infinite; border-radius: 12px; }
.pulse-glow { animation: pulseGlow 3s infinite; border-radius: 50%; }
.spinning-slow { animation: spinSlow 3s linear infinite; }

/* Cards & Buttons */
.ais-card { background: rgba(255,255,255,0.03); backdrop-filter: blur(24px) saturate(180%); border: 1px solid rgba(255,255,255,0.08); border-radius: 24px; padding: 24px; box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05); transition: all 0.4s; }

.ais-btn { padding: 10px 20px; border-radius: 12px; font-weight: 700; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s; border: none; text-transform: uppercase; font-family: inherit; }
.ais-btn--primary { background: linear-gradient(135deg, #a855f7, #7e22ce); color: white; box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3); }
.ais-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5); }
.ais-btn--primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.ais-btn--secondary { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); }
.ais-btn--secondary:hover:not(:disabled) { background: rgba(255,255,255,0.1); border-color: #c084fc; color: #c084fc; }
.ais-btn-icon { background: transparent; border: none; color: rgba(255,255,255,0.6); cursor: pointer; transition: 0.2s; font-size: 1.2rem; }
.ais-btn-icon:hover { color: white; transform: scale(1.1); }
.ais-btn-icon-small { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; width: 32px; height: 32px; border-radius: 8px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.ais-btn-icon-small:hover { background: rgba(192,132,252,0.2); color: #c084fc; border-color: #c084fc; }
.ais-chip-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; cursor: pointer; transition: 0.2s; }
.ais-chip-btn:hover { background: rgba(192,132,252,0.2); border-color: #c084fc; }

.ais-input, .ais-select { width: 100%; padding: 10px 14px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 8px; transition: 0.3s; font-family: inherit; font-size: 0.85rem; outline: none; }
.ais-input:focus, .ais-select:focus { border-color: #c084fc; box-shadow: 0 0 0 2px rgba(192,132,252,0.2); }

/* Header & Tabs */
.ais-header { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 24px; flex-shrink: 0; }
.ais-header__title { font-size: 2.2rem; font-weight: 800; margin: 0 0 8px 0; letter-spacing: 1px; }
.ais-header__subtitle { color: #c084fc; margin: 0; font-size: 1rem; }
.ais-header__actions { display: flex; gap: 16px; align-items: center; }

.ais-tabs { display: flex; gap: 16px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.ais-tab { background: transparent; border: 1px solid transparent; color: rgba(255,255,255,0.6); padding: 12px 24px; border-radius: 12px; font-weight: 800; font-size: 0.95rem; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.ais-tab:hover { color: white; }
.ais-tab.active { background: rgba(192,132,252,0.15); color: #fff; border-color: rgba(192,132,252,0.4); text-shadow: 0 0 10px rgba(192,132,252,0.5); }
.ais-mode-section { animation: fadeInUp 0.4s forwards; }

/* Discover Grid & Cards */
.ais-hero-card { background: radial-gradient(circle at right, rgba(251,191,36,0.15), rgba(0,0,0,0.4)); border: 1px solid rgba(251,191,36,0.4); border-radius: 24px; padding: 32px; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 10px 40px rgba(251,191,36,0.1); cursor: pointer; transition: 0.3s; }
.ais-hero-card:hover { transform: translateY(-4px); box-shadow: 0 15px 50px rgba(251,191,36,0.2); }

.ais-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.ais-strategy-card { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; cursor: pointer; transition: 0.3s; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; }
.ais-strategy-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.04); border-color: rgba(6,182,212,0.4); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

.c-stripe { position: absolute; top: 0; left: 0; width: 100%; height: 4px; }
.c-stripe.s-disc { background: #06b6d4; } .c-stripe.s-ref { background: #a855f7; } .c-stripe.s-usr { background: #22c55e; }

.c-head { display: flex; justify-content: space-between; align-items: flex-start; }
.ais-badge { font-size: 0.65rem; padding: 4px 8px; border-radius: 6px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: inline-flex; align-items: center; gap: 4px; }
.c-title { font-size: 1.2rem; font-weight: 800; margin: 8px 0; color: #fff; }
.c-desc { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ais-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.ais-stat-box { display: flex; flex-direction: column; text-align: center; }
.ais-stat-box .lbl { font-size: 0.65rem; color: rgba(255,255,255,0.5); text-transform: uppercase; margin-bottom: 4px; }
.ais-stat-box .val { font-size: 1rem; font-weight: 700; tabular-nums: tabular-nums; }

.c-edge-meter { display: flex; align-items: center; gap: 12px; font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; font-weight: 700; margin-top: auto; }
.c-edge-bar { flex-grow: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; position: relative; }
.c-edge-fill { height: 100%; position: absolute; left: 0; top: 0; background: #fbbf24; border-radius: 2px; transition: width 1s ease-out; }

/* Lists */
.ais-list { display: flex; flex-direction: column; gap: 12px; }
.ais-list-item { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); padding: 16px; border-radius: 12px; cursor: pointer; transition: 0.2s; border-left: 4px solid transparent; }
.ais-list-item:hover { background: rgba(255,255,255,0.05); border-left-color: #c084fc; transform: translateX(4px); }
.ais-list-item.selected { border-left-color: #06b6d4; background: rgba(6,182,212,0.05); border-color: rgba(6,182,212,0.3); }

/* Explore */
.ais-search-box { position: relative; width: 100%; }
.ais-search-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.4); font-size: 1.2rem; }
.ais-search-box input { width: 100%; padding: 16px 20px 16px 48px; background: rgba(0,0,0,0.4); border: 1px solid rgba(192,132,252,0.3); color: white; border-radius: 16px; outline: none; font-size: 1.1rem; font-weight: 700; transition: 0.3s; }
.ais-search-box input:focus { box-shadow: 0 0 20px rgba(192,132,252,0.2); }
.ais-scenario-results { background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); border-radius: 16px; padding: 24px; animation: popIn 0.4s ease-out; }

/* Charts */
.ais-chart-container { width: 100%; height: 250px; background: rgba(255,255,255,0.02); border-radius: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,0.05); }
.chart-svg { width: 100%; height: 100%; padding: 10px; overflow: visible; }
.chart-axis { stroke: rgba(255,255,255,0.1); stroke-width: 1; }
.chart-line-act { fill: none; stroke: rgba(255,255,255,0.3); stroke-width: 2; stroke-dasharray: 4; }
.chart-line-scen { fill: none; stroke: #c084fc; stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 4px 10px rgba(192,132,252,0.3)); }
.chart-fill-mc { fill: rgba(192,132,252,0.1); stroke: none; }
.chart-line-mc-mid { fill: none; stroke: #fbbf24; stroke-width: 2; stroke-linecap: round; }

/* Detail Slide Panel */
.ais-slide-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 999; transition: opacity 0.4s; }
.ais-slide-panel { position: fixed; top: 0; right: 0; width: 100%; max-width: 650px; height: 100vh; background: #0d0b12; border-left: 1px solid rgba(255,255,255,0.1); z-index: 1000; box-shadow: -10px 0 30px rgba(0,0,0,0.5); transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); display: flex; flex-direction: column; }
.ais-slide-panel.open { transform: translateX(0); }
.ais-detail-bg { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to bottom, rgba(6,182,212,0.3), #0d0b12); transition: background 0.3s; }
.ais-slide-body { padding: 24px; overflow-y: auto; flex-grow: 1; }
.ais-status-pill { font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 12px; text-transform: uppercase; letter-spacing: 1px; }
.st-new { background: rgba(6,182,212,0.2); color: #06b6d4; border: 1px solid rgba(6,182,212,0.4); }
.st-act { background: rgba(34,197,94,0.2); color: #22c55e; border: 1px solid rgba(34,197,94,0.4); }
.st-tst { background: rgba(251,191,36,0.2); color: #fbbf24; border: 1px solid rgba(251,191,36,0.4); }

.ais-tabs { display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
.ais-tab-mini { background: transparent; border: none; color: rgba(255,255,255,0.5); font-weight: 600; cursor: pointer; padding: 6px 12px; transition: 0.2s; text-transform: uppercase; font-size: 0.8rem; border-radius: 8px; }
.ais-tab-mini:hover { color: white; background: rgba(255,255,255,0.05); }
.ais-tab-mini.active { color: #06b6d4; background: rgba(6,182,212,0.1); }
.ais-det-section { animation: fadeInUp 0.3s forwards; }

.ais-rules-list { display: flex; flex-direction: column; gap: 8px; }
.ais-rule-item { display: flex; align-items: center; gap: 12px; background: rgba(0,0,0,0.2); padding: 12px; border-radius: 8px; border-left: 2px solid #06b6d4; font-size: 0.85rem; color: #fff; }
.ais-chk-list { display: flex; flex-direction: column; gap: 8px; }
.ais-chk-item { display: flex; align-items: center; gap: 12px; font-size: 0.85rem; color: rgba(255,255,255,0.8); }

.ais-sticky-cta { position: absolute; bottom: 0; left: 0; width: 100%; padding: 24px; background: linear-gradient(to top, #0d0b12 70%, transparent); display: flex; }

/* Modals */
.ais-modal { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.ais-modal__overlay { position: absolute; width: 100%; height: 100%; background: rgba(0,0,0,0.8); backdrop-filter: blur(8px); }
.ais-modal__content { position: relative; background: #0d0b12; border: 1px solid rgba(255,255,255,0.1); border-radius: 24px; width: 90%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.5); animation: popIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards; }
.ais-modal__close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.5rem; cursor: pointer; transition: 0.3s; z-index: 10; }
.ais-modal__close:hover { color: white; }

.ais-giant-icon { font-size: 4rem; display: inline-block; }
.ais-progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.1); border-radius: 4px; overflow: hidden; }
.ais-progress-fill { height: 100%; border-radius: 4px; transition: width 0.2s linear; }