/* ==========================================================================
   KLOVI DESIGN SYSTEM & MODERN STYLESHEET
   Aesthetics: Futuristic Dark Cyberpunk, Glassmorphism, Neon Lime (#c6f135)
   ========================================================================== */

:root {
  --bg-dark: #050505;
  --bg-card: rgba(18, 18, 22, 0.7);
  --bg-card-hover: rgba(26, 26, 32, 0.85);
  --surface: #0e0e11;
  --surface-border: rgba(255, 255, 255, 0.08);
  
  --lime: #c6f135;
  --lime-glow: rgba(198, 241, 53, 0.25);
  --lime-glow-heavy: rgba(198, 241, 53, 0.45);
  --ink: #0a0a0a;
  
  --text-main: #f3f3f5;
  --text-muted: #8e8e99;
  --text-dim: #5c5c66;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Particle Canvas & Noise */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  z-index: -1;
  pointer-events: none;
}

/* Typography & Utility Classes */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--lime) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-lime {
  color: var(--lime);
}

.text-muted {
  color: var(--text-muted);
}

.hidden {
  display: none !important;
}

/* Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.4rem;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn-lime {
  background-color: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px var(--lime-glow-heavy);
  background-color: #d4f850;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  border-color: var(--surface-border);
  backdrop-filter: blur(12px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-link {
  background: none;
  border: none;
  color: var(--lime);
  padding: 0;
  font-size: 0.9rem;
}
.btn-link:hover {
  text-decoration: underline;
}

.btn-glow {
  box-shadow: 0 0 16px var(--lime-glow);
}

.btn-large {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
}

.btn-sm {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

/* Tag Pills */
.tag-pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: rgba(198, 241, 53, 0.08);
  border: 1px solid rgba(198, 241, 53, 0.25);
  border-radius: var(--radius-pill);
  color: var(--lime);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.8rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 2rem;
  transition: background 0.3s ease, border 0.3s ease;
}

.navbar.scrolled {
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--surface-border);
  padding: 0.8rem 2rem;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.klovi-wordmark {
  width: 110px;
  height: auto;
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--lime);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.chain-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

/* Contract Address Banner Styles */
.ca-container {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 15, 18, 0.85);
  border: 1px solid rgba(198, 241, 53, 0.35);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 20px rgba(198, 241, 53, 0.1);
  margin-bottom: 2rem;
  max-width: 100%;
}

.ca-badge {
  font-size: 0.7rem;
  font-weight: 800;
  background: var(--lime);
  color: var(--ink);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.ca-address {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--lime);
  letter-spacing: 0.03em;
  word-break: break-all;
}

.ca-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.ca-copy-btn:hover {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}

.ca-mini {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--lime);
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  background: rgba(198, 241, 53, 0.1);
  border-radius: 4px;
}
.ca-mini:hover {
  background: rgba(198, 241, 53, 0.25);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  min-height: 100vh;
  padding: 9rem 2rem 5rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(198, 241, 53, 0.1);
  border: 1px solid rgba(198, 241, 53, 0.3);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.dot-pulsing {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulseGlow 2s infinite;
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.2rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--surface-border);
}

.metric-val {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.metric-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--surface-border);
}

/* Hero 3D Metallic Card Preview */
.hero-card-display {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.card-3d-wrapper {
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.klovi-card {
  width: 380px;
  height: 230px;
  border-radius: 20px;
  padding: 1.8rem;
  background: linear-gradient(135deg, rgba(25, 25, 30, 0.95), rgba(10, 10, 12, 0.98));
  border: 1px solid rgba(198, 241, 53, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(198, 241, 53, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.card-glass-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(198, 241, 53, 0.12), transparent 60%);
  pointer-events: none;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-brand {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

.card-number {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.85);
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.card-val {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.badge-rh {
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--lime);
  color: var(--ink);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

/* ==========================================================================
   INTERACTIVE DASHBOARD PREVIEW
   ========================================================================== */
.dashboard-section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.app-dashboard-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  background: rgba(15, 15, 18, 0.8);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  min-height: 620px;
}

.app-sidebar {
  background: rgba(10, 10, 12, 0.9);
  border-right: 1px solid var(--surface-border);
  padding: 1.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.avatar-ring {
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--lime), transparent);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--lime);
}

.user-meta .user-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.user-meta .user-tier {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);

}

.app-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.app-nav-item.active {
  background: rgba(198, 241, 53, 0.12);
  color: var(--lime);
  font-weight: 600;
}

.badge-mini {
  margin-left: auto;
  font-size: 0.65rem;
  background: var(--lime);
  color: var(--ink);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-pill);
}

.ai-status-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.app-main-content {
  padding: 2rem;
  overflow-y: auto;
}

.dashboard-tab {
  display: none;
}

.dashboard-tab.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Balance Cards Grid */
.balance-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.balance-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.balance-card.primary-card {
  background: linear-gradient(135deg, rgba(198, 241, 53, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(198, 241, 53, 0.2);
}

.card-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.balance-val {
  font-size: 2.2rem;
  margin: 0.4rem 0;
}

.balance-change.positive {
  font-size: 0.9rem;
  color: #22c55e;
  font-weight: 600;
}

.balance-sub {
  font-size: 0.9rem;
  color: var(--lime);
}

.asset-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
}

/* SVG Chart Box */
.chart-container-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.chart-controls {
  display: flex;
  gap: 0.3rem;
  background: rgba(0, 0, 0, 0.4);
  padding: 0.2rem;
  border-radius: var(--radius-sm);
}

.chart-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  cursor: pointer;
}

.chart-btn.active {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}

.svg-chart-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
}

