/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --card: #ffffff;
  --border: #e9ecef;
  --text: #1a1a1a;
  --muted: #6c757d;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --danger: #ef4444;
  
  /* Telegram safe areas (set by JS, fallbacks here) */
  --tg-header-height: 56px;
  --tg-safe-top: 0px;
  --tg-safe-bottom: 0px;
  --tg-content-safe-top: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  min-height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

main.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.card {
  width: min(520px, 92vw);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.shell {
  display: grid;
  gap: 20px;
}

.shell-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.shell-title {
  margin: 12px 0 6px;
  font-size: 26px;
}

.shell-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.shell-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.nav-link-active {
  color: var(--text);
  border-color: var(--border);
  box-shadow: inset 0 0 0 1px rgba(245, 197, 66, 0.15);
}

.shell-body {
  display: grid;
  gap: 16px;
}

.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.stat-card {
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  padding: 16px;
}

.stat-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--muted);
}

.stat-card p {
  margin: 0;
  font-size: 18px;
}

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

.plan-grid {
  display: grid;
  gap: 12px;
}

.plan-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
}

.plan-card h3 {
  margin: 0;
  font-size: 18px;
}

.plan-meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.chip {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(245, 197, 66, 0.12);
  color: var(--accent);
}

.card h1 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 12px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--border);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: rgba(59, 130, 246, 0.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: none;
}

.center {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
}

/* App Container with fixed bottom nav */
.app-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.app-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-top: calc(var(--tg-content-safe-top, 0px) + var(--tg-header-height, 56px) + 8px);
  padding-bottom: calc(80px + var(--tg-safe-bottom, 0px));
}

.admin-banner {
  margin-bottom: 16px;
}

.admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.2s ease;
  text-decoration: none;
}

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

.bottom-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.bottom-nav-label {
  font-size: 11px;
  font-weight: 500;
}

/* Page content cards */
.page-card {
  background: var(--card);
  border: none;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.page-header {
  margin-bottom: 20px;
}

.page-title {
  margin: 0 0 4px;
  font-size: 24px;
}

.page-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Menu list for profile */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border: none;
  border-radius: 12px;
  color: var(--text);
  transition: all 0.2s ease;
}

.menu-item:hover {
  background: var(--border);
  transform: translateX(4px);
}

.menu-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 10px;
  font-size: 20px;
}

.menu-item-content {
  flex: 1;
}

.menu-item-title {
  font-size: 15px;
  font-weight: 500;
}

.menu-item-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.menu-item-arrow {
  color: var(--muted);
}

/* Empty state */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  min-height: 300px;
}

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

.empty-state-title {
  margin: 0 0 8px;
  font-size: 20px;
}

.empty-state-text {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

