* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none !important;
}

/* BACKGROUND BLOBS */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg-gradient);
}

.blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.18;
  transition: background 1.5s ease, transform 0.5s ease;
  animation: float 25s infinite alternate ease-in-out;
}

.blob-1 {
  background: var(--cyan);
  top: -10%;
  left: -10%;
  animation-duration: 20s;
}

.blob-2 {
  background: var(--cyan-light);
  bottom: -15%;
  right: -5%;
  animation-duration: 30s;
  animation-delay: -5s;
}

.blob-3 {
  background: var(--cyan);
  top: 40%;
  left: 60%;
  width: 30vw;
  height: 30vw;
  animation-duration: 25s;
  animation-delay: -10s;
}

body.body-red .blob-1,
body.body-red .blob-3 {
  background: var(--red);
  opacity: 0.08;
}

body.body-red .blob-2 {
  background: #ff8080;
  opacity: 0.06;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }

  33% {
    transform: translate(10%, 15%) rotate(10deg) scale(1.1);
  }

  66% {
    transform: translate(-5%, 20%) rotate(-5deg) scale(0.9);
  }

  100% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
}

html {
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  transition: color 0.4s;
}

/* CURSOR */

.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: normal;
}

.cursor-ring {
  position: fixed;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--cyan);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: .5;
}

.cursor.active {
  width: 10px;
  height: 10px;
  background: var(--red);
}

.cursor-ring.active {
  width: 52px;
  height: 52px;
  opacity: .25;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9990;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* HEADER */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .4s, background 0.4s;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 24px;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--text-main);
  cursor: none;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.3s;
}

.theme-btn:hover {
  background: rgba(0, 200, 212, 0.1);
}

.theme-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-main); /* Make icons white/black based on theme */
}

.sun-icon {
  display: none;
}

.moon-icon {
  display: block;
}

[data-theme="dark"] .sun-icon {
  display: block;
}

[data-theme="dark"] .moon-icon {
  display: none;
}

[data-theme="dark"] .logo-btn img,
[data-theme="dark"] .footer-logo {
  filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(7471%) hue-rotate(356deg) brightness(102%) contrast(107%);
}

.theme-btn .moon-icon {
  filter: none !important;
}

.header-contacts {
  position: absolute;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.header-contact-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}

.header-contact-link:hover {
  color: var(--cyan);
}

.header-contact-link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.toast-error {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  border-left: 4px solid #FF2D2D;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .3);
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  pointer-events: none;
}

.toast-error.show {
  transform: translateY(0);
  opacity: 1;
}

header.hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.logo-btn {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  cursor: none;
  padding: 0;
}

.logo-btn img {
  height: 92px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-btn {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: none;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--cyan);
  transition: width .3s cubic-bezier(.16, 1, .3, 1);
}

.nav-btn:hover,
.nav-btn.active {
  color: var(--cyan-dark);
}

.nav-btn:hover::after,
.nav-btn.active::after {
  width: 100%;
}

/* NAV DROPDOWN — click-based */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--card-bg);
  border: 1px solid rgba(0, 200, 212, .2);
  border-radius: 14px;
  padding: 8px 0;
  min-width: 180px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 12px 40px rgba(0, 200, 212, .12);
  z-index: 200;
}

.nav-dropdown-menu.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 22px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-main);
  background: none;
  border: none;
  cursor: none;
  transition: background .2s, color .2s, padding-left .2s;
}

.nav-dropdown-menu button:hover {
  background: var(--cyan);
  color: var(--white);
  padding-left: 30px;
}

/* PAGES */

.page {
  display: none;
  min-height: 100vh;
  padding-top: 72px;
}

.page.active {
  display: block;
  animation: fadeIn .4s cubic-bezier(.16, 1, .3, 1);
}

/* ---- HOME ---- */

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 60px 48px 80px;
  text-align: left;
}

.hero-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

.hero-tag::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1.5px;
  background: var(--red);
}

.hero-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cyan);
  margin-bottom: 26px;
  letter-spacing: -.02em;
}

.hero-title span {
  color: inherit;
  display: inline-block;
}

.hero-title span.hl {
  color: var(--text-main) !important;
}

.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-dim);
  max-width: 400px;
  margin-bottom: 50px;
}

/* COOP button + dropdown */

.coop-wrap {
  position: relative;
  display: inline-block;
}

.coop-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--cyan);
  color: var(--white);
  border: none;
  border-radius: 60px;
  padding: 17px 34px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  cursor: none;
  transition: background .25s, transform .2s;
}

.coop-btn:hover {
  background: var(--cyan-dark);
  transform: scale(1.02);
}

.coop-btn .arr {
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, .22);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), background .25s;
}

.coop-btn.open .arr {
  transform: rotate(180deg);
  background: var(--red);
}

.coop-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--card-bg);
  border: 1.5px solid var(--cyan-light);
  border-radius: 18px;
  overflow: hidden;
  min-width: 200px;
  max-height: 0;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1), opacity .3s;
  z-index: 150;
}

.coop-dropdown.open {
  max-height: 160px;
  opacity: 1;
}