#portfolio-chart {
  width: 100%;
  height: 100%;
}

.chart-tooltip {
  position: absolute;
  top: 20px;
  right: 30px;
  background: var(--bg-dark);
  border: 1px solid var(--lime);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.tt-val {
  display: block;
  font-weight: 700;
  color: var(--lime);
}

/* Transactions List */
.transactions-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tx-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.tx-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.01);
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.tx-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.tx-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tx-details {
  flex-grow: 1;
}

.tx-details strong {
  display: block;
  font-size: 0.9rem;
}

.tx-details span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.tx-amount {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Copilot Tab Styles */
.copilot-container {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: rgba(10, 10, 12, 0.95);
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.chat-header {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bot-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.bot-avatar {
  font-size: 1.5rem;
}

.bot-status {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.chat-messages {
  flex-grow: 1;
  padding: 1.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  max-width: 80%;
}

.msg-bot {
  align-self: flex-start;
}

.msg-user {
  align-self: flex-end;
}

.msg-content {
  padding: 0.8rem 1.2rem;
  border-radius: 14px;
  font-size: 0.95rem;
}

.msg-bot .msg-content {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
}

.msg-user .msg-content {
  background: var(--lime);
  color: var(--ink);
  font-weight: 500;
}

.chat-quick-prompts {
  padding: 0.6rem 1.5rem;
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
}

.quick-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-main);
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
}

.quick-btn:hover {
  background: rgba(198, 241, 53, 0.15);
  color: var(--lime);
  border-color: var(--lime);
}

.chat-input-area {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.8rem;
  background: rgba(0, 0, 0, 0.5);
  border-top: 1px solid var(--surface-border);
}

.chat-input-area input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.2rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.chat-input-area input:focus {
  outline: none;
  border-color: var(--lime);
}

/* Vaults Grid */
.vaults-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.vault-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  position: relative;
}

.vault-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--lime);
  color: var(--ink);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
}

.vault-apy {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--lime);
  margin: 0.5rem 0;
}

.vault-apy span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.vault-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin: 1.2rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
}

/* Swap Box */
.swap-box {
  max-width: 460px;
  margin: 0 auto;
  background: rgba(10, 10, 12, 0.9);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.swap-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.swap-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.swap-field {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
}

.swap-field label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.swap-field input {
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
.swap-field input:focus {
  outline: none;
}

.token-select {
  align-self: flex-end;
  font-weight: 700;
  color: var(--lime);
  font-size: 0.9rem;
}

.swap-divider {
  display: flex;
  justify-content: center;
  margin: -0.6rem 0;
  z-index: 2;
}

.swap-divider button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--lime);
  color: var(--lime);
  cursor: pointer;
}

