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

:root {
  --bg: #090909;
  --bg-card: #1a1a1a;
  --bg-input: #1a1a1a;
  --border: #2a2a35;
  --text: #f5f5f5;
  --text-sec: rgba(245,245,245,0.5);
  --text-muted: rgba(245,245,245,0.3);
  --red: #b91c1c;
  --red-dark: #991b1b;
  --tg-blue: #54a9eb;
  --r-full: 9999px;
  --r-lg: 20px;
  --r-md: 12px;
  --max-w: 500px;
  --font-heading: 'Oswald', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
}

html { height: 100%; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); min-height: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
main { display: flex; flex-direction: column; flex: 1; min-height: 100vh; max-width: var(--max-w); margin: 0 auto; }

/* Heading font — Oswald: condensed, powerful, poker-club feel */
h1, h2, h3, .card-title-bold, .banner-title, .banner-title-big, .tc-name, .detail-title, .title-bold {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Navigation — Floating pill bar like original */
.nav-wrapper {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 16px calc(env(safe-area-inset-bottom, 8px) + 8px);
  display: flex; justify-content: center;
  pointer-events: none;
}
.app-tapbar {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-full); padding: 0 4px;
  height: 56px; width: 100%; max-width: 360px;
  pointer-events: auto;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
}
.nav-item {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 12px; border-radius: var(--r-full);
  text-decoration: none; color: var(--text-sec);
  font-size: 14px; font-weight: 500; transition: all 0.25s ease;
  flex-shrink: 0;
}
.nav-item svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-label { display: none; white-space: nowrap; }
.nav-item.active {
  background: rgba(255,255,255,0.08); color: var(--text);
  flex: 1; max-width: 160px; justify-content: center;
}
.nav-item.active .nav-label { display: inline; }
.nav-item:active { opacity: 0.7; }

/* Profile avatar in nav */
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%; object-fit: cover;
  border: 2px solid transparent; transition: border-color 0.2s;
}
.nav-item-profile.active .nav-avatar { border-color: var(--text); }

/* Pages */
.page { display: none; flex-direction: column; align-items: center; padding: 16px; padding-bottom: 100px; min-height: 100vh; }
.page.active { display: flex; }
.hidden { display: none !important; }