.coop-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 15px 26px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-main);
  background: none;
  border: none;
  border-bottom: 1px solid rgba(0, 200, 212, .1);
  cursor: none;
  transition: background .2s, color .2s, padding-left .25s;
}

.coop-dropdown button:last-child {
  border-bottom: none;
}

.coop-dropdown button:hover {
  background: var(--cyan);
  color: var(--white);
  padding-left: 36px;
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-visual {
  position: relative;
  width: 320px;
  height: 460px;
}

.hero-block-glow {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 160px;
  height: 160px;
  background: rgba(0, 200, 212, .25);
  border-radius: 50%;
  filter: blur(50px);
}

.hero-stat {
  position: absolute;
  left: -16px;
  bottom: 50px;
  background: var(--card-bg);
  border: 1.5px solid rgba(0, 200, 212, .2);
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 16px 48px rgba(0, 200, 212, .13);
  z-index: 2;
}

.hero-stat-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 3px;
}

.hero-float {
  position: absolute;
  top: 36px;
  left: 16px;
  background: var(--red);
  color: white;
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .15em;
  padding: 8px 14px;
  border-radius: 18px;
  z-index: 3;
  animation: ftag 3s ease-in-out infinite;
}

/* MARQUEE */

.marquee-strip {
  background: var(--marquee-bg);
  padding: 16px 0;
  overflow: hidden;
  display: flex;
}

.marquee-inner {
  display: flex;
  animation: mq 22s linear infinite;
  white-space: nowrap;
}

.marquee-inner span {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--marquee-text);
  padding: 0 28px;
}

.marquee-inner span.dot {
  color: var(--cyan);
  padding: 0 2px;
  font-size: 17px;
}

/* SECTIONS */

.sec {
  padding: 96px 48px;
}

.sec-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sec-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--cyan);
}

.sec-label.red {
  color: var(--red);
}

.sec-label.red::before {
  background: var(--red);
}

.sec-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(26px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.ac {
  color: var(--cyan);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 54px;
}

.svc-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.svc-card:hover {
  border-color: var(--cyan);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 200, 212, .09);
}

.svc-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: .1em;
  margin-bottom: 18px;
}

.svc-icon {
  width: 46px;
  height: 46px;
  background: rgba(0, 200, 212, .1);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 21px;
}

.svc-card h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.svc-card p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-dim);
}

.for-sec {
  background: var(--black);
  color: var(--white);
  padding: 96px 48px;
}

.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.for-desc {
  color: rgba(255, 255, 255, .48);
  line-height: 1.8;
  margin-top: 18px;
  font-size: 15px;
}

/* ---- MODELS PAGE ---- */

.models-page {
  padding: 100px 48px 80px;
}

.models-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.models-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 700;
  color: var(--red);
  letter-spacing: -.02em;
}

.search-wrap {
  position: relative;
}

.search-input {
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 12px 44px 12px 20px;
  outline: none;
  width: 220px;
  transition: border-color .25s, width .3s;
  background: transparent;
  color: var(--text-main);
  cursor: none;
}

.search-input:focus {
  border-color: var(--cyan);
  width: 280px;
}

.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--cyan);
  pointer-events: none;
}

.models-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.filters-panel {
  border: 1.5px solid var(--border);
  border-radius: 24px;
  padding: 32px 28px;
  position: sticky;
  top: 96px;
}

.filters-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 28px;
}

.filter-group {
  margin-bottom: 28px;
}

.filter-group-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.filter-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tag {
  font-family: 'Onest', sans-serif;
  font-size: 12px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: none;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
}

.filter-tag:hover,
.filter-tag.active {
  border-color: var(--cyan);
  background: var(--cyan);
  color: var(--white);
}

/* DUAL RANGE SLIDERS - scoped to filters-panel only */

.filters-panel .range-slider-wrap {
  margin-bottom: 4px;
}

.filters-panel .range-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.filters-panel .range-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--cyan-dark);
  background: rgba(0, 200, 212, .1);
  border-radius: 20px;
  padding: 3px 10px;
  min-width: 36px;
  text-align: center;
}

.filters-panel .range-sep {
  font-size: 11px;
  color: var(--text-gray);
}

.filters-panel .range-track-wrap {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}

.filters-panel .range-track {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(0, 200, 212, .15);
  border-radius: 4px;
}

.filters-panel .range-fill {
  position: absolute;
  height: 4px;
  background: var(--cyan);
  border-radius: 4px;
  pointer-events: none;
}

.filters-panel .range-track-wrap input[type=range] {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 44px;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.filters-panel .range-track-wrap input[type=range].active-input {
  pointer-events: all;
  cursor: pointer;
  z-index: 3;
}

.filters-panel .range-thumb {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--card-bg);
  border: 2.5px solid var(--cyan);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 200, 212, .25);
  top: 50%;
  margin-top: -9px;
  z-index: 1;
  transition: box-shadow .15s;
}

.filters-panel .range-track-wrap:hover .range-thumb {
  box-shadow: 0 0 0 6px rgba(0, 200, 212, .15);
}

.models-grid-wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  aspect-ratio: .75;
  cursor: none;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .25s, box-shadow .3s;
}

