
:root {
  --bg-primary: #0D0B18;
  --bg-secondary: #16122C;
  --accent: #8B5CF6;
  --accent-light: #A78BFA;
  --accent-glow: rgba(139, 92, 246, 0.3);
  --text-primary: #FFFFFF;
  --text-secondary: #A0A0B0;
  --text-muted: #6B6B80;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
  --header-height: 72px;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.section-title, .section-label, .pricing-name,
.hero-subtitle, .hero-brand,
.footer h4, .advantage-card h3,
.blog-card h3, .onboarding-step h4,
.faq-q, .toc-title {
  font-family: 'Unbounded', sans-serif;
}

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

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: var(--max-width);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.15), rgba(255, 255, 255, 0.05), rgba(139, 92, 246, 0.15), transparent);
}

.section:last-of-type::after {
  display: none;
}

.section-label {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  color: white;
  box-shadow: 0 4px 25px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
}

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

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

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(13, 11, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.header-logo img {
  height: 56px;
  width: auto;
}

.header-logo span {
  background: linear-gradient(135deg, var(--accent-light), #C4B5FD);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--text-primary);
  background: var(--glass-bg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  font-family: inherit;
}

.btn-icon:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-telegram {
  background: linear-gradient(135deg, #0088cc, #0099dd);
  border-color: transparent;
}

.btn-telegram:hover {
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
  border-color: transparent;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle svg {
  width: 24px;
  height: 24px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding-top: var(--header-height);
  padding-bottom: 70px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, rgba(139, 92, 246, 0.08) 0%, transparent 70%),
              radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 60%),
              linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  z-index: 0;
}

.hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-stars span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: twinkle var(--duration) ease-in-out infinite;
  animation-delay: var(--delay);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
}

.hero-brand {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(52px, 10vw, 110px);
  background: linear-gradient(135deg, var(--accent-light), #C4B5FD, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.2));
  animation: brand-glow 3s ease-in-out infinite;
}

@keyframes brand-glow {
  0%, 100% { filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.4)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.2)); }
  50% { filter: drop-shadow(0 0 50px rgba(139, 92, 246, 0.6)) drop-shadow(0 0 80px rgba(139, 92, 246, 0.3)); }
}

.hero-text p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 36px;
  text-align: center;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--accent-light);
  opacity: 0.8;
  animation: scroll-bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 28px;
  height: 28px;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ===== HERO PLANET ===== */
.hero-planet {
  position: absolute;
  z-index: 1;
  width: 1000px;
  height: 1000px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.85;
  animation: planet-rotate 80s linear infinite;
}

@keyframes planet-rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero-planet svg {
  width: 100%;
  height: 100%;
}

/* ===== HERO BADGE ===== */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  background: rgba(139, 92, 246, 0.08);
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  white-space: normal;
 overflow-wrap: break-word;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22C55E;
  animation: badge-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0); }
}

/* ===== HERO CURSOR ===== */
.hero-cursor {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
}


@media (min-width: 769px) {
  .hero-brand {
    white-space: nowrap;
  }
}

@media (hover: none) {
  .hero-cursor { display: none; }
}

/* ===== ADVANTAGES ===== */
.advantages {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

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

.advantages-header .section-desc {
  margin: 0 auto;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.advantage-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.advantage-card p {
  flex: 1;
}

.advantage-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.advantage-card:hover::before {
  opacity: 1;
}

.advantage-card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.advantage-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-light);
}

.advantage-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

/* ===== PRICING ===== */
.pricing-header {
  text-align: center;
  margin-bottom: 48px;
}

.pricing-header .section-desc {
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 460px;
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.pricing-card.popular {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(167, 139, 250, 0.05));
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: scale(1.05);
  z-index: 2;
  padding-bottom: 52px;
  height: 520px;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 20px;
  border-radius: 50px;
}

.pricing-name {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1.5px;
  margin-bottom: 4px;
}

.pricing-price .currency {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-right: 6px;
}

