:root {
  --bg: #070707;
  --bg-secondary: #0e0e0e;
  --card: #121212;
  --card-hover: #181818;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --muted: #8f8f8f;
  --text: #ffffff;
  --accent1: #ffffff;
  --accent2: #c7c7c7;
  --accent3: #8a8a8a;
  --success: #22c55e;
  --warning: #f5b731;
  --error: #ef4444;
  --info: #60a5fa;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-pill: 999px;
  --max-width: 1280px;
  --fs: 'Inter', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fd: 'Space Grotesk', 'Cairo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fm: 'JetBrains Mono', 'Cairo', 'SFMono-Regular', Consolas, monospace;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 40px rgba(255, 255, 255, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: all 0.45s var(--ease);
  --gradient-primary: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
  --gradient-text: linear-gradient(180deg, #ffffff 0%, #b5b5b5 100%);
  --gradient-muted: linear-gradient(180deg, #9a9a9a 0%, #4d4d4d 100%);
  --input-bg: rgba(0, 0, 0, 0.35);
  --surface: linear-gradient(180deg, #161616, #0f0f0f);
}

body.light {
  --bg: #f5f5fa;
  --bg-secondary: #ffffff;
  --card: #ffffff;
  --card-hover: #f8f8fc;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --muted: #6b7280;
  --text: #1a1a2e;
  --accent1: #4749e0;
  --accent2: #6366f1;
  --accent3: #3730a3;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 40px rgba(71, 73, 224, 0.2);
  --gradient-primary: linear-gradient(135deg, #4749e0, #6366f1);
  --gradient-text: linear-gradient(180deg, #1a1a2e 0%, #4749e0 100%);
  --gradient-muted: linear-gradient(180deg, #9ca3af 0%, #6b7280 100%);
  --input-bg: #f8f8fc;
  --surface: #ffffff;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  font-family: var(--fs);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
  scrollbar-color: #3a3a3a var(--bg);
  min-height: 100vh;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: rgba(255, 255, 255, 0.85);
  color: #000;
}

[hidden] {
  display: none !important;
}

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.3px 1.3px at 8% 12%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1px 1px at 22% 38%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 37% 6%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 52% 27%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.3px 1.3px at 68% 15%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1px 1px at 81% 42%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.5px 1.5px at 93% 8%, rgba(255,255,255,0.65), transparent 60%),
    radial-gradient(1px 1px at 14% 63%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1.3px 1.3px at 29% 82%, rgba(255,255,255,0.75), transparent 60%),
    radial-gradient(1px 1px at 46% 68%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 61% 91%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(1px 1px at 77% 74%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1.3px 1.3px at 90% 88%, rgba(255,255,255,0.8), transparent 60%);
  background-size: 380px 380px;
  opacity: 0.55;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.14;
  -webkit-mask-image: radial-gradient(circle, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle, #000 0%, transparent 70%);
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: var(--gradient-primary);
  top: -260px;
  left: -200px;
}

.orb-2 {
  width: 520px;
  height: 520px;
  background: linear-gradient(135deg, #8a8a8a, #c7c7c7);
  bottom: -160px;
  right: -160px;
}

body.light .grid-overlay,
body.light .noise { opacity: 0; }
body.light .grid-lines { filter: invert(1); }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 24px;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.topbar.scrolled,
.topbar.solid {
  padding: 10px 24px;
  background: rgba(7, 7, 7, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

body.light .topbar.scrolled,
body.light .topbar.solid {
  background: rgba(245, 245, 250, 0.8);
}

.topbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: transform 0.4s var(--ease);
}

.logo-section:hover {
  transform: translateY(-2px);
}

.logo-img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.brand {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-accent {
  color: var(--muted);
}

.brand-tag {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 2px 8px;
  margin-inline-start: 2px;
}

.nav-links {
  display: flex;
  gap: 2px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-pill);
  padding: 5px;
}

body.light .nav-links {
  background: rgba(255, 255, 255, 0.7);
}

.nav-btn {
  padding: 9px 18px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease;
}

.nav-btn:hover {
  color: var(--text);
}

.nav-btn.active {
  color: var(--bg);
  background: var(--text);
}

.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--gradient-primary);
  color: #000;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.3s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  white-space: nowrap;
}

body.light .btn-primary {
  color: #fff;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
  z-index: -1;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, var(--shadow-glow);
}

.btn-primary:hover:not(:disabled)::before {
  transform: translateX(120%);
}

.btn-primary:disabled,
.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn-danger {
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.4);
}

.btn-danger:hover:not(:disabled) {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.08);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-large {
  padding: 17px 32px;
  font-size: 16px;
  gap: 12px;
}

.btn-block {
  width: 100%;
}

.spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.25); }
}

.hero {
  position: relative;
  padding: 170px 24px 40px;
}

.hero-inner {
  max-width: calc(var(--max-width) - 48px);
  margin: 0 auto;
}

.hero-kanji {
  position: absolute;
  top: 40px;
  inset-inline-end: -2vw;
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: min(44vw, 620px);
  line-height: 1;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 70%);
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  user-select: none;
  z-index: -1;
}

body.light .hero-kanji {
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.06);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 28px;
  animation: fadeInUp 0.9s var(--ease) both;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-family: var(--fd);
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: 28px;
  animation: fadeInUp 0.9s var(--ease) 0.1s both;
}