.model-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(0, 200, 212, .12);
}

.model-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  opacity: .22;
}

.model-ov {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(to top, rgba(10, 10, 10, .72) 0%, transparent 52%);
}

.model-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.model-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, .65);
  letter-spacing: .05em;
}

.model-tag-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 200, 212, .85);
  backdrop-filter: blur(6px);
  color: var(--text-main);
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 5px 10px;
  border-radius: 12px;
}

/* ---- COOP PAGES ---- */

.coop-page {
  padding: 100px 48px 80px;
}

.coop-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  margin-bottom: 60px;
}

.coop-hero>div {
  max-width: 800px;
}

.coop-vis {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  opacity: .3;
}

.big-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(30px, 4.5vw, 60px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.coop-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dim);
  margin: 20px auto 36px;
  max-width: 600px;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  transition: border-color .25s;
}

.steps li:hover {
  border-color: var(--cyan);
}

.steps {
  max-width: 600px;
  margin: 0 auto 36px;
  text-align: left;
}

.sn {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: var(--cyan);
  min-width: 26px;
  margin-top: 2px;
}

.st h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-main);
}

.st p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.65;
}

/* ---- CONTACTS PAGE ---- */

.contacts-page {
  padding: 100px 48px 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  transition: border-color .25s;
  cursor: none;
}

.contact-item:hover {
  border-color: var(--cyan);
}

.ci-icon {
  width: 44px;
  height: 44px;
  background: rgba(0, 200, 212, .1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--cyan);
}

.ci-text span {
  font-size: 11px;
  color: var(--text-gray);
  display: block;
  margin-bottom: 2px;
}

.ci-text a,
.ci-text p {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ff {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ff label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-gray);
}

/* UNIVERSAL SELECT/INPUT/TEXTAREA FIX */
select,
input,
textarea {
  color-scheme: dark light;
}

[data-theme="dark"] select,
[data-theme="dark"] input,
[data-theme="dark"] textarea {
  color-scheme: dark;
}

.ff input,
.ff textarea,
.ff select {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  outline: none;
  background: var(--input-bg);
  color: var(--text-main);
  transition: border-color .25s, background .4s;
  cursor: none;
  resize: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Ensure background is solid enough for selects */
.ff select {
  background-color: var(--bg-glass);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='rgba(0, 200, 212, 0.6)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 48px;
}

/* Fix for options background and color inheritance */
select option {
  background-color: var(--bg-body);
  color: var(--text-main);
}

.ff input:focus,
.ff textarea:focus,
.ff select:focus {
  border-color: var(--cyan);
}

.ff textarea {
  height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* BUTTONS */

.btn-c {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--text-main);
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: none;
  transition: background .2s, transform .2s;
}

.coop-page .btn-c,
.coop-page .btn-r,
.coop-page .btn-o {
  margin: 24px auto 0;
  display: flex;
  width: max-content;
}

.btn-c:hover {
  background: var(--cyan-dark);
  transform: scale(1.02);
}

.btn-r {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: none;
  transition: background .2s, transform .2s;
  margin-left: auto;
  margin-right: auto;
}

.btn-r:hover {
  background: #c51e1e;
  transform: scale(1.02);
}

.btn-o {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 50px;
  padding: 16px 36px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: none;
  transition: border-color .2s, background .2s;
  margin-left: auto;
  margin-right: auto;
}

.btn-o:hover {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .1);
}

/* FOOTER */

footer {
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, .05);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-col-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-col-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-theme-btn {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  width: 40px;
  height: 40px;
}

.footer-theme-btn:hover {
  background: rgba(255, 255, 255, .1);
  border-color: var(--cyan);
}

.footer-theme-btn svg {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .8); /* White icons in footer */
}

.footer-logo {
  height: 52px;
  width: auto;
  display: block;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

/* keep old .footer-left working if referenced elsewhere */
.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}


.fn {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--white);
  text-transform: uppercase;
}

.fy {
  font-size: 11px;
  color: rgba(255, 255, 255, .28);
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  transition: border-color .2s, color .2s, transform .2s;
  cursor: none;
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ANIMATIONS */

.fu {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.16, 1, .3, 1), transform .65s cubic-bezier(.16, 1, .3, 1);
}

.fu.vis {
  opacity: 1;
  transform: none;
}

.fu.d1 {
  transition-delay: .08s;
}

.fu.d2 {
  transition-delay: .16s;
}

.fu.d3 {
  transition-delay: .24s;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 10px 20px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-gray);
  cursor: none;
  transition: border-color .2s, color .2s, transform .2s;
  margin-bottom: 28px;
}

.back-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateX(-3px);
}

.back-btn svg {
  transition: transform .2s;
}

.back-btn:hover svg {
  transform: translateX(-2px);
}

/* DECORATIVE SHAPES */