.pricing-price s {
  font-size: 20px;
  font-weight: 600;
  color: #ef4444;
  margin-left: 12px;
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--glass-border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li svg {
  width: 16px;
  height: 16px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ===== ONBOARDING ===== */
.onboarding {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  padding-bottom: 120px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.onboarding-left .section-label {
  margin-bottom: 8px;
}

.onboarding-left .section-title {
  margin-bottom: 32px;
}

.onboarding-tabs {
  display: flex;
  gap: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 36px;
  width: fit-content;
}

.onboarding-tab {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

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

.onboarding-tab.active {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.onboarding-steps {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(-24px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.onboarding-steps.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.onboarding-steps.outgoing {
  opacity: 0;
  transform: translateX(36px);
}

.onboarding-steps-wrap {
  position: relative;
  min-height: 360px;
  margin-bottom: 20px;
}

.onboarding-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.step-marker {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
}

.onboarding-step > div {
  padding-top: 10px;
}

.onboarding-step h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.onboarding-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.onboarding-step .btn {
  font-size: 13px;
  padding: 10px 22px;
}

/* ===== RIGHT COLUMN: APP GRID ===== */
.onboarding-right {
  padding-left: 40px;
  padding-top: 100px;
  align-self: start;
}

.onboarding-right .section-label {
  margin-bottom: 20px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.app-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
  cursor: default;
}

.app-card:hover {
  background: var(--glass-hover);
  border-color: rgba(139, 92, 246, 0.2);
  transform: translateY(-2px);
}

.app-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
}

.app-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-info strong {
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
 overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-info span {
  font-size: 12px;
  color: var(--text-muted);
  white-space: normal;
 overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-grid-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  transition: var(--transition);
}

.app-grid-link:hover {
  gap: 12px;
  color: var(--accent);
}

.app-grid-link svg {
  transition: var(--transition);
}

.app-grid-link:hover svg {
  transform: translateX(2px);
}

/* ===== BLOG PREVIEW (on index) ===== */
.blog-preview {
  text-align: center;
}

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

.blog-preview-header .section-desc {
  margin: 0 auto;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.blog-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-align: left;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--bg-secondary), #1a1640);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg-secondary);
}

.blog-card-body {
  padding: 24px;
}

.blog-card-date {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-card-link:hover {
  gap: 10px;
}

.blog-card-link svg {
  width: 16px;
  height: 16px;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 320px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer ul a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--glass-hover);
  color: var(--accent-light);
  border-color: var(--accent);
}

.footer-socials svg {
  width: 16px;
  height: 16px;
}

/* ===== BLOG PAGE ===== */
.page-header {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(ellipse 80% 40% at 50% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 70%);
}

.page-header .section-desc {
  margin: 0 auto;
}

.blog-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.blog-page .blog-card-image {
  height: 220px;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.breadcrumbs a {
  color: var(--text-secondary);
  transition: var(--transition);
}

.breadcrumbs a:hover {
  color: var(--accent-light);
}

.breadcrumbs svg {
  width: 14px;
  height: 14px;
}

.article-header {
  margin-bottom: 40px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.article-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.article-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--bg-secondary), #1a1640);
}

.article-content {
  max-width: 780px;
  margin: 0 auto;
}

.article-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 16px;
}

.article-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
}

.article-content p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.article-content ul li {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  list-style: disc;
  margin-bottom: 8px;
}

.article-content strong {
  color: var(--text-primary);
}

.article-content .article-lead {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 32px;
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.article-content .article-h2-icon {
  font-size: 26px;
}

.article-content .article-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.article-content .article-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition);
}

.article-content .article-card:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
}

.article-content .article-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.article-content .article-card-header h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.article-content .article-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  color: #fff;
}

.article-content .article-card p {
  font-size: 14px;
  margin-bottom: 12px;
}

.article-content .article-card ul {
  margin-bottom: 16px;
  padding-left: 16px;
}

.article-content .article-card ul li {
  font-size: 14px;
  margin-bottom: 4px;
  list-style: disc;
}

.article-content .article-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  transition: var(--transition);
}

