/* ============================================================
   ArteVia v2 — Production Web3 SPA tasarım sistemi
   Abyss + Neon ArteVia Yeşili + Glassmorphism
   ============================================================ */

:root {
  --abyss: #080a11;
  --abyss-2: #0c0f17;
  --surface: #151923;
  --surface-2: #1B2030;
  --surface-3: #232A3D;
  --surface-elev: rgba(21, 25, 35, .72);
  /** Modal / secondary panel background (alias for spec compatibility). */
  --bg2: var(--surface-2);

  --accent: #00FF41;
  --accent-2: #00E676;
  --accent-3: #39FF14;
  --accent-soft: rgba(0, 255, 65, .12);
  --accent-soft-2: rgba(0, 255, 65, .22);
  --accent-glow: rgba(0, 255, 65, .35);
  --accent-faint: rgba(0, 255, 65, .06);

  --border: rgba(255, 255, 255, .06);
  --border-2: rgba(255, 255, 255, .10);
  --border-accent: rgba(0, 255, 65, .22);
  --border-accent-strong: rgba(0, 255, 65, .45);

  --text: #E6EAF2;
  --text-2: #99A2B3;
  --text-3: #5A6478;
  --text-on-accent: #06120A;

  --danger: #FF5252;
  --danger-soft: rgba(255, 82, 82, .12);
  --warn: #FFB300;
  --warn-soft: rgba(255, 179, 0, .12);
  --info: #4FC3F7;
  --info-soft: rgba(79, 195, 247, .12);

  --r-2: 4px;
  --r-3: 6px;
  --r-4: 8px;
  --r-5: 12px;
  --r-6: 16px;
  --r-7: 20px;
  --r-8: 24px;
  --r-pill: 9999px;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, .35);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-4: 0 24px 64px rgba(0, 0, 0, .55);
  --glow-soft: 0 0 24px rgba(0, 255, 65, .18);
  --glow-strong: 0 0 32px rgba(0, 255, 65, .42), 0 0 60px rgba(0, 255, 65, .18);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-snap: cubic-bezier(.16, 1, .3, 1);
  --ease-elastic: cubic-bezier(.34, 1.56, .64, 1);

  --sidebar-w: 248px;
  --topbar-h: 68px;
  --gutter: 28px;
  --gutter-sm: 16px;

  --font-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', "SF Mono", Menlo, Consolas, monospace;
}

html {
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

html[data-theme="light"] {
  --abyss: #dae3f2;
  --abyss-2: #cfdcf0;
  --surface: #eef2fb;
  --surface-2: #e4eaf6;
  --surface-3: #dbe4f5;
  --surface-elev: rgba(255, 255, 255, .92);
  --bg2: var(--surface-2);

  --accent: #2563eb;
  --accent-2: #3b82f6;
  --accent-3: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .12);
  --accent-soft-2: rgba(37, 99, 235, .2);
  --accent-glow: rgba(37, 99, 235, .3);
  --accent-faint: rgba(37, 99, 235, .07);

  --border: rgba(0, 0, 0, .08);
  --border-2: rgba(0, 0, 0, .12);
  --border-accent: rgba(37, 99, 235, .34);
  --border-accent-strong: rgba(37, 99, 235, .5);

  --text: #0F1419;
  --text-2: #4A5568;
  --text-3: #7D8B9E;
  --text-on-accent: #FFFFFF;

  --danger-soft: rgba(255, 82, 82, .1);
  --warn-soft: rgba(255, 179, 0, .12);
  --info-soft: rgba(79, 195, 247, .12);

  --shadow-1: 0 1px 3px rgba(0, 0, 0, .07);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .08);
  --shadow-3: 0 12px 32px rgba(0, 0, 0, .1);
  --shadow-4: 0 24px 48px rgba(0, 0, 0, .12);
  --glow-soft: 0 0 24px rgba(37, 99, 235, .16);
  --glow-strong: 0 0 28px rgba(37, 99, 235, .22), 0 0 48px rgba(37, 99, 235, .1);
}

html[data-theme="light"] ::selection {
  background: rgba(37, 99, 235, .22);
  color: var(--text);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .12);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, .35);
}

html[data-theme="light"] #appLoading {
  background: radial-gradient(ellipse at center, #dde8f8 0%, #cfdcf0 100%);
}

html[data-theme="light"] .aurora {
  opacity: .18;
}

html[data-theme="light"] .a1 {
  background: rgba(37, 99, 235, .22);
}

html[data-theme="light"] .a2 {
  background: rgba(59, 130, 246, .16);
}

html[data-theme="light"] .a3 {
  background: rgba(129, 140, 248, .14);
}

html[data-theme="light"] .grid-overlay {
  background-image:
    linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px);
}

html[data-theme="light"] #sidebar {
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(245, 247, 251, .97));
}

html[data-theme="light"] #topbar {
  background: rgba(255, 255, 255, .78);
}

html[data-theme="light"] .tb-search {
  background: rgba(255, 255, 255, .94);
}

html[data-theme="light"] .tb-search:focus {
  background: #fff;
}

html[data-theme="light"] .tb-kbd {
  background: rgba(0, 0, 0, .05);
  border-color: var(--border-2);
}

html[data-theme="light"] .tb-lang {
  background: rgba(0, 0, 0, .04);
}

html[data-theme="light"] .input,
html[data-theme="light"] .textarea,
html[data-theme="light"] .select {
  background: rgba(255, 255, 255, .96);
}

html[data-theme="light"] .input:focus,
html[data-theme="light"] .textarea:focus,
html[data-theme="light"] .select:focus {
  background: #fff;
}

html[data-theme="light"] .neon-btn--ghost {
  background: rgba(0, 0, 0, .04);
}

html[data-theme="light"] .neon-btn--ghost:hover:not(:disabled) {
  background: rgba(37, 99, 235, .08);
}

html[data-theme="light"] .neon-btn--primary {
  box-shadow: 0 8px 22px rgba(37, 99, 235, .2), inset 0 0 0 1px rgba(255, 255, 255, .35);
}

html[data-theme="light"] .glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(245, 247, 250, .98));
}

html[data-theme="light"] .glass::before {
  background: linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(37, 99, 235, 0) 60%);
  opacity: .42;
}

html[data-theme="light"] .stat-card,
html[data-theme="light"] .nft-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(243, 246, 250, .98));
}

