/* StarsHub v4 — style.css */
:root {
  --bg: #080c14;
  --surface: #0e1623;
  --surface2: #141e30;
  --border: rgba(255, 255, 255, 0.07);
  --star: #f7c843;
  --star-dim: rgba(247, 200, 67, 0.13);
  --star-glow: rgba(247, 200, 67, 0.3);
  --accent: #3b82f6;
  --accent-dim: rgba(59, 130, 246, 0.12);
  --success: #22c55e;
  --danger: #ef4444;
  --warn: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 20% 10%,
      rgba(247, 200, 67, 0.05),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 80% 80%,
      rgba(59, 130, 246, 0.06),
      transparent 60%
    );
  pointer-events: none;
  z-index: 0;
}
.stars-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.stars-bg span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--star);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--d, 4s) var(--delay, 0s) infinite;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: var(--op, 0.6);
    transform: scale(1.5);
  }
}
#maintenance {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
}
#maintenance h2 {
  font-size: 1.8rem;
  color: var(--star);
}
nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.88);
  backdrop-filter: blur(14px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--star);
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 0.73rem;
  padding: 5px 9px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s;
}
.lang-btn:hover {
  border-color: var(--star);
  color: var(--star);
}
.nav-auth {
  display: flex;
  gap: 8px;
  align-items: center;
}
.btn-sm {
  font-size: 0.78rem;
  padding: 6px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  font-weight: 500;
  background: transparent;
}
.btn-sm.outline {
  color: var(--text-dim);
}
.btn-sm.outline:hover {
  border-color: var(--star);
  color: var(--star);
}
.btn-sm.filled {
  background: var(--star);
  color: #1a0d00;
  border-color: var(--star);
}
.btn-sm.filled:hover {
  opacity: 0.88;
}
#userGreeting {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-dim);
}
#userGreeting strong {
  color: var(--star);
}
.btn-channel {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--accent);
  background: rgba(59, 130, 246, 0.08);
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-channel:hover {
  background: rgba(59, 130, 246, 0.18);
  border-color: var(--accent);
}
.wrapper {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 20px 80px;
}
header {
  text-align: center;
  padding: 44px 0 36px;
}
#twaWelcome {
  display: none;
  text-align: center;
  font-size: 0.88rem;
  color: var(--star);
  margin-bottom: 10px;
  font-weight: 500;
}
.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--star-dim);
  border: 1px solid rgba(247, 200, 67, 0.25);
  border-radius: 50px;
  padding: 5px 16px 5px 10px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  color: var(--star);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  animation: fadeDown 0.6s var(--ease) both;
}
h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  animation: fadeDown 0.7s var(--ease) 0.1s both;
}
h1 span {
  background: linear-gradient(135deg, var(--star), #fb923c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.subtitle {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 0.92rem;
  max-width: 460px;
  margin-inline: auto;
  animation: fadeDown 0.7s var(--ease) 0.2s both;
}
.member-badge {
  display: none;
  background: var(--star-dim);
  border: 1px solid rgba(247, 200, 67, 0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.74rem;
  color: var(--star);
  text-align: center;
  margin-bottom: 14px;
}
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  animation: fadeDown 0.7s var(--ease) 0.3s both;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  color: var(--text-dim);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 4px 11px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 5px var(--success);
}
.live-sales {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
  font-size: 0.77rem;
  color: var(--text-muted);
}
.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse-anim 1.5s ease infinite;
}
@keyframes pulse-anim {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
  }
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-muted);
  font-weight: 600;
}
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}
.box:focus-within {
  border-color: rgba(59, 130, 246, 0.35);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field:last-child {
  margin-bottom: 0;
}
.field label {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-weight: 500;
}
input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"] {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  padding: 11px 14px;
  outline: none;
  width: 100%;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}
