/* Insta landing — premium dark charcoal editorial style */
.insta-landing {
  background: #050608;
  color: #f9fafb;
  min-height: 100vh;
  padding-bottom: 2rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.insta-landing::before {
  content: "for i in range():\\A deploy()\\A auth_token\\A API\\A docker run backend";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  white-space: pre;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  line-height: 1.8;
  color: rgba(148, 163, 184, 0.06);
  opacity: 0.9;
  mix-blend-mode: soft-light;
  transform: translate3d(0, 0, 0);
  animation: dev-code-bg-float-insta 70s linear infinite;
}

@keyframes dev-code-bg-float-insta {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(40px, -80px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes insta-neon-soft-pulse {
  0% {
    box-shadow:
      0 0 0 rgba(0, 168, 255, 0),
      0 0 0 rgba(0, 168, 255, 0);
  }
  50% {
    box-shadow:
      0 0 10px rgba(0, 168, 255, 0.26),
      0 0 30px rgba(0, 168, 255, 0.16);
  }
  100% {
    box-shadow:
      0 0 0 rgba(0, 168, 255, 0),
      0 0 0 rgba(0, 168, 255, 0);
  }
}

.insta-landing-page .main-content {
  padding-top: 0;
}

.insta-hero {
  position: relative;
  padding: 3.1rem 1.5rem 2.4rem;
  overflow: hidden;
}

.insta-hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 189, 248, 0.10), transparent 40%),
    radial-gradient(circle at 80% 82%, rgba(15, 23, 42, 0.7), transparent 45%);
  pointer-events: none;
  animation: insta-hero-glow 20s ease-in-out infinite alternate;
}

.insta-hero-inner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3.2fr) minmax(0, 2.2fr);
  gap: 2.4rem;
  z-index: 1;
}

@media (max-width: 1023px) {
  .insta-hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.insta-hero-main {
  display: flex;
  align-items: center;
}

.insta-hero-copy {
  max-width: 640px;
}

.insta-hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200, 211, 255, 0.9);
  margin-bottom: 0.9rem;
}

.insta-hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.insta-hero-title-accent {
  display: block;
  color: #ff2d55; /* Premium pink/red */
}

.insta-hero-subtitle {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  max-width: 540px;
  margin-bottom: 1.8rem;
}

.insta-hero-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}

.insta-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  background: linear-gradient(135deg, #22c1c3, #0ea5e9);
  box-shadow:
    0 12px 35px rgba(16, 19, 61, 0.85),
    0 0 0 1px rgba(159, 177, 255, 0.35);
  color: #050814;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, background 160ms ease-out;
  animation: insta-neon-soft-pulse 5200ms ease-in-out infinite;
}

/* Global button hover animations */
.btn-animated,
.btn,
.button,
.primary-btn,
.secondary-btn {
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease-out,
    background 0.22s ease-out,
    filter 0.22s ease-out;
}

.btn-animated:hover,
.btn:hover,
.button:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 16px 38px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.4);
  filter: saturate(1.05);
}

.btn-animated:active,
.btn:active,
.button:active,
.primary-btn:active,
.secondary-btn:active {
  transform: translateY(0) scale(0.99);
}

.insta-btn-primary-strong {
  background: #ff2d55;
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: 8px;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease-out,
    background 0.22s ease-out,
    filter 0.22s ease-out;
  box-shadow:
    0 12px 28px rgba(255, 45, 85, 0.25),
    0 0 0 1px rgba(248, 113, 113, 0.25);
  animation: insta-cta-strong-pulse 5200ms ease-in-out infinite;
}

.insta-btn-primary-strong:hover {
  background: #ff456e;
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 20px 48px rgba(255, 45, 85, 0.4),
    0 0 0 1px rgba(248, 113, 113, 0.52),
    0 0 40px rgba(248, 113, 113, 0.55);
  filter: saturate(1.08);
}

.insta-btn-primary-strong:active {
  transform: translateY(0) scale(0.99);
  box-shadow:
    0 10px 24px rgba(127, 29, 29, 0.6),
    0 0 0 1px rgba(248, 113, 113, 0.4);
}

