:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --text-tertiary: #adb5bd;
  --border-color: #dee2e6;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.12);

  --primary: #000000;
  --primary-hover: #4338ca;
  --danger: #ef4444;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --sidebar-width: 220px;
  --header-height: 70px;
}

[data-theme="dark"] {
  --bg-primary: #1a1a1a;
  --bg-secondary: #242424;
  --bg-tertiary: #2d2d2d;
  --text-primary: #e5e5e5;
  --text-secondary: #a3a3a3;
  --text-tertiary: #737373;
  --border-color: #404040;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 8px 16px rgba(0, 0, 0, 0.6);
}

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

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: var(--transition);
}

/* ============================================
   Header
============================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 2rem;
  gap: 2rem;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.search-wrapper { position: relative; width: 100%; }
.search-icon {
  position: absolute;
  left: 1rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 5rem 0.75rem 3rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.kbd-hint {
  position: absolute;
  right: 1rem; top: 50%;
  transform: translateY(-50%);
  padding: 0.25rem 0.5rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px; height: 40px;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.25rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.05);
}

/* ============================================
   Sidebar
============================================ */
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header-height);
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1rem;
  overflow-y: auto;
}

.nav { display: flex; flex-direction: column; gap: 0.5rem; }

.nav-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.nav-item.active { background: var(--primary); color: white; }
.nav-icon { font-size: 1.25rem; }

/* ============================================
   Main
============================================ */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  padding: 2rem;
  min-height: calc(100vh - var(--header-height));
}

.prompts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ============================================
   Card
============================================ */
.prompt-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: grab;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.prompt-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--tool-color, var(--primary));
  opacity: 0.8;
}

.prompt-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.prompt-card.dragging { opacity: 0.5; cursor: grabbing; }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

/* tool tag (smaller) */
.card-tool-tag{
  display:inline-flex;
  align-items:center;
  padding:.18rem .5rem;
  border-radius:999px;
  font-size:.58rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.25px;
  color:#fff;
  margin-bottom:.55rem;
  box-shadow:0 1px 3px rgba(0,0,0,.08);
  line-height:1;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  flex: 1;
}

.card-actions { display: flex; gap: 0.5rem; opacity: 0; transition: var(--transition); }
.prompt-card:hover .card-actions { opacity: 1; }

