/* KyDa WoW theme: frost-blue liquid glass. Loaded after bootstrap.min.css (only its grid/modal parts are relied on). */
:root {
    --bg: #060a13;
    --bg2: #0a1222;
    --glass: rgba(17, 27, 46, 0.58);
    --glass-strong: rgba(14, 22, 38, 0.86);
    --line: rgba(150, 195, 255, 0.14);
    --line-strong: rgba(150, 205, 255, 0.32);
    --text: #e8eefa;
    --muted: #93a4bf;
    --frost: #7fcbff;
    --frost-2: #3c8dff;
    --ice: #d4f0ff;
    --ok: #5fe3a7;
    --bad: #ff7a8a;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 20px 60px -24px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* calm frost aurora behind everything */
.bg-aurora {
    position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 520px at 12% -6%, rgba(60, 141, 255, 0.28), transparent 60%),
        radial-gradient(760px 520px at 92% 8%, rgba(127, 203, 255, 0.18), transparent 62%),
        radial-gradient(900px 700px at 50% 110%, rgba(40, 90, 200, 0.22), transparent 60%),
        linear-gradient(180deg, #060a13 0%, #070d1a 60%, #060a13 100%);
}
.bg-aurora::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(212, 240, 255, 0.5) 1px, transparent 1.2px);
    background-size: 46px 46px; opacity: 0.05;
}