.insta-btn-primary-strong:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #020617,
    0 0 0 4px rgba(248, 113, 113, 0.9),
    0 18px 40px rgba(255, 45, 85, 0.35);
}

@keyframes insta-cta-strong-pulse {
  0%,
  60% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 12px 28px rgba(255, 45, 85, 0.25),
      0 0 0 1px rgba(248, 113, 113, 0.25);
  }
  70% {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
      0 18px 40px rgba(255, 45, 85, 0.35),
      0 0 0 1px rgba(248, 113, 113, 0.42);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 12px 28px rgba(255, 45, 85, 0.25),
      0 0 0 1px rgba(248, 113, 113, 0.25);
  }
}

.insta-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 40px rgba(9, 12, 46, 0.95),
    0 0 0 1px rgba(56, 189, 248, 0.6);
  background: linear-gradient(135deg, #38bdf8, #22c1c3);
}

.insta-btn-primary:active {
  transform: translateY(0);
  box-shadow:
    0 6px 20px rgba(4, 7, 30, 0.9),
    0 0 0 1px rgba(159, 177, 255, 0.35);
}

.insta-btn-large {
  min-height: 3.2rem;
  padding-inline: 2.4rem;
  font-size: 1rem;
}

.insta-hero-note {
  font-size: 0.86rem;
  color: rgba(211, 221, 255, 0.95);
}

.insta-hero-secondary {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.insta-hero-guarantee {
  font-size: 0.82rem;
  color: rgba(189, 204, 255, 0.94);
}

.insta-hero-meta-line {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.96);
}

.insta-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  font-size: 0.8rem;
  color: rgba(195, 207, 255, 0.88);
  margin-top: 0.3rem;
}

.insta-hero-meta span::before {
  content: "•";
  margin-right: 0.4rem;
  color: rgba(56, 189, 248, 0.9);
}

.insta-hero-meta span:first-child::before {
  content: "";
  margin-right: 0;
}

.insta-hero-side {
  max-width: 420px;
}

.insta-hero-visual {
  position: relative;
  border-radius: 1.4rem;
  padding: 1rem 1.1rem 1.2rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(56, 189, 248, 0.25), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow:
    0 22px 60px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  overflow: hidden;
}

.insta-hero-visual::after {
  content: "";
  position: absolute;
  inset: 18% -40% -40%;
  background: radial-gradient(circle at 80% 0%, rgba(56, 189, 248, 0.3), transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.insta-hero-visual-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.9);
  position: relative;
  z-index: 1;
}

.insta-hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
}

.insta-hero-dot-red {
  background: #f97373;
}

.insta-hero-dot-amber {
  background: #facc15;
}

.insta-hero-dot-green {
  background: #22c55e;
}

.insta-hero-visual-label {
  margin-left: 0.4rem;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.9);
  letter-spacing: 0.03em;
}

.insta-hero-visual-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.85rem;
  position: relative;
  z-index: 1;
}

.insta-hero-terminal {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.78rem;
  line-height: 1.6;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(15, 118, 110, 0.7);
  box-shadow:
    0 14px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  animation: insta-neon-soft-pulse 7200ms ease-in-out infinite;
}

.insta-hero-terminal-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insta-hero-terminal-prompt {
  color: rgba(45, 212, 191, 0.95);
}

.insta-hero-terminal-ok {
  color: rgba(226, 232, 240, 0.9);
}

.insta-hero-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(37, 99, 235, 0.8);
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.insta-hero-editor--floating {
  position: relative;
  overflow: hidden;
  box-shadow:
    0 16px 42px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(37, 99, 235, 0.7),
    0 0 26px rgba(37, 99, 235, 0.28);
  animation: insta-hero-editor-float 14s ease-in-out infinite;
}

.insta-hero-editor--floating::before {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.25), transparent 60%);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

.insta-hero-editor-gutter {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.9);
  text-align: right;
}

.insta-hero-editor-code {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.76rem;
  color: rgba(226, 232, 240, 0.94);
}

.insta-hero-code-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insta-hero-code-line--cursor::after {
  content: "▋";
  display: inline-block;
  margin-left: 0.16rem;
  color: rgba(56, 189, 248, 0.95);
  animation: insta-hero-caret-blink 1200ms steps(1, end) infinite;
}