.article-content .article-card-link:hover {
  gap: 10px;
  color: var(--accent);
}

.article-content .article-card-link svg {
  width: 16px;
  height: 16px;
}

.article-content .article-list-num {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.article-content .article-list-num li {
  counter-increment: step;
  padding-left: 48px;
  position: relative;
  margin-bottom: 20px;
  list-style: none;
}

.article-content .article-list-num li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.article-content .article-faq-item {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--glass-border);
}

.article-content .article-faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.article-content .article-faq-item h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.article-content .article-faq-item p {
  margin-bottom: 0;
}

.article-content .article-cta {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.1));
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 40px 0;
}

.article-content .article-cta-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.article-content .article-cta-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  font-size: 22px;
}

.article-content .article-cta-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.article-content .article-cta-text p {
  font-size: 14px;
  margin: 0;
}

.article-content .article-cta .btn {
  flex-shrink: 0;
}

.article-related {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
}

.article-related h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.article-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-related-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
  text-decoration: none;
  display: block;
}

.article-related-card:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article-related-card .related-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.article-related-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.article-related-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-brand {
    animation: none !important;
  }

  .article-content .article-cta {
    flex-direction: column;
    text-align: center;
  }
  .article-content .article-cta-left {
    flex-direction: column;
  }
  .article-related-grid {
    grid-template-columns: 1fr;
  }
}
.not-found {
  text-align: center;
  padding: 120px 24px;
}

.not-found h1 {
  font-size: 120px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
}

.not-found p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ===== AOS CUSTOM ===== */
[data-aos].aos-init {
  opacity: 0;
  transform: translateY(30px);
  transition: none !important;
}

[data-aos].aos-init[data-aos^="fade-left"] { transform: translateX(-30px); }
[data-aos].aos-init[data-aos^="fade-right"] { transform: translateX(30px); }
[data-aos].aos-init[data-aos^="fade-up"] { transform: translateY(30px); }
[data-aos].aos-init[data-aos^="zoom-in"] { transform: scale(0.9); }

[data-aos].aos-animate {
  pointer-events: auto;
  opacity: 1;
  transform: translate(0, 0) scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease !important;
}