.deco-section {
  position: relative;
  overflow: hidden;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.stats-band {
  background: var(--black);
  padding: 60px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.stat-item {
  padding: 40px 36px;
  border-right: 1px solid rgba(255, 255, 255, .07);
  position: relative;
  overflow: hidden;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(0, 200, 212, .06);
}

.stat-big {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .4);
  margin-top: 8px;
  letter-spacing: .04em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 0;
}

.feature-item {
  background: var(--card-bg);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
  transition: background .3s;
}

.feature-item:hover {
  background: var(--card-bg);
}

.feature-num {
  font-family: 'Unbounded', sans-serif;
  font-size: 72px;
  font-weight: 700;
  color: rgba(0, 200, 212, .08);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
  pointer-events: none;
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(0, 200, 212, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-item h3 {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
}

.ticker-band {
  background: var(--cyan);
  padding: 14px 0;
  overflow: hidden;
  display: flex;
}

.ticker-inner {
  display: flex;
  animation: mq 18s linear infinite;
  white-space: nowrap;
}

.ticker-inner span {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-main);
  padding: 0 32px;
}

.ticker-inner span.sep {
  opacity: .4;
  padding: 0 4px;
}

.geo-section {
  padding: 80px 48px;
  background: var(--card-bg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.geo-section::before {
  content: '';
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(0, 200, 212, .05);
  pointer-events: none;
}

.geo-section::after {
  content: '';
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(0, 200, 212, .06);
  pointer-events: none;
}

.geo-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.geo-card {
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.geo-card-a {
  background: var(--cyan);
  color: var(--text-main);
}

.geo-card-b {
  background: var(--black);
  color: var(--white);
  grid-row: span 2;
}

.geo-card-c {
  border: 1.5px solid var(--border);
}

.geo-card-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.geo-card-sub {
  font-size: 12px;
  opacity: .6;
  letter-spacing: .06em;
}

/* LANG SWITCHER */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border-radius: 40px;
  padding: 4px;
  gap: 0;
  position: relative;
  width: max-content;
}

.lang-switcher::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--cyan);
  border-radius: 32px;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
  z-index: 1;
  pointer-events: none;
}

.lang-switcher.lang-ru::before {
  transform: translateX(0);
}

.lang-switcher.lang-en::before {
  transform: translateX(100%);
}

.lang-btn {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 8px 18px;
  border-radius: 32px;
  border: none;
  cursor: none;
  transition: color .2s;
  z-index: 2;
  position: relative;
  background: transparent !important;
  color: rgba(255, 255, 255, .4);
  text-align: center;
  min-width: 60px;
}

.lang-btn.active {
  color: var(--black) !important;
}

.lang-btn:not(.active):hover {
  color: var(--white);
}

.modal-chat-type {
  flex: 1;
  min-width: 90px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 14px 12px;
  text-align: center;
  cursor: none;
  transition: border-color .2s, background .2s, transform .2s;
}

.modal-chat-type:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.modal-chat-type.active {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .08);
}

.modal-chat-type.disabled {
  opacity: .35;
  pointer-events: none;
}

.mct-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.mct-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.mct-price {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
}

/* MODEL MODAL */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .7);
  backdrop-filter: blur(8px);
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--card-bg);
  border-radius: 28px;
  width: min(92vw, 720px);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .25);
}

.modal-overlay.open .modal-box {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, .07);
  border: none;
  border-radius: 50%;
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background .2s;
  z-index: 10;
}

.modal-close:hover {
  background: var(--red);
  color: white;
}

.modal-hero {
  height: 220px;
  border-radius: 28px 28px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  opacity: .35;
  position: relative;
}

.modal-name {
  font-family: 'Unbounded', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-meta {
  font-size: 13px;
  color: var(--text-gray);
  margin-bottom: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.modal-meta span {
  background: rgba(0, 200, 212, .1);
  color: var(--cyan-dark);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-family: 'Unbounded', sans-serif;
  font-weight: 500;
}

.modal-section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 14px;
  margin-top: 24px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.price-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  text-align: center;
  transition: transform .3s, border-color .3s;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.price-card.highlight {
  background: var(--cyan);
  border-color: var(--cyan);
}

.price-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 8px;
}

.price-card.highlight .price-label {
  color: var(--c-black);
}

.price-amount {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
}

.price-card.highlight .price-amount {
  color: var(--c-black);
}

.price-unit {
  font-size: 10px;
  color: var(--text-gray);
  margin-top: 4px;
}

.price-card.highlight .price-unit {
  color: rgba(0, 0, 0, .5);
}

.price-features {
  list-style: none;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-features li {
  font-size: 11px;
  color: var(--text-dim);
  text-align: left;
}

.price-features li::before {
  content: '✓ ';
  color: var(--cyan);
}

.price-card.highlight .price-features li {
  color: rgba(0, 0, 0, .7);
}

.price-card.highlight .price-features li::before {
  color: var(--c-black);
}

.modal-chat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin-top: 28px;
  background: var(--cyan);
  color: var(--text-main);
  border: none;
  border-radius: 60px;
  padding: 18px 36px;
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: none;
  transition: background .2s, transform .2s;
}

.modal-chat-btn:hover {
  background: var(--cyan-dark);
  transform: scale(1.02);
}

.modal-chat-btn svg {
  width: 20px;
  height: 20px;
}

.scroll-bar {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 100px;
  background: rgba(0, 200, 212, .1);
  border-radius: 3px;
  z-index: 50;
}

.scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--cyan);
  border-radius: 3px;
  height: 30%;
  transition: top .1s;
}

