/* ==========================================================================
   TRON Energy Staking & Resource Delegation Platform - Stylesheet
   Mobile-First Responsive Web3 Design System
   ========================================================================== */

:root {
  --bg-primary: #090b10;
  --bg-secondary: #11151f;
  --bg-card: rgba(20, 25, 38, 0.85);
  --bg-card-hover: rgba(28, 35, 52, 0.95);
  --bg-glass: rgba(17, 21, 31, 0.78);
  --tron-red: #ff060a;
  --tron-red-light: #ff3b3f;
  --tron-red-glow: rgba(255, 6, 10, 0.28);
  --accent-gold: #f59e0b;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 6, 10, 0.45);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 28px rgba(255, 6, 10, 0.22);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Malgun Gothic', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 6, 10, 0.14) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(245, 158, 11, 0.09) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.07) 0%, transparent 45%);
}

/* Container */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--tron-red) 0%, #b80004 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px var(--tron-red-glow);
  flex-shrink: 0;
}

.brand-logo svg {
  width: 22px;
  height: 22px;
  fill: #fff;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Language Switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
}

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

.lang-btn.active {
  background: linear-gradient(135deg, var(--tron-red) 0%, #d40004 100%);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--tron-red-glow);
}

/* Hero Banner & APY Highlight */
.hero-section {
  padding: 28px 0 20px;
  text-align: center;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.hero-title {
  font-size: clamp(1.65rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: clamp(0.92rem, 2.5vw, 1.08rem);
  max-width: 680px;
  margin: 0 auto 24px;
}

/* Yield Showcase Cards (16% + 3.3%) */
.yield-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto 28px;
}

.yield-main-banner {
  background: linear-gradient(135deg, rgba(255, 6, 10, 0.16) 0%, rgba(20, 25, 38, 0.95) 60%, rgba(245, 158, 11, 0.14) 100%);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: var(--shadow-glow), var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.yield-formula-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.yield-pill-box {
  flex: 1;
  width: 100%;
  background: rgba(9, 11, 16, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.yield-pill-box.primary-yield {
  border-color: rgba(255, 6, 10, 0.4);
  background: linear-gradient(180deg, rgba(255, 6, 10, 0.12) 0%, rgba(9, 11, 16, 0.75) 100%);
}

.yield-pill-box.vote-yield {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(9, 11, 16, 0.75) 100%);
}

.yield-pill-box.total-yield {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(9, 11, 16, 0.75) 100%);
}

.yield-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.yield-value {
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.primary-yield .yield-value {
  color: #ff4d50;
}

.vote-yield .yield-value {
  color: #fbbf24;
}

.total-yield .yield-value {
  color: #34d399;
}

.yield-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.yield-operator {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-secondary);
  line-height: 1;
  user-select: none;
}

/* Main Workspace Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

/* Staking Action Card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 18px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.card-interactive {
  border-color: rgba(255, 6, 10, 0.3);
}

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

.card-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--tron-red-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 0.86rem;
  color: var(--text-secondary);
}

/* Address Form */
.input-group {
  margin-bottom: 16px;
}

.input-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.sample-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tron-input {
  width: 100%;
  background: rgba(9, 11, 16, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 15px 44px 15px 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  transition: all 0.2s ease;
  outline: none;
}

.tron-input::placeholder {
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.tron-input:focus {
  border-color: var(--tron-red);
  box-shadow: 0 0 0 3px rgba(255, 6, 10, 0.18);
}

.tron-input.input-error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.clear-input-btn {
  position: absolute;
  right: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
}

.clear-input-btn.visible {
  display: inline-flex;
}

.error-msg {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 6px;
  min-height: 20px;
  display: none;
}

.error-msg.visible {
  display: block;
}

.primary-btn {
  width: 100%;
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--tron-red) 0%, #c80004 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px var(--tron-red-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-family: inherit;
}

.primary-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(255, 6, 10, 0.4);
}

.primary-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

/* 15-Second Mandatory Progress View */
.progress-panel {
  display: none;
  margin-top: 22px;
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: rgba(9, 11, 16, 0.9);
  border: 1px solid rgba(255, 6, 10, 0.35);
}

.progress-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}

.progress-status-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 6, 10, 0.25);
  border-top-color: var(--tron-red);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}

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

.progress-timer-badge {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.progress-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--tron-red) 0%, #f59e0b 55%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.15s linear;
  position: relative;
}

