:root {
  --bg: #030303;
  --accent: #00f2ff;
  --accent-rgb: 0, 242, 255;
  --secondary: #7000ff;
  --text: #ffffff;
  --glass: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(var(--accent-rgb), 0.55) rgba(255, 255, 255, 0.06);
  scrollbar-width: thin;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}

body.is-loading {
  overflow: hidden;
}

body.is-loading nav {
  opacity: 0;
  visibility: hidden;
}

.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 30000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 70% 20%, rgba(var(--accent-rgb), 0.15), transparent 45%), #030303;
  transition: opacity 500ms var(--ease), visibility 500ms var(--ease);
}

.site-preloader__logo {
  font-family: "Syncopate", sans-serif;
  letter-spacing: 4px;
  font-size: clamp(1.3rem, 4vw, 2.2rem);
  color: #fff;
  padding: 16px 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.55);
  border-radius: 999px;
  box-shadow: 0 0 40px rgba(var(--accent-rgb), 0.25);
  animation: preloaderPulse 1000ms ease-in-out infinite alternate;
}

.site-preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

@keyframes preloaderPulse {
  from {
    transform: scale(0.96);
    opacity: 0.75;
  }
  to {
    transform: scale(1.02);
    opacity: 1;
  }
}

/* Scrollbar theme */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.85), rgba(112, 0, 255, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 1), rgba(112, 0, 255, 0.95));
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb), 0.9);
  outline-offset: 3px;
}

#dextastoretebexio {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.15s var(--ease), background 0.3s;
  transform: translate(-50%, -50%);
  background: transparent;
  will-change: left, top;
}

#dextastoretebexio.is-down {
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(var(--accent-rgb), 0.12);
}

@media (pointer: coarse) {
  #dextastoretebexio {
    display: none;
  }
}

.deXTaStore {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -20%;
  right: -10%;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--secondary);
  bottom: -10%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(100px, 150px) scale(1.2);
  }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding: 40px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  mix-blend-mode: difference;
  transition: background 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  transform: translateZ(0);
  will-change: transform;
}

nav.is-scrolled {
  background: rgba(3, 3, 3, 0.7);
  backdrop-filter: blur(10px);
}

.logo {
  font-family: "Syncopate", sans-serif;
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  transition: 0.25s var(--ease);
  position: relative;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  opacity: 0.92;
}

.nav-auth-link::after {
  display: none;
}

.nav-auth-link--primary {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.16), rgba(112, 0, 255, 0.18));
  opacity: 1 !important;
}

.nav-auth-fixed {
  position: fixed;
  right: 8%;
  top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1600;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(3, 3, 3, 0.52);
  backdrop-filter: blur(8px);
  mix-blend-mode: normal;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10%;
  position: relative;
}

.hero-label {
  font-size: 0.8rem;
  letter-spacing: 10px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: block;
  animation: slideUp 1s var(--ease);
}

.hero h1 {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(3rem, 10vw, 8rem);
  line-height: 0.9;
  margin-bottom: 30px;
  animation: slideUp 1.2s var(--ease) forwards;
}

.hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.hero-p {
  max-width: 500px;
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.6;
  animation: slideUp 1.4s var(--ease) forwards;
}

#hero-typewriter {
  display: inline;
}

#hero-typewriter::after {
  content: "|";
  margin-left: 2px;
  color: var(--accent);
  animation: blinkCaret 0.9s steps(1, end) infinite;
}

.yarrak-DalidanKoptu {
  padding: 150px 10%;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 30px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 50px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.6s var(--ease), border-color 0.6s var(--ease), box-shadow 0.6s var(--ease);
}

.card--gradient {
  background: linear-gradient(45deg, var(--accent), var(--secondary));
  border: none;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card--gradient:hover {
  box-shadow: 0 30px 70px rgba(var(--accent-rgb), 0.12);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-rgb), 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

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

.span-8 {
  grid-column: span 8;
}
.span-4 {
  grid-column: span 4;
}
.span-6 {
  grid-column: span 6;
}
.span-12 {
  grid-column: span 12;
}

.card h3 {
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.card h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: 800;
}

.card p {
  opacity: 0.75;
  line-height: 1.8;
}

.about-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-tags span {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.78rem;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.88);
}

.about-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 10px;
}

.about-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.015);
}

.about-list li span {
  opacity: 0.65;
  font-size: 0.84rem;
}

.about-list li strong {
  font-size: 0.9rem;
  color: var(--accent);
  letter-spacing: 0.3px;
}

/* ====== ABOUT TERMINAL ====== */
.terminal-card {
  margin-top: 6px;
}

