:root { color-scheme: dark; }
body {
  -webkit-font-smoothing: antialiased;
  /* resplandor de marca: turquesa y rosa Kan */
  background-image:
    radial-gradient(900px 500px at 100% -10%, rgba(95,203,211,.10), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(244,34,84,.08), transparent 60%);
  background-attachment: fixed;
}
.font-display { font-family: 'Space Grotesk', Inter, sans-serif; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #21416b; border-radius: 99px; border: 3px solid #000d22; }
::-webkit-scrollbar-thumb:hover { background: #2f5585; }

.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: #f42254; color: #fff; font-size: 14px; font-weight: 500; padding: .5rem .9rem; border-radius: 14px; transition: background .15s; white-space: nowrap; }
.btn-primary:hover { background: #d61e4a; }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }

.btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; background: #0a2246; color: #e4e4e7; font-size: 14px; font-weight: 500; padding: .5rem .9rem; border-radius: 14px; border: 1px solid #163257; transition: border-color .15s, background .15s; white-space: nowrap; }
.btn-secondary:hover { border-color: #2f5585; background: #0e2850; }
.btn-secondary:disabled { opacity: .5; cursor: not-allowed; }

.btn-danger { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: #f87171; font-size: 14px; font-weight: 500; padding: .5rem .9rem; border-radius: 14px; border: 1px solid #5a1a2c; transition: background .15s; }
.btn-danger:hover { background: rgba(248,113,113,.08); }

.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid #163257; background: #0a2246; color: #8aa3bf; transition: color .15s, border-color .15s; flex: none; }
.btn-icon:hover { color: #fff; border-color: #2f5585; }

.nav-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .55rem .7rem; border-radius: 12px; font-size: 14px; font-weight: 500; color: #8aa3bf; transition: background .15s, color .15s; }
.nav-item:hover { background: #0e2850; color: #e4e4e7; }
.nav-item.active { background: #112d58; color: #fff; }
.nav-item.active svg { color: #f42254; }
.nav-badge { margin-left: auto; font-size: 11px; font-weight: 600; color: #8aa3bf; background: #163257; padding: 1px 7px; border-radius: 99px; }

.chain-item { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .45rem .7rem; border-radius: 10px; font-size: 13px; color: #8aa3bf; transition: background .15s, color .15s; }
.chain-item:hover { background: #0e2850; color: #e4e4e7; }
.chain-item.on { color: #fff; }
.chain-dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.chain-count { margin-left: auto; font-size: 11px; color: #5f7a99; }

.input { background: #0a2246; border: 1px solid #163257; border-radius: 12px; padding: .55rem .75rem; font-size: 14px; color: #e4e4e7; outline: none; transition: border-color .15s; }
.input:focus { border-color: #5fcbd3; }
.input::placeholder { color: #5f7a99; }
.input-sm { background: #0a2246; border: 1px solid #163257; border-radius: 12px; padding: .45rem .7rem; font-size: 13px; color: #e4e4e7; outline: none; }
.label { display: block; font-size: 12px; font-weight: 500; color: #8aa3bf; margin-bottom: .35rem; }

.stat { background: #03183a; border: 1px solid #163257; border-radius: 14px; padding: 1rem 1.1rem; }
.stat-label { font-size: 12px; color: #8aa3bf; font-weight: 500; }
.stat-value { font-family: 'Space Grotesk', Inter, sans-serif; font-size: 26px; font-weight: 700; margin-top: .25rem; letter-spacing: -.02em; }
.card-block { background: #03183a; border: 1px solid #163257; border-radius: 14px; padding: 1.15rem; }
.mini { background: #0a2246; border: 1px solid #163257; border-radius: 12px; padding: .7rem .8rem; }
.mini-k { font-size: 11px; color: #8aa3bf; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.mini-v { font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; margin-top: .25rem; word-break: break-all; color: #d4d4d8; }

.nft-card { background: #03183a; border: 1px solid #163257; border-radius: 14px; overflow: hidden; cursor: pointer; transition: border-color .15s, transform .15s; text-align: left; }
.nft-card:hover, .nft-card:focus-visible { border-color: #2f5585; transform: translateY(-2px); outline: none; }
.nft-media { aspect-ratio: 1/1; background: #0b1f40; position: relative; overflow: hidden; }
.nft-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nft-badge { position: absolute; top: .55rem; left: .55rem; display: inline-flex; align-items: center; gap: .3rem; background: rgba(0,13,34,.82); backdrop-filter: blur(6px); border: 1px solid #21416b; border-radius: 99px; padding: .15rem .5rem; font-size: 10.5px; font-weight: 600; color: #d4d4d8; }
.tba-flag { position: absolute; top: .55rem; right: .55rem; background: rgba(244,34,84,.92); border-radius: 99px; padding: .2rem .45rem; display: inline-flex; align-items: center; gap: .25rem; font-size: 10.5px; font-weight: 600; color: #fff; }

.skeleton { background: linear-gradient(90deg,#0b1f40 25%,#163257 50%,#0b1f40 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.trait { background: #0a2246; border: 1px solid #163257; border-radius: 10px; padding: .5rem .65rem; }
.trait-k { font-size: 10.5px; color: #8aa3bf; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.trait-v { font-size: 13px; color: #e4e4e7; margin-top: .15rem; word-break: break-word; }

.toast { background: #0a2246; border: 1px solid #21416b; border-radius: 12px; padding: .7rem .85rem; font-size: 13px; display: flex; gap: .6rem; align-items: flex-start; color: #e4e4e7; animation: slideIn .2s ease-out; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.tba-row { background: #03183a; border: 1px solid #163257; border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }

.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Selección múltiple */
.nft-card { position: relative; }
.nft-card.selected { border-color: #f42254; box-shadow: 0 0 0 2px #f42254; }
.sel-box { position: absolute; z-index: 5; top: .55rem; right: .55rem; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #fff; background: rgba(0,13,34,.55); display: flex; align-items: center; justify-content: center; color: #fff; }
.nft-card.selected .sel-box { background: #f42254; border-color: #f42254; }

/* Detalles de marca Kan */
.stat { position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(90deg, #f42254 0 10px, transparent 10px 14px, #5fcbd3 14px 24px, transparent 24px 28px); opacity: .55; }
.btn-primary { box-shadow: 0 6px 18px -8px rgba(244,34,84,.7); }
.nav-item.active { box-shadow: inset 3px 0 0 #f42254; }
.nft-card:hover, .nft-card:focus-visible { border-color: #5fcbd3; }
.input:focus { box-shadow: 0 0 0 3px rgba(95,203,211,.15); }