/* ─── TABLET ─── */

/* ─── MOBILE ─── */

/* ─── MOBILE DOCK ─── */

.mobile-dock {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 500;
  background: var(--black);
  border-radius: 60px;
  padding: 5px;
  gap: 0;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .4), 0 2px 12px rgba(0, 0, 0, .25);
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: calc(100vw - 32px);
}

.mobile-dock::-webkit-scrollbar {
  display: none;
}

.mobile-dock-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 12px;
  background: none;
  border: none;
  font-family: 'Unbounded', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .42);
  border-radius: 54px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 2;
  transition: color .28s cubic-bezier(.34, 1.56, .64, 1);
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
  -webkit-user-select: none;
  user-select: none;
}

.mobile-dock-btn.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 220, 230, .9), 0 0 20px rgba(0, 200, 212, .6);
}

.mobile-dock-btn.theme-btn {
  width: 44px;
  padding: 0;
  color: #fff !important;
}

.mobile-dock-btn.theme-btn svg {
  color: #fff !important;
}

.mobile-dock-btn.theme-btn:active {
  color: #fff;
}

/* sliding pill — position:absolute inside dock */

.dock-pill {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 60px;
  height: 38px;
  background: rgba(0, 160, 172, .95);
  border-radius: 54px;
  transition: left .35s cubic-bezier(.34, 1.56, .64, 1), width .35s cubic-bezier(.34, 1.56, .64, 1);
  pointer-events: none;
  z-index: 1;
}

/* push page content up */

/* ─── DOCK COOP POPUP ─── */

.dock-coop-popup {
  position: fixed;
  bottom: 72px;
  left: 50%;
  transform: translateX(-50%) translateY(10px) scale(.92);
  background: var(--black);
  border-radius: 18px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 200, 212, .2);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom center;
  transition: opacity .22s ease, transform .28s cubic-bezier(.34, 1.56, .64, 1);
  z-index: 600;
  min-width: 140px;
}

.dock-coop-popup.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0) scale(1);
}

.dock-coop-option {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .05em;
  color: rgba(255, 255, 255, .55);
  background: none;
  border: none;
  padding: 11px 18px;
  border-radius: 12px;
  cursor: pointer;
  transition: background .2s, color .2s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}

.dock-coop-option:hover,
.dock-coop-option.active {
  background: rgba(0, 200, 212, .15);
  color: #fff;
  text-shadow: 0 0 8px rgba(0, 220, 230, .8);
}

.dock-coop-sep {
  height: 1px;
  background: rgba(255, 255, 255, .08);
  margin: 0 8px;
}

.dock-coop-arr {
  font-size: 9px;
  margin-left: 4px;
  display: inline-block;
  transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
}

.dock-coop-arr.open {
  transform: rotate(180deg);
}

/* ─── BURGER + MOBILE MENU ─── */

.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 200;
}

.burger-btn span {
  display: block;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform .3s, opacity .3s, width .3s;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--card-bg);
  z-index: 190;
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 0;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.mobile-menu.open {
  transform: none;
}

.mobile-menu-item {
  font-family: 'Unbounded', sans-serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
}

.mobile-menu-item:hover {
  color: var(--cyan);
}

.mobile-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.mobile-submenu.open {
  max-height: 200px;
}

.mobile-submenu-item {
  font-family: 'Unbounded', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  padding: 12px 16px;
  color: var(--text-gray);
  cursor: pointer;
  display: block;
}

.mobile-submenu-item:hover {
  color: var(--cyan);
}

.mobile-menu-arrow {
  font-size: 14px;
  transition: transform .3s;
  color: var(--text-gray);
}

.mobile-menu-item.sub-open .mobile-menu-arrow {
  transform: rotate(90deg);
}

.mobile-menu-lang {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.mobile-lang-btn {
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 10px 24px;
  border-radius: 32px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}

.mobile-lang-btn.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--text-main);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}





.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-wrap img {
  height: 60px;
  width: auto;
}

.header-badge {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-gray);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 5px 12px;
}

/* LAYOUT */

.page-wrap {
  padding-top: 110px;
  padding-bottom: 80px;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.page-hero {
  margin-bottom: 56px;
}

.page-tag {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-tag::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--cyan);
}

.page-title {
  font-family: 'Unbounded', sans-serif;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.page-title span {
  color: var(--cyan);
}

.page-sub {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 560px;
}

/* STEPS */

.steps-bar {
  display: flex;
  align-items: center;
  margin-bottom: 52px;
  background: var(--card-bg);
  border: 1.5px solid rgba(0, 200, 212, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 200, 212, 0.15);
}

.step-item {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-right: 1px solid var(--border);
}

.step-item:last-child {
  border-right: none;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .3s, border-color .3s, color .3s;
}

.step-item.active .step-num {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--text-main);
}

.step-item.done .step-num {
  background: var(--cyan-dark);
  border-color: var(--cyan-dark);
  color: white;
}

.step-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--text-gray);
  line-height: 1.3;
}

.step-item.active .step-text,
.step-item.done .step-text {
  color: var(--text-main);
}