a { color: var(--frost); text-decoration: none; }
a:hover { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }
code { font-family: var(--mono); color: var(--ice); background: rgba(127, 203, 255, 0.08); padding: 0.1em 0.4em; border-radius: 6px; font-size: 0.9em; }
h1, h2, h3, h4 { color: #fff; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 0.75em; }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--frost); color: #041020; padding: 8px 14px; border-radius: 8px; }

/* ---------- glass surface ---------- */
.glass {
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
}

/* ---------- buttons ---------- */
.btn-frost, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-weight: 600; font-size: 0.95rem; line-height: 1;
    padding: 11px 18px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s;
    white-space: nowrap;
}
.btn-frost {
    color: #041020;
    background: linear-gradient(135deg, var(--ice) 0%, var(--frost) 45%, var(--frost-2) 100%);
    box-shadow: 0 8px 28px -10px rgba(60, 141, 255, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}
.btn-frost:hover { color: #041020; text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(60, 141, 255, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.35) inset; }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); }
.btn-ghost:hover { color: #fff; text-decoration: none; background: rgba(127, 203, 255, 0.1); border-color: var(--frost); }
.btn-frost.lg, .btn-ghost.lg { padding: 14px 22px; font-size: 1rem; }
.btn-frost.block { width: 100%; padding: 14px; font-size: 1rem; margin-top: 6px; }
.btn-frost:focus-visible, .btn-ghost:focus-visible, .copy:focus-visible, .seg button:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; }

.linkish { background: none; border: 0; padding: 0; color: var(--frost); font: inherit; font-size: 0.9rem; cursor: pointer; }
.linkish:hover { color: var(--ice); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(6, 10, 19, 0.62);
    border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand:hover { color: #fff; text-decoration: none; }
.brand b { color: var(--frost); font-weight: 800; }
.brand-mark {
    width: 26px; height: 26px; border-radius: 8px; display: inline-block;
    background: conic-gradient(from 210deg, var(--ice), var(--frost), var(--frost-2), var(--ice));
    box-shadow: 0 0 18px rgba(127, 203, 255, 0.55);
    -webkit-mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 5px);
    mask: radial-gradient(circle at 50% 50%, transparent 4px, #000 5px);
    transform: rotate(45deg); border-radius: 7px;
}
.topnav { display: flex; gap: 22px; margin-left: 12px; }
.topnav a { color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.topnav a:hover { color: #fff; text-decoration: none; }
.topbar-actions { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 860px) { .topnav { display: none; } }
@media (max-width: 420px) { .topbar-actions .btn-ghost { display: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 32px; } }
.pill {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 12px; border-radius: 999px;
    border: 1px solid var(--line-strong); background: rgba(127, 203, 255, 0.07);
    color: var(--ice); font-size: 0.82rem; font-weight: 600;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px rgba(147, 164, 191, 0.15); }
.dot.on { background: var(--ok); box-shadow: 0 0 0 3px rgba(95, 227, 167, 0.18), 0 0 12px rgba(95, 227, 167, 0.7); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.04; font-weight: 800; margin: 20px 0 18px; }
.frost {
    background: linear-gradient(100deg, var(--ice) 0%, var(--frost) 40%, var(--frost-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { color: var(--muted); font-size: 1.12rem; max-width: 560px; margin-bottom: 26px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.realmlist-box {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 10px 10px 10px 16px; border-radius: 14px;
    background: rgba(4, 9, 18, 0.66); border: 1px solid var(--line-strong);
    max-width: 560px;
}
.realmlist-box .label { color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.realmlist-box code { background: none; padding: 0; font-size: 0.93rem; flex: 1; min-width: 0; word-break: normal; overflow-wrap: anywhere; }
.copy {
    border: 1px solid var(--line-strong); background: rgba(127, 203, 255, 0.1); color: var(--ice);
    font: 600 0.82rem var(--font); padding: 8px 14px; border-radius: 10px; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.copy:hover { background: rgba(127, 203, 255, 0.2); }
.copy.ok { color: #04140c; background: var(--ok); border-color: var(--ok); }

/* ---------- register card ---------- */
.card-register { padding: 28px; }
.card-register h2 { font-size: 1.5rem; }
.card-register > .muted { margin: 4px 0 18px; }
.kform label { display: block; margin: 0 0 12px; }
.kform label > span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.kform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .kform .two { grid-template-columns: 1fr; } }
.form-control, .kform input[type="text"], .kform input[type="email"], .kform input[type="password"] {
    width: 100%; height: auto; padding: 12px 14px;
    color: var(--text); background: rgba(4, 9, 18, 0.6);
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: 500 0.95rem var(--font); transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: #5e6f8a; }
.form-control:focus { color: #fff; background: rgba(4, 9, 18, 0.75); border-color: var(--frost); box-shadow: 0 0 0 4px rgba(127, 203, 255, 0.16); outline: none; }
/* captcha markup comes from the app: an input-group with a label span, then the image */
.captcha .input-group { display: block; margin-bottom: 8px; }
.captcha .input-group > .input-group { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.captcha p { margin: 0 0 12px !important; text-align: left !important; }
.captcha img { border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.card-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.92rem; font-weight: 500; margin-bottom: 14px; border: 1px solid; }
.alert-success { color: #c9ffe6; background: rgba(95, 227, 167, 0.12); border-color: rgba(95, 227, 167, 0.4); }
.alert-danger { color: #ffd6dc; background: rgba(255, 122, 138, 0.12); border-color: rgba(255, 122, 138, 0.45); }

/* ---------- rules ---------- */
.rules { padding: 22px 26px; margin-top: 8px; }
.rule-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; }
@media (max-width: 760px) { .rule-list { grid-template-columns: 1fr; } }
.rule-list li { position: relative; padding-left: 22px; color: var(--text); font-size: 0.95rem; }
.rule-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--frost); box-shadow: 0 0 8px rgba(127, 203, 255, 0.6); }

/* ---------- stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.stat { background: rgba(10, 18, 34, 0.82); padding: 22px 20px; text-align: center; }
.stat b { display: block; font-size: 1.55rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stat span { color: var(--muted); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- sections ---------- */
.block { padding-top: 88px; }
@media (max-width: 720px) { .block { padding-top: 64px; } }
.eyebrow { color: var(--frost); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 10px; }
.section-title { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 640px; margin-bottom: 28px; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.feature { padding: 24px; transition: transform 0.2s ease, border-color 0.2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.feature .ico {
    width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
    background: linear-gradient(145deg, rgba(212, 240, 255, 0.18), rgba(60, 141, 255, 0.18)); border: 1px solid var(--line-strong); color: var(--ice);
}
.feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; margin: 0; }

.client { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 32px; }
.client .section-sub { margin-bottom: 16px; }
.client-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
@media (max-width: 860px) { .client { flex-direction: column; align-items: flex-start; } }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 5px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 600; color: var(--ice); border: 1px solid var(--line-strong); background: rgba(127, 203, 255, 0.07); }

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; }
.steps .num {
    flex: 0 0 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #041020;
    background: linear-gradient(135deg, var(--ice), var(--frost) 50%, var(--frost-2));
    box-shadow: 0 0 18px rgba(127, 203, 255, 0.45);
}
.steps h3 { font-size: 1.08rem; margin: 4px 0 6px; }
.steps p { color: var(--muted); margin-bottom: 10px; }
.steps p b { color: var(--text); }
.steps .realmlist-box { margin-top: 4px; }
.steps > li > div { min-width: 0; flex: 1; }

/* ---------- status + boards ---------- */
.status, .boards { padding: 24px; margin-bottom: 16px; }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.status-head h3 { font-size: 1.2rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ktable { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.ktable th { text-align: left; color: var(--muted); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ktable td { padding: 10px 12px; border-bottom: 1px solid rgba(150, 195, 255, 0.07); white-space: nowrap; }
.ktable tr:hover td { background: rgba(127, 203, 255, 0.04); }
.ktable .who { display: flex; align-items: center; gap: 8px; }
.ktable .who img { width: 20px; height: 20px; border-radius: 5px; }
.ktable .who span { font-weight: 600; color: #fff; }
.ktable .rank { color: var(--frost); font-weight: 800; width: 44px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(4, 9, 18, 0.6); border: 1px solid var(--line); margin-bottom: 16px; }
.seg button { border: 0; background: none; color: var(--muted); font: 600 0.86rem var(--font); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.seg button:hover { color: #fff; }
.seg button.active { color: #041020; background: linear-gradient(135deg, var(--ice), var(--frost)); }
.board { display: none; }
.board.active { display: block; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--frost); font-size: 1.4rem; font-weight: 400; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 18px; margin: 0; color: var(--muted); }

/* ---------- contact CTA ---------- */
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px; background: linear-gradient(120deg, rgba(60, 141, 255, 0.2), rgba(17, 27, 46, 0.6) 55%); }
.cta .section-sub { margin-bottom: 0; }
@media (max-width: 760px) { .cta { flex-direction: column; align-items: flex-start; } }

/* ---------- footer ---------- */
.foot { margin-top: 96px; border-top: 1px solid var(--line); background: rgba(4, 8, 16, 0.7); padding: 36px 0 28px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: var(--muted); font-size: 0.92rem; }
.foot nav a:hover { color: #fff; }
.foot-inner .muted { margin-top: 8px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(150, 195, 255, 0.07); }

/* ---------- modal (bootstrap) ---------- */
.modal-backdrop.show { opacity: 0.7; background: #02050b; }
.modal-content.glass { background: var(--glass-strong); color: var(--text); border: 1px solid var(--line-strong); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 24px; }
.modal-header .modal-title { font-size: 1.15rem; }
.modal-header .close { color: var(--muted); text-shadow: none; opacity: 1; font-weight: 400; font-size: 1.6rem; }
.modal-header .close:hover { color: #fff; }
.modal-body { padding: 22px 24px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (max-width: 600px) {
    .realmlist-box .label { flex-basis: 100%; }
    .realmlist-box code { font-size: 0.86rem; }
}

/* ---------- addons ---------- */
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.addon { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.addon p { color: var(--muted); margin: 0; }
.addon p b { color: var(--text); }
.addon-head { display: flex; align-items: center; gap: 14px; }
.addon-head .ico {
    flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem;
    background: linear-gradient(145deg, rgba(212, 240, 255, 0.18), rgba(60, 141, 255, 0.18)); border: 1px solid var(--line-strong); color: var(--ice);
}
.addon-head h3 { font-size: 1.12rem; }
.addon-head p { margin: 2px 0 0; }
.addon .chips li { font-family: var(--mono); font-weight: 500; font-size: 0.76rem; }
.addon-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.addon-how { padding: 24px 26px; margin-top: 18px; }
.addon-how h3 { font-size: 1.05rem; margin-bottom: 10px; }
.addon-how ol { margin: 0 0 10px; padding-left: 20px; color: var(--text); }
.addon-how li { margin-bottom: 6px; }
.addon-how li::marker { color: var(--frost); font-weight: 700; }
