*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-light: rgba(99,102,241,.1);
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fb;
  --bg-tertiary: #f1f3f5;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fb;
  --bg-input: #ffffff;
  --bg-modal: #ffffff;
  --border: #e2e4e9;
  --border-light: #eef0f3;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --text-inverse: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #22c55e;
  --warning: #f59e0b;
  --tag-bg: #eef2ff;
  --tag-text: #4338ca;
  --header-bg: rgba(255,255,255,.85);
  --chart-grid: rgba(0,0,0,.06);
}

[data-theme="dark"] {
  --accent: #818cf8;
  --accent-hover: #6366f1;
  --accent-light: rgba(129,140,248,.12);
  --bg-primary: #0c0c0f;
  --bg-secondary: #13131a;
  --bg-tertiary: #1c1c27;
  --bg-card: #16161f;
  --bg-card-hover: #1e1e2a;
  --bg-input: #1c1c27;
  --bg-modal: #16161f;
  --border: #2a2a3a;
  --border-light: #222233;
  --text-primary: #f1f1f4;
  --text-secondary: #9ca3b4;
  --text-tertiary: #6b7280;
  --text-inverse: #111827;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
  --danger: #f87171;
  --danger-hover: #ef4444;
  --success: #4ade80;
  --warning: #fbbf24;
  --tag-bg: rgba(99,102,241,.15);
  --tag-text: #a5b4fc;
  --header-bg: rgba(12,12,15,.85);
  --chart-grid: rgba(255,255,255,.06);
}

html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; line-height: 1.6; color: var(--text-primary); background: var(--bg-primary); scroll-behavior: smooth; }
body { min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; border: none; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-primary); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: var(--danger-hover); }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { background: none; border: 1px solid var(--border); color: var(--text-secondary); width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s ease; }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-social { gap: 10px; padding: 12px 20px; }

/* Theme toggle */
[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }

/* Form */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 6px; color: var(--text-secondary); }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; font-family: inherit; background: var(--bg-input); color: var(--text-primary); transition: border-color .15s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-tertiary); font-size: .82rem; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* Landing Header */
.landing-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.landing-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.logo-icon { width: 32px; height: 32px; }
.landing-actions { display: flex; align-items: center; gap: 12px; }

/* Hero */
.hero { max-width: 1200px; margin: 0 auto; padding: 80px 24px 60px; display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero h1 { font-size: 3.2rem; font-weight: 800; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 16px; background: linear-gradient(135deg, var(--text-primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px; line-height: 1.7; }
.hero-visual { flex: 1; display: flex; justify-content: center; gap: 16px; perspective: 800px; }
.hero-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; box-shadow: var(--shadow-md); transition: transform .3s ease; min-width: 130px; }
.hero-card:hover { transform: translateY(-4px); }
.hero-card-1 { transform: translateY(20px); }
.hero-card-3 { transform: translateY(20px); }
.hero-card-icon { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--accent-light); display: flex; align-items: center; justify-content: center; }
.hero-card-icon svg { width: 24px; height: 24px; stroke: var(--accent); }

/* Benefits */
.benefits { max-width: 1200px; margin: 0 auto; padding: 60px 24px 80px; text-align: center; }
.benefits h2 { font-size: 2rem; font-weight: 700; margin-bottom: 40px; }
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.benefit-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: left; transition: all .2s ease; }
.benefit-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.benefit-icon { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--accent-light); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.benefit-icon svg { width: 22px; height: 22px; stroke: var(--accent); }
.benefit-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.benefit-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.6; }

/* Testimonials */
.testimonials { background: var(--bg-secondary); padding: 60px 24px 80px; text-align: center; }
.testimonials h2 { font-size: 2rem; font-weight: 700; margin-bottom: 40px; }
.testimonials-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; text-align: left; }
.testimonial-card p { color: var(--text-secondary); font-size: .92rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; }
.testimonial-author strong { display: block; font-size: .9rem; }
.testimonial-author span { font-size: .8rem; color: var(--text-tertiary); }