html[data-theme="light"] .quick-card {
  background: rgba(0, 0, 0, .025);
}

html[data-theme="light"] .profile-banner::after {
  background: linear-gradient(180deg, transparent 50%, rgba(238, 241, 247, .94) 100%);
}

html[data-theme="light"] .nav-backdrop {
  background: rgba(15, 22, 35, .32);
}

html[data-theme="light"] .modal-overlay {
  background: rgba(12, 18, 28, .42);
}

html[data-theme="light"] .modal-close:hover {
  background: rgba(0, 0, 0, .06);
}

html[data-theme="light"] .nft-fav {
  background: rgba(255, 255, 255, .88);
  color: var(--text);
}

html[data-theme="light"] .nft-fav:hover {
  background: #fff;
}

html[data-theme="light"] .nft-card:hover .nft-fav {
  background: rgba(255, 255, 255, .92);
}

/* Reset & base */
* {
  box-sizing: border-box;
}

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

html,
body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  background: var(--abyss);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  min-height: 100vh;
}

html {
  font-size: 15px;
}

body {
  font-size: 0.95rem;
  line-height: 1.5;
  background:
    radial-gradient(1200px 800px at 80% -12%, rgba(0, 255, 65, .1), transparent 60%),
    radial-gradient(900px 620px at -12% 100%, rgba(0, 230, 118, .08), transparent 55%),
    radial-gradient(100% 115% at 50% 50%, transparent 35%, rgba(0, 0, 0, .48) 100%),
    var(--abyss);
  overflow-x: hidden;
}

html[data-theme="light"] body {
  background:
    radial-gradient(980px 640px at 52% -10%, rgba(37, 99, 235, .16), transparent 58%),
    radial-gradient(1000px 700px at 82% -10%, rgba(37, 99, 235, .11), transparent 55%),
    radial-gradient(800px 560px at -12% 100%, rgba(99, 102, 241, .14), transparent 52%),
    radial-gradient(100% 100% at 50% 54%, transparent 56%, rgba(4, 17, 29, .11) 100%),
    linear-gradient(180deg, #c5d6ec 0%, var(--abyss) 46%, var(--abyss) 100%);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

input,
textarea,
select {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 16px 0;
}

::selection {
  background: rgba(0, 255, 65, .25);
  color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 65, .25);
}

/* Aurora background */
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .35;
  animation: auroraDrift 28s linear infinite;
}

.a1 {
  width: 600px;
  height: 600px;
  left: -10%;
  top: -10%;
  background: rgba(0, 255, 65, .35);
}

.a2 {
  width: 700px;
  height: 700px;
  right: -15%;
  top: 30%;
  background: rgba(0, 230, 118, .25);
  animation-delay: -8s;
}

.a3 {
  width: 500px;
  height: 500px;
  left: 25%;
  bottom: -20%;
  background: rgba(57, 255, 20, .18);
  animation-delay: -16s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 100%);
}

@keyframes auroraDrift {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(40px, -30px) scale(1.05);
  }

  66% {
    transform: translate(-30px, 40px) scale(.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .aurora {
    animation: none;
  }
}

/* Boot loading */
#appLoading {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #0F1320 0%, #06080C 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity .35s var(--ease-out), visibility .35s;
}

#appLoading[hidden] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.boot-logo img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 0 24px rgba(0, 255, 65, .55));
  animation: bootPulse 1.6s ease-in-out infinite;
}

.boot-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
}

.boot-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, .06);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: bootSlide 1.2s ease-in-out infinite;
}

@keyframes bootPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@keyframes bootSlide {
  0% {
    transform: translateX(-180%);
  }

  100% {
    transform: translateX(380%);
  }
}

.ns-fallback {
  position: fixed;
  inset: 0;
  background: var(--abyss);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  z-index: 99998;
}

.ns-fallback h2 {
  font-family: var(--font-display);
  margin: 0 0 12px;
}

/* Lucide icon size */
[data-lucide] {
  width: 1em;
  height: 1em;
}

.icon-btn [data-lucide] {
  width: 18px;
  height: 18px;
}

/* App shell */
#shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar main";
  z-index: 1;
}

#shell[hidden] {
  display: none;
}

/* Sidebar */
#sidebar {
  grid-area: sidebar;
  position: sticky;
  top: 0;
  height: 100vh;
  background: linear-gradient(180deg, rgba(15, 19, 30, .96), rgba(11, 14, 20, .96));
  border-right: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  padding: 22px 14px 18px;
  gap: 16px;
  z-index: 30;
  overflow-y: auto;
}

.sb-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  cursor: pointer;
  transition: opacity .2s var(--ease-out);
}

.sb-brand:hover {
  opacity: .85;
}

.sb-logo {
  width: 36px;
  height: 36px;
  border-radius: 0;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.sb-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sb-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .02em;
  color: var(--text);
}

.sb-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sb-section-title {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--text-3);
  padding: 12px 12px 6px;
}

.sb-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-5);
  font-size: .92rem;
  color: var(--text-2);
  cursor: pointer;
  transition: color .15s var(--ease-out), background .2s var(--ease-out);
}

.sb-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .03);
}

.sb-link [data-lucide] {
  width: 18px;
  height: 18px;
}

.sb-link.active {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(0, 255, 65, .12), rgba(0, 255, 65, .04));
  box-shadow: inset 1px 0 0 var(--accent);
}

.sb-link.active::after {
  content: "";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.sb-badge {
  margin-left: auto;
  font-size: .7rem;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.sb-footer {
  margin-top: auto;
}

.sb-foot-row {
  display: flex;
  gap: 6px;
  padding: 0 8px;
}

.sb-foot-tag {
  font-size: .68rem;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
  color: var(--text-3);
  letter-spacing: .06em;
}

.sb-tag-accent {
  color: var(--accent);
  border: 1px solid var(--border-accent);
  background: var(--accent-faint);
}

/* Topbar */
#topbar {
  grid-area: topbar;
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--gutter);
  background: rgba(11, 14, 20, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 25;
}

.tb-search-wrap {
  position: relative;
  flex: 1;
  max-width: 640px;
  margin: 0 auto 0 0;
  display: flex;
  align-items: center;
}

.tb-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.tb-search {
  width: 100%;
  height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: rgba(21, 25, 35, .8);
  color: var(--text);
  padding: 0 56px 0 42px;
  font-size: .9rem;
  transition: border-color .2s var(--ease-out), box-shadow .2s var(--ease-out), background .2s;
}

.tb-search::placeholder {
  color: var(--text-3);
}

.tb-search:focus {
  border-color: var(--border-accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft), var(--glow-soft);
  background: var(--surface);
}

.tb-kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: 2px 8px;
  border-radius: var(--r-3);
  background: rgba(255, 255, 255, .04);
  color: var(--text-3);
  border: 1px solid var(--border);
  pointer-events: none;
}

