:root {
  --purple: #5b2d8b;
  --purple-dark: #1a1f3a;
  --purple-light: #9333ea;
  --purple-soft: #ede7f6;
  --teal: #22d3ee;
  --blue: #3b82f6;
  --navy: #141b35;
  --blue-soft: #6ec1ff;
  --white: #ffffff;
  --bg: #f5f3fa;
  --text: #2d2d2d;
  --text-muted: #6b6675;
  --green: #2ecc71;
  --red: #e74c3c;
  --yellow: #f1c40f;
  --gradient-kelixa: linear-gradient(135deg, var(--teal), var(--blue), var(--purple-light));
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(26, 31, 58, 0.12);
  --shadow-soft: 0 4px 16px rgba(26, 31, 58, 0.08);
  --nav-height: 84px;
  --max-width: 480px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-frame {
  min-height: 100vh;
}

.app-shell {
  width: 100%;
  max-width: var(--max-width);
  min-height: calc(100vh - var(--nav-height));
  margin: 0 auto;
  padding: 20px 16px calc(var(--nav-height) + 24px);
}

body.auth-page .app-shell {
  min-height: 100vh;
  padding-bottom: 24px;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  body {
    background:
      radial-gradient(circle at top right, rgba(123, 75, 184, 0.18), transparent 35%),
      linear-gradient(135deg, #ede7f6, #f5f3fa);
  }

  .app-shell {
    padding-top: 32px;
  }
}

@media (min-width: 1024px) {
  .app-frame {
    display: flex;
    justify-content: center;
  }
}
