/* web3domain.app Design System — Deep Dark Web3 Aesthetic (Zero-Build) */
:root {
  --w3d-bg-base: #07090f;
  --w3d-bg-card: #0e1320;
  --w3d-bg-elevated: #151c2e;
}

html {
  scroll-behavior: smooth;
  background-color: #07090f;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

code, pre, .font-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[x-cloak] {
  display: none !important;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.htmx-indicator {
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease-in;
}
.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

.w3d-hero-glow {
  background:
    radial-gradient(680px circle at 50% 8%, rgba(99, 102, 241, 0.22), transparent 62%),
    radial-gradient(480px circle at 82% 28%, rgba(34, 211, 238, 0.12), transparent 60%),
    radial-gradient(420px circle at 18% 32%, rgba(139, 92, 246, 0.12), transparent 58%);
}

.w3d-search-glow {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 50px -14px rgba(99, 102, 241, 0.35),
    0 0 40px -10px rgba(34, 211, 238, 0.18);
}

.w3d-search-glow:focus-within {
  box-shadow:
    0 0 0 2px rgba(99, 102, 241, 0.55),
    0 20px 60px -12px rgba(99, 102, 241, 0.45),
    0 0 50px -10px rgba(34, 211, 238, 0.25);
}

/* Custom Range Slider */
input[type="range"].w3d-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.08);
  height: 6px;
  border-radius: 9999px;
}
input[type="range"].w3d-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  cursor: pointer;
  border: 2px solid #07090f;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

/* High-Visibility Clean Web3 Button System (Subtle Elevation, Zero Heavy Glow) */
.w3d-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 52%, #0891b2 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0, 0, 0, 0.32);
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}
.w3d-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.08);
  border-color: rgba(255, 255, 255, 0.34);
}
.w3d-btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.w3d-btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #ffffff !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: linear-gradient(135deg, #059669 0%, #0d9488 55%, #0284c7 100%);
  border: 1px solid rgba(110, 231, 183, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px rgba(0, 0, 0, 0.32);
  transition: transform 150ms ease, filter 150ms ease, border-color 150ms ease;
}
.w3d-btn-emerald:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: brightness(1.09);
  border-color: rgba(110, 231, 183, 0.48);
}

.w3d-btn-mint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: #f8fafc !important;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.32) 0%, rgba(8, 145, 178, 0.25) 100%);
  border: 1px solid rgba(56, 189, 248, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 4px rgba(0, 0, 0, 0.28);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.w3d-btn-mint:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #ffffff !important;
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 52%, #0891b2 100%);
  border-color: rgba(125, 211, 252, 0.6);
}

.w3d-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: #f1f5f9 !important;
  font-weight: 600;
  background: linear-gradient(180deg, rgba(30, 41, 66, 0.9) 0%, rgba(15, 23, 42, 0.96) 100%);
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}
.w3d-btn-secondary:hover:not(:disabled) {
  transform: translateY(-1px);
  color: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.52);
  background: linear-gradient(180deg, rgba(39, 53, 84, 0.96) 0%, rgba(21, 28, 46, 0.98) 100%);
}

.w3d-chip {
  display: inline-flex;
  align-items: center;
  color: #67e8f9;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(34, 211, 238, 0.28);
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.w3d-chip:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(103, 232, 249, 0.58);
  background: rgba(30, 41, 66, 0.95);
}

/* Dual-Rail Checkout Modal Segmented Tabs */
.w3d-rail-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
  padding: 0.25rem;
  border-radius: 0.85rem;
  background: #07090f;
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.w3d-rail-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.55rem 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}
.w3d-rail-tab:hover {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.04);
}
.w3d-rail-tab--active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.28) 0%, rgba(14, 165, 233, 0.16) 100%);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.w3d-rail-tab-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.01em;
}
.w3d-rail-tab--active .w3d-rail-tab-sub {
  color: #a5b4fc;
}

/* TLD Royalty Optional Add-On Checkbox Card */
.w3d-addon-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.w3d-addon-card--checked {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(79, 70, 229, 0.12) 100%);
  border-color: rgba(251, 191, 36, 0.42);
}
.w3d-addon-checkbox {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.1rem;
  accent-color: #f59e0b;
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================================
   Modern Clean Responsive Navbar (Mobile / Tablet / Desktop)
   ============================================================================ */
.w3d-nav-shell {
  display: none;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem;
  border-radius: 9999px;
  background: rgba(14, 19, 32, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
@media (min-width: 1024px) {
  .w3d-nav-shell {
    display: inline-flex;
  }
}
.w3d-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease;
}
.w3d-nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.w3d-nav-item--active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.34), rgba(8, 145, 178, 0.24));
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, 0.38);
}
.w3d-nav-actions-desktop {
  display: none;
  align-items: center;
  gap: 0.55rem;
}
@media (min-width: 1024px) {
  .w3d-nav-actions-desktop {
    display: inline-flex;
  }
}
.w3d-nav-mobile-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 1024px) {
  .w3d-nav-mobile-controls {
    display: none;
  }
}
.w3d-nav-wallet-chip {
  display: none;
}
@media (min-width: 1200px) {
  .w3d-nav-wallet-chip {
    display: inline-flex;
  }
}
.w3d-dropdown-panel {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 50%;
  transform: translateX(-50%);
  width: 16.5rem;
  padding: 0.45rem;
  border-radius: 1rem;
  background: rgba(14, 19, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(16px);
  z-index: 60;
}
.w3d-dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: background 140ms ease, color 140ms ease;
}
.w3d-dropdown-link:hover {
  background: rgba(99, 102, 241, 0.14);
  color: #ffffff;
}