.tb-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-3);
  padding: 8px;
  max-height: 420px;
  overflow-y: auto;
  z-index: 60;
}

.tb-search-section {
  padding: 6px 10px;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--text-3);
}

.tb-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-4);
  cursor: pointer;
  transition: background .15s;
}

.tb-search-item:hover {
  background: rgba(255, 255, 255, .04);
}

.tb-search-item .ts-thumb {
  width: 32px;
  height: 32px;
  border-radius: var(--r-4);
  object-fit: cover;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.tb-search-item .ts-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tb-search-item .ts-title {
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-search-item .ts-sub {
  font-size: .76rem;
  color: var(--text-3);
}

.tb-search-empty {
  padding: 16px;
  text-align: center;
  color: var(--text-3);
  font-size: .85rem;
}

.tb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Simulated wallet badge (topbar) */
.tb-wallet-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  background: rgba(5, 8, 12, .85);
  border: 1px solid rgba(57, 255, 20, .45);
  color: var(--accent-3);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(57, 255, 20, .08), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .2s, box-shadow .2s, color .2s, transform .15s;
  user-select: none;
}

.tb-wallet-badge i {
  font-size: .95rem;
  opacity: .95;
  filter: drop-shadow(0 0 6px rgba(57, 255, 20, .35));
}

.tb-wallet-badge:hover {
  border-color: rgba(57, 255, 20, .75);
  color: #5cff3a;
  box-shadow: 0 0 16px rgba(57, 255, 20, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: translateY(-1px);
}

.tb-wallet-badge:active {
  transform: translateY(0);
}

/* Admin Wallet Manager modal */
.av-admin-modal[hidden] {
  display: none !important;
}

.av-admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.av-admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, .65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.av-admin-modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg2);
  border: 1px solid rgba(232, 236, 245, 0.1);
  border-radius: var(--r-7);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(0, 0, 0, .4);
  padding: 28px 26px 22px;
}

.av-admin-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.av-admin-modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.av-admin-modal__sub {
  margin: 6px 0 0;
  font-size: .82rem;
  color: var(--text-3);
  line-height: 1.45;
}

.av-admin-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, .04);
  color: var(--text-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s;
}

.av-admin-modal__close:hover {
  color: var(--text);
  border-color: var(--border-accent);
  background: rgba(0, 255, 65, .06);
}

.av-admin-modal .field {
  margin-bottom: 16px;
}

.av-admin-modal .field label {
  display: block;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-3);
  margin-bottom: 8px;
}

.av-admin-modal .field input {
  width: 100%;
  height: 44px;
  border-radius: var(--r-4);
  border: 1px solid var(--border-2);
  background: rgba(8, 10, 16, .55);
  color: var(--text);
  padding: 0 14px;
  font-size: .95rem;
}

.av-admin-modal .field input:focus {
  outline: none;
  border-color: var(--border-accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.av-admin-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.av-admin-modal__actions .neon-btn {
  flex: 1;
  justify-content: center;
}

.av-admin-modal .neon-btn--danger {
  border-color: rgba(255, 82, 82, .45);
  color: var(--danger);
  background: var(--danger-soft);
}

.av-admin-modal .neon-btn--danger:hover {
  border-color: var(--danger);
  box-shadow: 0 0 14px rgba(255, 82, 82, .25);
}

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  color: var(--text-2);
  transition: color .15s, background .2s, transform .15s;
  border: 1px solid transparent;
}

.icon-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
  border-color: var(--border-2);
}

.icon-btn:active {
  transform: scale(.96);
}

.tb-bell-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 10px var(--accent-glow);
}

.tb-lang {
  position: relative;
  display: inline-flex;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  padding: 3px;
  height: 36px;
}

.tb-lang-btn {
  position: relative;
  z-index: 2;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--text-3);
  transition: color .2s var(--ease-out);
}

.tb-lang-btn.active {
  color: var(--text-on-accent);
}

.tb-lang-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 50%;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 14px rgba(0, 255, 65, .35);
  transition: transform .25s var(--ease-snap);
}

.tb-lang[data-lang="en"] .tb-lang-pill {
  transform: translateX(100%);
}

.tb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: linear-gradient(90deg, rgba(0, 255, 65, .08), rgba(0, 0, 0, .25));
  border: 1px solid var(--border-accent);
  border-radius: var(--r-pill);
  height: 40px;
  transition: border-color .15s, box-shadow .2s;
  cursor: pointer;
}

.tb-user:hover {
  border-color: var(--border-accent-strong);
  box-shadow: var(--glow-soft);
}

.tb-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .82rem;
  font-family: var(--font-display);
  overflow: hidden;
  flex-shrink: 0;
}

.tb-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.tb-user-name {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
}

.tb-user-addr {
  font-size: .68rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.tb-user-caret {
  color: var(--text-3);
}

/* Main view */
#view {
  grid-area: main;
  padding: var(--gutter);
  min-height: calc(100vh - var(--topbar-h));
  position: relative;
}

#view:focus {
  outline: none;
}

.page {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: pageEnter .35s var(--ease-snap);
}

@keyframes pageEnter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: -.02em;
  margin: 0;
  background: linear-gradient(90deg, #21b4a5 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-sub {
  color: var(--text-2);
  margin-top: 6px;
  font-size: .95rem;
}

/* Glass panel & cards */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(27, 32, 48, .55), rgba(21, 25, 35, .85));
  border: 1px solid var(--border-2);
  border-radius: var(--r-7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-2);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 255, 65, .35), rgba(0, 255, 65, 0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: .5;
}

.panel {
  padding: 20px;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-title [data-lucide] {
  color: var(--accent);
}

.panel-sub {
  color: var(--text-2);
  font-size: .85rem;
  margin-bottom: 14px;
}

/* Buttons */
.neon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  position: relative;
  transition: transform .12s var(--ease-out), box-shadow .25s var(--ease-out), background .2s, border-color .2s, color .2s;
  border: 1px solid transparent;
  white-space: nowrap;
  user-select: none;
}