/* Login */
.page-login { justify-content: flex-start; padding-top: 60px; }
.logo-container { margin-bottom: 20px; }
.logo-circle { width: 128px; height: 128px; border-radius: 32px; background: linear-gradient(135deg, var(--red), var(--red-dark)); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 32px rgba(185,28,28,0.3); position: relative; overflow: hidden; }
.logo-circle::after { content:''; position: absolute; top:-50%; left:-50%; width:200%; height:200%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1), transparent 60%); }
.logo-letter { font-size: 64px; font-weight: 900; color: white; text-shadow: 0 2px 8px rgba(0,0,0,0.3); position: relative; z-index: 1; }
.login-heading { text-align: center; margin-bottom: 40px; }
.login-heading h1 { font-size: 32px; font-weight: 600; letter-spacing: 1.5px; }
.login-form { width: 100%; max-width: 384px; display: flex; flex-direction: column; gap: 16px; }
.email-form { display: flex; flex-direction: column; gap: 16px; }
.input-field { width: 100%; height: 52px; padding: 0 20px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--r-full); color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; outline: none; transition: border-color 0.2s; }
.input-field::placeholder { color: var(--text-muted); }
.input-field:focus { border-color: rgba(245,245,245,0.2); }
.btn-primary { width: 100%; height: 52px; border-radius: var(--r-full); border: 1px solid var(--border); background: var(--bg-input); color: var(--text-muted); font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-primary.btn-active { background: var(--red); border-color: var(--red); color: white; }
.btn-disabled { cursor: not-allowed; }
.divider-text { font-size: 12px; font-weight: 700; color: var(--text-sec); text-align: center; }
.telegram-btn-container { display: flex; justify-content: center; }
.btn-telegram { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: var(--tg-blue); color: white; border-radius: var(--r-full); text-decoration: none; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.btn-telegram:hover { background: #4a96d1; }
.btn-telegram svg { width: 20px; height: 20px; }

/* Page Headers */
.page-header { width: 100%; padding: 8px 0 16px; }
.page-header h1, .title-bold { font-size: 30px; font-weight: 700; letter-spacing: 1px; }
.page-header .subtitle { color: var(--text-sec); font-size: 14px; margin-top: 4px; }
.page-header-row { width: 100%; display: flex; gap: 8px; align-items: center; padding: 8px 0; }
.page-header-with-back { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px 0 16px; }
.back-btn { background: none; border: none; color: var(--text); cursor: pointer; padding: 4px; display: flex; }

/* Location Tags */
.location-filters { display: flex; gap: 8px; }
.location-tag { font-size: 12px; color: var(--text-sec); padding: 4px 0; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; background: rgba(255,255,255,0.08); border-radius: var(--r-full); font-size: 12px; font-weight: 600; color: var(--text); }
.badge svg { flex-shrink: 0; }
.badge-white { background: rgba(255,255,255,0.15); color: white; }
.badge-dark { background: rgba(255,255,255,0.06); color: var(--text-sec); }

/* Tag */
.tag-new { display: inline-block; padding: 4px 12px; background: var(--red); color: white; border-radius: var(--r-full); font-size: 12px; font-weight: 700; margin-left: 8px; }

/* Tab Bar */
.tab-bar { display: flex; width: 100%; gap: 0; margin-bottom: 16px; border: 1px solid var(--border); border-radius: var(--r-full); overflow: hidden; }
.tab-bar-3 .tab-btn { flex: 1; }
.tab-btn { flex: 1; padding: 12px 16px; background: transparent; border: none; color: var(--text-sec); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.tab-btn.active { background: var(--text); color: var(--bg); border-radius: var(--r-full); }

/* =========== HOME PAGE =========== */
.page-home { gap: 8px; align-items: stretch; }

/* Section label */
.home-section-label { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.home-section-label h2 { font-size: 20px; font-weight: 700; }

/* 3D Poker Chip — CSS-only realistic chip */
.hc-chip-3d {
  width: 88px; height: 88px; border-radius: 50%; flex-shrink: 0;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 65% 65%, rgba(0,0,0,0.4) 0%, transparent 50%),
    conic-gradient(from 0deg, #2a2a2a 0deg, #3a3a3a 30deg, #2a2a2a 60deg, #3a3a3a 90deg, #2a2a2a 120deg, #3a3a3a 150deg, #2a2a2a 180deg, #3a3a3a 210deg, #2a2a2a 240deg, #3a3a3a 270deg, #2a2a2a 300deg, #3a3a3a 330deg, #2a2a2a 360deg);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.5),
    0 8px 24px rgba(0,0,0,0.4),
    inset 0 1px 2px rgba(255,255,255,0.1);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hc-chip-3d::before {
  content: ''; position: absolute; inset: 6px; border-radius: 50%;
  border: 3px solid var(--red);
  background: radial-gradient(circle at 40% 40%, #333, #1a1a1a);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.5), inset 0 -1px 3px rgba(255,255,255,0.05);
}
.hc-chip-3d::after {
  content: 'K'; position: relative; z-index: 1;
  font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: rgba(255,255,255,0.5);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hc-chip-3d.hc-chip-sm { width: 72px; height: 72px; }
.hc-chip-3d.hc-chip-sm::after { font-size: 22px; }

/* Tournament card */
.hc-tournament {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 20px; padding: 16px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: border-color 0.2s;
}
.hc-tournament:active { border-color: rgba(255,255,255,0.15); }
.hc-tournament-info { flex: 1; min-width: 0; z-index: 1; }
.hc-tournament-name { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.hc-badges { display: flex; gap: 8px; flex-wrap: wrap; }

/* Rating banner */
.hc-rating {
  width: 100%; border-radius: 20px; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #c62828 0%, #7f1d1d 100%);
  padding: 20px; min-height: 180px;
  display: flex; align-items: stretch; justify-content: space-between;
  cursor: pointer; transition: transform 0.15s;
}
.hc-rating:active { transform: scale(0.98); }
.hc-rating-text { display: flex; flex-direction: column; justify-content: space-between; z-index: 1; }
.hc-rating-title { font-size: 32px; font-weight: 700; line-height: 1.05; }
.badge-glass { background: rgba(255,255,255,0.15); backdrop-filter: blur(4px); color: white; }

/* 3D Cup for rating */
.hc-cup-3d {
  width: 160px; flex-shrink: 0; position: relative; align-self: center;
  display: flex; align-items: center; justify-content: center;
}
.hc-cup-3d::before {
  content: ''; display: block; width: 120px; height: 120px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 60% 60%, rgba(0,0,0,0.5) 0%, transparent 50%),
    conic-gradient(from 0deg, #333 0deg, #444 40deg, #2a2a2a 80deg, #444 120deg, #333 160deg, #444 200deg, #2a2a2a 240deg, #444 280deg, #333 320deg, #444 360deg);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5), inset 0 1px 2px rgba(255,255,255,0.08);
}
.hc-cup-3d::after {
  content: 'K'; position: absolute; font-family: var(--font-heading);
  font-size: 40px; font-weight: 700; color: rgba(255,255,255,0.3);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Grid (2-col, Тренировки spans 2) */
.hc-grid {
  width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.hc-cell {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px;
  padding: 16px; height: 105px; overflow: hidden; position: relative;
  display: flex; flex-direction: column; justify-content: space-between;
  cursor: pointer; transition: border-color 0.2s;
}
.hc-cell:active { border-color: rgba(255,255,255,0.15); }
.hc-cell h3 { font-size: 20px; font-weight: 700; }
.hc-cell-wide { grid-column: span 2; flex-direction: row; align-items: center; }
.hc-cell-left { flex: 1; display: flex; flex-direction: column; justify-content: space-between; height: 100%; }

.card-title-bold { font-size: 18px; font-weight: 600; }

/* Reusable 2-col grid */
.home-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-bottom: 12px; }
.home-grid-2 > .profile-card { margin-bottom: 0; height: 105px; display: flex; flex-direction: column; justify-content: space-between; }

/* Shared chip styles (for other pages) */
.tc-chip { display: flex; align-items: center; justify-content: center; }
.chip-circle, .chip-circle-sm, .chip-circle-lg { border-radius: 50%; background: linear-gradient(135deg, #333, #1a1a1a); border: 3px solid #444; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--text-sec); box-shadow: 0 4px 16px rgba(0,0,0,0.5); }
.chip-circle { width: 64px; height: 64px; font-size: 24px; }
.chip-circle-sm { width: 48px; height: 48px; font-size: 18px; }
.chip-circle-lg { width: 80px; height: 80px; font-size: 32px; }
.banner-chip-right { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); }

/* =========== TOURNAMENTS =========== */
.tournaments-list { width: 100%; }
.tournament-card { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 16px; margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: border-color 0.2s; overflow: hidden; position: relative; }
.tournament-card:active { border-color: rgba(255,255,255,0.15); }
.tc-info { flex: 1; min-width: 0; z-index: 1; }
.tc-name { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.15; }
.tc-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-chip .hc-chip-3d { width: 72px; height: 72px; }
.tc-chip .hc-chip-3d::after { font-size: 22px; }

/* =========== TOURNAMENT DETAIL =========== */
.detail-header { width: 100%; position: relative; }
.detail-banner { width: 100%; height: 200px; background: linear-gradient(135deg, var(--red-dark), var(--red)); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: flex-end; padding: 20px; margin-bottom: 12px; position: relative; }
.detail-header .back-btn { position: absolute; top: 12px; left: 4px; z-index: 10; background: rgba(0,0,0,0.3); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.detail-title { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
.btn-about-tournament { width: 100%; padding: 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-full); color: var(--text-sec); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 24px; }
.detail-section { width: 100%; margin-bottom: 24px; }
.detail-section h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.detail-info-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--text-sec); }
.info-icon.red { color: var(--red); }
.detail-section ul { list-style: disc; padding-left: 20px; }
.detail-section li { font-size: 14px; padding: 4px 0; color: var(--text-sec); font-weight: 600; }
.detail-note { background: var(--bg-card); border-radius: var(--r-lg); padding: 16px; border: 1px solid var(--border); }
.detail-note p { font-size: 13px; color: var(--text-sec); line-height: 1.5; margin-bottom: 8px; }
.btn-participate { width: 100%; padding: 16px; background: var(--red); border: none; border-radius: var(--r-full); color: white; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; transition: background 0.2s; }
.btn-participate:hover { background: var(--red-dark); }

/* =========== RATING =========== */
.rating-filters { display: flex; gap: 8px; width: 100%; margin-bottom: 12px; }
.filter-pill { display: flex; align-items: center; gap: 6px; flex: 1; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-full); font-size: 12px; font-weight: 600; color: var(--text-sec); }
.search-bar { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-full); margin-bottom: 16px; }
.search-bar svg { color: var(--text-muted); flex-shrink: 0; }
.search-input { flex: 1; background: none; border: none; color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px; outline: none; }
.search-input::placeholder { color: var(--text-muted); }

.rating-table { width: 100%; }
.rating-header { display: grid; grid-template-columns: 1fr 50px 50px 60px; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.rh-name { font-size: 12px; font-weight: 600; color: var(--text-sec); }
.rh-col { font-size: 12px; font-weight: 600; color: var(--text-sec); text-align: right; }

.rating-row { display: grid; grid-template-columns: 1fr 50px 50px 60px; gap: 8px; padding: 12px; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.03); }
.rating-row:hover { background: rgba(255,255,255,0.02); }
.rr-player { display: flex; align-items: center; gap: 10px; }
.rr-rank { font-size: 14px; font-weight: 700; color: var(--text); min-width: 24px; }
.rr-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--text-sec); overflow: hidden; flex-shrink: 0; }
.rr-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-val { font-size: 13px; font-weight: 600; text-align: right; color: var(--text-sec); }
.rr-val.rating-val { color: var(--text); font-weight: 700; }

/* Top 3 special colors */
.rating-row.top-1 .rr-rank { color: #ffd700; }
.rating-row.top-2 .rr-rank { color: #c0c0c0; }
.rating-row.top-3 .rr-rank { color: #cd7f32; }

/* =========== TRAINING =========== */
.training-content { width: 100%; }
.poker-table-container { width: 100%; padding: 16px 0; display: flex; justify-content: center; }
.poker-table { position: relative; width: 340px; height: 260px; }
.table-felt { position: absolute; top: 40px; left: 40px; right: 40px; bottom: 40px; background: linear-gradient(135deg, #1a1a1a, #222); border: 3px solid var(--red); border-radius: 100px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(185,28,28,0.2); }
.table-logo { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--text-muted); letter-spacing: 3px; }
.seat { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; }
.seat:hover { transform: scale(1.1); }
.seat:active { transform: scale(0.95); }

/* Position colors matching original */
.seat-utg { left: 0; top: 90px; background: var(--red); color: white; }
.seat-utg1 { left: 80px; top: 10px; background: #3b82f6; color: white; }
.seat-utg2 { left: 150px; top: -5px; background: #3b82f6; color: white; }
.seat-mp { left: 225px; top: 10px; background: #3b82f6; color: white; }
.seat-mp2 { right: 0; top: 90px; background: #7c3aed; color: white; }
.seat-hj { right: 0; bottom: 50px; background: #7c3aed; color: white; }
.seat-co { right: 40px; bottom: 0; background: #7c3aed; color: white; }
.seat-btn { left: 150px; bottom: 0; background: #d97706; color: white; }
.seat-sb { left: 60px; bottom: 0; background: var(--red); color: white; }
.seat-bb { left: 0; bottom: 50px; background: var(--red); color: white; }
.dealer-btn { position: absolute; left: 165px; bottom: 50px; width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: white; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.position-info { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; margin-top: 16px; }
.position-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.position-info p { font-size: 14px; color: var(--text-sec); line-height: 1.5; }

/* Lessons */
.lesson-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 10px; cursor: pointer; display: flex; align-items: center; gap: 16px; transition: border-color 0.2s; }
.lesson-card:active { border-color: rgba(245,245,245,0.15); }
.lesson-num { font-family: var(--font-heading); font-size: 26px; font-weight: 700; color: var(--red); min-width: 36px; }
.lesson-card h3 { font-size: 15px; font-weight: 700; }
.lesson-card p { font-size: 12px; color: var(--text-sec); margin-top: 2px; }

/* Tests */
.test-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 10px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; transition: border-color 0.2s; }
.test-card:active { border-color: rgba(245,245,245,0.15); }
.test-card h3 { font-size: 15px; font-weight: 700; }
.test-card p { font-size: 12px; color: var(--text-sec); margin-top: 2px; }
.test-status { font-size: 13px; font-weight: 600; color: var(--red); }

/* =========== PROFILE =========== */
.profile-top-bar { width: 100%; display: flex; justify-content: flex-end; padding: 4px 0; }
.btn-logout-top {
  display: flex; align-items: center; gap: 6px; padding: 8px 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: var(--r-full); color: var(--text-sec);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.btn-logout-top:hover { background: rgba(255,255,255,0.1); color: var(--text); }
.profile-top { display: flex; align-items: center; gap: 16px; width: 100%; padding: 8px 0 16px; }
.profile-avatar { position: relative; flex-shrink: 0; }
.profile-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.streak-badge { position: absolute; bottom: -4px; left: 50%; transform: translateX(-50%); background: var(--red); color: white; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: var(--r-full); }
.profile-meta h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.profile-follow { display: flex; gap: 16px; font-size: 13px; color: var(--text-sec); }
.profile-follow strong { color: var(--text); }

.profile-card { width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 12px; position: relative; }
.profile-card.clickable { cursor: pointer; }
.profile-card.clickable:active { border-color: rgba(245,245,245,0.15); }
.profile-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mini-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: var(--r-full); overflow: hidden; }
.mini-tab { padding: 6px 14px; font-size: 12px; font-weight: 600; font-family: 'Inter', sans-serif; background: transparent; border: none; color: var(--text-sec); cursor: pointer; }
.mini-tab.active { background: var(--text); color: var(--bg); border-radius: var(--r-full); }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; text-align: center; }
.stat-val { display: block; font-size: 20px; font-weight: 800; }
.stat-label { display: block; font-size: 11px; color: var(--text-sec); margin-top: 2px; }
.setting-value { color: var(--text-sec); font-size: 14px; margin-top: 8px; }
.btn-add { background: var(--border); border: none; border-radius: var(--r-full); color: var(--text); font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; padding: 8px 16px; cursor: pointer; margin-top: 8px; }

/* =========== ABOUT, ADDRESS, Q&A =========== */
.about-content { width: 100%; text-align: center; padding: 20px 0; }
.about-logo { margin-bottom: 16px; display: flex; justify-content: center; }
.about-content h2 { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.about-content p { font-size: 14px; color: var(--text-sec); line-height: 1.6; margin-bottom: 12px; }
.about-info { margin-top: 24px; text-align: left; }
.about-row { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-sec); }
.about-row strong { color: var(--text); }

.address-content { width: 100%; }
.address-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; }
.address-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.address-card p { font-size: 14px; color: var(--text-sec); margin-bottom: 4px; }
.address-hint { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.qna-list { width: 100%; }
.qna-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 20px; margin-bottom: 10px; }
.qna-item h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.qna-item p { font-size: 13px; color: var(--text-sec); line-height: 1.5; }

/* Empty State */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 60px 20px; }
.empty-state p { color: var(--text-sec); font-size: 14px; }

/* Animations */
.animate-fade-zoom { animation: fadeZoom 0.7s ease forwards; }
.animate-slide-up { animation: slideUp 0.7s ease forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
@keyframes fadeZoom { from { opacity:0; transform:scale(0.8); } to { opacity:1; transform:scale(1); } }
@keyframes slideUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.page-enter { animation: pageIn 0.3s ease forwards; }
@keyframes pageIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 0; background: transparent; }
::selection { background: var(--red); color: white; }