/* Landing footer */
.landing-footer { text-align: center; padding: 24px; color: var(--text-tertiary); font-size: .82rem; border-top: 1px solid var(--border-light); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: none; align-items: center; justify-content: center; z-index: 1000; backdrop-filter: blur(4px); }
.modal-overlay.active { display: flex; }
.modal { background: var(--bg-modal); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; width: 100%; max-width: 420px; position: relative; box-shadow: var(--shadow-lg); }
.modal h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.modal-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--text-tertiary); line-height: 1; }
.modal-close:hover { color: var(--text-primary); }
.sign-in-subtitle { color: var(--text-secondary); font-size: .9rem; margin-bottom: 20px; }
.auth-toggle { text-align: center; margin-top: 16px; font-size: .85rem; color: var(--text-secondary); }
.auth-toggle a { color: var(--accent); font-weight: 500; }

/* App Header */
.app-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border-light); }
.app-header-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 32px; }
.app-nav { display: flex; gap: 4px; flex: 1; }
.app-nav a { padding: 8px 16px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 500; color: var(--text-secondary); text-decoration: none; transition: all .15s; }
.app-nav a:hover { background: var(--accent-light); color: var(--accent); text-decoration: none; }
.app-nav a.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.header-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }

/* User Menu */
.user-menu { position: relative; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: border-color .15s; }
.user-avatar:hover { border-color: var(--accent-hover); }
.user-dropdown { position: absolute; top: calc(100% + 8px); right: 0; width: 240px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); display: none; overflow: hidden; z-index: 200; }
.user-dropdown.active { display: block; }
.user-dropdown-header { padding: 14px 16px; }
.user-dropdown-header strong { display: block; font-size: .9rem; }
.user-dropdown-header span { font-size: .8rem; color: var(--text-tertiary); }
.user-dropdown-divider { height: 1px; background: var(--border-light); }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; font-size: .88rem; color: var(--text-primary); text-decoration: none; cursor: pointer; transition: background .1s; width: 100%; border: none; background: none; font-family: inherit; text-align: left; }
.user-dropdown-item:hover { background: var(--accent-light); color: var(--accent); text-decoration: none; }
.user-dropdown-signout { color: var(--danger); }
.user-dropdown-signout:hover { background: rgba(239,68,68,.08); color: var(--danger); }

/* Main Content */
#app-content { max-width: 1400px; margin: 0 auto; padding: 24px; min-height: calc(100vh - 60px); }

/* Catalog View */
.catalog-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 200px; position: relative; }
.search-box input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; background: var(--bg-input); color: var(--text-primary); font-family: inherit; }
.search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; stroke: var(--text-tertiary); }
.view-toggles { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle-btn { padding: 8px 14px; background: none; border: none; cursor: pointer; color: var(--text-tertiary); display: flex; align-items: center; }
.view-toggle-btn:not(:last-child) { border-right: 1px solid var(--border); }
.view-toggle-btn.active { background: var(--accent-light); color: var(--accent); }
.view-toggle-btn svg { width: 18px; height: 18px; }
.tag-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.tag-filter { padding: 5px 12px; border-radius: 20px; font-size: .78rem; font-weight: 500; background: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border); cursor: pointer; transition: all .15s; }
.tag-filter:hover, .tag-filter.active { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* Product Cards Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.product-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; cursor: pointer; transition: all .2s ease; display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.product-card-name { font-size: 1.05rem; font-weight: 600; }
.product-card-style { padding: 3px 10px; border-radius: 20px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.style-rest { background: #dbeafe; color: #1e40af; }
.style-mcp { background: #dcfce7; color: #166534; }
.style-a2a { background: #fef3c7; color: #92400e; }
[data-theme="dark"] .style-rest { background: rgba(59,130,246,.2); color: #93c5fd; }
[data-theme="dark"] .style-mcp { background: rgba(34,197,94,.15); color: #86efac; }
[data-theme="dark"] .style-a2a { background: rgba(245,158,11,.15); color: #fcd34d; }
.product-card-desc { color: var(--text-secondary); font-size: .88rem; margin-bottom: 14px; flex: 1; }
.product-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product-tag { padding: 2px 8px; border-radius: 4px; font-size: .72rem; font-weight: 500; background: var(--tag-bg); color: var(--tag-text); }

/* Product List Table */
.products-table { width: 100%; border-collapse: collapse; }
.products-table th { text-align: left; padding: 10px 14px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); border-bottom: 2px solid var(--border); cursor: pointer; user-select: none; white-space: nowrap; }
.products-table th:hover { color: var(--accent); }
.products-table th .sort-icon { display: inline-block; margin-left: 4px; font-size: .7rem; }
.products-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); font-size: .9rem; }
.products-table tr { cursor: pointer; transition: background .1s; }
.products-table tbody tr:hover { background: var(--bg-card-hover); }
.products-empty { text-align: center; padding: 60px 20px; color: var(--text-tertiary); }
.products-empty svg { width: 48px; height: 48px; margin-bottom: 12px; stroke: var(--text-tertiary); opacity: .5; }

/* Product Detail */
.product-detail { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }
.product-detail-main { min-width: 0; }
.product-detail-sidebar { }
.product-detail-header { margin-bottom: 24px; }
.product-detail-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-size: .88rem; margin-bottom: 16px; cursor: pointer; background: none; border: none; font-family: inherit; }
.product-detail-back:hover { color: var(--accent); }
.product-detail-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 12px; }
.product-detail-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.product-detail-desc { color: var(--text-secondary); font-size: .95rem; line-height: 1.7; }
.product-detail-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.product-detail-section h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; }
.endpoint-item { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--bg-tertiary); border-radius: var(--radius-sm); font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem; margin-bottom: 8px; word-break: break-all; }
.endpoint-item:last-child { margin-bottom: 0; }
.copy-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-tertiary); padding: 4px; flex-shrink: 0; }
.copy-btn:hover { color: var(--accent); }
.copy-btn svg { width: 16px; height: 16px; }

