/* ================================================================
   VALSKUY — Service Selector Popup
   Injected into index.html before langModal / loadingScreen logic
================================================================ */

/* --- Overlay --- */
#serviceModal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(8, 8, 8, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s ease, visibility .4s ease;
}
#serviceModal.sm-visible {
  opacity: 1;
  visibility: visible;
}

/* --- Dialog box --- */
.sm-box {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: #0e0e0e;
  border: 1px solid #242424;
  border-radius: 20px;
  padding: 48px 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  box-shadow: 0 0 0 0 rgba(192,189,184,0);
  animation: sm-arrive .5s cubic-bezier(.22,1,.36,1) both;
}
@keyframes sm-arrive {
  from { transform: translateY(28px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* --- Header --- */
.sm-header {
  text-align: center;
}
.sm-eyebrow {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #5a5855;
  margin-bottom: 14px;
}
.sm-eyebrow span {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: #242424;
  vertical-align: middle;
  margin: 0 8px;
}
.sm-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(30px, 6vw, 52px);
  letter-spacing: 6px;
  color: #ede9e1;
  line-height: 1;
  margin-bottom: 10px;
}
.sm-sub {
  font-size: 13px;
  color: #5a5855;
  letter-spacing: .5px;
  max-width: 380px;
  margin: 0 auto;
}

/* --- Card grid --- */
.sm-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* --- Each card --- */
.sm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 28px 24px 24px;
  background: #141414;
  border: 1px solid #242424;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color .25s, background .25s, transform .25s cubic-bezier(.22,1,.36,1);
  -webkit-tap-highlight-color: transparent;
}
/* animated top accent line */
.sm-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 100%;
  height: 2px;
  transition: right .35s cubic-bezier(.22,1,.36,1);
}
.sm-card:hover::before { right: 0; }
.sm-card:hover {
  border-color: #2e2e2e;
  background: #181818;
  transform: translateY(-3px);
}
.sm-card:active { transform: translateY(-1px); }

/* accent colors per card */
.sm-card[data-accent="ivory"]::before  { background: #ede9e1; }
.sm-card[data-accent="gold"]::before   { background: #c8a878; }
.sm-card[data-accent="red"]::before    { background: #b84040; }

/* card top label */
.sm-card-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: color .2s;
}
.sm-card[data-accent="ivory"] .sm-card-tag { color: #5a5855; }
.sm-card[data-accent="gold"]  .sm-card-tag { color: #c8a878; }
.sm-card[data-accent="red"]   .sm-card-tag { color: #b84040; }

/* Big number / icon row */
.sm-card-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 44px;
  line-height: 1;
  letter-spacing: 2px;
  color: #1e1e1e;
  margin-bottom: 14px;
  transition: color .25s;
  user-select: none;
}
.sm-card:hover .sm-card-num { color: #232323; }
.sm-card[data-accent="gold"]:hover  .sm-card-num { color: rgba(200,168,120,.08); }
.sm-card[data-accent="red"]:hover   .sm-card-num { color: rgba(184,64,64,.06); }

/* Name */
.sm-card-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  color: #ede9e1;
  margin-bottom: 6px;
  transition: color .2s;
}

/* Description */
.sm-card-desc {
  font-size: 11px;
  color: #5a5855;
  line-height: 1.6;
  letter-spacing: .3px;
  flex: 1;
}

/* CTA row */
.sm-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #5a5855;
  transition: color .2s, gap .2s;
}
.sm-card:hover .sm-card-cta {
  gap: 10px;
}
.sm-card[data-accent="ivory"]:hover .sm-card-cta { color: #c0bdb8; }
.sm-card[data-accent="gold"]:hover  .sm-card-cta { color: #c8a878; }
.sm-card[data-accent="red"]:hover   .sm-card-cta { color: #b84040; }

.sm-card-cta svg {
  transition: transform .2s;
}
.sm-card:hover .sm-card-cta svg {
  transform: translateX(3px);
}

/* Coming soon overlay */
.sm-coming-badge {
  position: absolute;
  top: 12px; right: 12px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #5a5855;
  border: 1px solid #242424;
  border-radius: 99px;
  padding: 3px 10px;
  pointer-events: none;
}

/* --- Close --- */
.sm-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 28px; height: 28px;
  background: none;
  border: 1px solid #242424;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5a5855;
  transition: border-color .2s, color .2s;
}
.sm-close:hover {
  border-color: #3a3a3a;
  color: #c0bdb8;
}

/* --- Footer note --- */
.sm-footer {
  text-align: center;
  font-size: 10px;
  color: #3a3835;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sm-footer a {
  color: #5a5855;
  border-bottom: 1px solid #2e2e2e;
  transition: color .2s;
}
.sm-footer a:hover { color: #c0bdb8; }

/* --- Mobile --- */
@media (max-width: 640px) {
  .sm-box {
    padding: 36px 20px 32px;
    gap: 24px;
  }
  .sm-cards {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .sm-card {
    flex-direction: row;
    align-items: center;
    padding: 18px 20px;
    gap: 16px;
  }
  .sm-card::before {
    top: 0; bottom: 0; right: auto; left: 0;
    width: 2px; height: 100%;
    /* override the horizontal animation */
  }
  .sm-card:hover::before { right: auto; }
  .sm-card-num {
    font-size: 32px;
    margin-bottom: 0;
    min-width: 48px;
  }
  .sm-card-body {
    flex: 1;
  }
  .sm-card-name { font-size: 17px; margin-bottom: 2px; }
  .sm-card-desc { display: none; }
  .sm-card-cta  { margin-top: 6px; }
  .sm-card-tag  { margin-bottom: 4px; }
}

/* ================================================================
   LOADING SCREEN — upgraded
================================================================ */

/* Reset old styles that conflict */
.ls-wrap { gap: 0 !important; }

/* Subtle dot-grid background */
.ls-bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #1e1e1e 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: .45;
  pointer-events: none;
}

/* Center wrap */
#loadingScreen .ls-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

/* Spinning ring container */
.ls-ring {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-ring-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: ls-spin 1.6s linear infinite;
}
@keyframes ls-spin {
  to { transform: rotate(360deg); }
}
.ls-ring-arc {
  transform-origin: center;
}

/* Logo inside ring */
#loadingScreen .ls-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}
.ls-wordmark-fb {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--ivory);
  position: relative;
  z-index: 1;
}

/* Text block */
.ls-text-block {
  text-align: center;
  margin-bottom: 24px;
}
#loadingScreen .ls-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 8px;
  color: var(--ivory);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
#loadingScreen .ls-tagline {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
}

/* Progress bar — override old one */
#loadingScreen .ls-bar-outer {
  width: 160px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 20px;
}
#loadingScreen .ls-bar-inner {
  height: 100%;
  background: var(--silver);
  width: 0;
  animation: ls-fill 1.8s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes ls-fill {
  0%   { width: 0% }
  40%  { width: 55% }
  80%  { width: 85% }
  100% { width: 100% }
}

/* Animated dots */
.ls-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ls-dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
  animation: ls-dot-pulse 1.2s ease-in-out infinite;
}
.ls-dots span:nth-child(1) { animation-delay: 0s; }
.ls-dots span:nth-child(2) { animation-delay: .2s; }
.ls-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes ls-dot-pulse {
  0%, 80%, 100% { opacity: .2; transform: scale(1); }
  40%            { opacity: 1;  transform: scale(1.4); }
}

/* Hide transition */
#loadingScreen {
  transition: opacity .4s ease, visibility .4s ease;
}