.neon-btn [data-lucide] {
  width: 16px;
  height: 16px;
}

.neon-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.neon-btn:active:not(:disabled) {
  transform: scale(.97);
}

.neon-btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text-on-accent);
  box-shadow: 0 8px 22px rgba(0, 255, 65, .25), inset 0 0 0 1px rgba(255, 255, 255, .25);
}

.neon-btn--primary:hover:not(:disabled) {
  box-shadow: 0 12px 32px rgba(0, 255, 65, .42), inset 0 0 0 1px rgba(255, 255, 255, .3);
}

.neon-btn--ghost {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  border-color: var(--border-2);
}

.neon-btn--ghost:hover:not(:disabled) {
  background: rgba(0, 255, 65, .06);
  border-color: var(--border-accent);
  color: var(--accent);
}

.neon-btn--outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
}

.neon-btn--outline:hover:not(:disabled) {
  background: var(--accent-soft);
  border-color: var(--border-accent-strong);
}

.neon-btn--danger {
  background: rgba(255, 82, 82, .12);
  color: var(--danger);
  border-color: rgba(255, 82, 82, .35);
}

.neon-btn--danger:hover:not(:disabled) {
  background: rgba(255, 82, 82, .2);
}

.neon-btn--sm {
  height: 34px;
  padding: 0 14px;
  font-size: .82rem;
}

.neon-btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.neon-btn--block {
  width: 100%;
}

/* Inputs */
.input,
.textarea,
.select {
  width: 100%;
  height: 44px;
  border-radius: var(--r-5);
  background: rgba(11, 14, 20, .6);
  border: 1px solid var(--border-2);
  padding: 0 14px;
  color: var(--text);
  font-size: .92rem;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.textarea {
  height: auto;
  min-height: 100px;
  padding: 12px 14px;
  font-family: inherit;
  resize: vertical;
  line-height: 1.5;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--border-accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: rgba(11, 14, 20, .85);
}

.input--mono {
  font-family: var(--font-mono);
  font-size: .85rem;
}

.fg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.fg label {
  font-size: .8rem;
  color: var(--text-2);
  font-weight: 500;
}

.fg .hint {
  font-size: .76rem;
  color: var(--text-3);
}

.fg .err {
  font-size: .78rem;
  color: var(--danger);
}

/* Badges & chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border-2);
  font-size: .76rem;
  color: var(--text-2);
}

.chip--accent {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent);
}

.chip--warn {
  background: var(--warn-soft);
  border-color: rgba(255, 179, 0, .35);
  color: var(--warn);
}

.chip--danger {
  background: var(--danger-soft);
  border-color: rgba(255, 82, 82, .35);
  color: var(--danger);
}

.chip--info {
  background: var(--info-soft);
  border-color: rgba(79, 195, 247, .35);
  color: var(--info);
}

.chip--lg {
  font-size: .85rem;
  padding: 6px 14px;
}

/* Hash pill */
.hash-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(0, 255, 65, .06);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .82rem;
  cursor: pointer;
  transition: background .15s;
  user-select: all;
}

.hash-pill:hover {
  background: rgba(0, 255, 65, .12);
}

.hash-pill [data-lucide] {
  width: 14px;
  height: 14px;
}

/* Avatar */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: 700;
  font-family: var(--font-display);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-2);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: .8rem;
}

.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
}

.avatar--xl {
  width: 132px;
  height: 132px;
  font-size: 2.5rem;
  border: 4px solid var(--abyss);
  box-shadow: var(--shadow-3);
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.stat-card {
  position: relative;
  padding: 18px 20px 20px;
  border-radius: var(--r-7);
  background: linear-gradient(180deg, rgba(27, 32, 48, .55), rgba(21, 25, 35, .85));
  border: 1px solid var(--border-2);
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-accent);
}

.stat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-5);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-card-icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.stat-card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1;
}

.stat-card-label {
  color: var(--text-2);
  font-size: .8rem;
  margin-top: 6px;
}

.stat-card-trend {
  font-size: .74rem;
  margin-top: 10px;
  color: var(--accent);
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.stat-card-quote {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  margin-top: 4px;
}

.stat-card-quote-author {
  font-size: .76rem;
  color: var(--text-3);
  margin-top: 8px;
}

.stat-card--accent {
  border-color: var(--border-accent);
  box-shadow: var(--glow-soft);
}

.stat-card--accent .stat-card-icon {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--text-on-accent);
}

/* Education (/edu) — symmetric grid + equal-height cards */
.page--edu .page-head--edu {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 4px;
}

.page--edu .edu-layout {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.page--edu .edu-grid {
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 640px) {
  .page--edu .edu-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .page--edu .edu-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

.page--edu .edu-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.page--edu .edu-card .stat-card-icon {
  flex-shrink: 0;
}

.page--edu .edu-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.3;
  margin-top: 4px;
  color: var(--text);
}

.page--edu .edu-card-body {
  flex: 1;
  margin-top: 10px;
  font-size: 0.88rem;
  line-height: 1.55;
}

.page--edu .edu-faq {
  width: 100%;
}

/* Grid helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}

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

.grid-12 {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 24px;
}

@media (max-width: 1024px) {

  .grid-2,
  .grid-3,
  .grid-12 {
    grid-template-columns: 1fr;
  }
}

/* Quick actions */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.quick-card {
  padding: 16px;
  border-radius: var(--r-6);
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .15s;
}

.quick-card:hover {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  transform: translateX(2px);
}

.quick-card [data-lucide] {
  width: 22px;
  height: 22px;
  color: var(--accent);
}

.quick-card-text {
  display: flex;
  flex-direction: column;
}

.quick-card-text strong {
  color: var(--text);
  font-size: .92rem;
}

.quick-card-text span {
  color: var(--text-3);
  font-size: .74rem;
}

/* Activity timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.timeline-item {
  position: relative;
  padding-left: 24px;
  font-size: .88rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-faint), 0 0 12px var(--accent-glow);
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: -10px;
  width: 2px;
  background: linear-gradient(180deg, var(--border-accent), transparent);
}

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

.timeline-item .ti-time {
  font-size: .74rem;
  color: var(--text-3);
}

.timeline-item .ti-text {
  color: var(--text);
  margin-top: 2px;
}

/* NFT cards */
.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}

