/* =====================================================
   AutoSto — Design System
   Palette: Deep navy + electric indigo + soft silver
   Typography: Inter (utility), Sora (display)
   Signature: Animated "pulse ring" on monitoring cards
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --navy-950: #050c1a;
  --navy-900: #0a1628;
  --navy-800: #0f2041;
  --navy-700: #172d58;
  --indigo-500: #4f46e5;
  --indigo-400: #6366f1;
  --indigo-300: #818cf8;
  --indigo-glow: rgba(79, 70, 229, 0.35);
  --silver-100: #f1f5f9;
  --silver-200: #e2e8f0;
  --silver-300: #cbd5e1;
  --silver-500: #64748b;
  --silver-600: #475569;
  --white: #ffffff;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(5, 12, 26, 0.45);
  --shadow-glow: 0 0 40px rgba(79, 70, 229, 0.3);
  --transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy-950);
  color: var(--silver-200);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--indigo-300); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; color: var(--white); }

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

/* ── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--indigo-500); border-radius: 3px; }

/* ── Noise texture overlay ─────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white) !important;
  letter-spacing: -0.02em;
}

.navbar-brand span {
  color: var(--indigo-400);
}

.nav-link {
  color: var(--silver-300) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--white) !important;
  background: rgba(99, 102, 241, 0.12);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.2);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.7)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ── Buttons ────────────────────────────────────────── */
.btn-primary-custom {
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-400));
  color: var(--white);
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: var(--transition);
}

.btn-primary-custom:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.5);
  color: var(--white);
}

.btn-primary-custom:hover::before {
  background: rgba(255,255,255,0.08);
}

.btn-primary-custom:active { transform: translateY(0); }

.btn-ghost {
  background: rgba(255,255,255,0.05);
  color: var(--silver-200);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
}

.btn-danger-custom {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-danger-custom:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: var(--danger);
}

.btn-sm-custom {
  padding: 8px 18px;
  font-size: 0.85rem;
}

/* ── Cards ──────────────────────────────────────────── */
.card-glass {
  background: rgba(15, 32, 65, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.card-glass:hover {
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

/* ── Section Wrapper ────────────────────────────────── */
.section {
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-sm { padding: 50px 0; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--indigo-300);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--silver-500);
  max-width: 520px;
  line-height: 1.7;
}

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 70%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(79, 70, 229, 0.18) 0%, transparent 70%);
  animation: float 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.35);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--indigo-300);
  margin-bottom: 24px;
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero-title .accent {
  background: linear-gradient(135deg, var(--indigo-300), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--silver-400, #94a3b8);
  line-height: 1.75;
  max-width: 480px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 52px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--silver-500);
  margin-top: 4px;
}

/* ── Demo Card ──────────────────────────────────────── */
.demo-card {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
  z-index: 1;
}

.demo-card-header {
  background: var(--navy-900);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.demo-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.demo-dot-red { background: #ff5f57; }
.demo-dot-yellow { background: #febc2e; }
.demo-dot-green { background: #28c840; }

.demo-card-title {
  font-size: 0.78rem;
  color: var(--silver-500);
  margin-left: auto;
  font-weight: 500;
}

.demo-card-body { padding: 20px; }

/* ── Profile Monitor Card (Signature element) ───────── */
.monitor-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.monitor-card.active { border-color: rgba(79, 70, 229, 0.4); }

.monitor-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-500), #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  position: relative;
}

/* Pulse ring — Signature element */
.monitor-avatar::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--indigo-400);
  animation: pulse-ring 2.5s ease-out infinite;
}

@keyframes pulse-ring {
  0% { opacity: 0.8; transform: scale(1); }
  70% { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

.monitor-info { flex: 1; min-width: 0; }

.monitor-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.monitor-meta {
  font-size: 0.75rem;
  color: var(--silver-500);
  margin-top: 2px;
}

.monitor-badge {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 100px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-new {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-watching {
  background: rgba(79, 70, 229, 0.15);
  color: var(--indigo-300);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.badge-paused {
  background: rgba(100, 116, 139, 0.15);
  color: var(--silver-500);
  border: 1px solid rgba(100, 116, 139, 0.3);
}

/* ── Features Grid ──────────────────────────────────── */
.feature-icon {
  width: 48px; height: 48px;
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-300);
  font-size: 1.2rem;
  margin-bottom: 16px;
  transition: var(--transition);
}

.card-glass:hover .feature-icon {
  background: rgba(79, 70, 229, 0.2);
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.25);
}

.feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 0.88rem;
  color: var(--silver-500);
  line-height: 1.65;
}

/* ── Pricing ────────────────────────────────────────── */
.pricing-card {
  background: rgba(15, 32, 65, 0.5);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.2), rgba(15, 32, 65, 0.6));
  border-color: rgba(79, 70, 229, 0.5);
  box-shadow: 0 0 60px rgba(79, 70, 229, 0.2);
  position: relative;
}