.swap-details {
  margin: 1.5rem 0;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.s-row {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
}

/* ==========================================================================
   FEATURES GRID
   ========================================================================== */
.features-section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(198, 241, 53, 0.4);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==========================================================================
   YIELD CALCULATOR SECTION
   ========================================================================== */
.calc-section {
  padding: 6rem 2rem;
  background: rgba(198, 241, 53, 0.02);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}

.calc-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.calc-text h2 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.calc-inputs {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.range-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.range-val {
  font-weight: 700;
  color: var(--lime);
}

input[type=range] {
  width: 100%;
  accent-color: var(--lime);
}

.calc-result-box {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-card {
  background: rgba(15, 15, 18, 0.9);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.comparison-card.highlight-card {
  border-color: var(--lime);
  box-shadow: 0 0 30px rgba(198, 241, 53, 0.15);
}

.comp-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.comp-val {
  font-size: 2.6rem;
  font-weight: 800;
  margin: 0.4rem 0;
}

.comp-growth {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.calc-diff-badge {
  background: rgba(198, 241, 53, 0.1);
  border: 1px dashed var(--lime);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  font-size: 0.95rem;
}

/* ==========================================================================
   CARD CUSTOMIZER WORKSPACE
   ========================================================================== */
.customizer-section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.customizer-workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}

.card-preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

.interactive-card-frame {
  transform-style: preserve-3d;
  transition: transform 0.1s ease;
}

.klovi-card-large {
  width: 420px;
  height: 260px;
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transition: background 0.4s ease, border-color 0.4s ease;
}

.klovi-card-large.theme-obsidian {
  background: linear-gradient(135deg, #111116, #070709);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.klovi-card-large.theme-lime {
  background: linear-gradient(135deg, #c6f135, #9ec41d);
  color: #050505;
  border: 1px solid #dff868;
}

.klovi-card-large.theme-lime .c-number,
.klovi-card-large.theme-lime .c-holder span {
  color: #050505;
}

.klovi-card-large.theme-cyber {
  background: linear-gradient(135deg, #1e202e, #0d0e15);
  border: 1px solid #00f0ff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.25);
}

.c-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-brand {
  font-size: 2rem;
  font-weight: 800;
}

.c-type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.c-number {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: 0.15em;
}

.c-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.c-holder small {
  display: block;
  font-size: 0.6rem;
  color: var(--text-dim);
}

.c-holder span {
  font-weight: 700;
  letter-spacing: 0.05em;
}

.tilt-hint {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.customizer-controls {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.control-group label {
  font-size: 0.9rem;
  font-weight: 600;
}

.control-group input {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
}

.color-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.color-btn {
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-btn.active {
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  transform: scale(1.03);
}

/* ==========================================================================
   VIP PASS TICKET SECTION
   ========================================================================== */
.vip-section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.vip-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(198, 241, 53, 0.05), rgba(15, 15, 18, 0.8));
  border: 1px solid rgba(198, 241, 53, 0.25);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
}

.vip-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.vip-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.vip-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 420px;
}

.vip-form input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.4rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 1rem;
}

.ticket-card {
  background: #0d0d10;
  border: 2px stroke var(--lime);
  border-radius: var(--radius-md);
  padding: 2.2rem;
  position: relative;
  box-shadow: 0 0 40px rgba(198, 241, 53, 0.2);
  border-left: 6px solid var(--lime);
}

.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--surface-border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.ticket-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--lime);
}

.ticket-no {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.ticket-body h3 {
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.ticket-access {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.ticket-perks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--lime);
  margin-bottom: 1.5rem;
}

.ticket-footer {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--surface-border);
}

.ticket-code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

/* ==========================================================================
   FOOTER & MODAL
   ========================================================================== */
.footer {
  background: rgba(5, 5, 5, 0.95);
  border-top: 1px solid var(--surface-border);
  padding: 5rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.klovi-wordmark-sm {
  width: 90px;
  margin-bottom: 1rem;
}

.audit-badges {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.audit-tag {
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--surface-border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  color: var(--text-muted);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.link-col {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.link-col h5 {
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.link-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}
.link-col a:hover {
  color: var(--lime);
}

.footer-bottom {
  max-width: 1300px;
  margin: 3rem auto 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--surface-border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Dialog / Modal */
.custom-modal {
  margin: auto;
  background: var(--bg-dark);
  border: 1px solid rgba(198, 241, 53, 0.3);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 480px;
  width: 90%;
  color: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}

.custom-modal::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
}

.modal-close {
  position: absolute;
  top: -1rem;
  right: -1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.modal-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.form-group input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-main);
  font-size: 0.95rem;
}

.modal-success {
  text-align: center;
  padding: 1rem 0;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.share-link-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 1.2rem 0 0.4rem 0;
}

#share-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  color: var(--lime);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.4); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 7rem;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 2.2rem auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .app-dashboard-container {
    grid-template-columns: 1fr;
  }
  .app-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--surface-border);
  }
  .calc-container, .customizer-workspace, .vip-container {
    grid-template-columns: 1fr;
  }
  .nav-menu {
    display: none;
  }
}