.btn-icon {
  width: 32px; height: 32px;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:hover { background: var(--bg-tertiary); }
.btn-icon.delete:hover { background: var(--danger); color: white; }

/* Favorite icon */
.btn-icon.fav{
  font-weight: 900;
  width: 32px;
  height: 32px;
}

.btn-icon.fav.active{
  background: rgba(255, 193, 7, .18);
  border: 1px solid rgba(255, 193, 7, .25);
}

.btn-icon.fav:hover{
  background: rgba(255, 193, 7, .14);
}


.card-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.chip-removable { cursor: pointer; }
.chip-removable:hover { background: var(--danger); border-color: var(--danger); color: white; }

.chips-container { margin-bottom: 4px; }

/* Tool tag gradients */
.card-tool-tag.chatgpt { background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%); }
.card-tool-tag.claude { background: linear-gradient(135deg, #d97757 0%, #c45a3a 100%); }
.card-tool-tag.midjourney { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.card-tool-tag.gemini { background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%); }
.card-tool-tag.dalle { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); }
.card-tool-tag.perplexity { background: linear-gradient(135deg, #20b2aa 0%, #1a8f8a 100%); }
.card-tool-tag.grok { background: linear-gradient(135deg, #000 0%, #333 100%); }
.card-tool-tag.copilot { background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%); }
.card-tool-tag.other { background: linear-gradient(135deg, #64748b 0%, #475569 100%); }

/* ============================================
   Empty state
============================================ */
.empty-state { display: none; text-align: center; padding: 4rem 2rem; }
.empty-state.visible { display: block; }
.empty-icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-primary); }
.empty-state p { color: var(--text-secondary); }

/* ============================================
   Buttons
============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover { background: var(--bg-tertiary); }

/* ============================================
   Modal
============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.active { display: flex; opacity: 1; }

.modal {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 100vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal { transform: scale(1); }
.modal-preview { max-width: 700px; }

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-color);
}

.btn-close {
  width: 36px; height: 36px;
  border: none;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover { background: var(--bg-tertiary); color: var(--text-primary); }

.modal-body { padding: 2rem; }

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--border-color);
}

/* ============================================
   Form
============================================ */
.form-group { margin-bottom: 1.5rem; }

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea { resize: vertical; min-height: 120px; }

/* ============================================
   Preview
============================================ */
.preview-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.preview-content {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ============================================
   Drag placeholder
============================================ */
.drag-placeholder {
  border: 2px dashed var(--primary);
  background: rgba(79, 70, 229, 0.05);
  border-radius: var(--radius-lg);
}

/* ============================================
   AUTH (Login / Register) – new premium style
   Use in pages: <body class="auth-shell">
============================================ */
.auth-shell{
  min-height: 100vh;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.auth-wrap{
  width: min(1080px, 100%);
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

/* LEFT VISUAL */
.auth-visual{
  position: relative;
  min-height: 640px;
  background: radial-gradient(1200px 500px at 30% 30%, rgba(255,255,255,.14), transparent 55%),
              linear-gradient(135deg, #190a3a 0%, #3a1b7c 40%, #2b1362 100%);
  background-image :url(../img/background-image.webp);
  padding: 28px;
  display: flex;
  align-items: flex-end;
}

.auth-visual-card{
  width: 100%;
  border-radius: 18px;
  padding: 18px 18px 20px;
  background: rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  color: #fff;
}

.auth-visual-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.auth-visual-text{
  font-size: .95rem;
  line-height: 1.55;
  opacity: .95;
}

.auth-visual-dots{
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
  opacity: .9;
}

.auth-visual-dots span{
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.22);
}

.auth-visual-dots span.active{
  background: rgba(255,255,255,.9);
}

/* RIGHT FORM */
.auth-panel{
  padding: 44px 44px 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card{
  width: 100%;
  max-width: 440px;
}

.auth-title{
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.auth-subtitle{
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-size: .95rem;
}

.auth-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Field with icon */
.auth-field{
  position: relative;
}

.auth-field .auth-icon{
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  opacity: .65;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.auth-input{
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: .95rem;
  transition: var(--transition);
}

.auth-input:focus{
  outline: none;
  border-color: var(--primary);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Primary CTA */
.auth-cta{
  margin-top: 8px;
  width: 100%;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
}

/* Helper row */
.auth-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .9rem;
  color: var(--text-secondary);
}

.auth-link{
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.auth-link:hover{ text-decoration: underline; }

/* Divider "or" */
.auth-divider{
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px;
  color: var(--text-tertiary);
  font-size: .85rem;
  font-weight: 700;
}

.auth-divider::before,
.auth-divider::after{
  content: "";
  height: 1px;
  flex: 1;
  background: var(--border-color);
}

/* Social buttons */
.auth-social{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-social-btn{
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: var(--text-primary);
  transition: var(--transition);
}

.auth-social-btn:hover{
  background: var(--bg-secondary);
}

/* Footer */
.auth-footer{
  margin-top: 16px;
  text-align: center;
  color: var(--text-secondary);
  font-size: .95rem;
}

/* Error */
.auth-error{
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.25);
  color: var(--text-primary);
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

/* Auth responsive */
@media (max-width: 980px){
  .auth-wrap{
    grid-template-columns: 1fr;
  }
  .auth-visual{
    min-height: 340px;
  }
  .auth-panel{
    padding: 28px 22px;
  }
}

/* ============================================
   FINAL: User pill + dropdown (perfect next to Add Prompt)
============================================ */
.user-menu{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-pill{
  margin-left: 0;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: .85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.user-pill:hover{
  background: var(--bg-tertiary);
}

.user-caret{
  font-size: .85rem;
  opacity: .8;
}

.user-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 260px;
  max-width: min(340px, calc(100vw - 24px));
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  display: none;
  z-index: 9999;
}

.user-dropdown.open{
  display: block;
}

.user-dropdown::before{
  content: "";
  position: absolute;
  top: -6px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  transform: rotate(45deg);
}

.user-dropdown-header{
  padding: 8px 10px;
}

.user-name{
  font-weight: 800;
  color: var(--text-primary);
  font-size: .95rem;
}

.user-email{
  color: var(--text-tertiary);
  font-size: .85rem;
  margin-top: 2px;
  word-break: break-word;
}

.user-dropdown-divider{
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

.user-dropdown-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  transition: var(--transition);
}

.user-dropdown-item:hover{
  background: var(--bg-secondary);
}

.user-dropdown-item.danger:hover{
  background: rgba(239,68,68,.14);
}

/* ============================================
   Responsive
============================================ */
@media (max-width: 968px) {
  .sidebar { transform: translateX(-100%); }
  .main-content { margin-left: 0; }
  .prompts-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 640px) {
  .header { flex-wrap: wrap; height: auto; padding: 1rem; }
  .header-center { order: 3; width: 100%; margin-top: 1rem; }
  .main-content { margin-top: calc(var(--header-height) + 60px); padding: 1rem; }
  .prompts-grid { grid-template-columns: 1fr; }

  .user-dropdown{
    right: 0;
    left: auto;
    min-width: 220px;
  }
}

/* =========================================================
   LANDING v2 — Style inspired by reference (clean SaaS)
   Paste at END of assets/css/style.css
========================================================= */

.lp2-body{ background: #f3f3f3; color: #111; }
[data-theme="dark"] .lp2-body{ background: var(--bg-secondary); color: var(--text-primary); }

.lp2-container{
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.lp2-nav{
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(243,243,243,.85);
  backdrop-filter: blur(12px);
}
[data-theme="dark"] .lp2-nav{
  background: rgba(26,26,26,.70);
}
.lp2-nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}

.lp2-brand{ text-decoration:none; color:#111; }
[data-theme="dark"] .lp2-brand{ color: var(--text-primary); }
.lp2-brand-dot{
  display:inline-flex;
  width: 32px; height: 32px;
  align-items:center; justify-content:center;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.7);
  font-weight: 1000;
}

.lp2-links{
  display:flex;
  gap: 22px;
  align-items:center;
}
.lp2-links a{
  text-decoration:none;
  color: rgba(0,0,0,.70);
  font-weight: 800;
  font-size: .95rem;
}
[data-theme="dark"] .lp2-links a{ color: rgba(255,255,255,.72); }
.lp2-links a:hover{ color:#000; }
[data-theme="dark"] .lp2-links a:hover{ color:#fff; }

.lp2-actions{ display:flex; gap: 10px; align-items:center; }

/* Buttons */
.lp2-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 950;
  text-decoration:none;
  transition: var(--transition);
  border: 1px solid transparent;
}
.lp2-btn-lg{ padding: 12px 18px; border-radius: 14px; }
.lp2-btn-full{ width: 100%; }

.lp2-btn-solid{
  background:#111;
  color:#fff;
}
.lp2-btn-solid:hover{ transform: translateY(-1px); box-shadow: var(--shadow-md); }

.lp2-btn-ghost{
  background: rgba(255,255,255,.65);
  border-color: rgba(0,0,0,.12);
  color:#111;
}
[data-theme="dark"] .lp2-btn-ghost{
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.lp2-btn-ghost:hover{ background: rgba(255,255,255,.9); }

.lp2-btn-invert{
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
  color:#fff;
}
.lp2-btn-invert:hover{ background: rgba(255,255,255,.16); }

/* HERO */
.lp2-hero{ padding: 46px 0 14px; }
.lp2-hero-grid{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items:center;
}

.lp2-h1{
  font-size: clamp(2.1rem, 3.2vw, 3.2rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 1000;
  margin: 0 0 10px;
}
.lp2-sub{
  color: rgba(0,0,0,.62);
  font-weight: 750;
  max-width: 62ch;
  margin: 0 0 18px;
}
[data-theme="dark"] .lp2-sub{ color: rgba(255,255,255,.72); }

.lp2-hero-cta{ display:flex; gap: 12px; flex-wrap: wrap; }

.lp2-phone-stage{
  position: relative;
  min-height: 420px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Phone */
.lp2-phone{
  width: 340px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 18px 50px rgba(0,0,0,.12);
  overflow:hidden;
  position: relative;
}
[data-theme="dark"] .lp2-phone{
  background: var(--bg-primary);
  border-color: var(--border-color);
  box-shadow: var(--shadow-lg);
}

.lp2-dynamic-island{
  position:absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 18px;
  border-radius: 999px;
  background: rgba(0,0,0,.12);
}

.lp2-phone-topbar{
  padding: 26px 16px 12px;
  border-bottom: 1px solid rgba(0,0,0,.10);
}
[data-theme="dark"] .lp2-phone-topbar{
  border-bottom: 1px solid var(--border-color);
}

.lp2-balance-label{
  font-size: .78rem;
  font-weight: 900;
  color: rgba(0,0,0,.55);
}
[data-theme="dark"] .lp2-balance-label{ color: var(--text-secondary); }

.lp2-balance{
  font-size: 1.35rem;
  font-weight: 1000;
  letter-spacing: -0.02em;
  margin: 4px 0 10px;
}

.lp2-tabs{
  display:flex;
  gap: 10px;
  font-size: .8rem;
  font-weight: 900;
  color: rgba(0,0,0,.55);
}
[data-theme="dark"] .lp2-tabs{ color: var(--text-secondary); }
.lp2-tabs span{
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
}
[data-theme="dark"] .lp2-tabs span{
  border-color: var(--border-color);
  background: rgba(255,255,255,.04);
}
.lp2-tabs span.active{
  background:#111;
  color:#fff;
  border-color:#111;
}

.lp2-phone-body{ padding: 14px 14px 16px; }

.lp2-search{
  display:flex;
  align-items:center;
  gap: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  border-radius: 14px;
  padding: 10px 12px;
}
[data-theme="dark"] .lp2-search{
  border-color: var(--border-color);
  background: rgba(255,255,255,.04);
}
.lp2-search-bar{
  flex:1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0,0,0,.18), rgba(0,0,0,0));
}
[data-theme="dark"] .lp2-search-bar{
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,0));
}
.lp2-kbd{
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  font-weight: 1000;
  color: rgba(0,0,0,.55);
}
[data-theme="dark"] .lp2-kbd{
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.lp2-card{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
  background: #fff;
}
[data-theme="dark"] .lp2-card{
  background: rgba(255,255,255,.03);
  border-color: var(--border-color);
}
.lp2-tag{
  display:inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 1000;
  font-size: .72rem;
  color:#fff;
  margin-bottom: 8px;
}
.tag-chatgpt{ background: linear-gradient(135deg, #10a37f 0%, #1a7f64 100%); }
.tag-claude{ background: linear-gradient(135deg, #d97757 0%, #c45a3a 100%); }

.lp2-card-title{ font-weight: 1000; margin-bottom: 8px; }
.lp2-lines span{
  display:block;
  height: 9px;
  border-radius: 999px;
  background: rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.08);
  margin: 7px 0;
}
[data-theme="dark"] .lp2-lines span{
  background: rgba(255,255,255,.05);
  border-color: var(--border-color);
}
.lp2-lines .w90{ width:90%; }
.lp2-lines .w85{ width:85%; }
.lp2-lines .w75{ width:75%; }
.lp2-lines .w70{ width:70%; }
.lp2-lines .w60{ width:60%; }
.lp2-lines .w55{ width:55%; }

.lp2-phone-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 12px;
}
.lp2-pillbtn{
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(0,0,0,.03);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 1000;
  color: rgba(0,0,0,.70);
  cursor: pointer;
}
[data-theme="dark"] .lp2-pillbtn{
  border-color: var(--border-color);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.78);
}
.lp2-pillbtn.primary{
  background: rgba(0,0,0,.90);
  color:#fff;
  border-color: rgba(0,0,0,.90);
}

/* Floating cards */
.lp2-float{
  position:absolute;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.85);
  box-shadow: 0 12px 30px rgba(0,0,0,.10);
  padding: 12px 14px;
}
[data-theme="dark"] .lp2-float{
  background: rgba(26,26,26,.85);
  border-color: rgba(255,255,255,.14);
}
.lp2-float-title{ font-weight: 1000; font-size: .9rem; }
.lp2-float-value{ font-weight: 1000; font-size: 1.25rem; margin-top: 2px; }
.lp2-float-mini{ color: rgba(0,0,0,.55); font-weight: 800; margin-top: 2px; font-size: .85rem; }
[data-theme="dark"] .lp2-float-mini{ color: rgba(255,255,255,.7); }

.lp2-float-top{ left: -8px; top: 40px; }
.lp2-float-mid{ right: -8px; top: 85px; }
.lp2-float-bottom{
  left: 18px;
  right: 18px;
  bottom: -10px;
  display:flex;
  gap: 12px;
  justify-content:space-between;
  padding: 12px;
}
.lp2-mini-stat{
  flex:1;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.85);
  padding: 10px 10px;
}
[data-theme="dark"] .lp2-mini-stat{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.lp2-mini-stat .v{ font-weight: 1000; }
.lp2-mini-stat .l{ color: rgba(0,0,0,.55); font-weight: 800; font-size: .85rem; margin-top: 2px; }
[data-theme="dark"] .lp2-mini-stat .l{ color: rgba(255,255,255,.7); }
.lp2-mini-stat .g{ color: #0a8f3d; font-weight: 900; font-size: .82rem; margin-top: 3px; }
.lp2-mini-stat .r{ color: #d44; font-weight: 900; font-size: .82rem; margin-top: 3px; }

/* Logos row */
.lp2-logos{ padding: 18px 0 10px; }
.lp2-logos-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  color: rgba(0,0,0,.42);
  font-weight: 1000;
  letter-spacing: -0.02em;
}
[data-theme="dark"] .lp2-logos-row{ color: rgba(255,255,255,.45); }

/* Sections */
.lp2-section{ padding: 54px 0; }
.lp2-h2{
  font-size: 2rem;
  font-weight: 1000;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.lp2-h2.center, .lp2-p.center{ text-align:center; }
.lp2-p{
  color: rgba(0,0,0,.62);
  font-weight: 750;
  margin: 0 0 18px;
}
[data-theme="dark"] .lp2-p{ color: rgba(255,255,255,.70); }

/* Split blocks */
.lp2-split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items:center;
}
.lp2-split.reverse{ grid-template-columns: 1fr 1fr; }
.lp2-split.reverse .lp2-split-left{ order: 2; }
.lp2-split.reverse .lp2-split-right{ order: 1; }

.lp2-card-visual{
  border-radius: 22px;
  background: rgba(0,0,0,.05);
  border: 1px solid rgba(0,0,0,.10);
  padding: 18px;
}
[data-theme="dark"] .lp2-card-visual{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.lp2-card-visual-inner{
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.10);
  padding: 18px;
}
[data-theme="dark"] .lp2-card-visual-inner{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}
.lp2-card-visual-title{ font-weight: 1000; }
.lp2-card-visual-number{ font-weight: 1000; font-size: 1.6rem; margin-top: 6px; }
.lp2-card-visual-actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  color: rgba(0,0,0,.55);
  font-weight: 1000;
}
[data-theme="dark"] .lp2-card-visual-actions{ color: rgba(255,255,255,.70); }

.lp2-list{
  list-style:none;
  padding:0;
  margin: 12px 0 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  font-weight: 850;
  color: rgba(0,0,0,.70);
}
[data-theme="dark"] .lp2-list{ color: rgba(255,255,255,.75); }
.lp2-list li::before{
  content: "›";
  margin-right: 10px;
  font-weight: 1000;
}

/* Chart card */
.lp2-chart-card{
  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 16px;
  box-shadow: 0 14px 35px rgba(0,0,0,.08);
}
[data-theme="dark"] .lp2-chart-card{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
  box-shadow: var(--shadow-lg);
}
.lp2-chart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.lp2-chart-head .t{ color: rgba(0,0,0,.55); font-weight: 900; font-size: .85rem; }
[data-theme="dark"] .lp2-chart-head .t{ color: rgba(255,255,255,.70); }
.lp2-chart-head .n{ font-weight: 1000; font-size: 1.3rem; }
.lp2-chart-head .up{
  font-size: .85rem;
  font-weight: 1000;
  color: #0a8f3d;
}
.lp2-donut{
  width: 78px; height: 78px;
  border-radius: 999px;
  border: 10px solid rgba(0,0,0,.06);
  border-top-color: rgba(0,0,0,.70);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 1000;
}
[data-theme="dark"] .lp2-donut{
  border-color: rgba(255,255,255,.08);
  border-top-color: rgba(255,255,255,.70);
}

.lp2-bars{
  display:flex;
  gap: 10px;
  align-items:flex-end;
  height: 140px;
  margin-top: 14px;
  padding: 10px 6px 2px;
  border-radius: 18px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.08);
}
[data-theme="dark"] .lp2-bars{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.14);
}
.lp2-bars span{
  width: 14%;
  border-radius: 999px;
  background: rgba(0,0,0,.75);
  opacity: .9;
}
[data-theme="dark"] .lp2-bars span{ background: rgba(255,255,255,.78); }

/* Features cards pastel */
.lp2-features{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lp2-feature{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  padding: 16px;
  background: #fff;
}
[data-theme="dark"] .lp2-feature{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}
.lp2-feature-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.lp2-feature-title{ font-weight: 1000; }
.lp2-feature-icon{
  width: 32px; height: 32px;
  border-radius: 10px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
  font-weight: 1000;
}
.lp2-feature p{ margin:0; color: rgba(0,0,0,.62); font-weight: 750; }
[data-theme="dark"] .lp2-feature p{ color: rgba(255,255,255,.70); }

.pastel-blue{ background: rgba(92,160,255,.10); }
.pastel-cream{ background: rgba(255,220,140,.16); }
.pastel-pink{ background: rgba(255,140,180,.12); }

/* Pricing */
.lp2-pricing{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lp2-plan{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  padding: 16px;
  position: relative;
}
[data-theme="dark"] .lp2-plan{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}
.lp2-plan .name{ font-weight: 1000; }
.lp2-plan .price{ font-weight: 1000; font-size: 1.6rem; margin-top: 8px; }
.lp2-plan .price span{ font-size: .9rem; color: rgba(0,0,0,.55); font-weight: 900; }
[data-theme="dark"] .lp2-plan .price span{ color: rgba(255,255,255,.70); }
.lp2-plan ul{
  list-style:none;
  padding:0;
  margin: 12px 0 14px;
  display:flex;
  flex-direction:column;
  gap: 10px;
  color: rgba(0,0,0,.70);
  font-weight: 850;
}
[data-theme="dark"] .lp2-plan ul{ color: rgba(255,255,255,.78); }
.lp2-plan li::before{ content:"✓"; margin-right: 10px; font-weight: 1000; }

.lp2-plan.featured{
  border-color: rgba(0,0,0,.45);
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  transform: translateY(-4px);
}
[data-theme="dark"] .lp2-plan.featured{
  border-color: rgba(255,255,255,.35);
}
.lp2-plan .badge{
  position:absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.90);
  color:#fff;
  font-weight: 1000;
  font-size: .82rem;
}

/* FAQ */
.lp2-faq-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 16px;
  align-items:start;
}
.lp2-accordion{
  margin-top: 14px;
  border-top: 1px solid rgba(0,0,0,.10);
}
[data-theme="dark"] .lp2-accordion{
  border-top: 1px solid rgba(255,255,255,.14);
}
.lp2-q{
  width: 100%;
  text-align:left;
  border: 0;
  background: transparent;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,.10);
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight: 1000;
  color:#111;
}
[data-theme="dark"] .lp2-q{
  border-bottom: 1px solid rgba(255,255,255,.14);
  color: #fff;
}
.lp2-q.open .lp2-plus{ transform: rotate(45deg); }
.lp2-plus{ transition: var(--transition); font-size: 1.1rem; }

.lp2-a{
  overflow:hidden;
  max-height: 0;
  transition: max-height 300ms ease;
  color: rgba(0,0,0,.62);
  font-weight: 750;
  padding-right: 28px;
}
[data-theme="dark"] .lp2-a{ color: rgba(255,255,255,.70); }
.lp2-a{ margin: 0; }

.lp2-help{
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.65);
  padding: 18px;
}
[data-theme="dark"] .lp2-help{
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.14);
}
.lp2-help-title{ font-weight: 1000; font-size: 1.1rem; margin-bottom: 6px; }
.lp2-help-text{ color: rgba(0,0,0,.62); font-weight: 750; margin-bottom: 12px; }
[data-theme="dark"] .lp2-help-text{ color: rgba(255,255,255,.70); }

/* Big CTA */
.lp2-cta-dark{ padding: 54px 0; }
.lp2-cta-dark-inner{
  border-radius: 22px;
  padding: 40px 22px;
  background: #0b0b0c;
  color:#fff;
  text-align:center;
  position: relative;
  overflow:hidden;
}
.lp2-cta-dark-inner::before{
  content:"";
  position:absolute;
  inset:-60px;
  background:
    radial-gradient(420px 220px at 20% 30%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(420px 220px at 85% 20%, rgba(255,255,255,.08), transparent 60%);
  pointer-events:none;
}
.lp2-cta-dark-inner h2{
  margin:0 0 10px;
  font-weight: 1000;
  letter-spacing: -0.03em;
}
.lp2-cta-dark-inner p{
  margin:0 0 16px;
  color: rgba(255,255,255,.72);
  font-weight: 800;
}

/* Footer */
.lp2-footer{
  padding: 42px 0 18px;
  background: #e9e9e9;
  border-top: 1px solid rgba(0,0,0,.08);
}
[data-theme="dark"] .lp2-footer{
  background: rgba(255,255,255,.03);
  border-top: 1px solid rgba(255,255,255,.14);
}
.lp2-footer-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items:start;
}
.lp2-footer-title{ font-weight: 1000; font-size: 1.2rem; }
.lp2-footer-sub{ color: rgba(0,0,0,.62); font-weight: 750; margin-top: 6px; }
[data-theme="dark"] .lp2-footer-sub{ color: rgba(255,255,255,.70); }

.lp2-social{ display:flex; gap: 10px; margin-top: 12px; color: rgba(0,0,0,.55); }
[data-theme="dark"] .lp2-social{ color: rgba(255,255,255,.65); }

.lp2-footer-cols{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.lp2-footer-cols .h{ font-weight: 1000; margin-bottom: 8px; }
.lp2-footer-cols a{
  display:block;
  text-decoration:none;
  color: rgba(0,0,0,.62);
  font-weight: 800;
  margin-bottom: 8px;
}
[data-theme="dark"] .lp2-footer-cols a{ color: rgba(255,255,255,.70); }
.lp2-footer-cols a:hover{ color:#000; }
[data-theme="dark"] .lp2-footer-cols a:hover{ color:#fff; }

.lp2-footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(0,0,0,.08);
  color: rgba(0,0,0,.55);
  font-weight: 900;
  text-align:center;
}
[data-theme="dark"] .lp2-footer-bottom{
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.55);
}

/* Responsive */
@media (max-width: 980px){
  .lp2-hero-grid{ grid-template-columns: 1fr; }
  .lp2-links{ display:none; }
  .lp2-split{ grid-template-columns: 1fr; }
  .lp2-split.reverse .lp2-split-left{ order: 1; }
  .lp2-split.reverse .lp2-split-right{ order: 2; }
  .lp2-features{ grid-template-columns: 1fr; }
  .lp2-pricing{ grid-template-columns: 1fr; }
  .lp2-faq-grid{ grid-template-columns: 1fr; }
  .lp2-logos-row{ flex-wrap: wrap; justify-content:center; }
}
@media (max-width: 520px){
  .lp2-container{ width: calc(100% - 28px); }
  .lp2-float{ display:none; }
  .lp2-phone{ width: 320px; }
}