.pricing-card.featured::before {
  content: 'Популярный';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--indigo-500), var(--indigo-400));
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.pricing-plan-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver-500);
  margin-bottom: 12px;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-price sup {
  font-size: 1.2rem;
  font-weight: 600;
  vertical-align: super;
  margin-right: 2px;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--silver-500);
  margin-top: 4px;
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 24px 0;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.88rem;
  color: var(--silver-300);
}

.pricing-feature i {
  color: var(--success);
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-feature.disabled {
  opacity: 0.35;
}

.pricing-feature.disabled i {
  color: var(--silver-500);
}

.pricing-cta { margin-top: auto; padding-top: 24px; }

.pricing-cta .btn-primary-custom,
.pricing-cta .btn-ghost { width: 100%; justify-content: center; }

/* ── FAQ ────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 20px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover { color: var(--indigo-300); }

.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  color: var(--indigo-300);
  font-size: 0.75rem;
}

.faq-question.open .faq-icon {
  background: rgba(99, 102, 241, 0.25);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-bottom: 20px;
  font-size: 0.9rem;
  color: var(--silver-500);
  line-height: 1.75;
}

.faq-answer.show { display: block; }

/* ── Forms ──────────────────────────────────────────── */
.form-wrapper {
  max-width: 420px;
  margin: 0 auto;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver-300);
  margin-bottom: 8px;
}

.form-control-custom {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 12px 16px;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}

.form-control-custom::placeholder { color: var(--silver-600); }

.form-control-custom:focus {
  border-color: var(--indigo-400);
  background: rgba(255,255,255,0.07);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.form-control-custom.error { border-color: var(--danger); }

.form-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 6px;
  display: none;
}

.form-error.show { display: block; }

.input-icon-wrapper {
  position: relative;
}

.input-icon-wrapper .form-control-custom { padding-left: 42px; }

.input-icon-wrapper .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--silver-600);
  font-size: 0.9rem;
}

/* ── Auth Page ──────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 40px 0;
}

.auth-card {
  background: rgba(15, 32, 65, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  backdrop-filter: blur(16px);
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-title {
  font-size: 1.6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  text-align: center;
  color: var(--silver-500);
  font-size: 0.9rem;
  margin-bottom: 32px;
}

.divider-text {
  position: relative;
  text-align: center;
  margin: 20px 0;
  color: var(--silver-600);
  font-size: 0.8rem;
}

.divider-text::before,
.divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: rgba(255,255,255,0.08);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

/* ── Dashboard ──────────────────────────────────────── */
.dashboard-layout {
  display: flex;
  min-height: calc(100vh - 72px);
}

.sidebar {
  width: 240px;
  background: rgba(10, 22, 40, 0.9);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
}

.sidebar-section {
  padding: 0 16px;
  margin-bottom: 8px;
}

.sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver-600);
  padding: 8px 12px 6px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--silver-400, #94a3b8);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.sidebar-link.active {
  background: rgba(79, 70, 229, 0.15);
  color: var(--white);
}

.sidebar-link.active i { color: var(--indigo-400); }
.sidebar-link i { font-size: 0.9rem; width: 16px; text-align: center; }

.main-content {
  flex: 1;
  padding: 36px;
  overflow-y: auto;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.page-subtitle {
  font-size: 0.88rem;
  color: var(--silver-500);
  margin-bottom: 32px;
}

/* ── Stats Widgets ──────────────────────────────────── */
.stat-widget {
  background: rgba(15, 32, 65, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--silver-500);
  margin-top: 4px;
}

.stat-icon {
  width: 40px; height: 40px;
  background: rgba(79, 70, 229, 0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--indigo-400);
  font-size: 1rem;
}

/* ── Subscription Status ────────────────────────────── */
.subscription-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.status-active {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.status-inactive {
  background: rgba(100, 116, 139, 0.12);
  color: var(--silver-500);
  border: 1px solid rgba(100, 116, 139, 0.25);
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ── Table ──────────────────────────────────────────── */
.table-custom {
  width: 100%;
  border-collapse: collapse;
}

.table-custom th {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--silver-500);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.table-custom td {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--silver-300);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}

.table-custom tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* ── Profile Card in Dashboard ──────────────────────── */
.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: var(--transition);
}

.profile-row:hover { border-color: rgba(99, 102, 241, 0.25); }

.profile-row-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.profile-row-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--white);
}

.profile-row-handle {
  font-size: 0.78rem;
  color: var(--silver-500);
}

.profile-row-actions { margin-left: auto; display: flex; gap: 8px; }

.icon-btn {
  width: 30px; height: 30px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--silver-500);
  font-size: 0.78rem;
  transition: var(--transition);
}