.hero-line {
  display: block;
  background: var(--gradient-muted);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}

.hero-line.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  animation: fadeInUp 0.9s var(--ease) 0.2s both;
}

.hero-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  animation: fadeInUp 0.9s var(--ease) 0.3s both;
}

.section {
  max-width: var(--max-width);
  margin: 80px auto 0;
  padding: 0 24px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.section-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.section-badge::after {
  content: '';
  width: 56px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

.section-title {
  font-family: var(--fd);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.muted-word {
  background: var(--gradient-muted);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-description {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
}

.store-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.toolbar-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
}

.search-wrap svg {
  position: absolute;
  inset-inline-start: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-wrap .form-input {
  padding-inline-start: 44px;
  width: 260px;
  border-radius: var(--radius-pill);
}

.select-pill {
  border-radius: var(--radius-pill) !important;
  width: auto !important;
  padding-inline-end: 36px !important;
}

.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.offer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  text-align: start;
  color: inherit;
  font: inherit;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
  animation: fadeInUp 0.7s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}

.offer-card:hover,
.offer-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
  outline: none;
}

.offer-card.flash {
  animation: flash 1.6s var(--ease);
}

@keyframes flash {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
  100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

.offer-image-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b0b0b;
}

.offer-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.9s var(--ease), filter 0.9s var(--ease);
}

.offer-card:hover .offer-image {
  transform: scale(1.06);
  filter: saturate(1.05);
}

.offer-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Noto Serif JP', 'Yu Mincho', serif;
  font-size: 72px;
  color: rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 30% 20%, #1c1c1c, #0b0b0b);
}

.offer-price-chip {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  font-family: var(--fd);
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}

.offer-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.offer-title {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.offer-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.seller {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent2);
  min-width: 0;
}

.seller-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  font-family: var(--fd);
  font-weight: 700;
  font-size: 11px;
  flex-shrink: 0;
}

.seller-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.method-dots {
  display: flex;
  gap: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent2);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--m, var(--muted));
}