.insta-hero-code-accent {
  color: #38bdf8;
}

@keyframes insta-hero-editor-float {
  0% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -6px, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes insta-hero-caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

.insta-hero-visual,
.insta-hero-terminal,
.insta-hero-editor {
  transition:
    transform 0.28s ease-out,
    box-shadow 0.28s ease-out,
    border-color 0.28s ease-out,
    background 0.28s ease-out;
}

.insta-hero-visual:hover {
  transform: translateY(-4px);
  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.96),
    0 0 0 1px rgba(56, 189, 248, 0.5);
  border-color: rgba(56, 189, 248, 0.7);
}

.insta-hero-visual:hover .insta-hero-editor {
  border-color: rgba(59, 130, 246, 0.95);
}

.insta-highlight-card {
  position: relative;
  border-radius: 1.3rem;
  padding: 1.2rem 1.4rem 1.3rem;
  background:
    linear-gradient(135deg, rgba(10, 15, 35, 0.96), rgba(2, 6, 23, 0.98)),
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 55%);
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 0.8);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
  animation: insta-neon-soft-pulse 6800ms ease-in-out infinite;
}

.insta-highlight-label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(179, 192, 255, 0.95);
  margin-bottom: 0.6rem;
}

.insta-highlight-main {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.insta-highlight-sub {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(198, 209, 255, 0.9);
}

.insta-highlight-sub span {
  color: #f5f7ff;
}

.insta-highlight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.insta-highlight-pills span {
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.7);
  color: rgba(224, 242, 254, 0.96);
}

.hero-code-bg {
  position: absolute;
  inset: -40px -40px 0;
  opacity: 0.8;
  pointer-events: none;
}

.insta-section {
  padding: 2.4rem 1.5rem 0;
}

.insta-section-slider {
  padding-top: 3rem;
}

/* Global card hover animations (used across homepage, courses, dashboards, Insta) */
.card-hover,
.popular-card,
.course-card,
.course-card-large,
.dashboard-card,
.teacher-card {
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out,
    background 0.22s ease-out;
}

.card-hover:hover,
.popular-card:hover,
.course-card:hover,
.course-card-large:hover,
.dashboard-card:hover,
.teacher-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.45);
  border-color: rgba(56, 189, 248, 0.85);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
}

/* ─── Teacher dashboard layout + content tweaks ─────────────── */
.dashboard-wrapper {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

.dashboard-main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.teacher-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem 1.5rem 0.5rem;
}

.teacher-stat-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.teacher-stat-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 1));
}

.teacher-stat-icon-symbol {
  font-size: 1.25rem;
}

.teacher-stat-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.teacher-stat-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.teacher-stat-label {
  font-size: 0.85rem;
  color: var(--mc-text-soft, #9ca3af);
}

/* Quick actions */
.teacher-quick-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.teacher-quick-action-card {
  flex: 1 1 220px;
  min-width: 220px;
  position: relative;
  padding: 0.9rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.teacher-quick-action-icon {
  font-size: 1.1rem;
}

.teacher-quick-action-title {
  font-size: 0.96rem;
  font-weight: 500;
}

.teacher-quick-action-sub {
  font-size: 0.85rem;
  color: var(--mc-text-soft, #9ca3af);
}

/* Activity timeline */
.teacher-activity-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.9);
  padding: 1rem 1.1rem;
}

.teacher-activity-item {
  position: relative;
  padding-left: 1.3rem;
  padding-bottom: 0.75rem;
  margin-bottom: 0.25rem;
  border-left: 1px solid rgba(55, 65, 81, 0.7);
}

.teacher-activity-item:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
  margin-bottom: 0;
}