/* Code snippet */
.code-block { background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; font-family: 'SF Mono', 'Fira Code', monospace; font-size: .82rem; overflow-x: auto; line-height: 1.6; color: var(--text-primary); position: relative; }
.code-block-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.code-block-lang { font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--text-tertiary); }

/* Sidebar cards */
.sidebar-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; margin-bottom: 16px; }
.sidebar-card h3 { font-size: .95rem; font-weight: 600; margin-bottom: 14px; }
.sidebar-app-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border-light); }
.sidebar-app-item:last-child { border-bottom: none; }
.sidebar-app-name { font-size: .88rem; font-weight: 500; cursor: pointer; color: var(--accent); }
.sidebar-app-name:hover { text-decoration: underline; }
.sidebar-app-status { font-size: .75rem; padding: 2px 8px; border-radius: 10px; }
.status-active { background: rgba(34,197,94,.12); color: var(--success); }
.status-inactive { background: rgba(239,68,68,.1); color: var(--danger); }

/* API Viewer Container */
.api-viewer-container { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; min-height: 500px; background: var(--bg-card); }

/* Apps View */
.apps-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.apps-header h2 { font-size: 1.5rem; font-weight: 700; }
.apps-list { display: flex; flex-wrap: wrap; gap: 16px; }
.app-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; transition: all .2s; cursor: pointer; flex: 0 0 300px; display: flex; flex-direction: column; }
.app-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.app-card-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 12px; }
.app-card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; }
.credentials-section { background: var(--bg-tertiary); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 14px; }
.credential-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .85rem; }
.credential-row:last-child { margin-bottom: 0; }
.credential-label { font-weight: 500; color: var(--text-secondary); min-width: 90px; flex-shrink: 0; }
.credential-value { font-family: 'SF Mono', 'Fira Code', monospace; font-size: .8rem; background: var(--bg-input); padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.credential-toggle { background: none; border: none; cursor: pointer; color: var(--text-tertiary); padding: 4px; flex-shrink: 0; }
.credential-toggle:hover { color: var(--accent); }
.app-products-list { display: flex; flex-wrap: wrap; gap: 8px; }
.app-product-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 20px; font-size: .82rem; font-weight: 500; background: var(--accent-light); color: var(--accent); cursor: pointer; }
.app-product-chip:hover { text-decoration: underline; }

/* Create/Edit App Modal */
.modal-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.product-checkbox-list { max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.product-checkbox-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border-light); font-size: .88rem; }
.product-checkbox-item:last-child { border-bottom: none; }
.product-checkbox-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