.nft-card {
  position: relative;
  border-radius: var(--r-7);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(27, 32, 48, .55), rgba(21, 25, 35, .85));
  border: 1px solid var(--border-2);
  transition: transform .25s var(--ease-out), border-color .2s, box-shadow .25s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.nft-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-accent);
  box-shadow: var(--glow-soft);
}

.nft-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
  overflow: hidden;
}

.nft-thumb img,
.nft-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}

.nft-card:hover .nft-thumb img {
  transform: scale(1.05);
}

.nft-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
}

.nft-thumb-fallback [data-lucide] {
  width: 36px;
  height: 36px;
}

.nft-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, color .15s;
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-2);
}

.nft-fav:hover {
  background: rgba(0, 0, 0, .75);
  color: var(--accent);
}

.nft-fav.active {
  color: #FF4D6D;
}

.nft-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: .7rem;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, .65);
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--border-accent);
  backdrop-filter: blur(4px);
}

.nft-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nft-title {
  font-weight: 600;
  color: var(--text);
  font-size: .98rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nft-owner {
  font-size: .76rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nft-owner [data-lucide] {
  width: 12px;
  height: 12px;
}

.nft-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.nft-price {
  display: flex;
  flex-direction: column;
}

.nft-price-label {
  font-size: .7rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.nft-price-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent);
}

.nft-price-value-sm {
  font-size: .78rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.nft-cta {
  font-size: .8rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Tabs — sabit düzen, yatay scroll yok */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: relative;
  margin-bottom: 16px;
  overflow: visible;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.tab-btn {
  position: relative;
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--text-3);
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transition: color .15s;
  flex: 1 1 0;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
}

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

.tab-btn.active {
  color: var(--accent);
}

.tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  border-radius: var(--r-pill);
  animation: tabUnderline .25s var(--ease-snap);
}

@keyframes tabUnderline {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

/* Toolbar (filter row) */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.toolbar-search {
  position: relative;
  flex: 1;
  min-width: 240px;
  max-width: 360px;
}

.toolbar-search .input {
  padding-left: 38px;
}

.toolbar-search [data-lucide] {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.toolbar-spacer {
  flex: 1;
}

/* Empty state */
.empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-3);
}

.empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--r-pill);
  background: var(--accent-faint);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  margin: 0 auto 14px;
}

.empty-icon [data-lucide] {
  width: 28px;
  height: 28px;
}

.empty-title {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
}

.empty-text {
  font-size: .88rem;
}

/* Skeleton */
.skel {
  background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  background-size: 200% 100%;
  animation: skelShimmer 1.4s linear infinite;
  border-radius: var(--r-4);
}

@keyframes skelShimmer {
  from {
    background-position: 0% 0;
  }

  to {
    background-position: -200% 0;
  }
}

.skel-card {
  aspect-ratio: 1;
  border-radius: var(--r-7);
}

.skel-row {
  height: 14px;
  margin: 6px 0;
}

/* Toast */
#toastHost {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  min-width: 260px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: var(--r-5);
  background: var(--surface);
  border: 1px solid var(--border-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: var(--shadow-3);
  animation: toastIn .25s var(--ease-snap);
  font-size: .9rem;
  color: var(--text);
}

.toast.out {
  animation: toastOut .25s var(--ease-out) forwards;
}

.toast-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-msg {
  flex: 1;
  line-height: 1.4;
}

.toast--success {
  border-color: var(--border-accent);
}

.toast--success .toast-icon {
  color: var(--accent);
}

.toast--err {
  border-color: rgba(255, 82, 82, .35);
}

.toast--err .toast-icon {
  color: var(--danger);
}

.toast--info .toast-icon {
  color: var(--info);
}

.toast--warn .toast-icon {
  color: var(--warn);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateX(20px);
  }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 12, .76);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFade .2s var(--ease-out);
}

@keyframes modalFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-7);
  box-shadow: var(--shadow-4);
  display: flex;
  flex-direction: column;
  animation: modalPop .25s var(--ease-elastic);
  overflow: hidden;
}

.modal--lg {
  max-width: 720px;
}

.modal--xl {
  max-width: 960px;
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  flex: 1;
  margin: 0;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--r-pill);
  color: var(--text-3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-foot {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Dropdown menu */
.dropdown {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-5);
  box-shadow: var(--shadow-3);
  padding: 6px;
  z-index: 70;
  min-width: 180px;
  animation: ddIn .15s var(--ease-out);
}

@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-4);
  font-size: .88rem;
  color: var(--text-2);
  cursor: pointer;
}

.dd-item:hover {
  background: rgba(0, 255, 65, .08);
  color: var(--accent);
}

.dd-item--danger:hover {
  background: rgba(255, 82, 82, .12);
  color: var(--danger);
}

.dd-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* Notification dropdown */
.notif-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 360px;
  max-width: 90vw;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-6);
  box-shadow: var(--shadow-3);
  z-index: 65;
  overflow: hidden;
  animation: ddIn .18s var(--ease-out);
}

.notif-head {
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.notif-head h4 {
  margin: 0;
  font-family: var(--font-display);
  font-size: .95rem;
}

.notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.notif-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  cursor: pointer;
  transition: background .15s;
}

.notif-item:hover {
  background: rgba(0, 255, 65, .04);
}

.notif-item.unread {
  background: rgba(0, 255, 65, .04);
}

.notif-item .ni-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-5);
  background: var(--accent-faint);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item .ni-body {
  flex: 1;
  min-width: 0;
}

.notif-item .ni-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}

.notif-item .ni-text {
  font-size: .8rem;
  color: var(--text-2);
  line-height: 1.4;
}

.notif-item .ni-time {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* File dropzone */
.dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 28px;
  border: 2px dashed var(--border-accent);
  border-radius: var(--r-7);
  background: rgba(0, 255, 65, .02);
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .25s;
  overflow: hidden;
  text-align: center;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--accent);
  background: rgba(0, 255, 65, .06);
  box-shadow: var(--glow-soft);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.dz-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}

.dz-icon [data-lucide] {
  width: 28px;
  height: 28px;
}

.dz-title {
  font-weight: 600;
  color: var(--text);
}