.teacher-activity-marker {
  position: absolute;
  left: -0.45rem;
  top: 0.2rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.teacher-activity-title {
  font-size: 0.9rem;
  font-weight: 500;
}

.teacher-activity-meta,
.teacher-activity-time {
  font-size: 0.8rem;
  color: var(--mc-text-soft, #9ca3af);
}

.teacher-activity-empty {
  font-size: 0.86rem;
  color: var(--mc-text-soft, #9ca3af);
}

/* Course list */
.teacher-course-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.teacher-course-card {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.85), #020617);
  padding: 1rem 1.1rem;
}

.teacher-course-card-main {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.teacher-course-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.teacher-course-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.teacher-course-status {
  font-size: 0.75rem;
  padding: 0.16rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.15);
}

.teacher-course-meta {
  font-size: 0.85rem;
  color: var(--mc-text-soft, #9ca3af);
}

.teacher-course-meta--secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.teacher-course-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.teacher-course-badge {
  font-size: 0.72rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.6);
  background: rgba(249, 115, 22, 0.08);
  color: #fed7aa;
}

.teacher-course-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.teacher-course-structure {
  margin-top: 0.6rem;
  font-size: 0.84rem;
}

.teacher-lesson-preview {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.teacher-lesson-order {
  display: inline-block;
  min-width: 1.1rem;
  font-size: 0.78rem;
  color: var(--mc-text-soft, #9ca3af);
}

.teacher-lesson-free {
  font-size: 0.74rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.teacher-empty {
  font-size: 0.9rem;
  color: var(--mc-text-soft, #9ca3af);
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .teacher-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-quick-action-card {
    min-width: 100%;
  }

  .teacher-content {
    padding: 1.25rem 1rem 1.5rem;
  }

  .teacher-page-header {
    padding: 1.1rem 1rem 0.85rem;
  }
}

@media (max-width: 479.98px) {
  .teacher-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── Course builder / preview / settings ─────────────── */
.course-builder-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.course-builder-status-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1rem;
}

.course-builder-title-wrap {
  flex: 1;
  max-width: 420px;
}

.course-builder-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.84rem;
  color: var(--mc-text-soft, #9ca3af);
}

.course-builder-input,
.course-builder-textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.85);
  color: var(--mc-text, #e5e7eb);
  border-radius: 0.75rem;
  padding: 0.7rem 0.85rem;
}

.course-builder-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.course-builder-panel-left,
.course-builder-panel-right,
.course-editor-card,
.course-preview-card,
.course-settings-card {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.86), #020617);
  border-radius: 1rem;
}

.course-builder-panel-left,
.course-builder-panel-right {
  padding: 1rem;
}

.course-builder-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.course-builder-tree {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.course-tree-module {
  border: 1px solid rgba(100, 116, 139, 0.32);
  border-radius: 0.8rem;
  padding: 0.6rem;
  background: rgba(2, 6, 23, 0.6);
}

.course-tree-module-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.course-tree-collapse-btn {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.85);
  color: #e2e8f0;
}

.course-tree-module-title {
  font-size: 0.9rem;
  font-weight: 600;
}

.course-tree-module-actions {
  margin: 0.55rem 0;
}

.course-tree-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.course-tree-lesson-btn {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.72);
  border-radius: 0.65rem;
  padding: 0.45rem 0.6rem;
  color: inherit;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
}

.course-tree-lesson.is-active .course-tree-lesson-btn {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.course-tree-lesson-title {
  text-align: left;
  font-size: 0.85rem;
}

.course-tree-lesson-badge {
  border-radius: 999px;
  padding: 0.12rem 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
}

.course-tree-lesson-badge.is-free {
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.course-tree-lesson-badge.is-paid {
  border: 1px solid rgba(244, 63, 94, 0.55);
  background: rgba(244, 63, 94, 0.14);
  color: #fecdd3;
}

.course-builder-empty {
  min-height: 320px;
  display: grid;
  place-content: center;
  text-align: center;
}

.course-editor-card {
  padding: 1rem;
}

.course-editor-grid {
  display: grid;
  gap: 0.6rem;
}

.course-builder-upload {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 0.75rem;
  padding: 0.75rem;
  background: rgba(2, 6, 23, 0.45);
}

.course-builder-upload-hint {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--mc-text-soft, #9ca3af);
}

.course-builder-type-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.course-builder-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
}

.lesson-type-badge {
  margin-top: 0.15rem;
  width: fit-content;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
}

.lesson-type-badge.is-free {
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.lesson-type-badge.is-paid {
  border: 1px solid rgba(244, 63, 94, 0.58);
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
}

.course-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.course-status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-status-badge.is-draft {
  border: 1px solid rgba(250, 204, 21, 0.55);
  background: rgba(250, 204, 21, 0.12);
  color: #fef08a;
}

.course-status-badge.is-published {
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.course-builder-alert.is-hidden,
.is-hidden {
  display: none !important;
}

.course-preview-card,
.course-settings-card {
  padding: 1rem;
}

.course-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.course-preview-tree {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.75rem;
}

.course-preview-module {
  border: 1px solid rgba(100, 116, 139, 0.35);
  border-radius: 0.8rem;
  padding: 0.8rem;
  background: rgba(2, 6, 23, 0.55);
}

.course-preview-module-title {
  font-size: 0.95rem;
  margin: 0 0 0.55rem;
}

.course-preview-lessons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.course-preview-lesson {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 0.65rem;
  padding: 0.5rem 0.65rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.course-preview-lesson-main {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.course-preview-lesson-title {
  font-size: 0.84rem;
}

.lesson-type-pill {
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
}

.lesson-type-pill.is-free {
  background: rgba(34, 197, 94, 0.12);
  color: #bbf7d0;
}

.lesson-type-pill.is-paid {
  background: rgba(244, 63, 94, 0.12);
  color: #fecdd3;
}

.course-settings-actions {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-admin-status {
  margin-top: 0.65rem;
  font-size: 0.86rem;
}

.course-admin-status.is-neutral { color: #94a3b8; }
.course-admin-status.is-good { color: #86efac; }
.course-admin-status.is-bad { color: #fca5a5; }

@media (max-width: 1023.98px) {
  .course-builder-layout {
    grid-template-columns: 1fr;
  }
}

.insta-section-tight {
  padding-top: 2.2rem;
}

.insta-section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.insta-section-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 3fr);
  gap: 2.2rem;
  align-items: flex-start;
}

.insta-section-header {
  max-width: 640px;
  margin-bottom: 1.7rem;
}

.insta-section-header h2 {
  font-size: clamp(1.5rem, 1.4rem + 0.45vw, 1.85rem);
  margin: 0 0 0.5rem;
}

.insta-section-header p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(203, 213, 225, 0.92);
}

.insta-text-highlight {
  color: #e0e4ff;
}

.insta-problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.insta-problem-card,
.insta-solution-item,
.insta-outcome-card {
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 12px;
  transition:
    transform 0.22s ease-out,
    box-shadow 0.22s ease-out,
    border-color 0.22s ease-out,
    background 0.22s ease-out;
}

.insta-problem-card h3,
.insta-solution-item h3,
.insta-outcome-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #fff;
}

.insta-problem-card p,
.insta-solution-item p,
.insta-outcome-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
}

.insta-problem-card:hover,
.insta-solution-item:hover,
.insta-outcome-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.45);
  border-color: rgba(56, 189, 248, 0.85);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #121214);
}

/* Slider Section – infinite train */
.insta-preview-train {
  position: relative;
  overflow: hidden;
  padding: 0.25rem 0;
  margin-top: 1.5rem;
}

.insta-preview-track {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  padding: 0 0.5rem;
  animation: insta-preview-train-scroll 40s linear infinite;
}

.insta-preview-train:hover .insta-preview-track {
  animation-play-state: paused;
}

@media (max-width: 767px) {
  .insta-preview-track {
    animation: none;
    width: auto;
  }
  .insta-preview-train {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .insta-preview-train::-webkit-scrollbar { display: none; }
  .insta-slide {
    scroll-snap-align: center;
  }
}

@keyframes insta-preview-train-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.insta-slide {
  flex: 0 0 320px;
  background: #121214;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 12px;
  transition:
    transform 0.25s ease-out,
    box-shadow 0.25s ease-out,
    border-color 0.25s ease-out,
    background 0.25s ease-out;
  transform-origin: center center;
}

.insta-slide h3 {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
}

.insta-slide p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.insta-slide-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(15, 23, 42, 0.98);
  background: linear-gradient(135deg, #38bdf8, #22c1c3);
  box-shadow: 0 10px 30px rgba(8, 47, 73, 0.6);
  animation: insta-neon-soft-pulse 6400ms ease-in-out infinite;
}

.insta-slide:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 18px 50px rgba(15, 23, 42, 0.95),
    0 0 18px rgba(0, 168, 255, 0.18);
  border-color: rgba(56, 189, 248, 0.9);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.95), #121214);
}

.insta-section-pb {
  padding-bottom: 6rem;
}

/* Slider shell and controls */
.insta-slider-shell {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.insta-slider-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.insta-slider-label {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.95);
}

.insta-slider-controls {
  display: inline-flex;
  gap: 0.4rem;
}

.insta-slider-nav {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: rgba(226, 232, 240, 0.96);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s ease-out, border-color 0.18s ease-out, transform 0.18s ease-out;
}

.insta-slider-nav:hover {
  background: rgba(30, 64, 175, 0.75);
  border-color: rgba(59, 130, 246, 0.9);
  transform: translateY(-1px);
}

.insta-slider-nav:active {
  transform: translateY(0);
}

.insta-text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.insta-trust-inner {
  align-items: stretch;
}

.insta-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.insta-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  color: rgba(206, 216, 248, 0.95);
  line-height: 1.6;
}

.insta-list li + li {
  margin-top: 0.4rem;
}

.insta-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #8c98ff, #3ce6ff);
}

.insta-trust-card {
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 1.15rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99)),
    radial-gradient(circle at top left, rgba(190, 24, 93, 0.6), transparent 55%);
  border: 1px solid rgba(244, 63, 94, 0.85);
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  transition: transform 200ms ease-out, box-shadow 200ms ease-out, border-color 200ms ease-out, background 200ms ease-out;
}