/* Account View */
.account-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.account-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }
.account-info-grid { display: grid; grid-template-columns: 140px 1fr; gap: 12px; font-size: .9rem; }
.account-info-label { font-weight: 500; color: var(--text-secondary); }
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }
.danger-zone p { color: var(--text-secondary); font-size: .9rem; margin-bottom: 16px; }

/* Analytics View */
.analytics-controls { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.analytics-controls label { font-size: .88rem; font-weight: 500; color: var(--text-secondary); }
.analytics-controls select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .88rem; background: var(--bg-input); color: var(--text-primary); font-family: inherit; }
.analytics-chart-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; margin-bottom: 24px; }
.analytics-chart-container h3 { font-size: 1rem; font-weight: 600; margin-bottom: 16px; }
.chart-wrapper { position: relative; height: 320px; }
.chart-wrapper-pie { height: 340px; display: flex; align-items: center; justify-content: center; }
.analytics-table-container { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.analytics-table-container h3 { font-size: 1rem; font-weight: 600; padding: 16px 20px 0; }
.analytics-table { width: 100%; border-collapse: collapse; }
.analytics-table th { text-align: left; padding: 12px 20px; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-tertiary); border-bottom: 2px solid var(--border); }
.analytics-table td { padding: 12px 20px; border-bottom: 1px solid var(--border-light); font-size: .88rem; }

/* Tabs */
.tab-bar { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.tab-btn { padding: 10px 20px; font-size: .9rem; font-weight: 500; color: var(--text-secondary); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .15s; font-family: inherit; }
.tab-btn:hover { color: var(--accent); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }

/* Metric cards */
.metric-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.metric-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.metric-card-label { font-size: .78rem; font-weight: 500; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.metric-card-value { font-size: 1.6rem; font-weight: 700; }

/* Loading spinner */
.analytics-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; color: var(--text-tertiary); gap: 16px; }
.analytics-loading p { font-size: .92rem; }
.spinner { width: 36px; height: 36px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 20px; box-shadow: var(--shadow-lg); z-index: 2000; font-size: .88rem; display: flex; align-items: center; gap: 10px; transform: translateY(100px); opacity: 0; transition: all .3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }

/* Overview View */
.overview-hero { text-align: center; padding: 40px 0 48px; }
.overview-hero h1 { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; background: linear-gradient(135deg, var(--text-primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.overview-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; line-height: 1.7; }
.overview-solutions { margin-bottom: 48px; }
.overview-solutions h2, .overview-highlights h2, .overview-getting-started h2 { font-size: 1.4rem; font-weight: 700; margin-bottom: 20px; }
.solutions-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.solution-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: all .2s; flex: 1 1 280px; max-width: 380px; }
.solution-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solution-icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.solution-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.solution-card p { color: var(--text-secondary); font-size: .9rem; line-height: 1.65; margin-bottom: 14px; }
.solution-products { display: flex; flex-wrap: wrap; gap: 6px; }
.solution-product-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 20px; font-size: .78rem; font-weight: 500; background: var(--accent-light); color: var(--accent); cursor: pointer; transition: all .15s; }
.solution-product-chip:hover { background: var(--accent); color: white; text-decoration: none; }
.highlights-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 48px; }
.highlight-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; cursor: pointer; transition: all .2s; position: relative; overflow: hidden; flex: 1 1 220px; max-width: 300px; }
.highlight-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.highlight-card-badge { position: absolute; top: 12px; right: 12px; }
.highlight-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.highlight-card p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; margin-bottom: 10px; }
.highlight-card-footer { display: flex; align-items: center; gap: 8px; }
.overview-getting-started { margin-bottom: 48px; }
.steps-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.step-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; text-align: center; flex: 1 1 200px; max-width: 280px; }
.step-number { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; margin: 0 auto 14px; }
.step-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step-card p { color: var(--text-secondary); font-size: .88rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding: 50px 24px 40px; }
  .hero-visual { order: -1; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-sidebar { order: -1; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 2.2rem; }
  .app-nav { display: none; }
  .products-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { flex-direction: column; }
}
