/* WeHealth - Medical Hi-Tech Dark Theme */

:root {
  --bg-primary: #0a0f1a;
  --bg-secondary: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #263548;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #06b6d4;
  --accent-glow: rgba(6, 182, 212, 0.3);
  --accent-secondary: #0d9488;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --border: #334155;
  --gradient-1: linear-gradient(135deg, #06b6d4 0%, #0d9488 100%);
  --gradient-2: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

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

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 15, 26, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

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

.logo-icon {
  font-size: 24px;
  color: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { text-shadow: 0 0 10px var(--accent-glow); }
  50% { text-shadow: 0 0 20px var(--accent-glow), 0 0 30px var(--accent-glow); }
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-link.active {
  color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
}

.lang-switcher {
  display: flex;
  gap: 4px;
  background: var(--bg-card);
  padding: 4px;
  border-radius: 8px;
}

.lang-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  width: auto;
  margin: 0;
}

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

.lang-btn.active {
  background: var(--accent);
  color: var(--bg-primary);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  padding: 140px 24px 60px;
  text-align: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Hide hero on inner pages */
body.inner-page .hero {
  padding: 100px 24px 20px;
}

body.inner-page .hero-content {
  display: none;
}

body.inner-page .hero-glow {
  opacity: 0.2;
  height: 300px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.title-line {
  display: block;
}

.title-line.accent {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.feature-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.feature-chip:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.chip-icon {
  font-size: 16px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 40px 24px 80px;
  display: none;
}

.section.active {
  display: block;
}

.container {
  max-width: 700px;
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

/* ===== CARDS ===== */
.card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 24px;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-1);
  opacity: 0.7;
}

.disclaimer-card {
  border-color: var(--warning);
}

.disclaimer-card .card-glow {
  background: linear-gradient(90deg, var(--warning), var(--error));
}

.disclaimer-card h2 {
  color: var(--warning);
}

.disclaimer-card p {
  margin-bottom: 12px;
}

.disclaimer-card .checkbox-label {
  margin: 16px 0;
}

/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.step-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.step-label {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ===== USER TYPE SWITCHER ===== */
.user-type-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.user-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin: 0;
  width: auto;
  color: var(--text-secondary);
}

.user-type-btn:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
}

.user-type-btn.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.user-type-icon {
  font-size: 28px;
}

.user-type-btn span:last-child {
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
  font-weight: 500;
}

/* ===== FORMS ===== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 14px;
}

.input,
input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.input:focus,
input[type="number"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

select {
  cursor: pointer;
}

select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Checkbox styling */
.checkbox-row {
  display: flex;
  gap: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  background: var(--bg-secondary);
}

.checkbox-label input:checked + .checkmark {
  background: var(--accent);
  border-color: var(--accent);
}

.checkbox-label input:checked + .checkmark::after {
  content: '✓';
  color: var(--bg-primary);
  font-size: 14px;
  font-weight: bold;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: auto;
  margin: 0;
}

.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--accent-glow);
}

.btn-primary:disabled {
  background: var(--bg-card);
  color: var(--text-muted);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Loading state for analyze button during OCR */
.btn-primary.loading {
  background: var(--bg-card);
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.btn-primary.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.3),
    transparent
  );
  animation: btn-loading-shimmer 1.5s infinite;
}

@keyframes btn-loading-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Ready state - pulse animation when OCR completes */
.btn-primary.ready {
  animation: btn-ready-pulse 0.6s ease-out;
}

@keyframes btn-ready-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 15px var(--accent-glow);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 8px 30px var(--accent-glow), 0 0 20px var(--accent);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 15px var(--accent-glow);
  }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

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

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-arrow {
  font-size: 18px;
  transition: transform 0.2s;
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

.btn-row {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-row .btn-primary {
  flex: 1;
}

/* ===== OCR SECTION ===== */
.ocr-section {
  background: rgba(6, 182, 212, 0.05);
  border: 2px dashed var(--accent);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-bottom: 24px;
}

.ocr-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.ocr-hint {
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 500;
}

.ocr-upload-btn {
  display: inline-flex !important;
  width: auto !important;
  transition: all 0.3s;
}

.ocr-upload-btn.loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.ocr-upload-btn.loading::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  margin-right: 8px;
  animation: spinner 0.8s linear infinite;
}

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

/* OCR Processing Overlay */
.ocr-processing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 500;
}

.ocr-processing-spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spinner 0.8s linear infinite;
}

.ocr-status {
  margin-top: 16px;
  color: var(--accent);
  font-weight: 500;
  display: none;
}

.ocr-result {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  display: none;
}

