/* ============================================
   珍妮 CLAW (珍妮 CLAW) - Global Styles
   ============================================ */

:root {
  /* Colors */
  --primary: #6366f1;
  --primary-hover: #4f46e5;
  --primary-light: #a5b4fc;
  --secondary: #ec4899;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* Neutrals */
  --bg: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --surface: #1e293b;
  --surface-hover: #273548;
  --border: #334155;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  /* Sizing */
  --radius: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
  --sidebar-width: 260px;
  --topbar-height: 56px;

  /* Shadows */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-light);
  text-decoration: none;
}

a:hover {
  color: var(--primary);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

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

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-outline {
  background: transparent;
  color: var(--primary-light);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 1rem;
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forms */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.875rem;
  transition: border-color 0.15s;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

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

select.form-input {
  cursor: pointer;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-success { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: var(--warning); }
.badge-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: var(--info); }
.badge-primary { background: rgba(99, 102, 241, 0.15); color: var(--primary-light); }

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}

th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tr:hover td {
  background: var(--surface-hover);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 4px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px;
}

/* App Layout */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
}

.sidebar-logo {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 12px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 2px;
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.nav-item.active {
  background: var(--primary);
  color: white;
}

.sidebar-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: var(--topbar-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-credits {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
}

.topbar-credits .amount {
  color: var(--success);
  font-weight: 600;
}

.content-area {
  padding: 24px;
  flex: 1;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.empty-state p {
  color: var(--text-muted);
  max-width: 400px;
  margin-bottom: 20px;
}

/* Loading */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* Toast notifications */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.2s ease;
  max-width: 360px;
}

.toast-success { background: var(--success); color: white; }
.toast-error { background: var(--danger); color: white; }
.toast-info { background: var(--info); color: white; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination button {
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
}

.pagination button:hover {
  background: var(--surface-hover);
}

.pagination button.active {
  background: var(--primary);
  border-color: var(--primary);
}

.pagination button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 6px;
  border-radius: var(--radius);
  transition: all 0.15s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--primary-light);
  font-weight: 600;
}

.lang-sep {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }
}

/* ============================================
   Skills Marketplace
   ============================================ */
.skills-page { max-width: 1200px; }

.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.skills-tabs { display: flex; gap: 8px; }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.skill-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

.skill-card.skill-installed {
  border-color: var(--success);
  background: linear-gradient(135deg, var(--surface), rgba(34, 197, 94, 0.05));
}

.skill-card.skill-pro:not(.skill-installed) {
  background: linear-gradient(135deg, var(--surface), rgba(245, 180, 40, 0.06));
  border-color: rgba(245, 180, 40, 0.3);
  padding: 24px;
  min-height: 200px;
}

.skill-card.skill-pro:not(.skill-installed):hover {
  border-color: rgba(245, 180, 40, 0.7);
  box-shadow: 0 4px 20px rgba(245, 180, 40, 0.15), 0 0 40px rgba(245, 180, 40, 0.05);
  transform: translateY(-3px);
}

.skill-card.skill-pro .skill-icon { font-size: 2rem; }

