/* Ascended-specific pieces (product page, guides, carousel, donations…). The panel look itself comes from style.css,
   the same design system as the Evolved panel. */
:root {
  --accent-soft: var(--accent-wash);
  --mono: var(--f-mono);
  --glow: 0 0 0 1px rgba(241, 45, 61, .35), 0 0 22px rgba(241, 45, 61, .18);
}

/* botasa hero: same look as the Evolved site hero (red glow, red ARK, kicker line), with the Ascended logo */
.asa-hero h1::before { content: none; }
.asa-hero h1 { text-transform: none; font-family: inherit; font-size: clamp(44px, 6.4vw, 78px); letter-spacing: -.035em; }
.asa-hero .grad { color: var(--accent); }
.asa-kicker { color: var(--accent); font-family: var(--mono); display: flex; align-items: center; gap: 12px; }
.asa-kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.asa-actions .btn.primary { background: linear-gradient(180deg, #ff3b4a, #e5202e); border-color: #ff5a64; color: #fff; }
.asa-actions .btn.disabled { display: inline-flex; align-items: center; gap: 10px; background: rgba(229,32,46,.55); border-color: transparent; color: #fff; opacity: .7; cursor: not-allowed; }
.asa-actions .btn.disabled svg { flex: none; }
.asa-works { font-size: 13px; } .asa-works span { font-family: var(--mono); color: #7a7a82; }
/* Full-bleed red glow behind the hero, like the reference */
.asa-hero { position: relative; isolation: isolate; padding: 40px 0; }
.asa-hero::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -60px; bottom: -60px; width: 100vw; transform: translateX(-50%);
  background: radial-gradient(60% 90% at 88% 0%, rgba(150, 25, 35, .55), transparent 70%), radial-gradient(50% 70% at 0% 100%, rgba(120, 15, 25, .35), transparent 70%);
}
.asa-hero-logo { filter: drop-shadow(0 0 46px rgba(241, 45, 61, .5)); }
/* Particles around the logo: canvas is larger than the image so dots float outside it */
.asa-logo-wrap { position: relative; width: 100%; max-width: 420px; justify-self: center; line-height: 0; }
.asa-logo-wrap .asa-hero-logo { position: relative; z-index: 1; display: block; width: 100%; max-width: none; height: auto; }
@media (max-width: 900px) { .asa-logo-wrap { max-width: 260px; order: -1; } }
.asa-particles { position: absolute; z-index: 0; left: -14%; top: -14%; width: 128%; height: 128%; pointer-events: none; }

.content:has(.asa-hero) { margin: 0 auto; width: 100%; }
.asa-hero, .features { margin-left: auto; margin-right: auto; }

/* Ascended product page: features and steps in red instead of blue */
.feature-card:hover { border-color: var(--accent); box-shadow: var(--glow); }
.feature-icon { background: rgba(241, 45, 61, .14); border-color: rgba(241, 45, 61, .45); color: #ff5a64; }
.features-title { font-family: inherit; letter-spacing: -.01em; text-transform: none; }
.features-title::before { content: none; }

/* License activation graphic */
.lic-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; text-align: left; }
.lic-step { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; }
.lic-step h3 { margin: 16px 0 4px; }
.lic-step .muted { margin: 0; font-size: 13px; }
.lic-num { position: absolute; top: -12px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 16px rgba(241, 45, 61,.6); }
.lic-arrow { align-self: center; font-size: 26px; color: var(--accent); }
.lic-visual { min-height: 96px; border-radius: 8px; background: #0a0a0c; border: 1px solid var(--border); padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.lic-label { font: 10px var(--mono); letter-spacing: .2em; color: #7a7a82; }
.lic-key code { background: none; font-size: 17px; letter-spacing: .08em; color: #fff; text-shadow: 0 0 14px rgba(241, 45, 61,.6); }
.lic-input { background: #1b1b20; border-radius: 6px; padding: 10px 12px; font-size: 13px; overflow-wrap: anywhere; }
.lic-slash { color: #fff; background: rgba(241, 45, 61,.3); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.lic-arg { color: #9a9aa2; } .lic-val { color: #fff; font-family: var(--mono); }
.lic-hint { font-size: 11px; color: #6b6b73; }
.lic-msg { border-left: 3px solid var(--accent); padding-left: 10px; font-size: 13px; }
.lic-msg p { margin: 4px 0 0; }
.lic-bot { font-weight: 700; margin-right: 6px; }
.lic-tag { font-size: 9px; background: var(--accent); color: #fff; border-radius: 3px; padding: 1px 4px; }
@media (max-width: 900px) { .lic-flow { grid-template-columns: 1fr; } .lic-arrow { transform: rotate(90deg); justify-self: center; } }

/* Manual server link graphic */
.link-flow { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; }
.link-flow .lic-arrow { font-size: 20px; }
.lk-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; background: #1b1b20; border-radius: 6px; padding: 7px 10px; }
.lk-row span { color: #8d8d94; } .lk-row b { color: #fff; font-weight: 600; }
.lk-btn { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 6px; background: var(--accent); color: #fff; }
.lk-btn.ghost { background: transparent; border: 1px solid var(--border); color: #ccc; }
.lk-btns { display: flex; gap: 8px; }
.lk-field { background: #1b1b20; border-radius: 6px; padding: 8px 10px; }
.lk-field code { background: none; font-size: 13px; color: #fff; }
.lk-ini pre { margin: 0; font: 12px/1.6 var(--mono); color: #bbb; white-space: pre-wrap; }
.lk-sec { color: #ff5a64; } .lk-tok { color: #fff; text-shadow: 0 0 10px rgba(241, 45, 61,.6); }
.lk-status { display: inline-flex; align-items: center; gap: 8px; font: 700 13px var(--mono); color: #fff; letter-spacing: .08em; text-transform: uppercase; }
.lk-status i { width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #fff; animation: cc-pulse 1.8s infinite; }
@media (max-width: 1100px) { .link-flow { grid-template-columns: 1fr 1fr; } .link-flow .lic-arrow { display: none; } }
@media (max-width: 600px) { .link-flow { grid-template-columns: 1fr; } }

.lk-test { display: flex; align-items: center; gap: 10px; }
.lk-pass { font: 700 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 4px; padding: 3px 8px; box-shadow: 0 0 12px rgba(255,255,255,.15); }

/* Setup steps graphic */
.su-mod-head { display: flex; align-items: center; gap: 10px; }
.su-mod-head img { border-radius: 8px; }
.su-mod-head b { display: block; font-size: 14px; } .su-mod-head span { font-size: 11px; color: #8d8d94; }
.su-mod .lk-btn { text-decoration: none; }
.su-chan { display: flex; align-items: center; gap: 8px; background: #1b1b20; border-radius: 6px; padding: 6px 10px; font-size: 12px; color: #ddd; }
.su-chan i { color: var(--accent); font-style: normal; font-weight: 700; }
.su-chan span { margin-left: auto; font: 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8d8d94; }

/* Nitrado token guide */
.nt-list { display: flex; flex-direction: column; gap: 22px; max-width: 760px; margin: 0 auto; text-align: left; }
.nt-step { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; }
.nt-text h3 { margin: 0 0 4px; } .nt-text .muted { margin: 0; font-size: 13px; }
.nt-mock { min-height: 86px; font-size: 12px; }
.nt-menu { display: flex; flex-direction: column; gap: 6px; font: 12px var(--mono); color: #8d8d94; letter-spacing: .08em; }
.nt-menu.small { font-size: 11px; gap: 4px; letter-spacing: 0; }
.nt-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 10px var(--mono); letter-spacing: .12em; color: #8d8d94; }
.nt-form { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; width: 100%; }
.nt-form .lk-field { width: 100%; font-size: 12px; color: #ddd; }
.nt-check { display: flex; align-items: center; gap: 8px; color: #ddd; padding: 3px 6px; border-radius: 4px; }
.nt-check i { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.hl { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; color: #fff; padding: 2px 6px; box-shadow: 0 0 14px rgba(241, 45, 61,.35); }
.nt-warn { max-width: 760px; margin: 22px auto 0; text-align: left; border: 1px solid var(--accent); border-radius: 10px; padding: 12px 16px; background: rgba(241, 45, 61,.08); }
.nt-warn b { color: #ff5a64; }
@media (max-width: 700px) { .nt-step { grid-template-columns: 1fr; } }

/* Guides as sub-tabs (all visible if JS is off) */
.guides { width: 100%; max-width: 1120px; margin: 72px auto 0; scroll-margin-top: 24px; }
.guides .features { margin-top: 0; }
.guide-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; padding: 5px; width: fit-content; max-width: 100%; margin-left: auto; margin-right: auto; border: 1px solid var(--border); border-radius: 10px; background: rgba(0,0,0,.4); }
.guide-tab { font: 700 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d8d94; background: none; border: 0; border-radius: 7px; padding: 10px 18px; cursor: pointer; transition: color .15s, background .15s; }
.guide-tab:hover { color: #fff; background: var(--accent-soft); }
.guide-tab.active { color: #fff; background: linear-gradient(180deg, #ff3b4a, #d4111f); box-shadow: 0 0 18px rgba(241, 45, 61,.4); }
.guides:not(.js) .guide-tabs { display: none; }
.guides.js .guide-panel { display: none; }
.guides.js .guide-panel.active { display: block; animation: cc-in .3s ease both; }
@media (max-width: 600px) { .guide-tab { padding: 9px 12px; font-size: 11px; } }

.asa-actions .discord-add { display: inline-flex; align-items: center; gap: 10px; }

/* Feature carousel with Discord mock-ups */
.fc { position: relative; text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 36px 40px 30px; background: var(--card); overflow: hidden; }
.fc-slide { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; min-height: 300px; }
.fc.js .fc-slide { display: none; } .fc.js .fc-slide.active { display: grid; animation: cc-in .35s ease both; }
.fc:not(.js) .fc-slide { margin-bottom: 30px; } .fc:not(.js) .fc-nav { display: none; }
.fc-copy h3 { font-size: 26px; margin: 0 0 10px; } .fc-copy p { color: #a0a0a8; font-size: 16px; line-height: 1.6; margin: 0; max-width: 360px; }
.fc-nav { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.fc-arrow { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(255,255,255,.04); color: #fff; font-size: 20px; cursor: pointer; transition: border-color .15s, background .15s; }
.fc-arrow:hover { border-color: var(--accent); background: var(--accent-soft); }
.fc-dots { display: flex; gap: 8px; }
.fc-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: #3a3a42; cursor: pointer; transition: width .2s, background .2s; }
.fc-dot.active { width: 28px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 10px rgba(241, 45, 61,.6); }
.fc-shot { position: relative; padding: 0 0 14px 0; }
.fc-shot::before, .fc-shot::after { content: ""; position: absolute; left: 14px; right: -14px; top: 12px; bottom: 0; border-radius: 10px; background: #26262b; z-index: 0; opacity: .6; }
.fc-shot::after { left: 28px; right: -28px; top: 24px; background: #1c1c20; opacity: .5; }
.dc-win { position: relative; z-index: 1; background: #313338; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); overflow: hidden; color: #dbdee1; font-family: "gg sans", "Segoe UI", system-ui, sans-serif; }
.dc-chan { padding: 12px 16px; font-weight: 700; font-size: 14px; border-bottom: 1px solid #26272b; }
.dc-body { display: flex; gap: 12px; padding: 22px 16px 18px; }
.dc-ava { border-radius: 50%; flex: none; background: #1e1f22; }
.dc-msg { flex: 1; min-width: 0; }
.dc-who { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 14px; }
.dc-who b { color: #ff7a85; } .dc-who time { color: #949ba4; font-size: 11px; }
.dc-app { background: #5865f2; color: #fff; font-size: 10px; font-weight: 700; padding: 1px 5px; border-radius: 3px; }
.dc-embed { background: #2b2d31; border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px 12px; font-size: 13px; }
.dc-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.dc-line { display: flex; align-items: center; gap: 8px; padding: 2px 0; flex-wrap: wrap; } .dc-line b { color: #fff; }
.dc-sub { color: #949ba4; } .dc-time { color: #949ba4; font-size: 12px; margin-right: 4px; }
.dc-foot { margin-top: 10px; font-size: 11px; color: #949ba4; }
.dc-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; flex: none; }
.dc-dot.on { background: #23d18b; } .dc-dot.off { background: #ff4d5a; } .dc-dot.mid { background: #ff9640; }
@media (max-width: 860px) { .fc { padding: 24px 18px; } .fc-slide { grid-template-columns: 1fr; gap: 22px; } .fc-copy p { max-width: none; } }

/* Tribe log look: plain lines, boxed timestamp, skull icon */
.dc-plain .tl-list { padding: 10px 8px 14px; display: flex; flex-direction: column; gap: 3px; max-height: 330px; overflow: hidden; }
.tl-row { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 1.5; padding: 1px 4px; border-radius: 4px; }
.tl-row:hover { background: rgba(255,255,255,.04); }
.tl-row b { color: #fff; white-space: nowrap; }
.tl-time { flex: none; font: 11px ui-monospace, Consolas, monospace; color: #dbdee1; background: #1e1f22; border: 1px solid #3a3c42; border-radius: 4px; padding: 1px 6px; }
.tl-ico { flex: none; font-size: 15px; }
@media (max-width: 860px) { .tl-row { flex-wrap: wrap; } }

.dc-title.dc-green { color: #23d18b; }
.dc-embed.dc-embed-ok { border-left-color: #23d18b; }

/* Success badges (e.g. DELIVERED) back in green */
.badge.ok { background: rgba(35, 209, 139, .14); color: #3ee6a0; border-color: rgba(35, 209, 139, .5); }
.badge.ok::before { color: #3ee6a0; }

/* Eye button to reveal a secret input */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); margin-top: 2px; width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: #8d8d94; font-size: 16px; cursor: pointer; transition: color .15s, background .15s; }
.pw-eye:hover { color: #fff; background: var(--accent-soft); }
.pw-eye.on { color: var(--accent); }

/* Donations: exact item values, dino stat grids, manual tab */
.kit-exact { flex: 1 0 100%; margin-top: 2px; }
.kit-exact summary { cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; }
.kit-exact summary:hover { color: #fff; }
.kit-exact-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.kit-exact-grid .field, .stat-grid .field { margin-bottom: 0; }
.kit-exact-grid .field.narrow, .stat-grid .field.narrow { width: 110px; min-width: 110px; flex: none; }
.stat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-grid > legend { width: 100%; }
[data-when-item][hidden], [data-when-dino][hidden] { display: none; }
.row .grow { flex: 1 1 0; min-width: 0; }

.saved-send { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved-send select, .saved-send input[type="text"] { min-width: 140px; flex: 1 1 140px; }
.save-row { margin-top: 6px; }

.bp-status { word-break: break-all; }
.bp-status.ok { color: #3ee6a0; }
.bp-status.warn { color: #ffb347; }
.bp-status.bad { color: #ff6b6b; }

.field input.locked { opacity: .65; cursor: not-allowed; background: rgba(255,255,255,.03); }
.level-lock { color: #ffb347; }

/* Brand: the Ascended name under R.E.X, small and spaced, in the accent color */
.brand > span { line-height: 1.05; }
.brand small { display: block; margin-top: 4px; font: 500 10.5px/1 var(--f-mono); letter-spacing: .34em; color: var(--accent-text); }

/* Bigger brand: logo and name */
.brand { gap: 13px; font-size: 27px; }
.brand .brand-logo { height: 48px; }
.brand small { margin-top: 5px; font-size: 12px; letter-spacing: .36em; }
aside .brand { padding-bottom: 24px; }
.topbar .brand { font-size: 20px; gap: 10px; padding: 0; }
.topbar .brand .brand-logo { height: 34px; }
.topbar .brand small { font-size: 9.5px; margin-top: 3px; }

/* Kit rows: an item block or a dino block, laid out as part of the row */
.kit-block { display: contents; }
.kit-block[hidden] { display: none; }
.kit-row .kit-exact-grid .field.narrow { width: 96px; min-width: 96px; }

/* Kit rows: the remove button sits with the main fields, the optional detail blocks go below */
.kit-row > button[data-remove] { order: 9; }
.kit-row .kit-exact { order: 10; }

/* GameUserSettings.ini example in the server form */
.ini-example { margin: 8px 0 12px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line-2, var(--border)); border-radius: 8px; overflow-x: auto; }
.ini-example code { font-family: var(--f-mono, ui-monospace, Consolas, monospace); font-size: 13.5px; color: #fff; background: none; border: 0; padding: 0; white-space: pre; }
.ini-rules { margin: 4px 0 0; padding-left: 18px; line-height: 1.6; }
.ini-rules li { margin-bottom: 4px; }

.ini-block { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 8px 0 12px; }
.ini-block .ini-example { flex: 1 1 340px; margin: 0; }
.ini-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }

/* Red marking: the part that has to be exact */
.ini-example .ini-hot { color: #fff; font-weight: 700; background: rgba(241, 45, 61, .28); border-bottom: 2px solid var(--accent); border-radius: 3px; padding: 0 3px; }
.ini-flag { margin: 0 0 10px; padding: 8px 12px; color: var(--accent-text, #ff5a67); background: rgba(241, 45, 61, .10); border-left: 3px solid var(--accent); border-radius: 6px; font-size: 13px; }
.ini-flag code { color: #fff; background: rgba(241, 45, 61, .22); border-color: rgba(241, 45, 61, .45); }
