:root {
  --bg-deep: #060e14;
  --bg-card: rgba(14, 27, 38, 0.88);
  --bg-card-hover: rgba(20, 38, 54, 0.95);
  --bg-input: rgba(7, 16, 24, 0.85);
  --border: rgba(23, 187, 229, 0.18);
  --border-strong: rgba(16, 185, 129, 0.45);
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.28);
  --accent: #17bbe5;
  --gold: #f59e0b;
  --danger: #ef4444;
  --text-main: #f1f7fb;
  --text-sub: #94adb8;
  --text-muted: #627d8a;
  --radius-lg: 18px;
  --radius-md: 12px;
}

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

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: radial-gradient(circle at 15% 0%, rgba(16, 185, 129, 0.14), transparent 42%),
              radial-gradient(circle at 85% 10%, rgba(23, 187, 229, 0.14), transparent 45%),
              var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  padding-bottom: 86px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(6, 14, 20, 0.86);
  border-bottom: 1px solid var(--border);
  padding: 12px 20px;
}

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

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

.brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff, #6ee7b7, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.73rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
  display: inline-block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-badge {
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
  font-weight: 600;
}

.container {
  max-width: 1120px;
  margin: 22px auto;
  padding: 0 16px;
}

.auth-wrap {
  max-width: 460px;
  margin: 36px auto;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.tabs-bar {
  display: flex;
  gap: 6px;
  background: rgba(6, 14, 20, 0.7);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}

.tab-btn {
  flex: 1;
  padding: 9px 10px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-sub);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(23, 187, 229, 0.22));
  color: #fff;
  border: 1px solid var(--border-strong);
}

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

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
}

.input, .textarea, .select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 0.94rem;
  outline: none;
  transition: border-color 0.18s;
}

.input:focus, .textarea:focus, .select:focus {
  border-color: var(--primary);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}

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

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #041318;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(23, 187, 229, 0.08);
  border-color: var(--border);
  color: var(--text-main);
}

.btn-outline:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(23, 187, 229, 0.16);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
  border-radius: 9px;
}

.hero-card {
  background: linear-gradient(135deg, rgba(13, 36, 46, 0.95), rgba(9, 22, 34, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 20px;
}

.wallet-addr-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.addr-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.83rem;
  color: #a7f3d0;
  cursor: pointer;
}

.balances-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.bal-box {
  background: rgba(5, 13, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
}

.bal-label {
  font-size: 0.78rem;
  color: var(--text-sub);
  margin-bottom: 4px;
}

.bal-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bal-unit {
  font-size: 0.95rem;
  color: #6ee7b7;
  font-weight: 700;
  margin-left: 4px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 640px) {
  .quick-actions {
    grid-template-columns: repeat(2, 1fr);
  }
}

.qa-btn {
  background: rgba(23, 187, 229, 0.09);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 10px;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all 0.16s;
}

.qa-btn:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

.qa-icon {
  font-size: 1.3rem;
}

.nav-desktop {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.nav-item {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  cursor: pointer;
}

.nav-item.active {
  background: linear-gradient(135deg, #10b981, #0ea5e9);
  color: #041318;
  border-color: transparent;
}

.nft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 16px;
}

.nft-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
}

.nft-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}

.nft-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #081520;
  position: relative;
  overflow: hidden;
}

.nft-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nft-id-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(6, 14, 20, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-strong);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

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

.nft-title {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nft-desc {
  font-size: 0.8rem;
  color: var(--text-sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
}

.nft-CardFooter {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.upload-dropzone {
  border: 2px dashed rgba(23, 187, 229, 0.38);
  border-radius: 16px;
  padding: 26px;
  text-align: center;
  background: rgba(7, 18, 27, 0.65);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.upload-dropzone:hover {
  border-color: var(--primary);
  background: rgba(16, 185, 129, 0.07);
}

.preview-img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 12px;
  margin-top: 12px;
  border: 1px solid var(--border);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.trait-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 8px;
}

.empty-state {
  text-align: center;
  padding: 46px 20px;
  color: var(--text-sub);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 8, 13, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: #0b1822;
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 120;
  background: #0d2329;
  border: 1px solid var(--primary);
  color: #ecfdf5;
  padding: 13px 18px;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
  max-width: 380px;
}

.info-banner {
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #d1fae5;
  margin-bottom: 16px;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
}

.hidden {
  display: none !important;
}

