/* ===== SkinApe brand palette (from skinape-web default dark theme) ===== */
:root {
  --skinape-bg: #18181c;
  --skinape-surface: #26232f;
  --skinape-surface-2: #3c3949;
  --skinape-border: rgba(255, 255, 255, 0.08);
  --skinape-fg: #ffffff;
  --skinape-muted: #c6c2d1;

  --skinape-primary: #fc2c5d;        /* brand primary */
  --skinape-primary-hover: #ff275a;
  --skinape-cyan: #08b4fe;           /* secondary accent */
  --skinape-gradient: linear-gradient(86.56deg, #583eee 0%, #fc2c5d 100%);
  --skinape-positive: #00ffa3;
}

/* ===== Base ===== */
html {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  touch-action: manipulation;          /* kill double-tap zoom */
}

/* never show the browser's blue focus ring / tap highlight on buttons */
button,
.btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover,
.btn:focus,
.btn:active,
.btn:focus-visible,
.btn:focus-within {
  outline: none !important;
  box-shadow: none !important;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overscroll-behavior: none;          /* no rubber-band / pull-to-zoom feel */
  font-family: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--skinape-fg);
  background-color: var(--skinape-bg);
  background-image:
    radial-gradient(50vh circle at 18% 28%, rgba(8, 180, 254, 0.18), transparent 80%),
    radial-gradient(50vh circle at 85% 82%, rgba(255, 39, 90, 0.18), transparent 80%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Onest", -apple-system, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--skinape-fg);
}

/* ===== Visibility helpers (used by main.js) ===== */
.togglable,
.hide {
  display: none;
}

.show {
  display: block;
}

/* ===== Brand logo ===== */
.skinape-logo {
  width: 150px;
  max-width: 55%;
  margin: 0 auto;
  display: block;
}

/* ===== Consistent vertical rhythm inside each card ===== */
/* equal gap: logo -> main heading -> muted sub-text */
.togglable .bg-white.rounded.shadow > h4,
.togglable .bg-white.rounded.shadow > h5 {
  margin-top: 2rem !important;
}

.togglable .bg-white.rounded.shadow h4 small.text-muted,
.togglable .bg-white.rounded.shadow h5 small.text-muted {
  display: block;
  margin-top: 2rem;
  font-weight: 400;
  line-height: 1.45;
}

/* ===== Card (repurpose Bootstrap's bg-white card to dark surface) ===== */
.bg-white.rounded.shadow {
  background-color: var(--skinape-surface) !important;
  color: var(--skinape-fg);
  border-radius: 24px !important;
  border: 1px solid var(--skinape-border);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55) !important;
  overflow: hidden;            /* clip the accent strip to the rounded corners */
}

/* gradient accent strip on top of each card */
.bg-white.rounded.shadow::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--skinape-gradient);
}

/* text colors inside cards */
.bg-white.rounded.shadow h4,
.bg-white.rounded.shadow h5,
.bg-white.rounded.shadow h6 {
  color: var(--skinape-fg);
}

.text-muted {
  color: var(--skinape-muted) !important;
}