/* ============================================================================
   Animated Domain Marketplace UI (Hero Orbs, Marquee, Clean Filters & Cards)
   ============================================================================ */
@keyframes w3dFloatOrb {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(18px, -14px, 0) scale(1.08);
  }
}
@keyframes w3dPulseRing {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(52, 211, 153, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}
@keyframes w3dCardIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes w3dMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.w3d-live-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: #34d399;
  display: inline-block;
  animation: w3dPulseRing 2.2s infinite;
}

.w3d-mkt-hero {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(145deg, rgba(14, 19, 32, 0.96) 0%, rgba(9, 13, 24, 0.98) 100%);
  padding: 2rem 1.5rem;
}
@media (min-width: 640px) {
  .w3d-mkt-hero {
    padding: 2.75rem 2.5rem;
  }
}
.w3d-mkt-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
  pointer-events: none;
  opacity: 0.42;
  animation: w3dFloatOrb 9s ease-in-out infinite;
}
.w3d-mkt-orb--indigo {
  width: 22rem;
  height: 22rem;
  top: -8rem;
  left: -5rem;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.6), transparent 70%);
}
.w3d-mkt-orb--emerald {
  width: 20rem;
  height: 20rem;
  bottom: -9rem;
  right: -4rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.45), transparent 70%);
  animation-delay: -4.5s;
}

.w3d-mkt-ticker {
  overflow: hidden;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(14, 19, 32, 0.72);
  padding: 0.65rem 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.w3d-mkt-ticker-track {
  display: flex;
  width: max-content;
  gap: 2.25rem;
  animation: w3dMarquee 28s linear infinite;
}
.w3d-mkt-ticker:hover .w3d-mkt-ticker-track {
  animation-play-state: paused;
}

.w3d-mkt-filter-bar {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 19, 32, 0.92);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.w3d-mkt-filter-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
}
@media (min-width: 768px) {
  .w3d-mkt-filter-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
.w3d-mkt-filter-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.w3d-mkt-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #07090f;
  color: #f8fafc;
  padding: 0.6rem 0.85rem;
  font-size: 0.8rem;
  outline: none;
  transition: border-color 150ms ease;
}
.w3d-mkt-input:focus {
  border-color: rgba(99, 102, 241, 0.65);
}
.w3d-mkt-pill-group {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 0.75rem;
  background: #07090f;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.2rem;
}
.w3d-mkt-pill {
  padding: 0.35rem 0.75rem;
  border-radius: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  transition: background 140ms ease, color 140ms ease;
}
.w3d-mkt-pill:hover {
  color: #ffffff;
}
.w3d-mkt-pill--active {
  background: rgba(99, 102, 241, 0.26);
  color: #ffffff;
}

.w3d-mkt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}
@media (min-width: 640px) {
  .w3d-mkt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .w3d-mkt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.w3d-mkt-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(17, 24, 41, 0.96) 0%, rgba(11, 15, 26, 0.98) 100%);
  padding: 1.25rem;
  animation: w3dCardIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}
.w3d-mkt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 650ms ease;
  pointer-events: none;
}
.w3d-mkt-card:hover {
  transform: translateY(-4px);
  border-color: rgba(129, 140, 248, 0.45);
  box-shadow: 0 18px 36px -18px rgba(79, 70, 229, 0.45);
}
.w3d-mkt-card:hover::after {
  transform: translateX(120%);
}
.w3d-mkt-card-visual {
  position: relative;
  border-radius: 0.9rem;
  padding: 1.1rem 1rem;
  margin-bottom: 1rem;
  background:
    radial-gradient(220px circle at 85% 15%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(200px circle at 10% 90%, rgba(99, 102, 241, 0.22), transparent 60%),
    #07090f;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

@media (prefers-reduced-motion: reduce) {
  .w3d-mkt-orb,
  .w3d-live-dot,
  .w3d-mkt-ticker-track,
  .w3d-mkt-card {
    animation: none !important;
  }
}

/* Fallback dark-mode styling for all django-allauth generic views */
.w3d-allauth-card h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.w3d-allauth-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 1rem 0 0.5rem;
}
.w3d-allauth-card p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 0.85rem;
}
.w3d-allauth-card a {
  color: #67e8f9;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.w3d-allauth-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.35rem;
}
.w3d-allauth-card input[type="text"],
.w3d-allauth-card input[type="email"],
.w3d-allauth-card input[type="password"] {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #151c2e;
  color: #ffffff;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  margin-bottom: 0.9rem;
}
.w3d-allauth-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5 0%, #6d28d9 52%, #0891b2 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.w3d-allauth-card ul.errorlist {
  list-style: none;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
  font-size: 0.75rem;
}