#accountPreview {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(34, 197, 94, 0.07);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 8px;
}
.preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--success);
  flex-shrink: 0;
}
.preview-info {
  flex: 1;
  min-width: 0;
}
.preview-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}
.preview-username {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.preview-verified {
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}
#accountError {
  display: none;
  font-size: 0.76rem;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-top: 8px;
}
.pay-method-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.pay-method-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 12px 10px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.pay-method-btn:hover {
  border-color: rgba(247, 200, 67, 0.4);
  color: var(--text);
}
.pay-method-btn.active {
  background: var(--star-dim);
  border-color: var(--star);
  color: var(--star);
  box-shadow: 0 0 0 1px var(--star);
}
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px 16px;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    border-color 0.2s,
    box-shadow 0.2s;
  animation: fadeUp 0.5s var(--ease) var(--delay, 0s) both;
  text-align: center;
  user-select: none;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(247, 200, 67, 0.4);
  box-shadow: 0 6px 22px rgba(247, 200, 67, 0.08);
}
.card.selected {
  border-color: var(--star);
  background: linear-gradient(145deg, #12192b, #0f1925);
  box-shadow:
    0 0 0 1px var(--star),
    0 6px 22px var(--star-glow);
}
.card.best {
  animation:
    fadeUp 0.5s var(--ease) 0.25s both,
    bestPulse 3s ease 1s infinite;
}
@keyframes bestPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(247, 200, 67, 0);
  }
  50% {
    box-shadow: 0 0 16px 2px rgba(247, 200, 67, 0.16);
  }
}
.best-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--star), #fb923c);
  color: #1a0d00;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: 2px 10px;
  white-space: nowrap;
}
.card-stars {
  font-family: "Space Mono", monospace;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--star);
  line-height: 1;
}
.card-label {
  font-size: 0.66rem;
  color: var(--text-muted);
  margin-top: 3px;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.card-price {
  font-family: "Space Mono", monospace;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.card-price span {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 400;
}
.custom-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: flex-end;
}
.live-price-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  min-width: 100px;
  text-align: center;
  font-family: "Space Mono", monospace;
  white-space: nowrap;
}
.live-price-box .amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--star);
}
.live-price-box .currency {
  font-size: 0.66rem;
  color: var(--text-muted);
}
.summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}
.summary-item {
  display: flex;
  flex-direction: column;
}
.summary-item .key {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.summary-item .val {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.summary-item .val.gold {
  color: var(--star);
  font-size: 1.2rem;
}
.email-hint {
  font-size: 0.73rem;
  color: var(--text-dim);
  background: linear-gradient(
    135deg,
    rgba(247, 200, 67, 0.06),
    rgba(59, 130, 246, 0.06)
  );
  border: 1px solid rgba(247, 200, 67, 0.18);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin-bottom: 9px;
  line-height: 1.5;
}
.email-hint strong {
  color: var(--star);
}
.guest-only {
  display: block;
}
.logged-in .guest-only {
  display: none !important;
}
#tonUI {
  display: none;
}
#tonDetails {
  display: none;
}
.ton-section-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.ton-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 10px;
  gap: 8px;
}
.ton-value {
  font-family: "Space Mono", monospace;
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}
.ton-comment-value {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  color: var(--star);
}
.copy-icon-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  font-size: 0.7rem;
  padding: 5px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
  font-family: inherit;
}
.copy-icon-btn:hover {
  border-color: var(--star);
  color: var(--star);
}
.ton-timer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding: 0 2px;
}
#tonTimer {
  font-family: "Space Mono", monospace;
  font-size: 0.9rem;
  color: var(--warn);
  font-weight: 700;
}
.ton-warning-box {
  font-size: 0.73rem;
  color: var(--warn);
  background: rgba(245, 158, 11, 0.07);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  margin-bottom: 12px;
  line-height: 1.5;
}
.ton-status {
  display: none;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  font-weight: 500;
}
.ton-status.show {
  display: block;
}
.ton-status--waiting {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--accent);
}
.ton-status--success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: var(--success);
}
.ton-status--warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--warn);
}
.ton-status--expired,
.ton-status--error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--danger);
}
.pay-btn,
.full-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--star), #fb923c);
  color: #1a0d00;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  font-weight: 700;
  padding: 13px 20px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.pay-btn:hover,
.full-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.pay-btn:disabled,
.full-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}
.action-btn {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 11px 20px;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.action-btn:hover {
  border-color: var(--star);
  color: var(--star);
}
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.22);
  border-top-color: #1a0d00;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