.progress-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.progress-step-item.active {
  color: var(--text-primary);
  background: rgba(255, 6, 10, 0.08);
  border-color: rgba(255, 6, 10, 0.28);
  font-weight: 600;
}

.progress-step-item.completed {
  color: #34d399;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.step-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.progress-step-item.active .step-icon {
  background: var(--tron-red);
  color: #fff;
}

.progress-step-item.completed .step-icon {
  background: #10b981;
  color: #fff;
}

/* Result Delegation Addresses Panel */
.result-panel {
  display: none;
  margin-top: 22px;
}

.result-panel.active {
  display: block;
  animation: fadeIn 0.35s ease;
}

.verified-user-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 16px;
}

.verified-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: #34d399;
  font-weight: 600;
}

.verified-addr-mono {
  font-family: var(--font-mono);
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
}

.delegation-instruction-banner {
  background: rgba(245, 158, 11, 0.1);
  border-left: 3px solid var(--accent-gold);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
  color: #fde68a;
  margin-bottom: 18px;
}

.address-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.address-card {
  background: rgba(9, 11, 16, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  position: relative;
  transition: border-color 0.2s ease;
}

.address-card.energy-card {
  border-color: rgba(255, 6, 10, 0.45);
  box-shadow: 0 6px 20px rgba(255, 6, 10, 0.1);
}

.address-card.bandwidth-card {
  border-color: rgba(6, 182, 212, 0.45);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.1);
}

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

.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
}

.energy-badge {
  background: rgba(255, 6, 10, 0.15);
  color: #ff6b6e;
  border: 1px solid rgba(255, 6, 10, 0.35);
}

.bandwidth-badge {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.apy-mini-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: #34d399;
}

.address-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-primary);
  word-break: break-all;
  margin-bottom: 14px;
  user-select: all;
  line-height: 1.45;
}

.address-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
  font-family: inherit;
}

.action-btn.copy-primary {
  background: linear-gradient(135deg, var(--tron-red) 0%, #c80004 100%);
  border-color: transparent;
  color: #fff;
}

.action-btn.copy-cyan {
  background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
  border-color: transparent;
  color: #fff;
}

.action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* Yield Calculator Card */
.calc-row {
  margin-bottom: 18px;
}

.calc-amount-display {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calc-input-inline {
  width: 100%;
  background: rgba(9, 11, 16, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  outline: none;
}

.calc-input-inline:focus {
  border-color: var(--tron-red);
}

.range-slider {
  width: 100%;
  margin-top: 12px;
  accent-color: var(--tron-red);
  cursor: pointer;
}

.quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-chip:hover,
.quick-chip.active {
  background: rgba(255, 6, 10, 0.15);
  border-color: var(--tron-red);
  color: #fff;
}

.calc-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.calc-stat-box {
  background: rgba(9, 11, 16, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 13px 12px;
}

.calc-stat-box.highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(9, 11, 16, 0.85) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

.calc-stat-label {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.calc-stat-val {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
}

.calc-stat-box.highlight .calc-stat-val {
  color: #34d399;
  font-size: 1.35rem;
}

.calc-stat-breakdown {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* How It Works / Guide Steps */
.section-block {
  margin-bottom: 44px;
}

.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(1.35rem, 3.5vw, 1.85rem);
  font-weight: 800;
  margin-bottom: 6px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 6, 10, 0.14);
  border: 1px solid rgba(255, 6, 10, 0.35);
  color: #ff4d50;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.step-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 16px 18px;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
}

.faq-toggle-icon {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  font-size: 1.1rem;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--tron-red-light);
}

.faq-answer {
  display: none;
  padding: 0 18px 16px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Modal for QR Code */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  max-width: 380px;
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.qr-canvas-box {
  width: 210px;
  height: 210px;
  margin: 0 auto 16px;
  padding: 12px;
  background: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-canvas-box svg {
  width: 100%;
  height: 100%;
  display: block;
}

.modal-addr-text {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  border-radius: var(--radius-sm);
  word-break: break-all;
  margin-bottom: 16px;
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.45);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 28px 0 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Tablet & Desktop Responsive Breakpoints */
@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .yield-formula-row {
    flex-direction: row;
  }

  .main-grid {
    grid-template-columns: 1.25fr 0.95fr;
    align-items: start;
  }

  .address-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .card {
    padding: 28px 26px;
  }
}