.dz-title strong {
  color: var(--accent);
}

.dz-sub {
  font-size: .8rem;
  color: var(--text-3);
  margin-top: 4px;
}

/* Mint: yükleme kutusunun altında görsel önizleme alanı */
.mint-visual-shell {
  margin-top: 16px;
  border-radius: var(--r-7);
  border: 1px solid var(--border-2);
  background: rgba(17, 21, 28, .45);
  overflow: hidden;
}

.mint-visual-shell__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: rgba(0, 255, 65, .03);
}

.mint-visual-shell__head [data-lucide] {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.mint-visual-shell__body {
  position: relative;
  min-height: 220px;
}

.mint-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 28px 20px;
  text-align: center;
}

.mint-preview-placeholder__text {
  margin: 12px 0 0;
  font-size: .82rem;
  line-height: 1.45;
  max-width: 28ch;
}

.mint-visual-shell__body .mint-preview-inner.preview-wrap {
  margin-top: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.preview-wrap {
  position: relative;
  border-radius: var(--r-6);
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-top: 14px;
}

.preview-wrap--image {
  aspect-ratio: 1 / 1;
}

.preview-wrap img,
.preview-wrap video,
.preview-wrap canvas {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-wrap audio {
  width: 100%;
  padding: 16px;
  background: var(--surface-2);
}

.preview-wrap--pdf {
  padding: 12px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}



/* Profile banner */
.profile-banner {
  position: relative;
  height: 240px;
  border-radius: var(--r-8);
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3), var(--surface));
  border: 1px solid var(--border-2);
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(11, 14, 20, .9) 100%);
  pointer-events: none;
}

.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 20px 28px;
  margin-top: -68px;
  padding: 0 24px 4px;
  position: relative;
  z-index: 2;
}

.profile-meta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 10px 0 14px;
}

.profile-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.profile-handle {
  color: var(--text-3);
  font-size: .875rem;
  line-height: 1.35;
  word-break: break-word;
}

.profile-contact-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
}

.profile-contact-email:hover {
  text-decoration: underline;
}

.profile-contact-email i,
.profile-contact-email svg {
  flex-shrink: 0;
}

.profile-bio {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  max-width: 42em;
}

.profile-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  margin-top: 2px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.profile-stats .ps {
  display: inline-flex;
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  font-size: .8125rem;
  color: var(--text-3);
  white-space: nowrap;
}

.profile-stats .ps strong {
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0 14px;
  justify-content: flex-end;
  align-self: start;
}

/* Wallet shield empty */
.wallet-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

/* Wallets page — demo balance card (centered stack) */
.wallet-demo-panel {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 22px 32px;
}

.wallet-demo-panel .wallet-shield {
  margin-bottom: 16px;
  flex-shrink: 0;
}

.wallet-demo-panel .panel-title {
  justify-content: center;
  width: 100%;
  margin: 0 0 10px;
}

.wallet-demo-panel .wallet-balance-display {
  display: flex;
  justify-content: center;
  align-items: baseline;
  width: 100%;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin: 4px 0 14px;
}

.wallet-demo-panel .wallet-demo-hint {
  margin: 0 0 16px;
  line-height: 1.55;
  max-width: 42ch;
}

.wallet-demo-panel > .kvp,
.wallet-demo-panel > .neon-btn {
  align-self: stretch;
  width: 100%;
  text-align: start;
}

.wallet-shield {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--accent-faint), transparent);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  margin-bottom: 18px;
  box-shadow: var(--glow-strong);
  animation: shieldPulse 2.4s ease-in-out infinite;
}

@keyframes shieldPulseLight {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 64px rgba(37, 99, 235, .45);
  }
}

html[data-theme="light"] .wallet-shield {
  animation: shieldPulseLight 2.4s ease-in-out infinite;
}

.wallet-shield [data-lucide] {
  width: 44px;
  height: 44px;
}

@keyframes shieldPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 64px rgba(0, 255, 65, .55);
  }
}

.wallet-balance-display {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 12px 0;
  letter-spacing: -.02em;
}

.wallet-balance-display .unit {
  font-size: 1.2rem;
  color: var(--accent);
  margin-left: 6px;
}

.network-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.network-card {
  padding: 16px;
  border-radius: var(--r-6);
  border: 1px solid var(--border-2);
  background: rgba(255, 255, 255, .02);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.network-card:hover {
  border-color: var(--border-accent);
  background: var(--accent-faint);
}

.network-card.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.network-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.network-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-3);
}

.network-card.active .network-dot {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.network-card.is-mainnet .network-dot {
  background: #627EEA;
}

.network-card.is-sepolia .network-dot {
  background: #FFB300;
}

.network-sub {
  font-size: .76rem;
  color: var(--text-3);
}

/* NFT detail */
.nft-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 28px;
}

.nft-detail-frame {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-8);
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  overflow: hidden;
  box-shadow: var(--shadow-3), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.nft-detail-frame img,
.nft-detail-frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.nft-detail-frame audio {
  width: calc(100% - 40px);
  margin: 20px;
}

.nft-detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nft-detail .neon-btn.is-fav svg {
  stroke: #ff5c8a;
}

.nft-detail .neon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nft-d-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.nft-d-owner-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nft-d-owner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.nft-d-owner:hover {
  background: var(--accent-faint);
  border-color: var(--border-accent);
}

.nft-d-action-card {
  padding: 18px;
  border-radius: var(--r-7);
  background: linear-gradient(180deg, rgba(0, 255, 65, .06), rgba(0, 255, 65, .01));
  border: 1px solid var(--border-accent);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nft-d-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.nft-d-price-label {
  font-size: .76rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.nft-d-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}

.nft-d-price-eth {
  font-family: var(--font-mono);
  font-size: .92rem;
  color: var(--text-3);
}

.nft-d-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nft-d-meta-cell {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-5);
  background: rgba(255, 255, 255, .02);
}

.nft-d-meta-cell--full {
  grid-column: 1 / -1;
}

.nft-d-meta-hash {
  cursor: pointer;
  user-select: text;
}

.nft-d-meta-label {
  font-size: .72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.nft-d-meta-value {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--text);
  margin-top: 4px;
  word-break: break-all;
}

/* Accordion */
.acc {
  border: 1px solid var(--border-2);
  border-radius: var(--r-6);
  overflow: hidden;
}

.acc-row {
  border-bottom: 1px solid var(--border);
}

