/* ===================== launchpad components (loaded after style.css) ===================== */
.wide { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* nav extras */
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; text-shadow: 0 1px 10px rgba(0,0,0,0.6); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--gold-soft); }
.nav-connect { background: rgba(10,14,24,0.6); color: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 0.9rem; cursor: pointer; backdrop-filter: blur(8px); font-family: ui-monospace, Menlo, monospace; }
.nav-connect:hover { background: rgba(234,163,62,0.12); }

/* page heading */
.page-head { position: relative; z-index: 2; text-align: center; padding: 7vh 0 2vh; }
.page-head h1 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: clamp(2rem, 7vw, 3rem); font-weight: 600; margin: 0 0 8px; text-shadow: 0 2px 30px rgba(0,0,0,0.7); }
.page-head p { color: var(--muted); margin: 0; text-shadow: 0 1px 14px rgba(0,0,0,0.9); }

/* stat tiles */
.stats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 8px 0 28px; }
.stat { background: var(--glass); border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; min-width: 130px; text-align: center; backdrop-filter: blur(12px); }
.stat .v { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.stat .k { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

/* coin grid */
.coins { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 60px; }
.coin-card { display: block; text-decoration: none; color: inherit; background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 14px; backdrop-filter: blur(12px); transition: transform 0.1s, border-color 0.15s, box-shadow 0.15s; }
.coin-card:hover { transform: translateY(-3px); border-color: rgba(234,163,62,0.5); box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.coin-card .top { display: flex; gap: 12px; align-items: center; }
.coin-card img { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: rgba(255,255,255,0.05); flex: 0 0 auto; }
.coin-card .nm { font-weight: 700; font-size: 1.02rem; line-height: 1.1; }
.coin-card .sym { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.coin-card .meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: 0.85rem; }
.coin-card .meta .muted { color: var(--muted); }
.coin-card .meta b { color: var(--gold-soft); font-weight: 700; }

/* progress bar */
.progress { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.08); overflow: hidden; margin-top: 12px; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); border-radius: 999px; }

/* badges */
.badge { display: inline-block; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.badge.live { background: rgba(234,163,62,0.15); color: var(--gold-soft); border: 1px solid rgba(234,163,62,0.4); }
.badge.grad { background: rgba(50,170,100,0.15); color: #7fe0a6; border: 1px solid rgba(50,170,100,0.4); }

/* coin detail */
.coin-head { position: relative; z-index: 2; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 6vh 0 18px; }
.coin-head img { width: 76px; height: 76px; border-radius: 16px; object-fit: cover; background: rgba(255,255,255,0.05); }
.coin-head h1 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: 2rem; margin: 0; }
.coin-head .sym { color: var(--muted); }
.coin-head .mint { font-family: ui-monospace, Menlo, monospace; font-size: 0.76rem; color: var(--muted); }
.coin-head .links a { color: var(--gold-soft); text-decoration: none; margin-right: 12px; font-size: 0.9rem; }
.coin-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 340px; gap: 20px; padding-bottom: 60px; align-items: start; }
@media (max-width: 860px) { .coin-layout { grid-template-columns: 1fr; } }
.chart-box { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 14px; backdrop-filter: blur(12px); }
.chart-box .tf { display: flex; gap: 6px; margin-bottom: 10px; }
.chart-box .tf button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 4px 11px; font: inherit; font-size: 0.8rem; cursor: pointer; }
.chart-box .tf button.on { border-color: var(--gold); color: var(--gold-soft); }
#chart { width: 100%; height: 320px; }

.trade-panel { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 18px; backdrop-filter: blur(14px); position: sticky; top: 16px; }
.trade-panel .tabs { display: flex; gap: 8px; margin-bottom: 14px; }
.trade-panel .tabs button { flex: 1; background: rgba(6,8,15,0.5); border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 10px; font: inherit; font-weight: 700; cursor: pointer; }
.trade-panel .tabs button.buy.on { background: rgba(50,170,100,0.18); color: #7fe0a6; border-color: rgba(50,170,100,0.5); }
.trade-panel .tabs button.sell.on { background: rgba(190,70,55,0.18); color: #f0a494; border-color: rgba(190,70,55,0.5); }
.trade-panel input { width: 100%; background: rgba(6,8,15,0.5); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 1.05rem; }
.trade-panel input:focus { outline: none; border-color: var(--gold); }
.trade-panel .row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin: 10px 0; }
.trade-panel .row b { color: var(--ink); }
.trade-panel .chips { display: flex; gap: 6px; margin: 10px 0; }
.trade-panel .chips button { flex: 1; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 6px; font: inherit; font-size: 0.78rem; cursor: pointer; }
.trade-panel .chips button:hover { border-color: var(--gold); color: var(--gold-soft); }
.trade-panel .btn { width: 100%; margin-top: 6px; text-align: center; }

/* info + tables */
.infocard { background: var(--glass); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; backdrop-filter: blur(12px); margin-top: 20px; }
.infocard h3 { margin: 0 0 12px; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.kv { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.9rem; }
.kv:last-child { border-bottom: 0; }
.kv .muted { color: var(--muted); }
table.t { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
table.t th { text-align: left; color: var(--muted); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 7px 8px; border-bottom: 1px solid rgba(255,255,255,0.05); font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; }
table.t td.buy { color: #7fe0a6; }
table.t td.sell { color: #f0a494; }
table.t a { color: var(--gold-soft); text-decoration: none; }

/* states */
.empty { position: relative; z-index: 2; text-align: center; color: var(--muted); padding: 60px 20px; }
.empty .big { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.spinner { display: inline-block; width: 22px; height: 22px; border: 2px solid rgba(234,163,62,0.3); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* home: recent coins strip */
.home-coins { position: relative; z-index: 2; padding: 10px 0 20px; }
.home-coins .hc-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.home-coins .hc-head h2 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-weight: 600; font-size: 1.5rem; margin: 0; }
.home-coins .hc-head a { color: var(--gold-soft); text-decoration: none; font-size: 0.9rem; }