/* Dashboard banner mobile */
@media (max-width: 480px) {
  .dashboard-banner {
    gap: 8px;
    padding: 10px 12px;
  }
  .dashboard-banner-text h4 {
    font-size: 13px;
  }
  .dashboard-banner-text p {
    display: none;
  }
  .dashboard-banner-arrow {
    display: none;
  }
  .dashboard-banner-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text p {
    margin: 0 auto 36px;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-card.popular:hover {
    transform: translateY(-8px);
  }

  .pricing-card:hover {
    transform: translateY(-4px);
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .onboarding-tabs {
    width: 100%;
  }

  .onboarding-tab {
    flex: 1;
    text-align: center;
  }

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

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

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

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .header-nav {
    display: flex;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(13, 11, 24, 0.98);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .header-nav.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .header-nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
  }

  .mobile-toggle {
    display: block;
  }

  .btn-icon span {
    display: none;
  }

  .btn-icon {
    padding: 10px;
  }

  .section {
    padding: 60px 0;
  }

  .onboarding {
    padding-bottom: 80px;
  }

  .advantages-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: clip;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px 24px 40px;
    scrollbar-width: none;
    align-items: stretch;
  }

  .advantages-grid::-webkit-scrollbar {
    display: none;
  }

  .advantage-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 32px 28px;
    overflow: visible;
  }

  .advantage-card p {
    font-size: 14px;
    line-height: 1.7;
  }

  .advantage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
  }

  .advantage-icon svg {
    width: 24px;
    height: 24px;
  }

  .advantage-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .advantages-header {
    margin-bottom: 24px;
  }

  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: clip;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    padding: 20px 24px 40px;
    scrollbar-width: none;
    max-width: 100%;
    margin: 0;
    align-items: stretch;
  }

  .pricing-grid::-webkit-scrollbar {
    display: none;
  }

  .pricing-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 36px 28px;
    height: 420px;
  }

  .pricing-card.popular {
    height: 480px;
  }

  .pricing-card.popular {
    transform: none;
  }

  .pricing-price {
    font-size: 40px;
  }

  .pricing-features li {
    font-size: 14px;
    padding: 8px 0;
  }

  .pricing-header {
    margin-bottom: 24px;
  }

  .onboarding-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .onboarding-grid > div {
    overflow: hidden;
  }

  .onboarding-tabs {
    width: 100%;
  }

  .onboarding-tab {
    flex: 1;
    text-align: center;
  }

  .onboarding-right {
    padding-left: 0;
  }

  .onboarding-steps {
    position: relative;
    display: flex;
    flex-direction: column;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.35s ease, max-height 0.35s ease;
    pointer-events: none;
  }

  .onboarding-steps.active {
    opacity: 1;
    max-height: 600px;
    pointer-events: auto;
  }

  .onboarding-steps.outgoing {
    opacity: 0;
    max-height: 0;
  }

  .onboarding-steps-wrap {
    position: relative;
    min-height: 0;
    margin-bottom: 0;
  }

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

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

  .hero-planet {
    width: 450px;
    height: 450px;
  }

  .hero-badge {
    font-size: 11px;
    padding: 4px 12px;
    white-space: normal;
  }

  [data-aos].aos-init[data-aos^="fade-left"],
  [data-aos].aos-init[data-aos^="fade-right"] {
    transform: translateY(30px);
  }

  [data-aos].aos-init.aos-animate[data-aos^="fade-left"],
  [data-aos].aos-init.aos-animate[data-aos^="fade-right"] {
    transform: translateY(0);
  }

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

  .blog-preview-grid {
    grid-template-columns: 1fr;
  }

  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand p {
    margin: 16px auto 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

  .header-actions {
    gap: 4px;
  }

  .btn-icon {
    padding: 8px;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .pricing-card {
    padding: 28px 20px;
    height: 420px;
  }

  .pricing-card.popular {
    height: 470px;
  }

  .pricing-price {
    font-size: 36px;
  }

  .onboarding-step .btn {
    width: auto;
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  backdrop-filter: blur(20px);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.login-logo img {
  height: 100px;
  width: auto;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.login-header p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.login-btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #0088cc, #0099dd);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.login-btn-telegram:hover {
  box-shadow: 0 0 30px rgba(0, 136, 204, 0.4);
  transform: translateY(-1px);
}

.login-btn-telegram svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}

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

.login-field {
  margin-bottom: 20px;
}

.login-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.login-field-label a {
  font-size: 12px;
  color: var(--accent-light);
  text-decoration: none;
}

.login-field-label a:hover {
  text-decoration: underline;
}

.login-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
  box-sizing: border-box;
}

.login-field input::placeholder {
  color: var(--text-muted);
}

.login-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.login-btn-primary:hover {
  box-shadow: 0 0 30px var(--accent-glow);
  transform: translateY(-1px);
}

.login-footer-text {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.login-footer-text a {
  color: var(--accent-light);
  font-weight: 600;
  text-decoration: none;
}

.login-footer-text a:hover {
  text-decoration: underline;
}

.login-error {
  display: none;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  color: #ef4444;
  margin-bottom: 16px;
  text-align: center;
}

/* ===== DASHBOARD ===== */
.dashboard {
  min-height: 100vh;
  background: var(--bg-primary);
}

.dashboard-header {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 12px;
}

.dashboard-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto;
  padding: 12px 16px;
}

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

.dashboard-logo img {
  height: 36px;
  width: auto;
}

.dashboard-menu-wrap {
  position: relative;
}

.dashboard-menu-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.dashboard-menu-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.dashboard-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  padding: 6px;
  min-width: 160px;
  display: none;
  z-index: 20;
}

