/* ========== CSS Variables ========== */
:root {
  --bg-primary: #0a0806;
  --bg-secondary: #141210;
  --bg-tertiary: #1c1916;
  --bg-card: #1a1714;
  --bg-hover: #231f1b;
  --bg-input: #1a1714;

  --brown-50: #fdf8f0;
  --brown-100: #f5e6d0;
  --brown-200: #e8c89c;
  --brown-300: #d4a574;
  --brown-400: #c4884e;
  --brown-500: #a16a3a;
  --brown-600: #8b5a2f;
  --brown-700: #6d4525;
  --brown-800: #4a2f1a;
  --brown-900: #2d1c10;

  --accent: #c4884e;
  --accent-hover: #d4a574;
  --accent-glow: rgba(196, 136, 78, 0.3);
  --accent-dim: rgba(196, 136, 78, 0.1);

  --text-primary: #f5f0eb;
  --text-secondary: #a89b8c;
  --text-muted: #6b5f52;
  --text-on-accent: #0a0806;

  --border: #2a2520;
  --border-hover: #3d352d;

  --green: #4ade80;
  --red: #f87171;
  --yellow: #fbbf24;

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

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

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea { font-family: inherit; }

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); }

/* ========== Sidebar ========== */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 20px 16px;
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.logo-text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text .accent {
  color: var(--accent);
}

.sidebar-nav {
  flex: 1;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
}

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

.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-item svg {
  flex-shrink: 0;
}

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

/* ========== Main Wrapper ========== */
.main-wrapper {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== Top Header ========== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header-height);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 8, 6, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 8px;
}

.search-bar {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  height: 40px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s;
}

.search-bar:focus-within {
  border-color: var(--accent);
}

.search-bar svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
}

.search-bar input::placeholder {
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-create {
  background: var(--accent);
  color: var(--text-on-accent);
}

.btn-create:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 20px var(--accent-glow);
}

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

.btn-connect:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
}

.btn-launch {
  width: 100%;
  height: 48px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 16px;
  font-weight: 700;
}

.btn-launch:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-record {
  width: 100%;
  max-width: 280px;
  height: 48px;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 15px;
  font-weight: 700;
  border-radius: 24px;
}

.btn-record:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-record.recording {
  background: var(--red);
  animation: pulse-record 1.5s ease-in-out infinite;
}

@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(248, 113, 113, 0); }
}

/* ========== Hero Explainer ========== */
.hero {
  position: relative;
  padding: 48px 32px 40px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(196, 136, 78, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(196, 136, 78, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 136, 78, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black 20%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Badges */
.hero-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(196, 136, 78, 0.08);
  border: 1px solid rgba(196, 136, 78, 0.18);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent);
}

.hero-badge-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  color: var(--text-muted);
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent); }
}

/* Title */
.hero-title {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-highlight {
  position: relative;
  color: var(--accent);
  display: inline-block;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: -2px;
  right: -2px;
  height: 8px;
  background: rgba(196, 136, 78, 0.2);
  border-radius: 4px;
  z-index: -1;
}

/* Description */
.hero-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}

/* CTA Buttons */
.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 24px rgba(196, 136, 78, 0.25);
}

.hero-btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 32px rgba(196, 136, 78, 0.4);
  transform: translateY(-1px);
}

.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-btn-secondary:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* ===== Recently Verified Launches ===== */
.recent-launches {
  margin-bottom: 40px;
  text-align: left;
  position: relative;
  margin-left: -120px;
  margin-right: -120px;
}

.recent-launches::before,
.recent-launches::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 2;
}

.recent-launches::after {
  right: 0;
  background: linear-gradient(to left, #0a0806, transparent);
}

.recent-launches::before {
  left: 0;
  background: linear-gradient(to right, #0a0806, transparent);
}

.recent-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.recent-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.recent-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: dot-pulse-green 2s ease-in-out infinite;
}

@keyframes dot-pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.recent-row {
  display: flex;
  gap: 14px;
  overflow: hidden;
  padding: 8px 16px;
}

.recent-row-inner {
  display: flex;
  gap: 14px;
  animation: carousel-scroll 25s linear infinite;
  will-change: transform;
}

.recent-row-inner:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-25%); }
}

.recent-card {
  flex: 0 0 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.recent-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.recent-card-img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  overflow: visible;
  position: relative;
  margin: 0 auto 8px;
  background: var(--bg-tertiary);
  border: 2px solid var(--border);
}

.recent-card-img > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.token-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0a0806;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.token-badge img {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  object-fit: cover;
}

.recent-card-name {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.recent-card-ticker {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 6px;
}

/* Waveform + play button */
.recent-audio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 4px;
  border-top: 1px solid var(--border);
  width: 100%;
}