/* FORM SECTIONS */

.form-section {
  display: none;
  animation: fadeIn .4s cubic-bezier(.16, 1, .3, 1);
}

.form-section.active {
  display: block;
}

/* FIELDS */

.ff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ff-grid.three {
  grid-template-columns: 1fr 1fr 1fr;
}

.ff {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ff label {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-gray);
}

.ff label .req {
  color: var(--red);
  font-weight: 700;
  margin-left: 2px;
}

.ff input,
.ff textarea,
.ff select {
  font-family: 'Onest', sans-serif;
  font-size: 14px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  outline: none;
  background: transparent;
  color: var(--text-main);
  transition: border-color .25s;
  cursor: none;
  resize: none;
  width: 100%;
}

.ff input:focus,
.ff textarea:focus,
.ff select:focus {
  border-color: var(--cyan);
}

.ff input.error,
.ff select.error {
  border-color: var(--red) !important;
}

.ff textarea {
  min-height: 100px;
}

.ff-hint {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 4px;
}

/* CHECKBOXES */

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.check-item {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: none;
  transition: border-color .2s, background .2s;
}

.check-item:hover {
  border-color: var(--cyan);
}

.check-item.checked {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .07);
}

.check-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: background .2s, border-color .2s;
  color: transparent; /* Hide checkmark by default */
}

.check-item.checked .check-box {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--text-main);
}

.check-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
}

/* PAYOUT TABS */

.payout-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.payout-tab {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  padding: 10px 20px;
  border: 1.5px solid var(--border);
  border-radius: 30px;
  cursor: none;
  transition: border-color .2s, background .2s, color .2s;
  position: relative;
}

.payout-tab.active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--text-main);
}

.payout-tab:hover:not(.active):not(.disabled-tab) {
  border-color: var(--cyan);
}

.payout-tab.disabled-tab {
  opacity: .45;
  cursor: none !important;
  position: relative;
}

.payout-tab.disabled-tab::after {
  content: attr(data-unavail);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.payout-tab.disabled-tab:hover::after {
  opacity: 1;
}

.payout-fields {
  display: none;
}

.payout-fields.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* COLD WALLET */

.wallet-connect-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px dashed var(--cyan);
  border-radius: 16px;
  padding: 18px 24px;
  cursor: none;
  transition: background .2s;
  background: rgba(0, 200, 212, .04);
  margin-top: 8px;
  width: 100%;
}

.wallet-connect-btn:hover {
  background: rgba(0, 200, 212, .1);
}

.wallet-connect-btn .wc-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.wallet-connect-btn .wc-text {
  text-align: left;
}

.wallet-connect-btn .wc-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
}

.wallet-connect-btn .wc-sub {
  font-size: 11px;
  color: var(--text-gray);
}

.wallet-connected {
  display: none;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(0, 200, 212, .4);
  border-radius: 16px;
  padding: 14px 20px;
  background: rgba(0, 200, 212, .05);
  margin-top: 8px;
}

.wallet-connected.visible {
  display: flex;
}

.wallet-addr {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  color: var(--cyan-dark);
  word-break: break-all;
}

.wallet-disconnect {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  color: var(--red);
  border: 1px solid rgba(255, 45, 45, .3);
  border-radius: 20px;
  padding: 5px 12px;
  cursor: none;
  background: none;
  margin-left: auto;
  flex-shrink: 0;
  transition: background .2s;
}

.wallet-disconnect:hover {
  background: rgba(255, 45, 45, .08);
}

/* CONTRACT */

.contract-box {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 32px 36px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.85;
  color: var(--text-main);
  margin-bottom: 24px;
}

.dob-selects {
  display: flex;
  gap: 8px;
  width: 100%;
}

.dob-input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  transition: border-color .2s, background .2s;
}

.dob-input:focus {
  border-color: var(--cyan);
}

.dob-custom-select:focus {
  border-color: var(--cyan);
}

.contract-box::-webkit-scrollbar {
  width: 4px;
}

.contract-box::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 4px;
}

.contract-box h4 {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  margin: 20px 0 8px;
  letter-spacing: .04em;
}

.contract-box h4:first-child {
  margin-top: 0;
}

/* SIGNATURE */

.sign-area {
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 20px;
  background: var(--card-bg);
}

.sign-label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 14px;
}

.sign-canvas-wrap {
  position: relative;
  background: var(--card-bg);
  border: 1.5px dashed rgba(0, 200, 212, .4);
  border-radius: 14px;
  height: 140px;
  overflow: hidden;
  touch-action: none;
}

canvas#signCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.sign-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: rgba(0, 200, 212, .5);
  letter-spacing: .1em;
  pointer-events: none;
  transition: opacity .3s;
  text-align: center;
  padding: 20px;
}

.sign-hint.hidden {
  opacity: 0;
}

.sign-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.sign-status {
  font-size: 11px;
  color: var(--cyan-dark);
}

.sign-clear {
  font-family: 'Unbounded', sans-serif;
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-gray);
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: none;
  transition: border-color .2s, color .2s;
}

.sign-clear:hover {
  border-color: var(--red);
  color: var(--red);
}