/* ===== Primary buttons → brand primary ===== */
.btn-primary {
  border: 2px solid transparent;
  background: var(--skinape-primary);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 0.12s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:focus-visible {
  background: var(--skinape-primary-hover);
  color: #fff;
  outline: none;
  box-shadow: none;
}

/* success / continue → brand gradient */
.btn-success {
  border: none;
  background: var(--skinape-gradient);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 999px;
  transition: filter 0.12s ease;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:focus-visible {
  color: #fff;
  filter: brightness(1.06);
  outline: none;
  box-shadow: none;
}

.btn-warning {
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
}

/* outline / secondary buttons */
.btn-outline-primary {
  color: var(--skinape-primary);
  border: 2px solid rgba(252, 44, 93, 0.45);
  background: transparent;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary:focus-visible {
  background: var(--skinape-primary);
  border-color: var(--skinape-primary);
  color: #fff;
  outline: none;
  box-shadow: none;
}

/* ===== Inputs ===== */
.input-group .btn-primary {
  border-radius: 0 999px 999px 0 !important;
}

.form-control {
  background-color: #1f1d27;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--skinape-fg);
  border-radius: 999px;
}

/* with a prepend (@) on the left and a button on the right, the field itself
   should be square on both sides so it sits flush against both */
.input-group .form-control {
  border-radius: 0;
}

.form-control::placeholder {
  color: #7d7889;
}

.form-control:focus {
  background-color: #1f1d27;
  color: var(--skinape-fg);
  border-color: var(--skinape-primary);
  box-shadow: 0 0 0 0.2rem rgba(252, 44, 93, 0.18);
}

.input-group-text {
  background: #1f1d27;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--skinape-primary);
  font-weight: 700;
  border-radius: 999px 0 0 999px;
}

/* ===== Selectable list cards (users / experiences / gamepasses) ===== */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.1) !important;
  background: var(--skinape-surface-2) !important;
  border-radius: 18px !important;
  color: var(--skinape-fg) !important;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-outline-light:hover {
  border-color: var(--skinape-primary) !important;
  background: #45424f !important;
  transform: translateY(-2px);
}

.btn-outline-light h6 {
  color: var(--skinape-fg);
}

/* "create new gamepass" dashed button */
.btn-outline-success {
  border: 2px dashed rgba(8, 180, 254, 0.5) !important;
  background: rgba(8, 180, 254, 0.06) !important;
  border-radius: 18px !important;
  color: var(--skinape-cyan) !important;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn-outline-success:hover {
  background: rgba(8, 180, 254, 0.12) !important;
  color: var(--skinape-cyan) !important;
  transform: translateY(-2px);
}

/* ===== Spinner uses brand color ===== */
.spinner-border.text-primary,
.spinner-border.text-secondary {
  color: var(--skinape-primary) !important;
}

/* ===== Image thumbnails on dark ===== */
.img-thumbnail {
  background-color: #1f1d27;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 16px;                 /* soft rounding for all roblox images */
}

/* circular avatars (account search) stay perfectly round */
.img-thumbnail.rounded-circle {
  border-radius: 50% !important;
}

/* ===== Tutorial video frame ===== */
.skinape-video {
  border: none;
  border-radius: 18px;
  width: 270px;
  max-width: 100%;
  height: 480px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

/* ===== Custom modal (framework-independent) ===== */
.skinape-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(8, 6, 18, 0.72);
  backdrop-filter: blur(4px);
  padding: 16px;
  overflow-y: auto;
}

/* higher specificity than global .show (display:block) */
.skinape-modal-overlay.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skinape-modal {
  background-color: var(--skinape-surface);
  color: var(--skinape-fg);
  border: 1px solid var(--skinape-border);
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6);
  animation: skinape-modal-in 0.18s ease-out;
}

@keyframes skinape-modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.skinape-modal-header {
  background: var(--skinape-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
}

.skinape-modal-header .modal-title {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.03em;
  margin: 0;
  color: #fff;
}

.skinape-modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  opacity: 0.85;
  cursor: pointer;
  padding: 0 4px;
}

.skinape-modal-close:hover {
  opacity: 1;
}

.skinape-modal-body {
  padding: 22px 22px 26px 22px;
}

/* ===== Badges ===== */
.badge {
  border-radius: 8px;
}

.badge.bg-success {
  background-color: rgba(0, 255, 163, 0.18) !important;
  color: var(--skinape-positive) !important;
}

/* ===== Mobile / narrow screens ===== */
@media (max-width: 768px) {
  /* anchor content to the top instead of vertically centering it */
  body {
    align-items: flex-start;
  }

  /* trim the big vertical padding/margins so the panel sits near the top */
  .togglable .bg-white.rounded.shadow {
    margin: 1rem !important;
    padding: 1.75rem 1.25rem !important;
  }

  .skinape-logo {
    width: 130px;
  }
}