.recent-play {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(196, 136, 78, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: all 0.2s;
}

.recent-card:hover .recent-play {
  background: var(--accent);
  color: var(--text-on-accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.recent-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.5px;
  height: 22px;
}

.recent-waveform .rw-bar {
  flex: 1;
  border-radius: 1px;
  background: var(--accent);
  opacity: 0.2;
  transition: opacity 0.15s;
}

.recent-card:hover .recent-waveform .rw-bar {
  opacity: 0.5;
}

.recent-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  padding: 4px 0;
  font-size: 9px;
  font-weight: 800;
  background: linear-gradient(135deg, #d4a74a, #f5d280, #c4944a, #f5d280, #d4a74a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.recent-verified img {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.recent-time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===== Stats Row ===== */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 20px 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.hero-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.hero-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Hero responsive */
@media (max-width: 900px) {
  .hero {
    padding: 32px 16px;
  }

  .hero-title {
    font-size: 32px;
    letter-spacing: -1px;
  }

  .recent-row {
    justify-content: flex-start;
  }

  .recent-card {
    flex: 0 0 180px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 20px;
    padding: 16px;
  }

  .hero-stat-divider {
    display: none;
  }

  .hero-badge-row {
    flex-wrap: wrap;
  }

  .hero-cta-row {
    flex-direction: column;
    margin-bottom: 32px;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ========== Featured Section ========== */
.featured-section {
  padding: 24px 24px 0;
}

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

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.badge {
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--green);
  animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.featured-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.featured-carousel::-webkit-scrollbar { display: none; }

/* ========== Featured Card ========== */
.featured-card {
  flex-shrink: 0;
  width: 264px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.featured-card:hover {
  transform: scale(1.025);
}

.featured-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
}

.featured-card:hover .featured-card-bg {
  transform: scale(1.05);
}

.featured-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.08) 30%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px 14px;
}

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

.featured-card-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
}

.featured-card-ticker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.featured-card-mcap {
  text-align: right;
}

.featured-card-mcap-label {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.featured-card-mcap-value {
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
}

/* ========== Feed Section ========== */
.feed-section {
  padding: 24px;
  flex: 1;
}

.feed-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  padding: 4px;
  border-radius: var(--radius);
  width: fit-content;
}

.tab {
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}

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

.tab.active {
  background: var(--accent);
  color: var(--text-on-accent);
}

/* ========== Token Grid ========== */
.token-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.token-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  gap: 12px;
}

.token-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-hover);
  transform: translateY(-1px);
}

.token-card-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  overflow: hidden;
  flex-shrink: 0;
}

.token-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.token-card-content {
  flex: 1;
  min-width: 0;
}

.token-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.token-card-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.token-card-ticker {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}

.token-card-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

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

.token-stat {
  font-size: 12px;
}

.token-stat-label {
  color: var(--text-muted);
  margin-right: 4px;
}

.token-stat-value {
  font-weight: 600;
  color: var(--green);
}

.token-stat-value.red {
  color: var(--red);
}

/* Progress bar */
.token-progress {
  margin-top: 8px;
  height: 4px;
  background: var(--bg-tertiary);
  border-radius: 2px;
  overflow: hidden;
}

.token-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
  border-radius: 2px;
  transition: width 0.3s ease;
}

/* ========== Modals ========== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-create {
  max-width: 520px;
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 24px;
}

/* ========== Voice Verification ========== */
.voice-visualizer {
  margin-bottom: 20px;
}

.voice-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.voice-ring.listening {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(196, 136, 78, 0.1);
  animation: ring-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.voice-ring.success {
  border-color: var(--green);
  box-shadow: 0 0 40px rgba(74, 222, 128, 0.3);
}

.voice-ring.fail {
  border-color: var(--red);
  box-shadow: 0 0 40px rgba(248, 113, 113, 0.3);
}

.mic-icon {
  color: var(--text-muted);
  transition: color 0.3s;
}

.voice-ring.listening .mic-icon {
  color: var(--accent);
}

.voice-ring.success .mic-icon {
  color: var(--green);
}

.voice-ring.fail .mic-icon {
  color: var(--red);
}

.voice-status {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 500;
  min-height: 20px;
}

.voice-result {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  min-height: 20px;
}

.voice-result.success {
  color: var(--green);
}

.voice-result.fail {
  color: var(--red);
}

/* ========== Form Styles ========== */
.form-group {
  width: 100%;
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

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

.file-upload {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.file-upload:hover {
  border-color: var(--accent);
  color: var(--accent);
}

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

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

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

  .mobile-menu-btn {
    display: flex;
  }

  .top-header {
    padding: 0 16px;
  }

  .featured-section,
  .feed-section {
    padding: 16px;
  }

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

  .btn-create span {
    display: none;
  }
}

/* ========== Utility ========== */
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-accent { color: var(--accent); }