.about-terminal {
  margin-top: 14px;
  border: 1px solid #3d3d3d;
  border-radius: 6px;
  background: #0c0c0c;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.about-terminal__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid #3d3d3d;
  background: #1f1f1f;
  font-size: 0.75rem;
  letter-spacing: 0.2px;
  color: #d7d7d7;
}

.about-terminal__head span {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  display: inline-block;
}

.about-terminal__head span:nth-child(1) { background: #6f6f6f; }
.about-terminal__head span:nth-child(2) { background: #6f6f6f; }
.about-terminal__head span:nth-child(3) { background: #6f6f6f; }

.about-terminal__output {
  min-height: 140px;
  max-height: 220px;
  overflow: auto;
  padding: 14px;
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #f1f1f1;
  background: #0c0c0c;
}

.about-terminal__output p {
  margin-bottom: 8px;
  opacity: 1;
}

.cmd-prompt {
  color: #f1f1f1;
  margin-right: 8px;
  font-weight: 700;
}

.about-terminal__input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid #3d3d3d;
  font-family: Consolas, "Lucida Console", "Courier New", monospace;
  background: #0c0c0c;
}

.about-terminal__input {
  width: 100%;
  border: none;
  background: transparent;
  color: #f1f1f1;
  font-family: inherit;
  font-size: 0.92rem;
}

.about-terminal__input::placeholder {
  color: #8d8d8d;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}

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

.skill-item {
  margin-bottom: 30px;
}
.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.skill-tech {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.skill-icon-img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.18));
}

.skill-tech-text {
  white-space: nowrap;
}
.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}
.skill-progress {
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s var(--ease);
}
.skill-progress.is-activated {
  transform: scaleX(var(--scale, 1));
}

/* ====== FAQ ====== */
.faq-card {
  max-width: 980px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 0.25s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin-top: 12px;
  opacity: 0.78;
  line-height: 1.75;
}

.contact-footer {
  padding: 150px 10%;
  text-align: center;
  border-top: 1px solid var(--border);
}

.contact-title {
  font-family: "Syncopate";
  font-size: 3rem;
}

.big-btn {
  display: inline-block;
  padding: 30px 80px;
  border-radius: 100px;
  background: #fff;
  color: #000;
  text-decoration: none;
  font-family: "Syncopate", sans-serif;
  font-size: 1.2rem;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), background 0.45s var(--ease);
  margin: 40px 0;
  position: relative;
}

.big-btn::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 120px;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: -1;
}

.big-btn:hover {
  background: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 50px rgba(0, 242, 255, 0.4);
}

.big-btn:hover::before {
  opacity: 1;
}

.pwa-install-btn {
  margin: 0 auto 10px;
  display: block;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), rgba(112, 0, 255, 0.22));
  color: #fff;
  font-family: "Syncopate", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1.6px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
}

.pwa-help {
  max-width: 560px;
  margin: 12px auto 6px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.pwa-help__title {
  font-size: 0.78rem;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.pwa-help__text {
  opacity: 0.85;
  line-height: 1.6;
  font-size: 0.92rem;
}

.contact-flash {
  max-width: 560px;
  margin: 16px auto 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.contact-flash--ok {
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.contact-flash--err {
  border: 1px solid rgba(255, 80, 80, 0.35);
  background: rgba(255, 60, 60, 0.08);
  color: rgba(255, 255, 255, 0.92);
}

.contact-form {
  position: relative;
  margin: 28px auto 0;
  max-width: 560px;
  text-align: left;
  padding: 36px 40px;
}

.contact-form__title {
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.contact-form__label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  opacity: 0.85;
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  margin-top: 8px;
  width: 100%;
  padding: 16px 22px;
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.2), rgba(112, 0, 255, 0.18));
  color: #fff;
  font-family: "Syncopate", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 2px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.contact-form__submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.2);
}

.discord-widget {
  margin: 20px auto 0;
  padding: 40px 46px 42px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 980px;
  position: relative;
}

.discord-widget iframe {
  width: 100%;
  max-width: 1040px;
  height: 270px;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.ig-overlay {
  position: relative;
  margin: 0 auto;
  transform: none;
  width: min(520px, 100%);
  z-index: 3;
  pointer-events: auto;
}

.ig-overlay__headline {
  text-align: center;
  font-size: clamp(22px, 3.0vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  color: #ff6a00;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.6);
}

.ig-overlay__stack {
  position: relative;
  height: 270px;
  margin-top: 18px;
}

.ig-frame {
  position: absolute;
  top: 62px;
  width: 160px;
  height: 210px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.35), rgba(112, 0, 255, 0.18));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.ig-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}

.ig-frame--left {
  left: 10px;
  transform: rotate(-10deg);
  background: linear-gradient(135deg, rgba(255, 0, 132, 0.25), rgba(0, 242, 255, 0.18));
}

.ig-frame--center {
  left: 136px;
  transform: rotate(0deg);
  width: 210px;
  height: 230px;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 106, 0, 0.22), rgba(0, 242, 255, 0.14));
}