/* Pro section golden title */
.skills-section:last-child .skills-section-title {
  background: linear-gradient(90deg, #f5b428, #e8a317, #d4941a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pro tier badge — gold */
.tier-badge.tier-pro {
  background: linear-gradient(135deg, rgba(245, 180, 40, 0.15), rgba(212, 148, 26, 0.15));
  color: #f5b428;
  border: 1px solid rgba(245, 180, 40, 0.4);
}

.skill-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.skill-icon { font-size: 1.75rem; }

.skill-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.tier-badge, .category-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.tier-badge.tier-starter {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.tier-badge.tier-pro {
  background: rgba(139, 92, 246, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.skill-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.skill-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.skill-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.skill-installs, .skill-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover { background: #16a34a; }

/* Smart skill tip */
.smart-skill-tip {
  background: rgba(139, 92, 246, 0.08);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #c4b5fd;
  line-height: 1.5;
}
.smart-skill-tip strong { color: #a78bfa; }

/* Skill priority slider */
.skill-priority {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  margin-bottom: 8px;
}
.skill-priority label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  min-width: 42px;
}
.priority-slider {
  flex: 1;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.priority-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 0 4px rgba(139, 92, 246, 0.4);
}
.priority-value {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 20px;
  text-align: center;
}
.priority-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 30px;
}

/* Install progress bar */
.install-bar {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.install-bar-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.install-bar-track {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.install-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.installed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* Skills sections */
.skills-section { margin-bottom: 16px; }

.skills-section-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.skills-section-count {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 8px;
}

.skills-section-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Auth - Google Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Auth divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Email verification banner */
/* ---- Email Verification Gate ---- */
.verify-gate {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.verify-gate.hidden { display: none !important; }

.verify-gate-card {
  background: var(--surface);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 48px 40px 36px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(99, 102, 241, 0.08);
  animation: gateSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes gateSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.verify-gate-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: gateBounce 2s ease-in-out infinite;
}

@keyframes gateBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.verify-gate-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #e0e7ff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.verify-gate-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 28px;
}

.verify-gate-desc strong {
  color: var(--primary-light);
  font-weight: 600;
}

.verify-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.verify-gate-actions .btn {
  width: 100%;
  padding: 12px;
  font-size: 0.9rem;
}

.verify-gate-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
  transition: color 0.2s;
}
.verify-gate-logout:hover { color: var(--danger); }

/* ============================================
   Pricing / Subscription Page
   ============================================ */
.pricing-page {
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-page-header {
  text-align: center;
  margin-bottom: 36px;
}

.pricing-page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* Grid */
.claw-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1100px) {
  .claw-pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .claw-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Card */
.claw-pricing-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.claw-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

/* Featured (Starter) */
.claw-pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 20px rgba(99, 102, 241, 0.12);
}

.claw-pricing-card.featured:hover {
  box-shadow: 0 0 0 1px var(--primary), 0 12px 40px rgba(99, 102, 241, 0.25);
}

/* Current plan glow */
.claw-pricing-card.current-plan {
  border-color: var(--success);
  box-shadow: 0 0 0 1px var(--success), 0 4px 12px rgba(34, 197, 94, 0.1);
}

/* Enterprise */
.claw-pricing-card.enterprise {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b, 0 4px 12px rgba(245, 158, 11, 0.1);
}

.claw-pricing-card.enterprise:hover {
  box-shadow: 0 0 0 1px #f59e0b, 0 12px 40px rgba(245, 158, 11, 0.2);
}

/* Popular badge */
.claw-pricing-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
  padding: 4px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.claw-pricing-popular.enterprise-pop {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

/* Header */
.claw-pricing-header {
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.claw-pricing-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}

.claw-pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.claw-price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  vertical-align: super;
}

.claw-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.claw-price-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.claw-pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* Feature list */
.claw-pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 24px;
}

.claw-pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.88rem;
  color: var(--text);
}

.claw-pricing-features li.disabled {
  color: var(--text-muted);
}

.feat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}

.feat-icon.check {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.feat-icon.cross {
  background: rgba(100, 116, 139, 0.15);
  color: var(--text-muted);
}

/* Buttons */
.claw-pricing-btn {
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.claw-pricing-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(99, 102, 241, 0.08);
}

.claw-pricing-btn.primary {
  background: linear-gradient(135deg, var(--primary), #818cf8);
  color: white;
  border-color: transparent;
}

.claw-pricing-btn.primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-hover), #6366f1);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.claw-pricing-btn.enterprise-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-color: transparent;
}

.claw-pricing-btn.enterprise-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #d97706, #b45309);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.claw-pricing-btn.current {
  background: var(--bg-tertiary);
  color: var(--text-muted);
  cursor: default;
  border-color: transparent;
}

.claw-pricing-btn:disabled {
  opacity: 0.7;
  cursor: default;
  transform: none !important;
  box-shadow: none !important;
}

/* Reward banner */
.claw-reward-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.1));
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  animation: rewardPulse 3s ease-in-out infinite;
}

