/* ===========================
   CoinX Pay – Custom Theme
   (on top of raw Bootstrap)
   =========================== */

:root {
  --coinx-bg: #020617;
  --coinx-bg-alt: #020a1f;
  --coinx-accent: #22d3ee;   /* cyan */
  --coinx-accent-2: #f97316; /* orange */
  --coinx-text: #f9fafb;
  --coinx-muted: #9ca3af;
}

/* ---------------------------
   Global
---------------------------- */

.coinx-body {
  font-family: "Tektur", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, #1f2937 0, transparent 55%),
    radial-gradient(circle at bottom, #0b1120 0, transparent 55%),
    var(--coinx-bg);
  color: var(--coinx-text);
}

/* Ensure default text is readable on dark background */
body.coinx-body,
body.coinx-body .card,
body.coinx-body .accordion-item {
  color: var(--coinx-text);
}

/* ---------------------------
   Navbar
---------------------------- */

.coinx-header {
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.coinx-navbar {
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.coinx-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    #22d3ee,
    #22c55e,
    #f97316,
    #22d3ee
  );
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.7);
}

.coinx-logo-initials {
  font-size: 0.75rem;
  font-weight: 700;
  color: #020617;
}

.coinx-nav-subtext {
  color: var(--coinx-muted);
  font-size: 0.7rem;
}

.coinx-nav-link {
  position: relative;
  padding-bottom: 0.15rem;
}

.coinx-nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(
    to right,
    var(--coinx-accent),
    var(--coinx-accent-2)
  );
  border-radius: 999px;
  transition: width 0.2s ease-out;
}

.coinx-nav-link:hover::after,
.coinx-nav-link:focus::after {
  width: 100%;
}

/* ---------------------------
   Hero section
---------------------------- */

.coinx-hero {
  background:
    radial-gradient(circle at top left, #0f172a 0, transparent 55%),
    linear-gradient(to bottom, #020617, #020617 60%, #020617);
  color: var(--coinx-text);
}

.coinx-badge-pill {
  background-color: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: var(--coinx-muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.coinx-dot-online {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
  display: inline-block;
}

.coinx-hero-title {
  letter-spacing: -0.03em;
}

.coinx-hero-highlight {
  background: linear-gradient(
    120deg,
    var(--coinx-accent),
    #22c55e,
    var(--coinx-accent-2)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.coinx-meta-row p {
  margin-bottom: 0;
}

.coinx-badge-safe {
  border-color: rgba(34, 197, 94, 0.6);
  color: #bbf7d0;
  background-color: rgba(22, 163, 74, 0.15);
}

/* ---------------------------
   Hero card
---------------------------- */

.coinx-hero-card {
  background:
    radial-gradient(circle at top left, #22d3ee33 0, transparent 55%),
    radial-gradient(circle at bottom right, #f9731633 0, transparent 55%),
    #020617;
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
}

.coinx-pill {
  background-color: #020617;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
}

.coinx-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
}

.coinx-status-badge {
  background-color: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(34, 211, 238, 0.7);
  color: var(--coinx-accent);
}

/* ---------------------------
   Features
---------------------------- */

.coinx-feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 1rem;
  background: radial-gradient(circle at top left, #22d3ee, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #020617;
  font-size: 1.2rem;
}

.coinx-feature-card {
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out;
}

.coinx-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.9);
  border-color: rgba(34, 211, 238, 0.75);
}

/* ---------------------------
   Steps / Integration section
---------------------------- */

.coinx-step-number {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--coinx-accent);
}

/* ---------------------------
   Compliance card
---------------------------- */

.coinx-compliance-card {
  background:
    radial-gradient(circle at top left, #16a34a40 0, transparent 55%),
    #020617;
}

/* ---------------------------
   Pricing
---------------------------- */

.coinx-pricing-popular {
  box-shadow: 0 18px 45px rgba(8, 47, 73, 0.9);
}

/* ---------------------------
   Section backgrounds
---------------------------- */

.coinx-section-alt {
  background:
    radial-gradient(circle at top right, #0f172a 0, transparent 55%),
    #020617;
}

/* ---------------------------
   Footer
---------------------------- */

.coinx-footer {
  background-color: #020617;
}

/* ---------------------------
   Buttons (light overrides)
---------------------------- */

.btn-primary {
  background-image: linear-gradient(
    135deg,
    var(--coinx-accent),
    var(--coinx-accent-2)
  );
  border-color: transparent;
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(1.05);
}

/* Keep outline-light usable on dark cards */
.btn-outline-light {
  border-color: rgba(249, 250, 251, 0.7);
}

/* ---------------------------
   Accordion overrides
   (Bootstrap uses light bg by default)
---------------------------- */

.accordion-item.bg-dark {
  background-color: #020617 !important;
  border-color: rgba(148, 163, 184, 0.6);
}

.accordion-button.bg-dark {
  background-color: #020617 !important;
  color: var(--coinx-text) !important;
}

.accordion-button.bg-dark:not(.collapsed) {
  background-color: #020a1f !important;
  color: var(--coinx-text) !important;
  box-shadow: inset 0 -1px 0 rgba(148, 163, 184, 0.4);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(34, 211, 238, 0.35);
}

.accordion-body {
  background-color: #020617;
  color: var(--coinx-muted);
}

/* ---------------------------
   Forms
---------------------------- */

body.coinx-body .form-control,
body.coinx-body .form-select {
  color: var(--coinx-text);
}

/* Make sure form-text is visible */
body.coinx-body .form-text {
  color: var(--coinx-muted) !important;
}

/* ---------------------------
   Utilities / small tweaks
---------------------------- */

@media (max-width: 767.98px) {
  .coinx-hero {
    padding-top: 3rem;
  }
}


/* ===========================
   Auth / Login page styles
   =========================== */

.coinx-auth {
  min-height: calc(100vh - 140px); /* header + footer approx */
  display: flex;
  align-items: center;
}

.coinx-auth-card {
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top left, #22d3ee22 0, transparent 55%),
    radial-gradient(circle at bottom right, #f9731633 0, transparent 55%),
    #020617;
}

.coinx-auth-logo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: conic-gradient(
    from 210deg,
    #22d3ee,
    #22c55e,
    #f97316,
    #22d3ee
  );
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.8);
}

.coinx-auth-logo-initials {
  font-size: 1rem;
  font-weight: 700;
  color: #020617;
}

.coinx-auth-alert {
  border-radius: 0.6rem;
  border-width: 1px;
  border-style: solid;
}

/* Form focus states on dark background */

.coinx-auth-card .form-control,
.coinx-auth-card .form-select {
  box-shadow: none;
}

.coinx-auth-card .form-control:focus,
.coinx-auth-card .form-select:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 0.15rem rgba(34, 211, 238, 0.3);
  background-color: #020617;
}

/* Make text & icons readable in the login card */
.coinx-auth-card .form-label,
.coinx-auth-card .form-check-label,
.coinx-auth-card .form-text {
  color: var(--coinx-muted);
}

/* Ensure checkbox is visible */
.coinx-auth-card .form-check-input {
  background-color: transparent;
  border-color: rgba(148, 163, 184, 0.7);
}
.coinx-auth-card .form-check-input:checked {
  background-color: var(--coinx-accent);
  border-color: var(--coinx-accent);
}

/* Small screen tweak */
@media (max-width: 575.98px) {
  .coinx-auth {
    padding-top: 2rem;
  }
}
