:root {

  --form-primary: #1fa038;
  --form-primary-dark: #008018;
  --form-success: #28a745;
  --form-danger: #dc3545;
  --form-warning: #ffc107;
  --form-info: #17a2b8;
  --form-white: #ffffff;
  --form-black: #111111;
  --form-gray-light: #f8f9fa;
  --form-gray: #6c757d;
  

  --form-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  --form-shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.25);
  --form-radius: 20px;
  --form-radius-small: 10px;
  

  --form-anim-fast: 200ms ease;
  --form-anim-medium: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  

  --form-focus-ring: 0 0 0 3px rgba(31, 160, 56, 0.35);
  --form-focus-gray: 0 0 0 3px rgba(108, 117, 125, 0.25);
  --form-focus-success: 0 0 0 3px rgba(40, 167, 69, 0.25);
  --form-focus-danger: 0 0 0 3px rgba(220, 53, 69, 0.25);
  --form-focus-warning: 0 0 0 3px rgba(255, 193, 7, 0.25);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
.input:focus {
  border-color: var(--form-gray);
  box-shadow: var(--form-focus-gray);
  background: var(--form-white);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="tel"]::placeholder,
.input::placeholder {
  color: #9ca3af;
  opacity: 0.8;
  font-weight: 400;
}

input.valid,
textarea.valid,
select.valid {
  background: #ecfdf5 !important;
  border-color: var(--form-success) !important;
  box-shadow: var(--form-focus-success) !important;
}

input.invalid,
textarea.invalid,
select.invalid {
  background: #fef2f2 !important;
  border-color: var(--form-danger) !important;
  box-shadow: var(--form-focus-danger) !important;
}

input[type="tel"][style*="border-color: #ffc107"],
input[type="tel"][style*="border-color: rgb(255, 193, 7)"] {
  background: #fffef0 !important;
  border-color: var(--form-warning) !important;
  box-shadow: var(--form-focus-warning) !important;
}

.iti {
  width: 100% !important;
  display: block !important;
}

.iti__flag-container {
  border-top-left-radius: var(--form-radius) !important;
  border-bottom-left-radius: var(--form-radius) !important;
}

.iti__selected-dial-code {
  color: var(--form-black) !important;
  font-weight: 500 !important;
}


input[name="phone"] {
  padding-left: 95px !important;
  height: 52px !important;
}

@keyframes phone-validation-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Phone validation spinner state */
input[type="tel"][style*="background-image"] {
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 20px 20px !important;
  animation: phone-validation-spin 1s linear infinite;
}

button[type="submit"] {
  width: 100%;
  padding: 14px 20px;
  margin: 20px 0 10px 0;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  color: var(--form-white);
  background: linear-gradient(135deg, var(--form-primary) 0%, var(--form-primary-dark) 100%);
  border: 2px solid var(--form-primary);
  border-radius: var(--form-radius);
  cursor: pointer;
  outline: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all var(--form-anim-fast);
  box-shadow: 0 4px 12px rgba(31, 160, 56, 0.3);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--form-shadow-hover);
  background: linear-gradient(135deg, #22a23a 0%, #0d5f28 100%);
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  animation: none;
  background: #9ca3af;
  border-color: #9ca3af;
  transform: none;
  box-shadow: none;
}

.pageloader {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: rgba(249, 249, 249, 0.8);
  display: none;
}

.pageloader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(0, 0, 0, 0.15);
  border-top-color: var(--form-primary, #1fa038);
  border-radius: 50%;
  animation: pageloader-spin 0.8s linear infinite;
}

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


@keyframes onAutoFillStart {
  from {} 
  to {}
}

input:-webkit-autofill {
  animation-name: onAutoFillStart;
}




.comment-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--form-white);
  max-width: 450px;
  margin: 8% auto;
  padding: 30px;
  border-radius: var(--form-radius-small);
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  .input {
    font-size: 16px;
    padding: 12px 16px;
    height: 48px;
  }
  
  button[type="submit"] {
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    padding: 15px;
  }
  
  .modal-content h3 {
    font-size: 16px;
  }
}

input[type="text"]:focus + label,
input[type="email"]:focus + label,
input[type="tel"]:focus + label,
input[type="text"]:not(:placeholder-shown) + label,
input[type="email"]:not(:placeholder-shown) + label,
input[type="tel"]:not(:placeholder-shown) + label {
  top: -12px;
  color: var(--form-primary);
  font-size: 14px;
  font-weight: 600;
  background: var(--form-white);
  padding: 0 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

input[type="tel"][title] {
  position: relative;
}

input[type="text"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
.input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: #f3f4f6;
}

button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: var(--form-focus-ring);
}

.iti__selected-dial-code {
  color: var(--form-black);
}

.comment-modal,
.modal-content {
  z-index: 10000;
}



/* Currency symbol sits before the amount, per Japanese convention.
   Set here because the compiled Tailwind build ships .right-5 but no .left-5. */
#symbol {
  left: 1.25rem;
  right: auto;
}

/* Room for that symbol. The .input component rule beats the pl-10 utility in
   the cascade, so the padding has to be set at ID specificity or the symbol
   lands on top of the first digit. */
#value {
  padding-left: 2.75rem;
}

/* Brand wordmark stays on one line. The compiled Tailwind build has no
   whitespace-nowrap utility, so this is set here; a max-width cap on the
   anchor used to break names longer than ~100px onto a second line. */
a.h3 {
  white-space: nowrap;
  flex-shrink: 0;
}


/* Why media box: coin marquee below xl, static coin grid above */
@media (max-width: 1279px) {
  .why-media-box {
    height: auto !important;
    min-height: 180px;
    padding-bottom: 16px !important;
    display: flex;
    align-items: center;
  }
  .why-coins-static { display: none !important; }
}

.why-marquee {
  width: 100%;
  overflow: hidden;
}

.why-marquee-track {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  padding: 24px 0;
  animation: why-marquee-scroll 28s linear infinite;
}

.why-marquee-track img {
  height: 80px;
  width: 80px;
  flex-shrink: 0;
  display: block;
}

.why-coins-static {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
  padding: 24px;
  place-items: center;
}

.why-coins-static img {
  width: 60px;
  height: 60px;
  display: block;
}

@media (min-width: 1280px) {
  .why-marquee { display: none !important; }
  .why-media-box {
    height: auto !important;
    min-height: 230px;
    padding-bottom: 16px !important;
  }
}

@keyframes why-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Live users counter dot */
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--form-success, #28a745);
  animation: live-pulse 1.6s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* Reviews forum modal close button */
.reviews-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: 0;
  color: #6b7280;
}

/* Loss-scenario illustration: gentle vertical float */
.float-soft {
  animation: float-soft 5s ease-in-out infinite;
  will-change: transform;
}

@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Hero members counter ---- */
.hero-members-count {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--form-primary, #1fa038);
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s ease;
}

.hero-members-count.bump {
  transform: scale(1.08);
}

.hero-delta {
  position: absolute;
  top: 4px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: var(--form-success, #28a745);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
}

.hero-delta.show {
  animation: hero-delta-pop 2s ease forwards;
}

@keyframes hero-delta-pop {
  0%   { opacity: 0; transform: translateY(10px) scale(0.85); }
  12%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; transform: translateY(-4px); }
  100% { opacity: 0; transform: translateY(-18px); }
}

/* Specs table emoji pulse (same rhythm family as the live-dot) */
.pulse-emoji {
  display: inline-block;
  animation: emoji-pulse 2s ease-in-out infinite;
}

@keyframes emoji-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.18); opacity: 0.65; }
}