.icon-btn:hover { background: rgba(255,255,255,0.1); color: var(--white); }

.icon-btn.danger:hover { background: rgba(239, 68, 68, 0.1); color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }

/* ── Telegram block ─────────────────────────────────── */
.tg-connect-card {
  background: rgba(32, 129, 202, 0.08);
  border: 1px solid rgba(32, 129, 202, 0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.tg-icon {
  font-size: 3rem;
  color: #2081CA;
  margin-bottom: 14px;
}

/* ── Add Profile form ───────────────────────────────── */
.add-profile-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.add-profile-row .form-control-custom { flex: 1; }

/* ── Toast / Notification ───────────────────────────── */
.toast-container {
  position: fixed;
  top: 88px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast-custom {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 280px;
  box-shadow: var(--shadow-card);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from { transform: translateX(120%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.toast-icon { font-size: 1rem; }
.toast-custom.success .toast-icon { color: var(--success); }
.toast-custom.error .toast-icon { color: var(--danger); }
.toast-message { font-size: 0.88rem; color: var(--silver-200); }
.toast-close {
  margin-left: auto;
  cursor: pointer;
  color: var(--silver-600);
  font-size: 0.85rem;
  background: none;
  border: none;
}

/* ── Steps / How it works ───────────────────────────── */
.step-item { display: flex; gap: 20px; margin-bottom: 36px; }
.step-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--indigo-300);
  background: rgba(79, 70, 229, 0.12);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.step-content-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.step-content-desc {
  font-size: 0.88rem;
  color: var(--silver-500);
  line-height: 1.65;
}

/* ── CTA Banner ─────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.3), transparent);
  border-radius: 50%;
}

/* ── Footer ─────────────────────────────────────────── */
footer {
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-brand span { color: var(--indigo-400); }

.footer-desc {
  font-size: 0.85rem;
  color: var(--silver-600);
  line-height: 1.7;
  max-width: 260px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--silver-500);
  margin-bottom: 16px;
}

.footer-link {
  display: block;
  font-size: 0.88rem;
  color: var(--silver-600);
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-link:hover { color: var(--white); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--silver-600);
}

/* ── Checkout ───────────────────────────────────────── */
.checkout-summary {
  background: rgba(15, 32, 65, 0.6);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.checkout-plan-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
}

.checkout-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--indigo-300);
}

.ykassa-placeholder {
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  color: var(--silver-600);
  font-size: 0.88rem;
}

.ykassa-placeholder i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--silver-600);
}

/* ── Page Subtitle band ─────────────────────────────── */
.page-hero {
  padding: 60px 0 48px;
  text-align: center;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,0.3), transparent);
}

/* ── Instruction Steps ──────────────────────────────── */
.instruction-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.instruction-step:last-child { border-bottom: none; }

.instruction-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(79, 70, 229, 0.2);
  line-height: 1;
  min-width: 50px;
  padding-top: 4px;
}

.instruction-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.instruction-desc {
  font-size: 0.9rem;
  color: var(--silver-500);
  line-height: 1.7;
}

/* ── Alert ──────────────────────────────────────────── */
.alert-custom {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.alert-info {
  background: rgba(79, 70, 229, 0.1);
  border: 1px solid rgba(79, 70, 229, 0.25);
  color: var(--indigo-300);
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--success);
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--warning);
}

/* ── Loading Spinner ────────────────────────────────── */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Mobile Sidebar ─────────────────────────────────── */
@media (max-width: 991px) {
  .dashboard-layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    top: 0;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .sidebar-section { display: flex; flex-wrap: wrap; gap: 4px; padding: 0; }
  .sidebar-label { display: none; }
  .sidebar-link { padding: 8px 14px; font-size: 0.8rem; }
  .main-content { padding: 24px 16px; }
}

@media (max-width: 768px) {
  .hero-stats { gap: 24px; }
  .auth-card { padding: 32px 24px; }
  .cta-banner { padding: 44px 24px; }
  .hero { min-height: auto; padding: 80px 0 50px; }
  .section { padding: 56px 0; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary-custom,
  .hero-actions .btn-ghost { width: 100%; justify-content: center; }

  .pricing-card { padding: 28px 20px; }
  .pricing-price { font-size: 2.4rem; }

  .instruction-step { flex-direction: column; gap: 12px; }
  .instruction-num { font-size: 1.8rem; min-width: auto; }

  .add-profile-row { flex-direction: column; }

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

  .checkout-summary { margin-top: 24px; }

  .page-hero { padding: 40px 0 32px; }

  .toast-container { left: 12px; right: 12px; }
  .toast-custom { min-width: auto; }

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

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-widget { padding: 16px; }
  .stat-value { font-size: 1.6rem; }
  .navbar-brand { font-size: 1.25rem; }
}