.insta-trust-label {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(193, 205, 255, 0.95);
  margin-bottom: 0.6rem;
}

.insta-trust-main {
  font-size: 0.96rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.insta-trust-main span {
  color: #f3f5ff;
}

.insta-trust-sub {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.96);
}

.insta-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
  padding: 1.9rem 1.6rem;
  border-radius: 1.3rem;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99)),
    radial-gradient(circle at 110% 0%, rgba(56, 189, 248, 0.42), transparent 60%);
  border: 1px solid rgba(56, 189, 248, 0.9);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

.insta-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.6rem;
  padding: 2.2rem 1.9rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at -10% 10%, rgba(59, 130, 246, 0.26), transparent 60%),
    radial-gradient(circle at 110% 0%, rgba(56, 189, 248, 0.38), transparent 65%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.99));
  border: 1px solid rgba(56, 189, 248, 0.9);
  box-shadow:
    0 26px 70px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.insta-final-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(59, 130, 246, 0.24), transparent 55%),
    radial-gradient(circle at 120% 40%, rgba(56, 189, 248, 0.24), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
  mix-blend-mode: screen;
}

.insta-final-cta-copy p {
  margin-top: 0.55rem;
  font-size: 0.94rem;
  color: rgba(209, 213, 219, 0.96);
}