.ocr-result.success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.ocr-result.warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.image-preview {
  margin-top: 16px;
  display: none;
}

.image-preview img,
.image-preview canvas {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  border: 2px solid var(--border);
}

.pdf-info {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
}

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

.divider span {
  padding: 0 16px;
  font-size: 14px;
}

.hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

/* ===== INDICATORS FORM ===== */
.indicators-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.indicator-input {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}

.indicator-input:hover {
  border-color: var(--accent);
}

.indicator-input label {
  flex: 1;
  font-weight: 500;
  margin: 0;
  color: var(--text-primary);
}

.indicator-input input {
  width: 120px;
  text-align: center;
  padding: 10px;
}

.indicator-input .unit {
  color: var(--text-muted);
  font-size: 14px;
  width: 80px;
  text-align: right;
}

.indicator-input input.ocr-filled {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

/* ===== RESULTS ===== */
.result-item {
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 16px;
  border-left: 4px solid;
}

.result-item.normal {
  background: rgba(16, 185, 129, 0.1);
  border-color: var(--success);
}

.result-item.low {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--warning);
}

.result-item.high {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--error);
}

.result-item.critical {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--error);
  animation: pulse-critical 1s infinite;
}

@keyframes pulse-critical {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

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

.result-name {
  font-weight: 600;
  font-size: 1.1em;
}

.result-status {
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 13px;
}

.result-item.normal .result-status { background: var(--success); color: white; }
.result-item.low .result-status { background: var(--warning); color: white; }
.result-item.high .result-status { background: var(--error); color: white; }
.result-item.critical .result-status { background: var(--error); color: white; }

.result-value {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 8px;
}

.result-range {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.result-meaning {
  font-size: 14px;
  color: var(--text-secondary);
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ===== SECTION PAGES ===== */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* ===== VISION - MANIFESTO ===== */
.manifesto-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.manifesto-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
}

.manifesto-icon {
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 24px;
  animation: pulse-glow 2s ease-in-out infinite;
}

.manifesto-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.manifesto-divider {
  color: var(--accent) !important;
  font-size: 1.5rem !important;
  margin: 16px 0 !important;
}

/* ===== PRINCIPLES GRID ===== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

.principle-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.principle-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.principle-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.principle-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Highlighted principle card (for sponsor feature) */
.principle-card.highlight {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(13, 148, 136, 0.1) 100%);
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.principle-card.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-1);
}

.principle-card.highlight::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  animation: pulse-glow 4s ease-in-out infinite;
  pointer-events: none;
}

.principle-card.highlight h3 {
  color: var(--accent);
}

.principle-card.highlight:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 50px rgba(6, 182, 212, 0.25);
}

/* ===== ROADMAP ===== */
.roadmap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
}

.roadmap-title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.roadmap-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.roadmap-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.roadmap-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
  border: 3px solid var(--bg-card);
  box-shadow: 0 0 0 2px var(--border);
  flex-shrink: 0;
}

.roadmap-item.done .roadmap-dot {
  background: var(--success);
  box-shadow: 0 0 0 2px var(--success), 0 0 10px var(--success);
}

.roadmap-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roadmap-label {
  font-weight: 500;
}

.roadmap-status {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--bg-secondary);
  color: var(--text-muted);
}

.roadmap-item.done .roadmap-status {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  transition: all 0.3s;
}

.about-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.about-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.2;
  position: absolute;
  top: 16px;
  right: 20px;
}

.about-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.about-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.about-status {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 100px;
  font-weight: 600;
}

