*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f8f6f1;
  --surface: #ffffff;
  --text: #2d2d3a;
  --text-muted: #6b7280;
  --border: #d4d0c8;
  --primary: #e8553d;
  --primary-light: #fef2f0;
  --primary-hover: #d94430;
  --green: #22c55e;
  --green-bg: #f0fdf4;
  --red: #ef4444;
  --red-bg: #fef2f2;
  --sky: #0ea5e9;
  --sky-bg: #f0f9ff;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --purple: #a855f7;
  --purple-bg: #faf5ff;
  --pink: #ec4899;
  --pink-bg: #fdf2f8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --shadow-brutal: 4px 4px 0px var(--border);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.bg-blob { position: fixed; border-radius: 50%; opacity: 0.08; z-index: 0; pointer-events: none; filter: blur(80px); }
.bg-blob-1 { width: 500px; height: 500px; background: var(--primary); top: -150px; right: -150px; }
.bg-blob-2 { width: 400px; height: 400px; background: var(--sky); bottom: -100px; left: -100px; }
.bg-blob-3 { width: 300px; height: 300px; background: var(--amber); top: 40%; left: 40%; }

.icon-xxs { width: 12px; height: 12px; stroke-width: 2.5; }
.icon-xs { width: 14px; height: 14px; stroke-width: 2; vertical-align: -2px; }
.icon-sm { width: 16px; height: 16px; stroke-width: 2; vertical-align: -3px; }
.icon-md { width: 22px; height: 22px; stroke-width: 2; }
.icon-lg { width: 48px; height: 48px; stroke-width: 1.5; }
.color-green { color: var(--green); }
.color-red { color: var(--red); }

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 48px 20px;
  position: relative;
  z-index: 1;
}

.header { text-align: center; margin-bottom: 48px; }

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--amber-bg);
  border: 1.5px solid #fcd34d;
  padding: 6px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #b45309;
  margin-bottom: 20px;
}

.header-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text) 0%, #555 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header-subtitle { font-size: 1.05rem; color: var(--text-muted); margin-bottom: 20px; }

.header-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.tag-amber { background: var(--amber-bg); color: #b45309; border: 1px solid #fde68a; }
.tag-green { background: var(--green-bg); color: #15803d; border: 1px solid #bbf7d0; }
.tag-sky { background: var(--sky-bg); color: #0369a1; border: 1px solid #bae6fd; }
.tag-purple { background: var(--purple-bg); color: #7e22ce; border: 1px solid #e9d5ff; }

.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 28px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1.5px dashed var(--border);
}
.card-header h2 { font-size: 1.25rem; font-weight: 700; }
.card-header-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }

.card-header-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}
.card-header-icon-sky { background: var(--sky-bg); color: var(--sky); }

.form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.form-input, .select-wrap {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 85, 61, 0.12);
}