.m-paypal { --m: #3b82f6; }
.m-binance { --m: #c08a00; }
.m-vodafone_cash { --m: #e60000; }
.m-instapay { --m: #a855f7; }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
}

.empty-state strong {
  display: block;
  font-family: var(--fd);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 6px;
}

.skeleton {
  background: linear-gradient(90deg, var(--card) 0%, var(--card-hover) 50%, var(--card) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  min-height: 340px;
}

@keyframes shimmer {
  to { background-position: -200% 0; }
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.step-card {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.step-title {
  font-family: var(--fd);
  font-size: 20px;
  font-weight: 600;
  margin: 10px 0 6px;
}

.step-text {
  color: var(--muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-label {
  display: block;
  font-family: var(--fm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 8px;
}

.form-hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 13px 16px;
  background: var(--input-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238f8f8f' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-secondary);
  color: var(--text);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #5a5a5a;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: #f76b4f;
  font-size: 13px;
  margin-top: 10px;
  min-height: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  flex-wrap: wrap;
}

.method-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.method-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.method-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.method-option:hover {
  border-color: var(--text);
}

.method-option:has(input:checked) {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.method-option:has(input:focus-visible) {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.method-option:has(input:disabled) {
  opacity: 0.4;
  cursor: not-allowed;
}

.method-swatch {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--m) 18%, transparent);
  color: var(--m);
  font-family: var(--fd);
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

.method-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.method-name {
  font-weight: 600;
  font-size: 14px;
}

.method-sub {
  font-size: 12px;
  color: var(--muted);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal.show {
  display: flex;
  animation: modalFade 0.3s ease both;
}

@keyframes modalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: var(--surface);
  border-radius: 28px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  position: relative;
  animation: modalPop 0.5s var(--ease) both;
}

.modal-wide {
  max-width: 980px;
  padding: 0;
}

@keyframes modalPop {
  from { transform: scale(0.94) translateY(24px); }
  to { transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  z-index: 3;
}

.modal-close:hover {
  transform: rotate(90deg);
}

.modal-title {
  font-family: var(--fd);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}

.modal-sub {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.offer-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.offer-detail-media {
  background: #0b0b0b;
  min-height: 100%;
  position: relative;
}

.offer-detail-media img,
.offer-detail-media .offer-image-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.offer-detail-info {
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.offer-detail-price {
  font-family: var(--fd);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.offer-detail-desc {
  color: var(--muted);
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checkout-panel {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.conversion-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.pay-box {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.pay-row span:first-child {
  color: var(--muted);
}

.pay-row strong {
  font-family: var(--fm);
  font-size: 15px;
  overflow-wrap: anywhere;
  text-align: end;
}

.copy-btn {
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  border-radius: var(--radius-pill);
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  margin-inline-start: 8px;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--text);
}

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(18, 18, 18, 0.92);
  color: var(--text);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(16px);
  z-index: 2000;
  opacity: 0;
  transition: var(--transition);
  font-weight: 500;
  font-size: 14px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}

body.light .toast {
  background: #fff;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast.success { border-color: rgba(34, 197, 94, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.6); }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid color-mix(in srgb, var(--s) 45%, transparent);
  color: var(--s);
  background: color-mix(in srgb, var(--s) 10%, transparent);
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s);
}

.s-pending { --s: var(--muted); }
.s-awaiting_verification { --s: var(--warning); }
.s-paid { --s: var(--success); }
.s-in_progress { --s: var(--info); }
.s-completed { --s: var(--success); }
.s-failed,
.s-rejected { --s: var(--error); }
.s-cancelled { --s: var(--muted); }

.footer {
  position: relative;
  padding: 70px 24px 32px;
  margin-top: 140px;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.footer-tagline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  max-width: 300px;
}

.footer-columns {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col-title {
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-wordmark {
  max-width: var(--max-width);
  margin: 12px auto 0;
  font-family: var(--fd);
  font-weight: 700;
  font-size: clamp(80px, 19vw, 280px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

body.light .footer-wordmark {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0) 85%);
  -webkit-background-clip: text;
  background-clip: text;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.center-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 16px 60px;
}

.panel-card {
  width: 100%;
  max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s var(--ease) both;
}

.order-amount {
  font-family: var(--fd);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 18px 0 6px;
}

.timeline {
  list-style: none;
  margin: 28px 0;
  display: grid;
  gap: 0;
}

.timeline li {
  position: relative;
  padding-bottom: 22px;
  padding-inline-start: 32px;
  color: var(--muted);
  font-size: 14px;
}

.timeline li::before {
  content: '';
  position: absolute;
  inset-inline-start: 6px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg);
}

.timeline li::after {
  content: '';
  position: absolute;
  inset-inline-start: 11px;
  top: 20px;
  bottom: 2px;
  width: 1px;
  background: var(--line-strong);
}

.timeline li:last-child::after {
  display: none;
}

.timeline li.done {
  color: var(--text);
}

.timeline li.done::before {
  background: var(--success);
  border-color: var(--success);
  box-shadow: 0 0 10px var(--success);
}

.timeline li.current::before {
  border-color: var(--text);
  animation: pulse 2s ease-in-out infinite;
}

.timeline strong {
  display: block;
  font-weight: 600;
}

.dash {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 28px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 60px;
}

.dash-nav {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-user {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  margin-bottom: 14px;
}

.dash-user-name {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-tag {
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.dash-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-align: start;
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.dash-tab:hover {
  color: var(--text);
}

.dash-tab.active {
  color: var(--text);
  background: var(--card);
  border-color: var(--line-strong);
}

.dash-tab .count {
  margin-inline-start: auto;
  font-family: var(--fm);
  font-size: 11px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--warning);
  color: #000;
}

.dash-main {
  min-width: 0;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.dash-title {
  font-family: var(--fd);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dash-sub {
  color: var(--muted);
  font-size: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card + .card {
  margin-top: 20px;
}

.card-title {
  font-family: var(--fd);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat-tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.stat-label {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-value {
  font-family: var(--fd);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.table th {
  text-align: start;
  font-family: var(--fm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: none;
}

.table .num {
  text-align: end;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table .sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.table tr.new-row td {
  animation: rowFlash 2s var(--ease);
}

@keyframes rowFlash {
  from { background: rgba(255, 255, 255, 0.08); }
  to { background: transparent; }
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 90px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.bar-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  display: block;
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

body.light .bar-track {
  background: rgba(0, 0, 0, 0.05);
}

.bar-fill {
  display: block;
  height: 100%;
  border-radius: 0 4px 4px 0;
  background: var(--m, var(--text));
  transition: width 0.8s var(--ease);
}

.bar-value {
  text-align: end;
  font-variant-numeric: tabular-nums;
  font-family: var(--fm);
  font-size: 13px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.two-col .card + .card {
  margin-top: 0;
}

.my-offers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.my-offer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.my-offer.inactive {
  opacity: 0.55;
}

.my-offer .offer-image-wrap {
  aspect-ratio: 16 / 9;
}

.my-offer-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.my-offer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.my-offer-title {
  font-family: var(--fd);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.3;
}

.my-offer-price {
  font-family: var(--fd);
  font-weight: 700;
  white-space: nowrap;
}

.my-offer-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
  flex-wrap: wrap;
}

.image-drop {
  position: relative;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  overflow: hidden;
  background: var(--input-bg);
  transition: border-color 0.3s ease;
}

.image-drop:hover,
.image-drop.dragover {
  border-color: var(--text);
}

.image-drop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-drop input {
  display: none;
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
}

.switch input {
  appearance: none;
  width: 40px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--line-strong);
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.switch input::after {
  content: '';
  position: absolute;
  top: 3px;
  inset-inline-start: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s var(--ease);
}

.switch input:checked {
  background: var(--success);
}

.switch input:checked::after {
  transform: translateX(18px);
}

.filter-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-pill:hover {
  color: var(--text);
}

.filter-pill.active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.notice {
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--warning) 40%, transparent);
  background: color-mix(in srgb, var(--warning) 8%, transparent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 20px;
}

.muted {
  color: var(--muted);
}

.mono {
  font-family: var(--fm);
}

@media (max-width: 1100px) {
  .offers-grid,
  .my-offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .offer-detail {
    grid-template-columns: 1fr;
  }

  .offer-detail-media img,
  .offer-detail-media .offer-image-fallback {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .dash {
    grid-template-columns: 1fr;
    padding-top: 90px;
  }

  .dash-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 4px;
  }

  .dash-user {
    display: none;
  }

  .dash-tab {
    white-space: nowrap;
  }

  .two-col,
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar,
  .topbar.scrolled,
  .topbar.solid {
    padding: 10px 16px;
  }

  .brand-tag,
  .hide-sm {
    display: none;
  }

  .hero {
    padding: 120px 16px 20px;
  }

  .section {
    padding: 0 16px;
    margin-top: 56px;
  }

  .offers-grid,
  .my-offers-grid,
  .method-picker,
  .check-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .search-wrap,
  .search-wrap .form-input,
  .toolbar-controls {
    width: 100%;
  }

  .toolbar-controls .form-select {
    flex: 1;
  }

  .modal {
    padding: 0;
    align-items: flex-end;
  }

  .modal-content {
    border-radius: 24px 24px 0 0;
    max-height: 94vh;
    padding: 28px 20px;
  }

  .modal-wide {
    padding: 0;
  }

  .offer-detail-info {
    padding: 24px 20px 28px;
  }

  .panel-card {
    padding: 28px 20px;
  }

  .dash {
    padding: 80px 16px 40px;
  }

  .card {
    padding: 18px;
  }

  .table-wrap {
    margin: 0 -18px;
    padding: 0 18px;
  }

  .stat-value {
    font-size: 24px;
  }

  .bar-row {
    grid-template-columns: 90px minmax(0, 1fr) 70px;
  }

  .footer {
    padding: 56px 16px 28px;
  }

  .footer-columns {
    gap: 40px;
  }
}

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

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.legal h1 {
  font-family: var(--fd);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 10px;
}

.legal h2 {
  font-family: var(--fd);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin: 40px 0 12px;
}

.legal p,
.legal ul {
  margin-bottom: 16px;
}

.legal ul {
  padding-inline-start: 22px;
}

.legal a {
  color: var(--accent2);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.checkout-terms {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

.checkout-terms a {
  color: var(--accent2);
}

@media (max-width: 640px) {
  .legal {
    padding: 110px 16px 0;
  }
}

.footer-plain {
  font-size: 15px;
  opacity: 0.75;
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent2);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.auth-tabs {
  margin-bottom: 28px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  max-width: 180px;
}

.account-btn:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.account-btn .seller-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.account-btn .account-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.signin-hint {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
}

.signin-hint a {
  color: var(--text);
  font-weight: 600;
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}

.order-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.order-item-title {
  font-weight: 600;
}

.order-item-meta {
  font-size: 13px;
  color: var(--muted);
}

.order-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .account-btn .account-name {
    display: none;
  }

  .account-btn {
    padding: 4px;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-item-right {
    align-items: flex-start;
  }
}


.lang-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-family: 'Cairo', var(--fs);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.lang-btn:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

html.i18n-pending body {
  opacity: 0;
  animation: i18nReveal 0s linear 1.2s forwards;
}

@keyframes i18nReveal {
  to { opacity: 1; }
}

html[lang="ar"] body {
  line-height: 1.8;
}

html[lang="ar"] body * {
  letter-spacing: 0 !important;
}

html[lang="ar"] .hero-title,
html[lang="ar"] .section-title,
html[lang="ar"] .modal-title,
html[lang="ar"] .dash-title,
html[lang="ar"] .legal h1 {
  font-family: 'Cairo', var(--fd);
  font-weight: 800;
  line-height: 1.25;
}

html[lang="ar"] .hero-title {
  line-height: 1.2;
}

html[lang="ar"] .hero-line {
  padding-bottom: 0.12em;
}

[dir="rtl"] .section-badge::after {
  background: linear-gradient(270deg, var(--line-strong), transparent);
}

[dir="rtl"] .form-select {
  background-position: left 14px center;
}

[dir="rtl"] .bar-fill {
  border-radius: 4px 0 0 4px;
}

[dir="rtl"] .switch input:checked::after {
  transform: translateX(-18px);
}

[dir="rtl"] .btn-primary svg,
[dir="rtl"] .btn-cta svg {
  transform: scaleX(-1);
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
}

html[lang="ar"] [data-lang="en"],
html[lang="en"] [data-lang="ar"] {
  display: none !important;
}

.legal-note a {
  color: var(--accent2);
}

html[lang="ar"] {
  --fm: 'Cairo', 'JetBrains Mono', monospace;
}

.offer-desc,
.offer-detail-desc {
  unicode-bidi: plaintext;
}

.price-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  gap: 8px;
}

.price-input-row + .conversion-note {
  margin-top: 6px;
  min-height: 1em;
}