.acc-row:last-child {
  border-bottom: 0;
}

.acc-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}

.acc-head:hover {
  background: rgba(255, 255, 255, .03);
}

.acc-head [data-lucide] {
  transition: transform .25s var(--ease-out);
}

.acc-row.open .acc-head [data-lucide] {
  transform: rotate(180deg);
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease-out);
  padding: 0 16px;
  color: var(--text-2);
  font-size: .9rem;
}

.acc-row.open .acc-body {
  max-height: 800px;
  padding: 0 16px 16px;
}

/* Provenance table */
.tx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}

.tx-table th,
.tx-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.tx-table th {
  color: var(--text-3);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}

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

.tx-table .tx-from-to {
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--text-2);
}

.tx-table a {
  color: var(--accent);
}

/* Settings nav */
.settings-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.settings-nav .sn-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--r-5);
  font-size: .9rem;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.settings-nav .sn-item:hover {
  background: rgba(255, 255, 255, .03);
  color: var(--text);
}

.settings-nav .sn-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}

@media (max-width: 900px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

.settings-privacy-lede {
  margin: 0;
  max-width: 40rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.settings-privacy-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
}

@media (min-width: 480px) {
  .settings-privacy-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

.settings-privacy-btn {
  width: 100%;
  min-height: 44px;
  justify-content: center;
}

/* Avatar crop */
.crop-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-pill);
  background: var(--abyss);
  border: 1px solid var(--border-2);
  overflow: hidden;
  margin: 12px auto 16px;
  max-width: 320px;
}

.crop-canvas-wrap canvas {
  display: block;
}

.crop-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crop-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-2);
}

.crop-row input[type="range"] {
  flex: 1;
  accent-color: var(--accent);
}

/* Banner upload */
.banner-zone {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 1;
  border-radius: var(--r-7);
  border: 2px dashed var(--border-accent);
  background: rgba(0, 255, 65, .02);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.banner-zone:hover,
.banner-zone.is-drag {
  border-color: var(--accent);
  background: rgba(0, 255, 65, .06);
}

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

.banner-zone .bz-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-2);
  font-size: .9rem;
  background: rgba(0, 0, 0, .35);
}

.banner-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Misc */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 255, 65, .25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

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

.copy-flash {
  color: var(--accent) !important;
  transition: color .2s;
}

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

.text-accent {
  color: var(--accent);
}

.text-danger {
  color: var(--danger);
}

.text-warn {
  color: var(--warn);
}

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

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

.spacer {
  flex: 1;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

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

/* Hide */
[hidden] {
  display: none !important;
}

/* Helper: utility lists */
.kvp {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .88rem;
}

.kvp-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
}

.kvp-row:last-child {
  border-bottom: 0;
}

.kvp-row .k {
  color: var(--text-3);
}

.kvp-row .v {
  color: var(--text);
  font-weight: 500;
}

/* Two factor */
.tfa-qr {
  display: flex;
  justify-content: center;
  padding: 16px;
  background: #fff;
  border-radius: var(--r-5);
  margin: 12px 0;
}

.tfa-qr img {
  display: block;
}

/* Trend NFT listesi — kompakt bar satırları */
.trend-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  padding-bottom: 0;
  scroll-snap-type: none;
}

.trend-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-5);
  background: rgba(0, 0, 0, .22);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .12s var(--ease-out);
  text-align: left;
}

.trend-bar-item:hover {
  border-color: var(--border-accent);
  background: var(--accent-soft);
}

.trend-bar-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.trend-bar-thumb {
  width: 46px;
  height: 46px;
  border-radius: var(--r-4);
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-2);
}

.trend-bar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-bar-thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.trend-bar-thumb-fallback [data-lucide] {
  width: 20px;
  height: 20px;
}

.trend-bar-meta {
  flex: 1;
  min-width: 0;
}

.trend-bar-title {
  font-weight: 600;
  font-size: .88rem;
  line-height: 1.25;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-bar-sub {
  font-size: .72rem;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trend-bar-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-3);
  opacity: .85;
}

html[data-theme="light"] .trend-bar-item {
  background: rgba(255, 255, 255, .45);
}

html[data-theme="light"] .trend-bar-item:hover {
  background: rgba(0, 255, 65, .08);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  background: var(--surface);
  border: 1px solid var(--border-2);
  width: 42px;
  height: 42px;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 28;
  backdrop-filter: blur(2px);
}

.nav-backdrop.open {
  display: block;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --sidebar-w: 0px;
    --gutter: 18px;
  }

  #shell {
    grid-template-columns: 1fr;
    grid-template-areas: "topbar" "main";
  }

  #sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-105%);
    transition: transform .25s var(--ease-out);
  }

  #sidebar.open {
    transform: translateX(0);
  }

  .nav-toggle {
    display: inline-flex;
  }

  #topbar {
    padding-left: 64px;
  }

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

  .profile-head {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
    margin-top: -56px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-meta {
    align-items: center;
    padding-top: 4px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .profile-bio {
    max-width: 36em;
    text-align: center;
  }

  .profile-stats {
    justify-content: center;
    width: 100%;
    border-top: 0;
    padding-top: 8px;
    margin-top: 6px;
    gap: 12px 20px;
  }

  .profile-actions {
    justify-content: center;
    width: 100%;
    padding-top: 0;
    padding-bottom: 8px;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .network-grid {
    grid-template-columns: 1fr;
  }

  .nft-d-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-title {
    font-size: 1.6rem;
  }

  .stat-card-value {
    font-size: 1.6rem;
  }

  .tb-search {
    height: 38px;
    padding: 0 14px 0 38px;
  }

  .tb-kbd {
    display: none;
  }

  .tb-user-meta {
    display: none;
  }

  .tb-search-wrap {
    max-width: 100%;
  }

  .nft-d-title {
    font-size: 1.4rem;
  }

  #view {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .tb-actions .neon-btn {
    display: none;
  }

  .tb-lang {
    height: 32px;
  }

  .tb-lang-btn {
    padding: 0 10px;
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   NEW FEATURES — Page Transitions
   ============================================================ */
#view.page-exit {
  animation: pageFadeOut .18s var(--ease-out) forwards;
}

#view.page-enter {
  animation: pageFadeIn .25s var(--ease-snap) forwards;
}

@keyframes pageFadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   Advanced Filters
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group label {
  font-size: .78rem;
  color: var(--text-3);
  white-space: nowrap;
}

.filter-input {
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: rgba(11, 14, 20, .6);
  color: var(--text);
  padding: 0 12px;
  font-size: .82rem;
  width: 90px;
  transition: border-color .15s, box-shadow .15s;
}

html[data-theme="light"] .filter-input {
  background: rgba(255, 255, 255, .96);
}

.filter-input:focus {
  border-color: var(--border-accent-strong);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-select {
  height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-2);
  background: rgba(11, 14, 20, .6);
  color: var(--text);
  padding: 0 12px;
  font-size: .82rem;
  cursor: pointer;
}

html[data-theme="light"] .filter-select {
  background: rgba(255, 255, 255, .96);
}

/* ============================================================
   Collections
   ============================================================ */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.collection-card {
  position: relative;
  background: linear-gradient(180deg, rgba(21, 25, 35, .65), rgba(15, 19, 28, .9));
  border: 1px solid var(--border-2);
  border-radius: var(--r-7);
  padding: 20px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .25s, transform .15s;
  overflow: hidden;
}

html[data-theme="light"] .collection-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 247, 250, .98));
}