/* AGREE */

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  cursor: none;
  transition: border-color .2s;
  margin-bottom: 12px;
}

.agree-row:hover {
  border-color: var(--cyan);
}

.agree-row.checked {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .05);
}

.agree-check {
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background .2s, border-color .2s;
  font-size: 11px;
  color: transparent; /* Hide checkmark by default */
}

.agree-row.checked .agree-check {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--text-main);
}

.agree-text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.agree-text strong {
  color: var(--text-main);
}

/* NAV */

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.btn-c {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cyan);
  color: var(--text-main);
  border: none;
  border-radius: 50px;
  padding: 16px 36px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: none;
  transition: background .2s, transform .2s;
}

.coop-page .btn-c,
.coop-page .btn-r,
.coop-page .btn-o {
  margin: 24px auto 0;
  display: flex;
  width: max-content;
}

.btn-c:hover {
  background: var(--cyan-dark);
  transform: scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-gray);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 14px 28px;
  font-family: 'Unbounded', sans-serif;
  font-size: 12px;
  letter-spacing: .08em;
  cursor: none;
  transition: border-color .2s, color .2s;
}

.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.step-indicator {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  color: var(--gray);
  letter-spacing: .08em;
}

/* TOAST ERROR */

.toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  background: var(--black);
  color: var(--white);
  border-left: 3px solid var(--red);
  border-radius: 14px;
  padding: 16px 20px;
  max-width: 320px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .25);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: none;
}

.toast-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--red);
  margin-bottom: 5px;
}

/* SUCCESS */

.success-screen {
  display: none;
  text-align: center;
  padding: 80px 40px;
}

.success-screen.active {
  display: block;
  animation: fadeIn .5s cubic-bezier(.16, 1, .3, 1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 200, 212, .1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 28px;
}

.success-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

.success-title span {
  color: var(--cyan);
}

.success-sub {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 36px;
}

.success-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 520px;
  margin: 0 auto 40px;
}

.sd-item {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.sd-val {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 4px;
}

.sd-label {
  font-size: 11px;
  color: var(--gray);
}



.lang-btn {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 8px 16px;
  border-radius: 32px;
  border: none;
  cursor: none;
  transition: background .2s, color .2s;
}

.lang-btn.active {
  background: var(--cyan);
  color: var(--black);
}

.lang-btn:not(.active) {
  background: transparent;
  color: rgba(255, 255, 255, .4);
}

/* ─── TABLET ─── */

/* ─── MOBILE ─── */

/* ═══════════════════════════════════════════════════════
   CARD INPUT MODAL STYLES
   ═══════════════════════════════════════════════════════ */

/* Card Modal Overlay - centered on all devices */
#cardModal {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Card Modal Box - centered and rounded */
#cardModal .modal-box {
  max-width: 480px;
  width: 90%;
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 200, 212, .15);
  border-radius: 28px; /* Rounded on all sides */
  transform: translateY(24px) scale(.95);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
}

#cardModal.open .modal-box {
  transform: translateY(0) scale(1);
}

#cardModal .modal-section-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 8px;
  letter-spacing: -.01em;
}

/* Card Input Fields */
#cardModal .ff {
  margin-bottom: 18px;
}

#cardModal .ff label {
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 8px;
  display: block;
}

#cardModal .ff input {
  font-family: 'Onest', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  outline: none;
  background: var(--input-bg);
  color: var(--text-main);
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  cursor: none;
  width: 100%;
}

#cardModal .ff input::placeholder {
  color: var(--text-gray);
  opacity: 0.5;
}

#cardModal .ff input:focus {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .05);
  box-shadow: 0 0 0 4px rgba(0, 200, 212, .08);
  transform: translateY(-1px);
}

#cardModal .ff input:hover:not(:focus) {
  border-color: rgba(0, 200, 212, .4);
}

/* Card Number Input - Special Styling */
#card-num {
  letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

/* Expiry and CVV Row */
#cardModal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

/* CVV Input - Password dots styling */
#card-cvv {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: .3em;
  text-align: center;
}

/* Error State */
#cardModal .ff input.error {
  border-color: var(--red);
  background: rgba(255, 45, 45, .05);
  animation: shake .4s cubic-bezier(.36, .07, .19, .97);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Billing Address Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  cursor: none;
  transition: all .25s;
  margin-bottom: 16px;
  background: var(--bg-glass);
}

.billing-toggle:hover {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .05);
}

.billing-toggle-text {
  font-family: 'Unbounded', sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--text-main);
  font-weight: 600;
}

.billing-toggle-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 200, 212, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--cyan);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), background .25s;
}

.billing-toggle:hover .billing-toggle-icon {
  background: var(--cyan);
  color: var(--text-main);
}

/* Billing Fields Container */
#billingFields {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16, 1, .3, 1);
}

/* Card Icon Indicators */
.card-input-wrapper {
  position: relative;
}

.card-type-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 20px;
  opacity: 0.6;
  pointer-events: none;
}

/* Security Badge */
.security-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: rgba(0, 200, 212, .08);
  border: 1px solid rgba(0, 200, 212, .2);
  border-radius: 12px;
  margin-top: 16px;
  margin-bottom: 20px;
}