.form-input::placeholder { color: #b0b0b0; font-weight: 400; }

.select-wrap {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.select-wrap .form-select {
  width: 100%;
  padding: 13px 40px 13px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.select-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-brutal);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0px var(--border);
}
.btn-primary:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0px var(--border);
}
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.features-info {
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.features-chips { display: flex; gap: 6px; flex-wrap: wrap; }

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.feature-chip-on { background: var(--green-bg); color: #15803d; border: 1px solid #bbf7d0; }
.feature-chip-off { background: #f3f4f6; color: #9ca3af; border: 1px solid #e5e7eb; }

.search-wrap {
  position: relative;
  margin-bottom: 20px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input { padding-left: 42px !important; }

.card-result { animation: fadeSlideUp 0.35s ease; }
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.card-success { background: var(--green-bg); border-color: #86efac; }
.card-error { background: var(--red-bg); border-color: #fca5a5; }

.result-header { display: flex; align-items: flex-start; gap: 14px; }
.result-header h3 { font-size: 1.15rem; font-weight: 700; }
.result-sub { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; }
.result-message { font-size: 0.9rem; color: #b91c1c; margin-top: 4px; line-height: 1.5; }

.result-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.result-icon-success { background: var(--green); color: #fff; }
.result-icon-error { background: var(--red); color: #fff; }

.result-grid {
  margin-top: 18px;
  display: flex; flex-direction: column;
  border: 1px solid #d1fae5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
}
.result-item:not(:last-child) { border-bottom: 1px solid #f0fdf4; }

.result-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13px; color: var(--text-muted);
}
.result-value { font-weight: 700; font-size: 15px; text-align: right; max-width: 60%; word-break: break-all; }
.result-value-highlight { font-size: 1.15rem; color: var(--primary); }
.mono { font-family: var(--mono); font-size: 13px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-sky { background: var(--sky-bg); color: #0369a1; border: 1px solid #bae6fd; }

.recharge-section { margin-top: 18px; padding-top: 16px; border-top: 1px solid #d1fae5; }
.recharge-title { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.recharge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.recharge-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; border: 1px solid; }
.recharge-available { background: var(--green-bg); border-color: #bbf7d0; }
.recharge-unavailable { background: #f9fafb; border-color: #e5e7eb; opacity: 0.65; }

.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.game-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  min-width: 0;
}
.game-item:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.game-item-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; gap: 8px; }
.game-number { font-weight: 800; font-size: 11px; background: var(--amber-bg); color: #b45309; border: 1px solid #fde68a; padding: 2px 8px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.game-provider { font-size: 10px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; word-break: break-all; text-align: right; line-height: 1.3; }

.game-name {
  font-size: 14px; font-weight: 700; margin-bottom: 10px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}

.game-meta { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.meta-badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; border: 1px solid; white-space: nowrap; }
.meta-zone { background: var(--purple-bg); color: #7e22ce; border-color: #e9d5ff; }
.meta-nick { background: var(--sky-bg); color: #0369a1; border-color: #bae6fd; }
.meta-region { background: var(--green-bg); color: #15803d; border-color: #bbf7d0; }
.meta-recharge { background: var(--pink-bg); color: #be185d; border-color: #fbcfe8; }

.game-endpoint { font-size: 11px; color: #b0b0b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.no-results { text-align: center; padding: 40px 20px; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.no-results p { font-size: 16px; font-weight: 600; }

.pagination-wrap {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1.5px dashed var(--border);
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.pg-btn:hover:not(.pg-disabled):not(.pg-active) { border-color: var(--primary); color: var(--primary); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.pg-btn.pg-active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-md); }
.pg-btn.pg-disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pg-num { min-width: 36px; justify-content: center; padding: 7px 10px; }
.pg-ellipsis { font-size: 13px; color: var(--text-muted); padding: 0 2px; }
.pg-info { font-size: 12px; color: var(--text-muted); font-weight: 500; margin-left: 8px; white-space: nowrap; }

.footer { text-align: center; padding: 36px 0 20px; font-size: 14px; color: var(--text-muted); }

@media (max-width: 768px) {
  .container { padding: 32px 16px; }
  .card { padding: 22px 18px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .container { padding: 24px 14px; }
  .card { padding: 20px 16px; border-radius: var(--radius-md); }
  .game-grid { grid-template-columns: 1fr; }
  .game-item { padding: 14px; }
  .result-item { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .result-value { text-align: left; max-width: 100%; }
  .header-title { font-size: 1.8rem; }
  .header-subtitle { font-size: 0.92rem; }
  .recharge-grid { grid-template-columns: 1fr; }
  .bg-blob { display: none; }
  .pg-btn { padding: 6px 10px; font-size: 12px; }
  .pg-num { min-width: 32px; padding: 6px 8px; }
  .pg-info { margin-left: 0; margin-top: 6px; width: 100%; text-align: center; }
  .pagination-wrap { gap: 4px; }
}

::selection { background: #fecaca; color: var(--text); }

/* ═══════════════════════════════════════════
   OVO STYLES
   ═══════════════════════════════════════════ */

.ovo-badge { background: var(--purple-bg); border-color: #e9d5ff; color: #7e22ce; }

.ovo-steps {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 32px; padding: 16px 20px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.ovo-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 12px;
  font-size: 11px; font-weight: 600; color: var(--text-muted); transition: all 0.3s;
}
.ovo-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f3f4f6; border: 2px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--text-muted); transition: all 0.3s;
}
.ovo-step.active .ovo-step-num { background: var(--purple); color: #fff; border-color: var(--purple); }
.ovo-step.active { color: #7e22ce; }
.ovo-step.done .ovo-step-num { background: var(--green); color: #fff; border-color: var(--green); }
.ovo-step.done { color: var(--green); }
.ovo-step-line { width: 32px; height: 2px; background: var(--border); border-radius: 1px; margin: 0 4px; margin-bottom: 18px; }

.ovo-card { transition: all 0.3s ease; }
.card-header-icon-purple { background: var(--purple-bg); color: #7e22ce; }
.card-header-icon-green { background: var(--green-bg); color: #15803d; }

.input-prefix-wrap { display: flex; align-items: center; gap: 0; }
.input-prefix {
  padding: 10px 14px; background: var(--purple-bg); border: 1.5px solid #e9d5ff;
  border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-weight: 700; font-size: 14px; color: #7e22ce; white-space: nowrap;
}
.input-with-prefix { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.otp-input {
  font-family: var(--mono); font-size: 24px; font-weight: 700;
  text-align: center; letter-spacing: 8px; padding: 14px;
}
.otp-phone-label {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--sky-bg); border: 1px solid #bae6fd; border-radius: var(--radius-sm);
  font-size: 13px; color: #0369a1; margin-bottom: 16px; font-weight: 600;
}

.btn { cursor: pointer; border: none; font-family: var(--font); font-weight: 700; }
.btn-primary {
  width: 100%; padding: 14px 24px; background: var(--purple); color: #fff;
  border-radius: var(--radius-md); font-size: 15px; box-shadow: var(--shadow-brutal);
  transition: all 0.15s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:hover:not(:disabled) { background: #9333ea; transform: translateY(-2px); box-shadow: 5px 5px 0px var(--border); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-loading { display: inline-flex; align-items: center; gap: 6px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-outline {
  background: var(--surface); border: 1.5px solid var(--border); color: var(--text);
  display: inline-flex; align-items: center; gap: 6px; font-family: var(--font);
  font-weight: 600; transition: all 0.15s; cursor: pointer; font-size: 13px;
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.ovo-balance-wrap { margin-top: 16px; }
.ovo-balance-loading, .ovo-balance-error, .ovo-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; color: var(--text-muted); font-size: 14px; font-weight: 600;
  flex-direction: column;
}
.ovo-balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ovo-balance-item { padding: 18px 16px; border-radius: var(--radius-md); border: 1.5px solid; }
.ovo-balance-cash { background: var(--purple-bg); border-color: #e9d5ff; }
.ovo-balance-points { background: var(--amber-bg); border-color: #fde68a; }
.ovo-balance-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.ovo-balance-cash .ovo-balance-label { color: #7e22ce; }
.ovo-balance-points .ovo-balance-label { color: #b45309; }
.ovo-balance-amount { font-size: 20px; font-weight: 800; color: var(--text); font-family: var(--mono); }

.ovo-mutasi-list { margin-top: 12px; }
.ovo-mutasi-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.ovo-mutasi-item:last-child { border-bottom: none; }
.ovo-mutasi-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ovo-mutasi-in { background: var(--green-bg); color: var(--green); }
.ovo-mutasi-out { background: var(--red-bg); color: var(--red); }
.ovo-mutasi-info { flex: 1; min-width: 0; }
.ovo-mutasi-type { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ovo-mutasi-merchant { color: var(--text-muted); font-weight: 400; }
.ovo-mutasi-date { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.ovo-mutasi-status { font-weight: 600; color: var(--green); }
.ovo-mutasi-amount { font-family: var(--mono); font-size: 13px; font-weight: 700; white-space: nowrap; }
.ovo-amount-in { color: var(--green); }
.ovo-amount-out { color: var(--red); }
.ovo-loading { display: flex; justify-content: center; padding: 32px; }

.ovo-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; padding: 12px 20px;
  background: var(--red-bg); border: 1.5px solid #fca5a5; border-radius: var(--radius-md);
  color: #b91c1c; font-weight: 600; font-size: 13px; z-index: 100;
  box-shadow: var(--shadow-lg); animation: toastIn 0.3s ease;
}
.ovo-toast-success { background: var(--green-bg); border-color: #bbf7d0; color: #15803d; }
@keyframes toastIn { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

@media (max-width: 540px) {
  .ovo-steps { padding: 12px 10px; }
  .ovo-step { padding: 0 6px; font-size: 10px; }
  .ovo-step-num { width: 24px; height: 24px; font-size: 11px; }
  .ovo-step-line { width: 16px; margin-bottom: 16px; }
  .ovo-balance-grid { grid-template-columns: 1fr; }
  .ovo-balance-amount { font-size: 16px; }
  .otp-input { font-size: 20px; letter-spacing: 6px; }
  .ovo-mutasi-item { gap: 8px; }
}