.insta-final-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.insta-final-cta-note {
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.96);
}

.insta-cta-text h2 {
  font-size: 1.25rem;
  margin: 0 0 0.4rem;
}

.insta-cta-text p {
  font-size: 0.92rem;
  color: rgba(213, 223, 252, 0.95);
}

.insta-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.insta-cta-note {
  font-size: 0.86rem;
  color: rgba(208, 218, 250, 0.92);
}

.insta-problem-card:hover,
.insta-solution-item:hover,
.insta-learn-card:hover,
.insta-highlight-card:hover,
.insta-trust-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 55px rgba(15, 23, 42, 0.98);
  border-color: rgba(56, 189, 248, 0.8);
}

/* Scroll reveal */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.insta-landing .js-reveal:nth-of-type(2) {
  transition-delay: 40ms;
}

.insta-landing .js-reveal:nth-of-type(3) {
  transition-delay: 80ms;
}

.insta-landing .js-reveal:nth-of-type(4) {
  transition-delay: 110ms;
}

.insta-landing .js-reveal:nth-of-type(5) {
  transition-delay: 140ms;
}

.insta-landing .js-reveal:nth-of-type(6) {
  transition-delay: 170ms;
}

@keyframes insta-hero-glow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }
  50% {
    transform: translate3d(-10px, 8px, 0) scale(1.03);
    opacity: 0.88;
  }
  100% {
    transform: translate3d(10px, -12px, 0) scale(1.06);
    opacity: 0.92;
  }
}