/* ============================================================================
   User-Centric Mobile & Tablet Drawer UI
   ============================================================================ */
.w3d-mob-drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 15, 26, 0.99) 0%, rgba(7, 9, 15, 0.99) 100%);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
}
.w3d-mob-user-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(14, 19, 32, 0.92) 60%, rgba(16, 185, 129, 0.08) 100%);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.w3d-mob-quick-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.w3d-mob-quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.55rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 15, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
  color: #e2e8f0;
  text-align: center;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.w3d-mob-quick-btn:hover {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(99, 102, 241, 0.16);
  color: #ffffff;
}
.w3d-mob-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.w3d-mob-tile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 19, 32, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.w3d-mob-tile:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(21, 28, 46, 0.95);
  color: #ffffff;
}
.w3d-mob-tile--mkt {
  border-color: rgba(52, 211, 153, 0.32);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(14, 19, 32, 0.94));
  color: #a7f3d0;
}
.w3d-mob-tile--android {
  border-color: rgba(52, 211, 153, 0.28);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 19, 32, 0.94));
  color: #d1fae5;
}
.w3d-mob-tile-icon {
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}

/* ============================================================================
   Animated Homepage: Hero Orbs, Bento Info Cards & Android App Showcase
   ============================================================================ */
.w3d-home-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(99, 102, 241, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 35%, transparent 100%);
}
.w3d-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) {
  .w3d-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .w3d-bento-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.w3d-bento-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(16, 22, 38, 0.96) 0%, rgba(10, 14, 24, 0.98) 100%);
  padding: 1.35rem;
  animation: w3dCardIn 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.w3d-bento-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.05) 50%, transparent 65%);
  transform: translateX(-100%);
  transition: transform 650ms ease;
}
.w3d-bento-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 20px 38px -18px rgba(79, 70, 229, 0.45);
}
.w3d-bento-card:hover::after {
  transform: translateX(100%);
}

@keyframes w3dPhoneFloat {
  0%, 100% {
    transform: translateY(0) rotate(-1.5deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}
@keyframes w3dBadgeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}
.w3d-android-showcase {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid rgba(52, 211, 153, 0.22);
  background: linear-gradient(145deg, rgba(13, 21, 34, 0.98) 0%, rgba(8, 13, 24, 0.99) 55%, rgba(6, 36, 30, 0.55) 100%);
  padding: 1.75rem 1.35rem;
}
@media (min-width: 640px) {
  .w3d-android-showcase {
    padding: 2.5rem 2.25rem;
  }
}
.w3d-phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 2.25rem 1rem;
  min-height: 515px;
}
.w3d-phone-stage::before {
  content: "";
  position: absolute;
  inset: 12% 10%;
  border-radius: 9999px;
  background: radial-gradient(circle at 50% 45%, rgba(16, 185, 129, 0.22), rgba(99, 102, 241, 0.16) 45%, transparent 72%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}
.w3d-phone-frame {
  position: relative;
  z-index: 10;
  width: 256px;
  max-width: 100%;
  border-radius: 2.75rem;
  padding: 8px;
  background: linear-gradient(155deg, #334155 0%, #141c2e 26%, #0a0f1c 66%, #243047 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.18),
    inset 0 2px 4px rgba(255, 255, 255, 0.2),
    0 34px 70px -18px rgba(0, 0, 0, 0.92),
    0 0 54px -16px rgba(16, 185, 129, 0.35);
  animation: w3dPhoneFloat 5.5s ease-in-out infinite;
}
/* Physical smartphone hardware buttons (left volume rocker + right power key) */
.w3d-phone-frame::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 96px;
  width: 3px;
  height: 36px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #64748b, #1e293b);
  box-shadow: 0 46px 0 0 #334155;
  pointer-events: none;
}
.w3d-phone-frame::after {
  content: "";
  position: absolute;
  right: -3.5px;
  top: 122px;
  width: 3px;
  height: 52px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #64748b, #1e293b);
  pointer-events: none;
}
.w3d-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0b1121 0%, #070b15 58%, #060911 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.w3d-phone-camera {
  position: relative;
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background: radial-gradient(circle at 38% 35%, #1e293b 0%, #02040a 68%);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.12), inset 0 0 3px rgba(56, 189, 248, 0.45);
}
.w3d-phone-home-bar {
  width: 5.5rem;
  height: 0.24rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.3);
  margin: 0.45rem auto 0.45rem auto;
}
.w3d-phone-badge {
  position: absolute;
  z-index: 25;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(11, 15, 26, 0.94);
  backdrop-filter: blur(12px);
  padding: 0.42rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 14px 28px -8px rgba(0, 0, 0, 0.82);
  animation: w3dBadgeFloat 4.2s ease-in-out infinite;
}
.w3d-phone-badge--top {
  top: 0.45rem;
  right: 0;
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.42);
}
.w3d-phone-badge--bottom {
  bottom: 0.65rem;
  left: 0;
  color: #a5b4fc;
  border-color: rgba(129, 140, 248, 0.42);
  animation-delay: -2.1s;
}
@media (prefers-reduced-motion: reduce) {
  .w3d-bento-card,
  .w3d-phone-frame,
  .w3d-phone-badge {
    animation: none !important;
  }
}