.pay-btn.loading .btn-spinner,
.full-btn.loading .btn-spinner {
  display: block;
}
.pay-btn.loading .btn-text,
.full-btn.loading .btn-label {
  opacity: 0.5;
}
.security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 10px;
  font-size: 0.71rem;
  color: var(--text-muted);
}
.lock-icon {
  color: var(--success);
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay.open {
  display: flex;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  width: 100%;
  max-width: 390px;
  animation: fadeUp 0.3s var(--ease) both;
  position: relative;
}
.modal h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 5px;
}
.modal p.sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.modal-close {
  position: absolute;
  top: 12px;
  left: 14px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}
[dir="ltr"] .modal-close {
  left: auto;
  right: 14px;
}
.modal-footer {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}
.modal-footer a {
  color: var(--star);
  cursor: pointer;
  text-decoration: none;
}
.error-msg {
  font-size: 0.75rem;
  color: var(--danger);
  margin-top: 5px;
  display: none;
}
.ref-note {
  font-size: 0.73rem;
  background: var(--star-dim);
  border: 1px solid rgba(247, 200, 67, 0.2);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--star);
  margin-bottom: 12px;
  display: none;
}
.toast-wrap {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--text);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.4);
  animation:
    toastIn 0.3s var(--ease) both,
    toastOut 0.3s var(--ease) 3.5s both;
}
.toast.success {
  border-color: rgba(34, 197, 94, 0.4);
}
.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
}
.support-btn {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
  transition: transform 0.2s;
}
.support-btn:hover {
  transform: scale(1.1);
}
footer {
  text-align: center;
  padding: 32px 0 14px;
  color: var(--text-muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
/* Recent Orders */
.ro-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  align-items: center;
}
.ro-filter-btn,
.ro-sort-btn {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  cursor: pointer;
  transition: all 0.18s;
  white-space: nowrap;
}
.ro-filter-btn:hover,
.ro-sort-btn:hover {
  border-color: var(--star);
  color: var(--star);
}
.ro-filter-btn.active,
.ro-sort-btn.active {
  background: var(--star-dim);
  border-color: var(--star);
  color: var(--star);
}
.ro-divider {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 2px;
}
.ro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.ro-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  animation: fadeUp 0.35s var(--ease) both;
  transition: border-color 0.2s;
}
.ro-card:hover {
  border-color: rgba(247, 200, 67, 0.3);
}
.ro-user {
  font-family: "Space Mono", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ro-stars {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--star);
  font-family: "Space Mono", monospace;
}
.ro-price {
  font-size: 0.78rem;
  color: var(--text-dim);
}
.ro-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}
.ro-time {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.ro-status {
  font-size: 0.7rem;
  color: var(--success);
  margin-top: 2px;
}
/* Input with prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}
.input-prefix {
  position: absolute;
  left: 14px;
  color: var(--star);
  font-size: 1rem;
  font-weight: 700;
  pointer-events: none;
  z-index: 1;
}
.input-with-prefix input {
  padding-left: 32px;
}
/* @ hint */
.at-hint {
  font-size: 0.73rem;
  color: var(--warn);
  margin-top: 6px;
  padding: 4px 8px;
  animation: fadeDown 0.2s var(--ease);
}
/* Styled select */
.styled-select {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 0.93rem;
  padding: 12px 14px;
  outline: none;
  cursor: pointer;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.styled-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.styled-select option {
  background: var(--surface);
  color: var(--text);
  padding: 8px;
}
/* Divider */
.divider-or {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
  position: relative;
}
.divider-or::before,
.divider-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border);
}
.divider-or::before {
  left: 0;
}
.divider-or::after {
  right: 0;
}
/* Animations */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-13px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 500px) {
  nav {
    padding: 12px 14px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .nav-right {
    justify-content: center;
    gap: 6px;
  }
  .wrapper {
    padding: 0 14px 70px;
  }
  .pay-method-group {
    grid-template-columns: 1fr 1fr;
  }
  .summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .custom-row {
    grid-template-columns: 1fr;
  }
  .ro-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .btn-channel span.ch-label {
    display: none;
  }
  .btn-sm {
    padding: 6px 10px;
    font-size: 0.7rem;
  }
}