.security-badge-icon {
  font-size: 16px;
}

.security-badge-text {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.4;
}

/* Save Button in Modal */
#cardModal .btn-c {
  width: 100%;
  justify-content: center;
  padding: 18px 36px;
  font-size: 13px;
  margin-top: 8px;
}

#cardModal .btn-c:hover {
  box-shadow: 0 8px 24px rgba(0, 200, 212, .25);
}

/* Modal Close Button */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--bg-glass);
  color: var(--text-gray);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: all .25s;
  z-index: 10;
}

.modal-close:hover {
  border-color: var(--red);
  background: rgba(255, 45, 45, .1);
  color: var(--red);
  transform: rotate(90deg);
}

/* Input Focus Glow Effect */
@keyframes input-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0, 200, 212, .08); }
  50% { box-shadow: 0 0 0 6px rgba(0, 200, 212, .12); }
}

#cardModal .ff input:focus {
  animation: input-glow 2s ease-in-out infinite;
}

/* Responsive Card Modal */
@media (max-width: 768px) {
  /* Override mobile modal positioning - keep card modal centered */
  #cardModal {
    align-items: center !important;
  }
  
  #cardModal .modal-box {
    max-width: 90%;
    width: 90%;
    margin: 20px;
    border-radius: 28px !important; /* Keep rounded on mobile, override bottom sheet style */
    position: relative !important; /* Override fixed positioning */
    bottom: auto !important;
    top: auto !important;
  }
  
  #cardModal .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  #cardModal .ff input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ═══════════════════════════════════════════════════════
   CONTRACT PAGE HEADER
   ═══════════════════════════════════════════════════════ */

/* Contract header - hidden by default, shown via JS */
#contract-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: none; /* Hidden by default, shown via JS when on contract page */
  align-items: center;
  justify-content: space-between;
  padding: 14px 48px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .4s, background 0.4s;
}

/* Contract header layout: logo on left, contacts on right */
#contract-header .logo-btn {
  flex-shrink: 0;
}

#contract-header .header-contacts {
  position: absolute;
  right: 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

/* Ensure contract page content has proper padding */
#page-contract {
  padding-top: 120px;
}

/* Responsive contract header */
@media (max-width: 768px) {
  #contract-header {
    padding: 12px 20px;
  }
  
  #contract-header .logo-btn img {
    height: 60px;
  }
  
  /* Show contacts on mobile for contract page */
  #contract-header .header-contacts {
    position: static;
    margin-left: auto;
    gap: 6px;
  }
  
  #contract-header .header-contact-link {
    font-size: 10px;
  }
  
  #contract-header .header-contact-link svg {
    width: 12px;
    height: 12px;
  }
}


/* ═══════════════════════════════════════════════════════
   CARD BIN INFO DISPLAY
   ═══════════════════════════════════════════════════════ */

.card-bin-info {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(0, 200, 212, .08);
  border: 1px solid rgba(0, 200, 212, .2);
  border-radius: 10px;
  font-family: 'Unbounded', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--cyan-dark);
  text-transform: uppercase;
  animation: slideDown .3s cubic-bezier(.16, 1, .3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card type icons */
.card-input-wrapper {
  position: relative;
}

.card-type-indicator {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  opacity: 0.8;
  pointer-events: none;
  transition: opacity .3s;
  animation: fadeIn .3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-50%) scale(0.8);
  }
  to {
    opacity: 0.8;
    transform: translateY(-50%) scale(1);
  }
}

/* Adjust input padding when indicator is present */
#card-num:not(:placeholder-shown) {
  padding-right: 50px;
}

/* FILE UPLOAD */
.file-upload-wrap {
  margin-top: 24px;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px;
  background: var(--input-bg);
  border: 1.5px dashed rgba(0, 200, 212, .3);
  border-radius: 20px;
  cursor: pointer;
  transition: all .3s cubic-bezier(.16, 1, .3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.file-upload-label:hover {
  border-color: var(--cyan);
  background: rgba(0, 200, 212, .04);
  transform: translateY(-2px);
}

.file-upload-label svg {
  width: 24px;
  height: 24px;
  color: var(--cyan);
  flex-shrink: 0;
  transition: transform .3s;
}

.file-upload-label:hover svg {
  transform: rotate(15deg);
}

.file-upload-info {
  text-align: left;
}

.file-upload-title {
  font-family: 'Unbounded', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.file-upload-sub {
  font-size: 11px;
  color: var(--text-dim);
}

input[type="file"]#id-doc {
  display: none;
}

.file-selected-badge {
  display: none;
  margin-top: 12px;
  padding: 12px 18px;
  background: rgba(0, 200, 212, .12);
  border: 1px solid rgba(0, 200, 212, .3);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  animation: slideUpFileUpload .4s cubic-bezier(.16, 1, .3, 1);
}

.file-selected-badge.active {
  display: flex;
}

.file-name-text {
  font-size: 12px;
  color: var(--cyan);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  display: flex;
  transition: color .2s;
}

.file-remove-btn:hover {
  color: var(--red);
}

@keyframes slideUpFileUpload {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