.about-status.live {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.about-status.soon {
  background: rgba(6, 182, 212, 0.1);
  color: var(--accent);
}

.about-status.planned {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== CBC INDICATORS ===== */
.cbc-indicators {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.cbc-indicators h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.indicator-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.indicator-chip {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.indicator-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ===== TECH SECTION ===== */
.tech-architecture {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 48px;
}

.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.arch-layer {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.arch-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 32px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s;
}

.arch-node:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.node-icon {
  font-size: 28px;
}

.node-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.connector-line {
  width: 2px;
  height: 30px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.connector-label {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: 100px;
}

/* ===== TECH CARDS ===== */
.tech-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.3s;
}

.tech-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.tech-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.tech-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== TECH STACK ===== */
.tech-stack {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
}

.tech-stack h3 {
  margin-bottom: 20px;
  color: var(--text-primary);
}

.stack-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 10px;
}

.stack-label {
  color: var(--text-muted);
  font-size: 14px;
}

.stack-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

/* ===== GITHUB CTA ===== */
.github-cta {
  text-align: center;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.github-cta p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.github-cta .btn {
  display: inline-flex;
}

/* ===== FOOTER ===== */
.main-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-text {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.6;
}

/* ===== DOCTOR MODE ===== */
body.doctor-mode .card {
  border-color: var(--accent-secondary);
}

body.doctor-mode .card-glow {
  background: linear-gradient(90deg, var(--accent-secondary), var(--accent));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

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

  .tech-cards {
    grid-template-columns: 1fr;
  }

  .stack-items {
    grid-template-columns: 1fr;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 120px 16px 40px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .section {
    padding: 24px 16px 60px;
  }

  .card {
    padding: 24px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .user-type-switcher {
    flex-direction: column;
  }

  .arch-layer {
    flex-direction: column;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0;
  }

  .indicator-input {
    flex-wrap: wrap;
  }

  .indicator-input input {
    width: 100%;
  }

  .indicator-input .unit {
    width: auto;
  }

  .checkbox-row {
    flex-direction: column;
    gap: 12px;
  }

  .btn-row {
    flex-direction: column;
  }
}

/* ===== ACCOUNT BUTTON ===== */
.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  margin-left: 16px;
}

.account-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--accent);
}

.account-btn.logged-in {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
}

.account-btn.logged-in:hover {
  opacity: 0.9;
}

.account-icon {
  font-size: 16px;
}

/* ===== CABINET SECTION ===== */
.section-cabinet {
  padding-top: 120px;
  min-height: 100vh;
}

.cabinet-guest {
  text-align: center;
}

.auth-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  transition: all 0.3s;
}

.auth-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.auth-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.auth-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.auth-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
}

.seed-warning-info {
  max-width: 600px;
  margin: 48px auto 0;
  padding: 24px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  border-radius: 12px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
}

.seed-warning-info .warning-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.seed-warning-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Cabinet User State */
.cabinet-user {
  max-width: 800px;
  margin: 0 auto;
}

.cabinet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--bg-card);
  border-radius: 16px;
  margin-bottom: 24px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-avatar {
  width: 56px;
  height: 56px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.user-details {
  display: flex;
  flex-direction: column;
}

.user-id {
  font-family: monospace;
  font-size: 14px;
  color: var(--accent);
}

.user-since {
  font-size: 12px;
  color: var(--text-muted);
}

.cabinet-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.cabinet-stat {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.cabinet-stat .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.cabinet-stat .stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.cabinet-stat.normal .stat-value {
  color: var(--success);
}

.cabinet-stat.abnormal .stat-value {
  color: var(--warning);
}

.analyses-history {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.analyses-history h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.analyses-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.no-analyses {
  color: var(--text-muted);
  text-align: center;
  padding: 32px;
}

.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--success);
}

.analysis-item.has-abnormal {
  border-left-color: var(--warning);
}

.analysis-date {
  font-weight: 500;
}

.analysis-stats {
  display: flex;
  gap: 16px;
}

.analysis-stats .stat {
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 4px;
}

.analysis-stats .stat.normal {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.analysis-stats .stat.abnormal {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Profile Card - New Design */
.profile-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-header .btn-ghost {
  margin-left: auto;
}

.profile-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
}

.profile-title {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
}

.profile-id-section {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-secondary);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.profile-id-label {
  font-size: 13px;
  color: var(--text-muted);
}

.profile-id-value {
  flex: 1;
  font-family: monospace;
  font-size: 14px;
  color: var(--accent);
  word-break: break-all;
}

.btn-copy {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-copy:hover {
  background: var(--bg-card);
  color: var(--accent);
}

.profile-since {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 4px;
}

/* Analysis Item with View Button */
.analysis-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--success);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.analysis-item:hover {
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.analysis-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.btn-view {
  padding: 8px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-view:hover {
  opacity: 0.9;
}

/* Analysis Modal */
.modal-wide {
  max-width: 600px;
}

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

.analysis-modal-header h2 {
  margin: 0;
}

.analysis-modal-date {
  font-size: 14px;
  color: var(--text-muted);
}

.analysis-modal-summary {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 12px;
}

.summary-stat {
  text-align: center;
  flex: 1;
}

.summary-stat .summary-value {
  font-size: 32px;
  font-weight: 700;
}

.summary-stat .summary-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.summary-stat.normal .summary-value {
  color: var(--success);
}

.summary-stat.abnormal .summary-value {
  color: var(--warning);
}

.analysis-modal-results {
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Analysis Table */
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.analysis-table th,
.analysis-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.analysis-table th {
  background: var(--bg-secondary);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.analysis-table tr.normal td:first-child {
  border-left: 3px solid var(--success);
}

.analysis-table tr.low td:first-child,
.analysis-table tr.high td:first-child {
  border-left: 3px solid var(--warning);
}

.analysis-table tr.critical td:first-child {
  border-left: 3px solid var(--error);
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.normal {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status-badge.low,
.status-badge.high {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

.status-badge.critical {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Result Items in Modal */
.result-item {
  padding: 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border-left: 3px solid var(--success);
}

.result-item.low,
.result-item.high {
  border-left-color: var(--warning);
}

.result-item.critical {
  border-left-color: var(--error);
}

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

.result-name {
  font-weight: 600;
}

.result-status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.result-status.normal {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.result-status.low,
.result-status.high {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.result-status.critical {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}

.result-value {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.result-range {
  font-size: 13px;
  color: var(--text-muted);
}

.result-meaning {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
  color: var(--text-secondary);
}

.cabinet-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn.danger {
  color: var(--error);
  border-color: var(--error);
}

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

/* ===== COMMUNITY SECTION ===== */
.section-community {
  padding: 60px 0;
}

.section-community .container {
  max-width: 900px;
}

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

.section-header h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.community-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.community-stat-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.community-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.community-stat-card.primary::before {
  background: var(--accent);
}

.community-stat-card.success::before {
  background: var(--success);
}

.community-stat-card.accent::before {
  background: var(--gradient-1);
}

.community-stat-card .stat-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.community-stat-card .stat-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.community-stat-card .stat-label {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.community-users-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

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

.community-users-card .card-header h3 {
  font-size: 18px;
  margin: 0;
}

.community-users-card .badge {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  color: var(--text-muted);
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.community-users-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
}

.community-user-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.user-id-short {
  font-family: monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
}

.user-info-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.user-analyses {
  color: var(--text-secondary);
}

.community-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 12px;
  border-left: 3px solid var(--accent);
}

.community-note .note-icon {
  font-size: 20px;
}

.community-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.loading-placeholder {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.no-users {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
}

.error-message {
  text-align: center;
  padding: 40px;
  color: var(--error);
}

@media (max-width: 768px) {
  .community-stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .community-stat-card .stat-value {
    font-size: 36px;
  }
}

/* ===== MODALS ===== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--error);
  color: white;
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.modal-icon.warning {
  color: var(--warning);
}

.modal-icon.success {
  width: 64px;
  height: 64px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: white;
  font-size: 32px;
}

.modal-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.modal-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.warning-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.warning-box p {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.warning-box p:last-child {
  margin-bottom: 0;
  font-weight: 600;
  color: var(--warning);
}

.seed-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.seed-word {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.word-num {
  width: 24px;
  height: 24px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
}

.word-text {
  font-family: monospace;
  font-size: 14px;
  color: var(--text-primary);
}

.seed-confirm {
  margin: 24px 0;
}

.seed-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  color: var(--text-primary);
  font-family: monospace;
  font-size: 14px;
  resize: none;
  margin-bottom: 16px;
}

.seed-input:focus {
  outline: none;
  border-color: var(--accent);
}

.login-error {
  color: var(--error);
  font-size: 14px;
  margin-bottom: 16px;
}

.public-id-display {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.public-id-display code {
  display: block;
  font-family: monospace;
  font-size: 18px;
  color: var(--accent);
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ===== DONATION BLOCK ===== */
.donation-block {
  margin: 48px 0 24px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.donation-block h4 {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.donation-hint {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px !important;
}

/* Compact wallet layout - full addresses visible */
.crypto-wallets.compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wallet-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-row:hover {
  border-color: var(--accent);
  background: rgba(6, 182, 212, 0.05);
}

.wallet-label {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 110px;
  flex-shrink: 0;
}

.wallet-address-full {
  font-family: 'Roboto Mono', 'Consolas', monospace;
  font-size: 12px;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.4;
}

/* Legacy styles for old format (fallback) */
.crypto-wallets:not(.compact) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.wallet-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.wallet-icon {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.wallet-name {
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}

.wallet-address {
  flex: 1;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-hint {
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
}

.copy-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  z-index: 1001;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== MOBILE RESPONSIVE FOR NEW ELEMENTS ===== */
@media (max-width: 768px) {
  .account-btn {
    padding: 8px;
  }

  .account-label {
    display: none;
  }

  .auth-cards {
    grid-template-columns: 1fr;
  }

  .cabinet-stats {
    grid-template-columns: 1fr;
  }

  .cabinet-header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

  .modal-content {
    padding: 24px;
  }

  .crypto-wallets {
    grid-template-columns: 1fr;
  }

  .wallet-address {
    max-width: 120px;
  }
}