.collection-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-soft);
  transform: translateY(-2px);
}

.collection-card-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 14px;
  border-radius: var(--r-4);
  overflow: hidden;
}

.collection-card-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.collection-card-thumbs .thumb-empty {
  background: var(--surface-3);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.collection-card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.collection-card-count {
  font-size: .8rem;
  color: var(--text-3);
}

.collection-add-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border-style: dashed;
  border-color: var(--border-2);
  color: var(--text-3);
  gap: 10px;
}

.collection-add-card:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.collection-add-card [data-lucide] {
  width: 28px;
  height: 28px;
}

/* ============================================================
   Auction
   ============================================================ */
.auction-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: rgba(255, 179, 0, .12);
  border: 1px solid rgba(255, 179, 0, .35);
  color: var(--warn);
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.auction-timer [data-lucide] {
  width: 14px;
  height: 14px;
}

.auction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 179, 0, .14);
  color: var(--warn);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.bid-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.bid-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-4);
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  font-size: .85rem;
}

html[data-theme="light"] .bid-row {
  background: rgba(0, 0, 0, .02);
}

.bid-user {
  font-weight: 600;
}

.bid-amount {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}

.bid-time {
  color: var(--text-3);
  font-size: .76rem;
}

/* ============================================================
   Lazy Mint Badge
   ============================================================ */
.lazy-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--info-soft);
  border: 1px solid rgba(79, 195, 247, .35);
  color: var(--info);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ============================================================
   Push Notification Banner
   ============================================================ */
.push-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: linear-gradient(90deg, rgba(0, 255, 65, .06), rgba(0, 255, 65, .02));
  border: 1px solid var(--border-accent);
  border-radius: var(--r-6);
  margin-bottom: 18px;
}

html[data-theme="light"] .push-banner {
  background: linear-gradient(90deg, rgba(37, 99, 235, .07), rgba(37, 99, 235, .02));
}

.push-banner-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.push-banner-text {
  flex: 1;
  font-size: .88rem;
  color: var(--text-2);
  line-height: 1.4;
}

.push-banner-text strong {
  color: var(--text);
}

/* ============================================================
   WalletConnect Button
   ============================================================ */
.wc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  padding: 0 24px;
  font-size: .95rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: #fff;
  background: linear-gradient(135deg, #3B99FC, #2575D8);
  border: none;
  border-radius: var(--r-6);
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 153, 252, .35);
  transition: transform .15s, box-shadow .2s, filter .15s;
}

.wc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(59, 153, 252, .5);
  filter: brightness(1.06);
}

.wc-btn:active {
  transform: translateY(0);
}

.wc-btn svg {
  flex-shrink: 0;
}

/* ============================================================
   Copyright Similarity Warning
   ============================================================ */
.similarity-warn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--r-5);
  background: var(--warn-soft);
  border: 1px solid rgba(255, 179, 0, .35);
  margin-top: 12px;
}

.similarity-warn-icon {
  flex-shrink: 0;
  color: var(--warn);
  margin-top: 2px;
}

.similarity-warn-icon [data-lucide] {
  width: 20px;
  height: 20px;
}

.similarity-warn-text {
  flex: 1;
  font-size: .85rem;
  color: var(--text);
  line-height: 1.5;
}

.similarity-warn-text strong {
  color: var(--warn);
}

.similarity-warn-line {
  margin-top: 6px;
}

.similarity-warn-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mint-analysis-stack {
  display: grid;
  gap: 8px;
}

.mint-analysis-note {
  font-size: .8rem;
}

.similarity-ok {
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
}

/* ============================================================
   Enhanced Analytics
   ============================================================ */
.analytics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.kpi-card {
  padding: 18px;
  border-radius: var(--r-6);
  background: linear-gradient(135deg, rgba(21, 25, 35, .65), rgba(27, 32, 48, .55));
  border: 1px solid var(--border-2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color .2s, box-shadow .25s;
}

html[data-theme="light"] .kpi-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(245, 247, 250, .98));
}

.kpi-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--glow-soft);
}

.kpi-label {
  font-size: .76rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
}

.kpi-change {
  font-size: .78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.kpi-change--up {
  color: var(--accent);
}

.kpi-change--down {
  color: var(--danger);
}

/* Analytics page — orantılı grid ve grafik yüksekliği */
.page--analytics .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.page--analytics .analytics-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.analytics-charts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.analytics-chart-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.analytics-chart-panel .panel-title {
  flex-shrink: 0;
}

.analytics-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 260px;
  min-height: 240px;
  flex: 1;
}

.analytics-chart-canvas-wrap canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-height: 260px !important;
}

.analytics-top-panel {
  width: 100%;
}

@media (max-width: 1180px) {
  .analytics-charts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .analytics-charts-grid .analytics-chart-panel:last-child {
    grid-column: 1 / -1;
    max-width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 900px) {

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

@media (max-width: 560px) {

  .page--analytics .stat-grid,
  .page--analytics .analytics-kpi-grid {
    grid-template-columns: 1fr;
  }

  .analytics-charts-grid {
    grid-template-columns: 1fr;
  }

  .analytics-charts-grid .analytics-chart-panel:last-child {
    grid-column: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}