.dashboard-menu-dropdown.open {
  display: block;
}

.dashboard-menu-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.dashboard-menu-dropdown a:hover {
  background: var(--glass-hover);
  color: #ef4444;
}

.dashboard-body {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 16px 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(109, 40, 217, 0.1));
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(139, 92, 246, 0.08);
  width: 100%;
  box-sizing: border-box;
}

.dashboard-banner-tg {
  background: linear-gradient(135deg, #0088cc, #0099dd);
  border-color: transparent;
  color: #fff;
}

.dashboard-banner-tg:hover {
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.dashboard-banner-tg .dashboard-banner-icon {
  background: rgba(255, 255, 255, 0.2);
}

.dashboard-banner-tg .dashboard-banner-text h4,
.dashboard-banner-tg .dashboard-banner-text p,
.dashboard-banner-tg .dashboard-banner-arrow {
  color: #fff;
}

.dashboard-banner:hover {
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.dashboard-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6D28D9);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.dashboard-banner-text {
  flex: 1;
  min-width: 0;
}

.dashboard-banner-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 2px 0;
  white-space: normal;
 overflow-wrap: break-word;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-banner-text p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
}

.dashboard-banner-arrow {
  font-size: 18px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.dashboard-card {
  background: var(--glass-bg);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.dashboard-card-tariff .dashboard-card-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.dashboard-card-tariff .dashboard-card-body {
  flex: 1;
  min-width: 0;
}

.dashboard-card-tariff .dashboard-card-icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.dashboard-card-tariff .dashboard-card-body h3 {
  margin: 0 0 4px 0;
}

.dashboard-card-tariff .dashboard-card-body p {
  margin: 0;
}

.dashboard-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 24px;
  padding: 14px 20px;
  font-size: 15px;
}

.dashboard-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-light);
}

.dashboard-card-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.dashboard-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.dashboard-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 16px 0;
}

.dashboard-card .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dashboard-card-price {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.dashboard-card-price strong {
  color: var(--text-primary);
  font-weight: 700;
}

.dashboard-card-centered {
  text-align: center;
}

.dashboard-card-centered .dashboard-card-icon {
  margin: 0 auto 16px;
}

.dashboard-card-centered p {
  max-width: 380px;
  margin: 0 auto 16px;
}

.dashboard-btn-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.dashboard-btn-group .btn {
  flex: 1;
  justify-content: center;
  padding: 14px 20px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal {
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal-header h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

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

.modal-section {
  margin-bottom: 20px;
}

.modal-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
  margin-bottom: 10px;
}

.modal-tabs {
  display: flex;
  gap: 8px;
}

.modal-tab {
  flex: 1;
  padding: 10px 6px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.modal-tab small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #ef4444;
  margin-top: 2px;
}

.modal-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.modal-tab.active small {
  color: #fca5a5;
}

.modal-divider {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 16px 0;
}

.modal-pricing {
  margin-bottom: 20px;
}

.modal-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-price-base {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-pricing-total {
  border-top: 1px solid var(--glass-border);
  margin-top: 4px;
  padding-top: 12px;
}

.modal-pricing-total > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-total-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.modal-price-perday {
  font-size: 11px;
  color: var(--text-muted);
}

.modal-price-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.modal-cta:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.modal-footer-text {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin: 12px 0 0;
}

/* Settings */
.settings-logout {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
}

.settings-logout:hover {
  background: var(--glass-hover);
  color: #ef4444;
}

.dashboard-back {
  background: none;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  transition: opacity 0.15s;
}

.dashboard-back:hover {
  opacity: 0.7;
}

.dashboard-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-header-text {
  margin-bottom: 4px;
}

.settings-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.settings-header-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

.settings-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-row-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(109, 40, 217, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-light);
}

.settings-row-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-row-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.settings-row-value {
  font-size: 13px;
  color: var(--text-muted);
}

.settings-tg-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}