.ig-frame--right {
  left: 294px;
  transform: rotate(9deg);
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.16), rgba(112, 0, 255, 0.25));
}

.ig-bubble {
  position: absolute;
  top: 34px;
  left: 196px;
  width: 120px;
  height: 40px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  opacity: 0.92;
}

.ig-avatar-ring {
  position: absolute;
  top: 120px;
  left: 352px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(255, 106, 0, 0.95);
  box-shadow: 0 0 0 10px rgba(255, 106, 0, 0.12);
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.ig-avatar-ring img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

.ig-heart {
  position: absolute;
  left: 52px;
  top: 144px;
  width: 34px;
  height: 34px;
  background: rgba(255, 0, 80, 0.95);
  transform: rotate(-18deg);
  border-radius: 12px;
  clip-path: polygon(50% 90%, 10% 55%, 25% 20%, 50% 35%, 75% 20%, 90% 55%);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.ig-check {
  position: absolute;
  top: 54px;
  left: 352px;
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: rgba(0, 200, 120, 0.95);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.ig-check::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 5px;
  border-left: 3px solid #06110d;
  border-bottom: 3px solid #06110d;
  transform: rotate(-45deg);
  left: 16px;
  top: 7px;
}

.instagram-widget {
  margin-top: 26px;
  width: 100%;
}

.ig-cta {
  margin-top: 26px;
  text-align: center;
  pointer-events: auto;
  transform: translateX(-18px);
  position: relative;
  z-index: 5;
}

.ig-cta__link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  color: #06110d;
  font-weight: 900;
  font-family: "Syncopate", sans-serif;
  text-decoration: none;
  background: linear-gradient(90deg, #ffd86a, #ff6a00, #ff2d55);
  box-shadow: 0 18px 60px rgba(255, 45, 85, 0.18);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s var(--ease);
  filter: saturate(1.1);
}

.ig-cta__link:hover {
  transform: scale(1.06);
  box-shadow: 0 24px 90px rgba(255, 45, 85, 0.28);
}

@media (max-width: 900px) {
  .discord-widget {
    padding: 48px 16px 52px;
    max-width: 100%;
    clip-path: none;
  }

  .discord-widget iframe {
    max-width: 100%;
    height: 640px;
  }

  .ig-overlay {
    width: min(460px, 92%);
  }

  .ig-overlay__stack {
    height: 240px;
  }

  .ig-frame {
    transform: none;
  }

  .ig-frame--left {
    left: 0px;
  }

  .ig-frame--center {
    left: 116px;
    width: 200px;
  }

  .ig-frame--right {
    left: 256px;
  }

  .ig-bubble {
    left: 156px;
  }

  .ig-avatar-ring {
    left: 302px;
  }

  .ig-heart {
    left: 44px;
  }

  .ig-check {
    left: 302px;
  }

  .ig-cta {
    transform: translateX(-10px);
    margin-top: 18px;
  }
}

.site-footer {
  padding: 60px 10% 40px;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-sub {
  font-size: 0.9rem;
  opacity: 0.65;
  line-height: 1.6;
  max-width: 360px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col__title {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.8;
}

.footer-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: color 0.25s var(--ease), opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-link:hover {
  color: var(--accent);
  opacity: 1;
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  opacity: 0.85;
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.footer-top-link {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-top-link:hover {
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}

.beqeend-signature {
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
}

.beqeend-signature span {
  color: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@media (max-width: 900px) {
  .site-footer {
    padding: 50px 6% 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blinkCaret {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .grid-layout {
    display: flex;
    flex-direction: column;
  }
  .hero h1 {
    font-size: 4rem;
  }
  nav {
    padding: 30px 5%;
    flex-wrap: wrap;
  }
  .card {
    padding: 30px;
  }
  .yarrak-DalidanKoptu {
    padding: 120px 6%;
  }
  .contact-footer {
    padding: 120px 6%;
  }
  .contact-form {
    padding: 28px 22px;
  }
  .nav-links {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  .nav-auth-fixed {
    position: static;
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
    border: none;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb {
    animation: none;
  }
  .reveal {
    transition: none;
  }
  .beqeend-signature span {
    animation: none;
  }
  #hero-typewriter::after {
    animation: none;
  }
}

.legal-page {
  padding: 120px 10% 100px;
  min-height: 60vh;
}

.legal-page__inner {
  max-width: 720px;
  margin: 0 auto;
}

.legal-page__title {
  font-family: "Syncopate", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 8px;
  line-height: 1.2;
}

.legal-page__updated {
  font-size: 0.85rem;
  opacity: 0.55;
  margin-bottom: 32px;
}

.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 8px;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.85);
}

.auth-agree input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
}

.auth-agree a {
  color: var(--accent);
  text-decoration: none;
}

.auth-agree a:hover { text-decoration: underline; }

.auth-switch {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
}

.auth-switch a {
  color: #9aefff;
  text-decoration: none;
  font-weight: 700;
}

.auth-switch a:hover {
  color: #d8f9ff;
  text-decoration: underline;
}

.account-card {
  padding: 26px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.08), transparent 42%),
    rgba(255, 255, 255, 0.02);
}

.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
}

.account-row span {
  font-size: 0.82rem;
  opacity: 0.7;
}

.account-row strong {
  font-size: 0.93rem;
  font-weight: 800;
  text-align: right;
}

.pill {
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 999px;
  padding: 5px 10px;
  color: rgba(235, 252, 255, 0.95);
  background: rgba(var(--accent-rgb), 0.1);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.8px;
}

.pill--ok {
  border-color: rgba(34, 218, 140, 0.45);
  background: rgba(34, 218, 140, 0.12);
}

.account-services {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px;
  background: rgba(5, 12, 20, 0.55);
}

.account-services h2 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.account-service-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-service-item:first-of-type {
  border-top: none;
}

.account-service-item span {
  opacity: 0.7;
  font-size: 0.84rem;
}

.account-service-item strong {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  text-align: right;
}

.account-btn {
  margin-top: 18px;
  padding: 18px 34px;
  font-size: 0.9rem;
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  font-size: 1.05rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.legal-section p {
  opacity: 0.82;
  line-height: 1.75;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.legal-section a {
  color: var(--accent);
  text-decoration: none;
}

.legal-section a:hover {
  text-decoration: underline;
}

.legal-page__back {
  margin-top: 40px;
  font-size: 0.95rem;
}

.legal-page__back a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  opacity: 0.85;
  transition: color 0.2s var(--ease);
}

.legal-page__back a:hover {
  color: var(--accent);
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20000;
  padding: 16px;
  pointer-events: none;
}

.cookie-banner__inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(3, 3, 3, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.cookie-banner__text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.88;
}

.cookie-banner__text a {
  color: var(--accent);
  text-decoration: none;
}

.cookie-banner__text a:hover {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid var(--border);
  font-family: inherit;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.cookie-banner__btn--ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
}

.cookie-banner__btn--ghost:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}

.cookie-banner__btn--primary {
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.25), rgba(112, 0, 255, 0.2));
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.35);
}

.cookie-banner__btn--primary:hover {
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .legal-page {
    padding: 100px 6% 80px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-banner__actions {
    justify-content: stretch;
  }

  .cookie-banner__btn {
    flex: 1;
    text-align: center;
  }

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

  .account-service-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-service-item strong {
    text-align: left;
  }
}

/* Final mobile overrides */
@media (max-width: 768px) {
  nav {
    padding: 18px 4.5%;
    flex-wrap: wrap;
    gap: 10px;
  }

  .logo {
    font-size: 0.95rem;
    letter-spacing: 2px;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.62rem;
    letter-spacing: 1px;
  }

  .nav-auth-fixed {
    gap: 8px;
  }

  .hero {
    min-height: 90vh;
    height: auto;
    padding: 110px 6% 70px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
    line-height: 0.95;
  }

  .hero-label {
    letter-spacing: 4px;
    font-size: 0.68rem;
  }

  .hero-p {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .yarrak-DalidanKoptu,
  .contact-footer,
  .site-footer,
  .legal-page {
    padding-left: 5%;
    padding-right: 5%;
  }

  .card {
    padding: 22px;
    border-radius: 22px;
  }

  .contact-title {
    font-size: clamp(1.8rem, 9vw, 2.4rem);
  }

  .big-btn {
    width: 100%;
    max-width: 340px;
    padding: 18px 24px;
    font-size: 0.9rem;
  }

  .pwa-install-btn {
    width: 100%;
    max-width: 340px;
    font-size: 0.68rem;
  }

  .pwa-help {
    max-width: 340px;
    padding: 12px 12px;
  }

  .pwa-help__text {
    font-size: 0.86rem;
  }

  .discord-widget {
    padding: 20px 10px 24px;
  }

  .discord-widget iframe {
    border-radius: 16px;
  }

  .instagram-widget {
    margin-top: 18px;
  }

  .auth-agree {
    font-size: 0.8rem;
    gap: 8px;
  }

  .auth-switch {
    font-size: 0.84rem;
  }
}

@media (max-width: 430px) {
  nav {
    padding: 14px 4%;
    gap: 8px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.56rem;
    letter-spacing: .7px;
  }

  .nav-auth-fixed {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-auth-link {
    padding: 7px 10px;
    font-size: 0.58rem;
    letter-spacing: 1px;
  }
}