@keyframes insta-cta-pulse {
  0% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 16px 46px rgba(10, 14, 46, 0.95),
      0 0 0 1px rgba(151, 174, 255, 0.45);
  }
  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow:
      0 20px 54px rgba(10, 14, 46, 0.98),
      0 0 0 1px rgba(248, 113, 113, 0.55);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 16px 46px rgba(10, 14, 46, 0.95),
      0 0 0 1px rgba(151, 174, 255, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .insta-hero-gradient {
    animation: none;
    transform: none;
  }

  .insta-problem-card:hover,
  .insta-solution-item:hover,
  .insta-outcome-card:hover,
  .insta-slide:hover {
    transform: none;
  }

  .insta-btn-primary-strong {
    animation: none;
    transition: none;
  }
}

@media (min-width: 480px) {
  .insta-hero {
    padding-inline: 2rem;
  }

  .insta-section {
    padding-inline: 2rem;
  }
}

@media (min-width: 768px) {
  .insta-hero {
    padding-top: 3.8rem;
    padding-bottom: 3.2rem;
  }

  .insta-section {
    padding-top: 3rem;
  }

  .insta-section-grid {
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 2.8fr);
  }

  .insta-problem-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insta-learn-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .insta-cta-inner {
    flex-direction: row;
    align-items: center;
  }

  .insta-cta-actions {
    align-items: flex-end;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .insta-hero {
    padding-inline: 2.5rem;
  }

  .insta-section {
    padding-inline: 2.5rem;
  }
}

@media (min-width: 1280px) {
  .insta-hero {
    padding-inline: 3rem;
  }

  .insta-section {
    padding-inline: 3rem;
  }
}

/* =========================================================================
   MOBILE BOTTOM NAVIGATION & SWIPE RAILS
   ========================================================================= */

.mobile-bottom-nav {
  display: none;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: #09090b !important; /* Solid premium black */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 100000 !important;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translate3d(0,0,0) !important; /* Hardware acceleration & isolation */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  isolation: isolate;
}

.mobile-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #a1a1aa; /* Zinc-400 equivalent */
  text-decoration: none;
  font-size: 10px;
  font-family: 'Inter', sans-serif;
  gap: 4px;
  flex: 1;
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.mobile-nav-item svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.mobile-nav-item:hover,
.mobile-nav-item:focus {
  color: #fff;
}

.mobile-nav-item.is-active {
  color: var(--codeva-pink, #f43f5e);
}
.mobile-nav-item.is-active svg {
  stroke-width: 2;
}

/* Base utility for swipe rails on mobile */
.swipe-rail-mobile {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  gap: 1rem;
  padding-bottom: 8px; /* space for scrollbar mostly hidden */
}
.swipe-rail-mobile::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.swipe-rail-mobile > * {
  scroll-snap-align: start;
  flex: 0 0 calc(90vw - 2rem);
}

@media (max-width: 767px) {
  .mobile-bottom-nav {
    display: block;
  }
  .main-content {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }
  /* Hide the hamburger in the header on mobile because we have bottom nav */
  .header-actions,
  .nav-toggle,
  .main-nav {
    display: none !important;
  }
}

/* =========================================================================
   FLOATING TELEGRAM BUTTON
   ========================================================================= */
.floating-telegram-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e90ff, #00BFFF);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  text-decoration: none;
}

.floating-telegram-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 30px rgba(30, 144, 255, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  color: #fff;
}

.floating-telegram-btn svg {
  transition: transform 0.3s ease;
}

.floating-telegram-btn:hover svg {
  transform: scale(1.1);
}

@media (max-width: 767px) {
  .floating-telegram-btn {
    bottom: calc(16px + 70px + env(safe-area-inset-bottom)); /* Float above the mobile nav */
    right: 16px;
    width: 48px;
    height: 48px;
  }
}