/* ============================================================================
   Realistic Minimal Online Web3 Browser Window & WHOIS Layout
   ============================================================================ */
.w3d-br-window {
  overflow: hidden;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: #0a0f1c;
  box-shadow: 0 30px 70px -22px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(99, 102, 241, 0.08);
}
.w3d-br-tabbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  background: #0d1323;
  padding: 0.55rem 0.9rem 0 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.w3d-br-tabbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.w3d-br-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding-bottom: 0.5rem;
}
.w3d-br-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 9999px;
}
.w3d-br-dot--red { background: #ff5f57; }
.w3d-br-dot--yellow { background: #febc2e; }
.w3d-br-dot--green { background: #28c840; }

.w3d-br-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 240px;
  padding: 0.48rem 0.8rem;
  border-radius: 0.65rem 0.65rem 0 0;
  background: #141c31;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f8fafc;
}
.w3d-br-tab-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 9999px;
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1;
}
.w3d-br-tab-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.w3d-br-newtab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.35rem;
  border-radius: 0.5rem;
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
}
.w3d-br-newtab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.w3d-br-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  background: #141c31;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.w3d-br-nav-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.w3d-br-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0a0f1c;
  color: #e2e8f0;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.w3d-br-icon-btn:hover:not(:disabled) {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(129, 140, 248, 0.45);
  color: #ffffff;
}
.w3d-br-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.w3d-br-omnibox {
  flex: 1 1 240px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #070a13;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9999px;
  padding: 0.28rem 0.35rem 0.28rem 0.65rem;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.w3d-br-omnibox:focus-within {
  border-color: rgba(34, 211, 238, 0.65);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
}
.w3d-br-scheme {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
}
.w3d-br-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  padding: 0.28rem 0.25rem;
  outline: none;
}
.w3d-br-input::placeholder {
  color: #64748b;
}
.w3d-br-go-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.85rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #4f46e5, #0891b2);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.w3d-br-go-btn:hover {
  filter: brightness(1.1);
}
.w3d-br-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0f1c;
  color: #e2e8f0;
  font-size: 0.73rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.w3d-br-action-btn:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
  color: #ffffff;
}

.w3d-br-bookmarks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  background: #0f1628;
  padding: 0.42rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.w3d-br-bookmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}
.w3d-br-bookmark:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(129, 140, 248, 0.35);
  color: #ffffff;
}
.w3d-br-viewport {
  position: relative;
  min-height: 660px;
  background: #07090f;
}
.w3d-br-iframe {
  display: block;
  width: 100%;
  height: 74vh;
  min-height: 640px;
  border: 0;
}
.w3d-br-infobar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.48rem 0.9rem;
  background: rgba(14, 19, 32, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.75rem;
}

/* ============================================================================
   RTL Layout Enhancements (ar, he, fa, ur)
   ============================================================================ */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .w3d-dropdown-panel {
  left: 0;
  right: auto;
}

[dir="rtl"] .w3d-nav-shell {
  direction: rtl;
}

[dir="rtl"] ul.list-disc {
  padding-inline-start: 1.25rem;
  padding-inline-end: 0;
}

[dir="rtl"] .font-mono {
  unicode-bidi: isolate;
}

/* ============================================================================
   Android Super-App v2.0 Embedded WebView Polish (active only inside Android app)
   ============================================================================ */
html.w3d-android-app {
  -webkit-tap-highlight-color: transparent;
}
html.w3d-android-app body > header,
html.w3d-android-app #w3d-cookie-consent {
  display: none !important;
}
html.w3d-android-app main {
  padding-top: 1rem !important;
  padding-bottom: 2rem !important;
}
html.w3d-android-app footer {
  margin-top: 2rem !important;
  padding-bottom: 1.5rem !important;
}