@keyframes rewardPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
  50% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.1); }
}

.reward-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.reward-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reward-text strong {
  font-size: 1rem;
  color: var(--primary-light);
}

.reward-text span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.toggle-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s;
  user-select: none;
}

.toggle-label.active {
  color: var(--text-primary);
  font-weight: 600;
}

.toggle-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--success), #10b981);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 4px;
  vertical-align: middle;
}

.toggle-switch {
  width: 48px;
  height: 26px;
  background: var(--bg-tertiary);
  border-radius: 13px;
  cursor: pointer;
  position: relative;
  transition: background 0.3s;
  border: 1px solid rgba(255,255,255,0.1);
}

.toggle-switch.on {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.toggle-knob {
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 3px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch.on .toggle-knob {
  transform: translateX(22px);
}

.annual-equiv {
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 4px;
  font-weight: 500;
}

/* ============================================
   Unlock Guide Page
   ============================================ */
.unlock-guide-page {
  max-width: 900px;
  margin: 0 auto;
}

.unlock-guide-header {
  text-align: center;
  margin-bottom: 32px;
}

.unlock-guide-header h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #f59e0b, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.unlock-guide-header p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Current plan badge */
.unlock-current-plan {
  text-align: center;
  margin-bottom: 28px;
}

.unlock-plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 0.95rem;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.unlock-plan-badge strong {
  font-size: 1.1rem;
}

/* Section card */
.unlock-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  transition: border-color 0.2s;
}

.unlock-section:hover {
  border-color: rgba(99, 102, 241, 0.3);
}

.unlock-section-highlight {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, var(--surface), rgba(245, 158, 11, 0.03));
}

.unlock-section-highlight:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.unlock-section-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.unlock-section-icon {
  font-size: 1.3rem;
  width: 28px;
  text-align: center;
  flex-shrink: 0;
}

.unlock-section-hdr h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.unlock-section-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: -6px 0 16px 38px;
  line-height: 1.5;
}

/* Tables */
.unlock-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.unlock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.unlock-table th {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.unlock-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.unlock-table tbody tr:hover {
  background: var(--surface-hover);
}

/* My tier row highlight */
.unlock-row-mine {
  background: rgba(99, 102, 241, 0.08) !important;
}

.unlock-row-mine td {
  color: var(--primary-light);
  font-weight: 600;
}

/* Status indicators */
.unlock-yes {
  color: var(--success);
  font-weight: 700;
}

.unlock-no {
  color: var(--text-muted);
  font-size: 1rem;
}

.unlock-section-note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Model chips */
.model-chip {
  display: inline-block;
  padding: 3px 10px;
  margin: 2px 4px 2px 0;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Cost level badges */
.cost-low {
  color: var(--success);
  font-weight: 600;
}

.cost-mid {
  color: #f59e0b;
  font-weight: 600;
}

.cost-high {
  color: #f97316;
  font-weight: 600;
}

.cost-premium {
  color: #ef4444;
  font-weight: 600;
}

/* CTA */
.unlock-cta {
  text-align: center;
  margin: 32px 0 16px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .unlock-section {
    padding: 16px;
    border-radius: 12px;
  }

  .unlock-section-hdr h2 {
    font-size: 1rem;
  }

  .unlock-table {
    font-size: 0.8rem;
  }

  .unlock-table th,
  .unlock-table td {
    padding: 8px 10px;
  }

  .unlock-section-desc {
    padding-left: 0;
    margin-left: 0;
  }

  .unlock-plan-badge {
    font-size: 0.85rem;
    padding: 10px 18px;
  }

  .unlock-plan-badge strong {
    font-size: 0.95rem;
  }

  .model-chip {
    font-size: 0.72rem;
    padding: 2px 8px;
  }
}

