:root {
    --blue-25: #f8fbff;
    --blue-50: #f1f7ff;
    --blue-100: #e4f0ff;
    --blue-200: #c9e0ff;
    --blue-300: #98c4ff;
    --blue-400: #5da3ff;
    --blue-500: #2582f5;
    --blue-600: #126be1;
    --blue-700: #0f54b8;
    --blue-800: #123f83;
    --blue-900: #122f5c;
    --navy-950: #07182f;
    --cyan-500: #0fb9d7;
    --violet-500: #7657ed;
    --pink-500: #e551a0;
    --green-500: #16a574;
    --gold-500: #e7a923;
    --red-500: #e34a59;
    --text: #17243b;
    --text-soft: #61718a;
    --text-faint: #8997aa;
    --border: #dfe9f7;
    --border-strong: #cbdced;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --shadow-sm: 0 8px 24px rgba(32, 82, 145, .08);
    --shadow-md: 0 18px 50px rgba(32, 82, 145, .12);
    --shadow-lg: 0 30px 80px rgba(20, 65, 130, .17);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 15%, rgba(61, 151, 255, .10), transparent 28rem),
        radial-gradient(circle at 92% 45%, rgba(66, 205, 231, .08), transparent 24rem),
        var(--blue-25);
    font-family: "Prompt", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
    opacity: .27;
    background-image:
        linear-gradient(rgba(35, 108, 189, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(35, 108, 189, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { color: #fff; background: var(--blue-500); }

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.page-glow {
    position: fixed;
    z-index: -3;
    pointer-events: none;
    width: 390px;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(85px);
    opacity: .18;
}
.page-glow-one { top: -180px; left: -120px; background: var(--blue-400); }
.page-glow-two { right: -190px; top: 38%; background: #4ed7ef; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(208, 225, 245, .85);
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px) saturate(150%);
}
.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-rune {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.65);
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(145deg, var(--blue-400), var(--blue-700));
    box-shadow: 0 9px 22px rgba(21, 103, 217, .27), inset 0 1px 0 rgba(255,255,255,.35);
}
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 18px; letter-spacing: -.45px; }
.brand-copy strong span { color: var(--blue-600); }
.brand-copy small { margin-top: 4px; color: var(--text-faint); font-size: 9px; letter-spacing: 1.1px; text-transform: uppercase; }

.server-nav {
    display: flex;
    align-items: center;
    align-self: stretch;
    gap: 4px;
    margin-left: auto;
}
.server-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    padding: 0 15px;
    color: var(--text-soft);
    font-weight: 500;
    transition: .2s ease;
}
.server-nav a::after {
    content: "";
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--blue-500);
    transform: scaleX(0);
    transition: .2s ease;
}
.server-nav a:hover, .server-nav a.active { color: var(--blue-700); background: linear-gradient(to bottom, transparent, rgba(40,128,245,.045)); }
.server-nav a.active::after { transform: scaleX(1); }
.server-nav i { color: var(--blue-500); }

.account-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.account-nav form { display: flex; margin: 0; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 45px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary {
    color: #fff;
    border-color: rgba(12, 93, 204, .3);
    background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
    box-shadow: 0 10px 24px rgba(18, 107, 225, .23), inset 0 1px 0 rgba(255,255,255,.22);
}
.button-primary:hover { box-shadow: 0 14px 30px rgba(18, 107, 225, .31); }
.button-white { color: var(--blue-700); border-color: var(--border); background: #fff; box-shadow: var(--shadow-sm); }
.button-white:hover, .button-ghost:hover { border-color: var(--blue-300); color: var(--blue-700); }
.button-ghost { color: var(--text-soft); border-color: transparent; background: transparent; }
.button-small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.button-large { min-height: 54px; padding: 14px 26px; border-radius: 14px; }
.button-block { width: 100%; }

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    color: var(--text-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .18s ease;
}
.icon-button:hover { color: var(--blue-600); border-color: var(--blue-300); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.server-strip {
    position: relative;
    z-index: 30;
    border-bottom: 1px solid #dfeaf7;
    background: linear-gradient(90deg, #f7fbff, #edf6ff 50%, #f7fbff);
}
.server-strip-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.server-identity { display: flex; align-items: center; gap: 11px; min-width: 0; }
.server-identity > span, .server-identity img {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    object-fit: contain;
    color: var(--blue-600);
    border: 1px solid var(--blue-200);
    border-radius: 11px;
    background: #fff;
}
.server-identity div { min-width: 0; display: grid; line-height: 1.25; }
.server-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-identity small { margin-top: 3px; color: var(--text-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.server-actions { display: flex; align-items: center; gap: 18px; color: var(--text-soft); font-size: 13px; }
.server-actions a { display: inline-flex; align-items: center; gap: 7px; transition: color .18s ease; }
.server-actions a:hover { color: var(--blue-600); }

.site-main { min-height: calc(100vh - 220px); }
.site-footer { padding: 38px 0; color: #d7e5f9; background: var(--navy-950); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.footer-inner strong { color: #fff; font-size: 18px; }
.footer-inner p { margin: 3px 0 0; color: #869dbd; font-size: 13px; }
.footer-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-badges span { padding: 7px 11px; border: 1px solid rgba(174,207,247,.16); border-radius: 9px; background: rgba(255,255,255,.04); font-size: 12px; }
.footer-badges i { margin-right: 5px; color: #69b8ff; }

/* Shared typography and section framing */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--blue-600);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin-top: 0; line-height: 1.25; }
.section { padding: 72px 0; }
.compact-section { padding: 56px 0; }
.section-tint { border-block: 1px solid var(--border); background: rgba(237, 246, 255, .65); }
.content-section { padding-block: 48px 70px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.7px; }
.section-heading .eyebrow { margin-bottom: 7px; }
.section-heading > a { color: var(--blue-600); font-weight: 600; }
.section-heading > a i { margin-left: 6px; transition: transform .18s ease; }
.section-heading > a:hover i { transform: translateX(4px); }

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 64px;
    color: #fff;
    background:
        radial-gradient(circle at 75% 20%, rgba(92,195,255,.32), transparent 22rem),
        linear-gradient(130deg, #0a3472, #1269c9 55%, #188cd7);
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image: linear-gradient(30deg, transparent 46%, rgba(255,255,255,.2) 48%, rgba(255,255,255,.2) 52%, transparent 54%);
    background-size: 52px 90px;
}
.page-hero .container { position: relative; }
.page-hero .eyebrow { color: #aee1ff; }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -1.7px; }
.page-hero p { max-width: 650px; margin: 0; color: #cee7ff; font-size: 16px; }
.small-hero { padding: 54px 0 48px; }

/* Landing */
.landing-hero {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    display: grid;
    align-items: center;
    color: #fff;
    background:
        radial-gradient(circle at 79% 45%, rgba(34, 179, 248, .24), transparent 19rem),
        radial-gradient(circle at 15% 20%, rgba(77, 131, 255, .20), transparent 30rem),
        linear-gradient(135deg, #061934 5%, #0c3065 50%, #0a5797 100%);
}
.landing-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .13;
    background-image:
        linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.10) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 70% 50%, black, transparent 72%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); align-items: center; gap: 70px; padding-block: 90px; }
.hero-copy h1 { max-width: 720px; margin: 0 0 22px; font-size: clamp(43px, 6.1vw, 76px); letter-spacing: -2.6px; line-height: 1.08; }
.hero-copy h1 span { color: #71c7ff; text-shadow: 0 0 32px rgba(70,180,255,.34); }
.hero-copy > p { max-width: 660px; margin: 0 0 30px; color: #c2d9f3; font-size: clamp(16px, 2vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: #8fabca; font-size: 12px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust i { color: #6fcaff; }

.hero-console {
    position: relative;
    transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
    border: 1px solid rgba(133,203,255,.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(6, 25, 54, .86);
    box-shadow: 0 42px 100px rgba(0,9,29,.48), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(10px);
}
.console-head { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; border-bottom: 1px solid rgba(147,200,255,.13); color: #92aeca; background: rgba(255,255,255,.035); font-size: 11px; }
.console-head > span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #33d59f; box-shadow: 14px 0 #ffd05b, 28px 0 #ff7280; }
.console-body { padding: 20px; }
.console-row { display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(147,200,255,.12); color: #d4e6f8; }
.console-row:last-child { border-bottom: 0; }
.console-row > i { display: grid; place-items: center; width: 34px; height: 34px; color: #74c9ff; border: 1px solid rgba(112,198,255,.22); border-radius: 9px; background: rgba(59,157,230,.10); }
.console-row span { color: #7694b4; font-size: 11px; }
.console-row strong { font-size: 13px; font-weight: 500; }
.hero-console .floating-stats { position: absolute; right: -24px; bottom: -22px; display: flex; gap: 8px; }
.hero-console .floating-stats > div { min-width: 108px; padding: 13px 15px; border: 1px solid rgba(184,222,255,.25); border-radius: 13px; background: rgba(9,45,85,.92); box-shadow: 0 15px 40px rgba(0,20,50,.30); }
.hero-console .floating-stats strong { display: block; color: #fff; font-size: 20px; }
.hero-console .floating-stats span { color: #8eb2d3; font-size: 10px; }

.upload-orbit { position: relative; display: grid; place-items: center; width: 150px; height: 120px; margin: 0 auto 10px; color: #9edcff; font-size: 34px; }
.upload-orbit > i { position: relative; z-index: 2; filter: drop-shadow(0 0 16px rgba(91,198,255,.6)); }
.upload-orbit .orbit { inset: 15px; }
.upload-orbit .orbit-two { inset: 29px 5px; }

.feature-band { position: relative; z-index: 2; margin-top: -26px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-md); }
.feature-grid > article { display: flex; gap: 16px; padding: 26px; border-right: 1px solid var(--border); }
.feature-grid > article:last-child { border-right: 0; }
.feature-grid i { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 13px; color: var(--blue-600); border-radius: 12px; background: var(--blue-100); }
.feature-grid article > span { flex: 0 0 auto; }
.feature-grid h3 { margin: 0 0 5px; font-size: 16px; }
.feature-grid p { margin: 0; color: var(--text-soft); font-size: 11px; }

.server-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.server-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 135px;
    padding: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: .22s ease;
}
.server-card::before { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--blue-400), var(--cyan-500)); transform: scaleX(0); transform-origin: left; transition: .22s ease; }
.server-card:hover { transform: translateY(-5px); border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.server-card:hover::before { transform: scaleX(1); }
.server-card-logo { flex: 0 0 auto; display: grid; place-items: center; width: 62px; height: 62px; overflow: hidden; color: var(--blue-600); border: 1px solid var(--blue-200); border-radius: 18px; background: linear-gradient(145deg, #fff, var(--blue-100)); font-size: 23px; }
.server-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.server-card-copy { min-width: 0; flex: 1; }
.server-card-copy h3 { margin: 3px 0 6px; font-size: 18px; }
.server-card-copy p { margin: 0 0 10px; color: var(--text-soft); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-card-stats { display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-faint); font-size: 10px; }
.server-card-stats span { padding: 3px 7px; border-radius: 7px; background: var(--blue-50); }
.server-card-arrow { color: var(--blue-400); transition: transform .18s ease; }
.server-card:hover .server-card-arrow { transform: translateX(4px); }

/* Realm home */
.realm-hero {
    position: relative;
    overflow: hidden;
    padding: 74px 0 64px;
    color: #fff;
    background:
        radial-gradient(circle at 72% 45%, rgba(89,197,255,.26), transparent 22rem),
        linear-gradient(125deg, #081d3c, #0d4c92 55%, #0f80bb);
}
.realm-hero::after { content: ""; position: absolute; inset: 0; opacity: .12; background-image: linear-gradient(60deg, transparent 46%, white 48%, white 52%, transparent 54%); background-size: 86px 150px; }
.realm-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 340px; align-items: center; gap: 80px; }
.realm-hero h1 { margin: 0 0 14px; font-size: clamp(42px, 6vw, 68px); letter-spacing: -2px; }
.realm-hero p { max-width: 700px; margin: 0 0 28px; color: #cae3fa; font-size: 17px; }
.realm-crystal { position: relative; width: 280px; height: 280px; margin-inline: auto; }
.crystal-core { position: absolute; inset: 63px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 35% 65% 56% 44% / 46% 34% 66% 54%; background: linear-gradient(145deg, rgba(194,241,255,.9), rgba(48,157,255,.42) 45%, rgba(29,80,196,.24)); box-shadow: 0 0 75px rgba(93,204,255,.50), inset 0 0 30px rgba(255,255,255,.35); transform: rotate(16deg); animation: crystalFloat 5s ease-in-out infinite; }
.crystal-core i { color: #fff; font-size: 45px; filter: drop-shadow(0 8px 12px rgba(4,51,111,.3)); transform: rotate(-16deg); }
.crystal-ring, .orbit { position: absolute; inset: 30px; border: 1px solid rgba(149,220,255,.28); border-radius: 50%; }
.ring-one { animation: spin 18s linear infinite; }
.ring-two { inset: 10px 75px; transform: rotate(55deg); animation: spinReverse 13s linear infinite; }
.orbit::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: #b5ecff; box-shadow: 0 0 18px #7bd8ff; }
.orbit-one { inset: 15px; animation: spin 9s linear infinite; }
.orbit-two { inset: 52px 4px; transform: rotate(70deg); animation: spinReverse 7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }
@keyframes crystalFloat { 50% { transform: rotate(10deg) translateY(-9px); } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -25px; position: relative; z-index: 3; }
.stat-card { display: flex; align-items: center; gap: 15px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-md); }
.stat-icon { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; color: var(--blue-600); border-radius: 14px; background: var(--blue-100); }
.stat-icon.violet { color: var(--violet-500); background: #f0edff; }
.stat-icon.cyan { color: var(--cyan-500); background: #e8fbff; }
.stat-icon.gold { color: var(--gold-500); background: #fff8e4; }
.stat-card strong { display: block; font-size: 25px; line-height: 1.15; }
.stat-card span { color: var(--text-soft); font-size: 12px; }
.stat-card small { display: block; margin-bottom: 2px; color: var(--text-faint); font-size: 9px; }
.stat-card p { margin: 2px 0 0; color: var(--text-soft); font-size: 10px; }
.stat-card > i:last-child { margin-left: auto; color: var(--blue-300); font-size: 11px; }
.stat-card:hover { border-color: var(--blue-300); transform: translateY(-3px); }

.monster-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.monster-grid-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.monster-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: .22s ease; }
.monster-card:hover { transform: translateY(-5px); border-color: var(--blue-200); box-shadow: var(--shadow-md); }
.asset-frame { position: relative; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, var(--blue-50), #fff); }
.asset-frame img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: contain; }
.asset-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue-200); font-size: 42px; }
.monster-asset { height: 168px; padding: 20px; border-bottom: 1px solid var(--border); }
.monster-card-body { padding: 17px; }
.monster-card-body small { color: var(--blue-600); font-size: 10px; font-weight: 600; }
.monster-card-body h3 { margin: 4px 0 7px; font-size: 15px; }
.monster-card-body p { margin: 0; color: var(--text-soft); font-size: 11px; }
.mvp-badge, .boss-badge { position: absolute; z-index: 4; top: 11px; left: 11px; padding: 4px 8px; color: #fff; border-radius: 7px; background: linear-gradient(135deg, #f4b52e, #e67c19); box-shadow: 0 5px 14px rgba(208,118,15,.25); font-size: 9px; font-weight: 700; letter-spacing: .7px; }
.boss-badge { background: linear-gradient(135deg, #7956ed, #5b38c9); }

.item-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.item-mini-card { display: grid; grid-template-columns: 54px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; transition: .18s ease; }
.item-mini-card:hover { border-color: var(--blue-300); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.mini-asset { width: 54px; height: 54px; padding: 7px; border: 1px solid var(--border); border-radius: 13px; }
.mini-asset .asset-fallback { font-size: 20px; }
.item-mini-card > div:nth-child(2) { min-width: 0; display: grid; }
.item-mini-card small { color: var(--blue-600); font-size: 9px; }
.item-mini-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-mini-card span { color: var(--text-soft); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-mini-card > i { color: var(--blue-300); }
.update-note { margin-bottom: 48px; color: var(--text-faint); font-size: 12px; text-align: center; }
.update-note i { margin-right: 7px; color: var(--blue-500); }

/* Filters and list cards */
.filter-panel { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; padding: 15px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.search-field { position: relative; flex: 1; min-width: 200px; }
.search-field i { position: absolute; top: 50%; left: 15px; color: var(--text-faint); transform: translateY(-50%); }
.search-field input { width: 100%; min-height: 46px; padding: 10px 14px 10px 42px; border: 1px solid var(--border); border-radius: 11px; outline: none; color: var(--text); background: var(--surface-soft); transition: .18s ease; }
.search-field input:focus { border-color: var(--blue-400); background: #fff; box-shadow: 0 0 0 4px rgba(37,130,245,.10); }
.filter-panel select { min-height: 46px; min-width: 150px; padding: 10px 34px 10px 13px; border: 1px solid var(--border); border-radius: 11px; outline: none; color: var(--text); background: var(--surface-soft); }
.filter-panel select:focus { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(37,130,245,.10); }
.result-bar { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 18px; color: var(--text-soft); font-size: 12px; }
.result-bar strong { color: var(--text); }

.item-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.item-card { display: grid; grid-template-columns: 74px minmax(0,1fr) auto; align-items: center; gap: 15px; min-height: 108px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 7px 22px rgba(32,82,145,.055); transition: .2s ease; }
.item-card:hover { transform: translateY(-3px); border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.item-asset { width: 74px; height: 74px; padding: 10px; border: 1px solid var(--border); border-radius: 15px; }
.item-asset .asset-fallback { font-size: 28px; }
.item-card-copy { min-width: 0; }
.item-card-copy small { color: var(--blue-600); font-size: 9px; }
.item-card-copy h3 { margin: 3px 0 5px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card-copy p { margin: 0; color: var(--text-soft); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.item-meta span { padding: 2px 6px; color: var(--text-soft); border-radius: 6px; background: var(--blue-50); font-size: 9px; }
.card-chevron { color: var(--blue-300); }
.monster-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.monster-tags span { padding: 3px 6px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 6px; background: #fff; font-size: 9px; }

.pagination { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 32px; }
.pagination > a, .pagination > .disabled { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.pagination > a:hover { color: var(--blue-600); border-color: var(--blue-300); }
.pagination > .disabled { color: #c4ceda; background: #f5f7fa; }
.page-status { min-width: 120px; color: var(--text-soft); text-align: center; }
.page-status strong { color: var(--text); }

/* Detail pages */
.detail-hero { position: relative; overflow: hidden; padding: 62px 0 56px; border-bottom: 1px solid var(--border); background: linear-gradient(130deg, #edf6ff, #fff 52%, #e9f7ff); }
.item-detail-hero::after, .monster-detail-hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -100px; top: -220px; border: 70px solid rgba(69,151,245,.055); border-radius: 50%; }
.detail-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 170px minmax(0,1fr) auto; align-items: center; gap: 32px; }
.detail-asset { width: 170px; height: 170px; padding: 24px; border: 1px solid var(--blue-200); border-radius: 28px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-lg); }
.detail-asset .asset-fallback { font-size: 64px; }
.monster-detail-asset { width: 210px; height: 210px; }
.detail-title { min-width: 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--text-soft); font-size: 11px; }
.breadcrumb a { color: var(--blue-600); }
.breadcrumb i { font-size: 8px; }
.breadcrumb.light { color: #b4d6f3; }
.breadcrumb.light a { color: #fff; }
.title-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.title-badges span, .pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; color: var(--blue-700); border: 1px solid var(--blue-200); border-radius: 999px; background: var(--blue-50); font-size: 9px; font-weight: 600; }
.title-badges .pink, .pill.pink { color: #a6246d; border-color: #f1c3dd; background: #fff0f8; }
.title-badges .green, .pill.green { color: #087b54; border-color: #b9ead8; background: #edfff8; }
.pill.red { color: #b42d3d; border-color: #f3c3c8; background: #fff1f3; }
.pill.blue { color: var(--blue-700); }
.pill.gold { color: #9a6900; border-color: #f1d797; background: #fff8e5; }
.detail-title h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 50px); letter-spacing: -1.4px; }
.detail-title > p { margin: 0; color: var(--text-soft); }
.id-plate { min-width: 130px; padding: 18px 22px; border: 1px solid var(--blue-200); border-radius: var(--radius); background: rgba(255,255,255,.82); text-align: right; box-shadow: var(--shadow-sm); }
.id-plate small { display: block; color: var(--text-faint); font-size: 9px; letter-spacing: 1.4px; }
.id-plate strong { color: var(--blue-700); font-size: 28px; }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 22px; padding-block: 36px 70px; }
.detail-main, .detail-sidebar { display: grid; gap: 18px; }
.panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.panel-heading { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, #fff, var(--blue-50)); }
.panel-heading > span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue-600); border-radius: 11px; background: var(--blue-100); }
.panel-heading h2 { margin: 0; font-size: 17px; }
.panel-heading p { margin: 2px 0 0; color: var(--text-soft); font-size: 10px; }
.panel-empty { padding: 35px 20px; color: var(--text-faint); text-align: center; }
.panel-empty i { display: block; margin-bottom: 10px; font-size: 30px; color: var(--blue-200); }
.ro-description { padding: 22px; color: #33445c; line-height: 1.85; white-space: pre-line; }
.ro-description p { margin: 0 0 8px; }
.info-list { padding: 8px 20px; }
.info-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px solid #edf2f8; }
.info-list > div:last-child { border-bottom: 0; }
.info-list span { color: var(--text-soft); }
.info-list strong { text-align: right; }
.attribute-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--border); }
.attribute-grid > div { padding: 18px 20px; background: #fff; }
.attribute-grid small { display: block; margin-bottom: 5px; color: var(--text-faint); }
.attribute-grid strong { font-size: 16px; }
.code-label { padding: 10px 18px; color: var(--blue-700); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--blue-50); font-size: 11px; font-weight: 600; }
.code-block { max-height: 360px; margin: 0; padding: 18px; overflow: auto; color: #c8e5ff; background: #081a32; font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; }
.raw-panel summary { padding: 16px 20px; cursor: pointer; color: var(--text-soft); font-weight: 600; }
.raw-panel pre { margin: 0; border-top: 1px solid var(--border); }

.drop-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 16px; }
.drop-card { display: grid; grid-template-columns: 50px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--border); border-radius: 12px; transition: .18s ease; }
.drop-card:hover { border-color: var(--blue-300); background: var(--blue-25); }
.drop-card.mvp-drop { border-color: #f0d28d; background: #fffaf0; }
.drop-asset { width: 50px; height: 50px; padding: 7px; border-radius: 10px; border: 1px solid var(--border); }
.drop-asset .asset-fallback { font-size: 18px; }
.drop-card h3 { margin: 0 0 2px; font-size: 12px; }
.drop-card p { margin: 0; color: var(--text-soft); font-size: 9px; }
.drop-card > strong { color: var(--blue-700); font-size: 12px; }

.combat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 18px; }
.combat-stat { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); text-align: center; }
.combat-stat small { display: block; color: var(--text-faint); }
.combat-stat strong { font-size: 18px; }
.hp-row { padding: 18px 20px; border-bottom: 1px solid var(--border); }
.hp-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.hp-row span { color: var(--text-soft); }
.hp { height: 9px; overflow: hidden; border-radius: 99px; background: #e7edf5; }
.hp::before { content: ""; display: block; width: 82%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #eb4b60, #ff7b72); }

.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 680px; }
.data-table th { padding: 11px 14px; color: var(--text-soft); border-bottom: 1px solid var(--border); background: var(--blue-50); font-size: 10px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid #edf2f8; vertical-align: top; font-size: 11px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--blue-25); }
.wrap-value { max-width: 240px; white-space: normal; }
.skill-table td:first-child { color: var(--blue-700); font-weight: 600; }
.spawn-location-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 16px; }
.spawn-location-grid a { padding: 13px; border: 1px solid var(--border); border-radius: 11px; }
.spawn-location-grid a:hover { border-color: var(--blue-300); background: var(--blue-50); }
.spawn-location-grid strong { display: block; }
.spawn-location-grid span { color: var(--text-soft); font-size: 10px; }

/* World map */
.map-page-hero { background: radial-gradient(circle at 82% 40%, rgba(94,226,255,.25), transparent 20rem), linear-gradient(130deg, #083a6b, #0a74ae, #0b9eb7); }
.map-filter { max-width: 850px; margin-inline: auto; }
.map-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.map-card { position: relative; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: .22s ease; }
.map-card:hover { transform: translateY(-5px); border-color: var(--blue-300); box-shadow: var(--shadow-md); }
.map-visual { position: relative; height: 165px; overflow: hidden; background: linear-gradient(145deg, #0e477d, #0e7cae); }
.map-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(3,29,56,.65), transparent 65%); }
.map-visual img { width: 100%; height: 100%; object-fit: cover; }
.map-pattern { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.22); font-size: 55px; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 30px 30px; }
.map-visual > span { position: absolute; z-index: 3; left: 16px; bottom: 13px; padding: 4px 9px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: rgba(6,42,73,.58); backdrop-filter: blur(8px); font: 10px ui-monospace, monospace; }
.map-card-body { padding: 18px; }
.map-card-body h3 { margin: 0 0 12px; font-size: 17px; }
.map-stats { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-soft); font-size: 10px; }
.map-stats span { display: inline-flex; align-items: center; gap: 5px; }
.map-stats i { color: var(--blue-500); }
.map-card-body > p { margin: 12px 0 0; color: var(--text-faint); font-size: 10px; }
.map-arrow { position: absolute; right: 17px; bottom: 18px; color: var(--blue-300); }

.map-detail-hero { position: relative; min-height: 380px; overflow: hidden; color: #fff; background: linear-gradient(125deg, #062542, #0b628d); }
.map-detail-bg { position: absolute; inset: 0; }
.map-detail-bg::before { content: ""; position: absolute; z-index: 2; inset: 0; background: linear-gradient(90deg, rgba(4,26,48,.94), rgba(5,47,78,.72) 55%, rgba(5,47,78,.42)); }
.map-detail-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.map-detail-content { position: relative; z-index: 3; padding-block: 62px; }
.map-detail-content .eyebrow { color: #8bdfff; }
.map-detail-content h1 { margin: 0 0 8px; font-size: clamp(38px, 6vw, 62px); letter-spacing: -1.7px; }
.map-detail-content > p { margin: 0; color: #b9d9eb; }
.map-hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.map-hero-stats > div { min-width: 140px; padding: 13px 17px; border: 1px solid rgba(192,228,248,.22); border-radius: 12px; background: rgba(255,255,255,.07); backdrop-filter: blur(9px); }
.map-hero-stats strong { display: block; font-size: 22px; }
.map-hero-stats span { color: #acd0e4; font-size: 9px; }
.spawn-list { display: grid; gap: 11px; }
.spawn-card { display: grid; grid-template-columns: 68px minmax(200px,1fr) repeat(3, minmax(110px, auto)); align-items: center; gap: 18px; padding: 15px 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 20px rgba(32,82,145,.05); }
.spawn-asset { width: 68px; height: 68px; padding: 8px; border: 1px solid var(--border); border-radius: 14px; }
.spawn-asset .asset-fallback { font-size: 25px; }
.spawn-name { min-width: 0; }
.spawn-name small { color: var(--blue-600); font-size: 9px; }
.spawn-name h3 { margin: 2px 0; font-size: 14px; }
.spawn-name h3 a:hover { color: var(--blue-600); }
.spawn-name p { margin: 0; color: var(--text-soft); font-size: 10px; }
.spawn-metric { padding-left: 18px; border-left: 1px solid var(--border); }
.spawn-metric small { display: block; color: var(--text-faint); font-size: 9px; }
.spawn-metric strong { display: block; font-size: 14px; }
.spawn-metric span { color: var(--text-soft); font-size: 9px; }
.spawn-metric.respawn { min-width: 180px; }
.spawn-metric.respawn strong { color: var(--blue-700); }

/* Dashboard / forms */
.dashboard-hero { padding: 48px 0 42px; border-bottom: 1px solid var(--border); background: linear-gradient(120deg, #eef6ff, #fff 48%, #edf9ff); }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.dashboard-heading h1 { margin: 0 0 4px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -1.2px; }
.dashboard-heading p { margin: 0; color: var(--text-soft); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.dashboard-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.dashboard-card-head { display: flex; align-items: center; gap: 16px; }
.dashboard-card-head h2 { margin: 5px 0 2px; font-size: 20px; }
.dashboard-card-head p { margin: 0; color: var(--text-faint); font-size: 11px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 20px 0; }
.dashboard-stats span { padding: 12px; border-radius: 11px; background: var(--blue-50); color: var(--text-soft); font-size: 9px; text-align: center; }
.dashboard-stats b { display: block; color: var(--text); font-size: 17px; }
.dashboard-actions { display: flex; gap: 8px; }
.dashboard-actions .button { flex: 1; }

.form-page { padding: 45px 0 70px; }
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 24px; }
.form-card { padding: 25px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.form-card h2 { margin-bottom: 22px; font-size: 20px; }
.form-group { margin-bottom: 18px; }
.form-group > label:not(.switch-row) { display: block; margin-bottom: 7px; color: #33425a; font-size: 12px; font-weight: 600; }
.form-group label em { margin-left: 3px; color: var(--red-500); font-style: normal; }
.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea { width: 100%; min-height: 47px; padding: 10px 13px; color: var(--text); border: 1px solid var(--border-strong); border-radius: 11px; outline: none; background: #fff; transition: .18s ease; }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--blue-400); box-shadow: 0 0 0 4px rgba(37,130,245,.1); }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #ed8791; }
.help-text { display: block; margin-top: 6px; color: var(--text-faint); font-size: 10px; }
.field-error { display: block; margin-top: 6px; color: var(--red-500); }
.form-alert { margin-bottom: 18px; padding: 12px 14px; color: #a62e3b; border: 1px solid #f1bec4; border-radius: 10px; background: #fff2f3; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 7px; }
.form-aside .panel { padding: 22px; }
.aside-tip { display: flex; gap: 12px; padding: 15px; border-radius: 12px; background: var(--blue-50); }
.aside-tip i { color: var(--blue-600); margin-top: 3px; }
.aside-tip strong { display: block; }
.aside-tip p { margin: 3px 0 0; color: var(--text-soft); font-size: 10px; }
.switch-row { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 44px; height: 24px; flex: 0 0 auto; border-radius: 99px; background: #ccd6e2; transition: .2s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(20,40,70,.22); transition: .2s ease; }
.switch-row input:checked + .switch { background: var(--blue-500); }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row strong { display: block; font-size: 12px; }
.switch-row small { display: block; color: var(--text-faint); font-size: 9px; }

.import-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 24px; padding-block: 36px 70px; }
.import-main form { display: grid; gap: 18px; }
.import-section { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.import-section-head { display: flex; align-items: center; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--border); background: linear-gradient(90deg, #fff, var(--blue-50)); }
.import-section-head > span { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto; color: var(--blue-600); border-radius: 12px; background: var(--blue-100); }
.import-section-head > span.violet { color: var(--violet-500); background: #f0ecff; }
.import-section-head > span.cyan { color: var(--cyan-500); background: #e9fbff; }
.import-section-head h2 { margin: 0; font-size: 17px; }
.import-section-head p { margin: 2px 0 0; color: var(--text-soft); font-size: 10px; }
.upload-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; padding: 18px; }
.upload-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.upload-box { position: relative; display: flex; min-height: 180px; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow: hidden; color: var(--text-soft); border: 1.5px dashed var(--blue-300); border-radius: 14px; background: var(--blue-25); text-align: center; cursor: pointer; transition: .2s ease; }
.upload-box::before { content: ""; position: absolute; width: 90px; height: 90px; top: -45px; right: -45px; border-radius: 50%; background: rgba(55,146,255,.08); transition: .2s ease; }
.upload-box:hover, .upload-box.dragging { color: var(--blue-700); border-color: var(--blue-500); background: var(--blue-50); transform: translateY(-2px); }
.upload-box:hover::before { transform: scale(1.4); }
.upload-box.error { border-color: #e87f89; background: #fff6f7; }
.upload-box > i { margin-bottom: 9px; color: var(--blue-500); font-size: 27px; }
.upload-box strong { color: var(--text); font-size: 12px; }
.upload-box > span { margin-top: 4px; font-size: 9px; }
.upload-box input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-box em { max-width: 100%; margin-top: 13px; padding: 4px 8px; overflow: hidden; color: var(--blue-700); border-radius: 7px; background: #fff; box-shadow: 0 3px 10px rgba(35,90,150,.07); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.upload-box small { position: relative; z-index: 2; margin-top: 6px; color: var(--red-500); }
.import-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); }
.import-submit > div { display: flex; align-items: center; gap: 12px; }
.import-submit > div > i { color: var(--blue-500); font-size: 22px; }
.import-submit p { margin: 0; }
.import-submit p strong, .import-submit p span { display: block; }
.import-submit p span { color: var(--text-soft); font-size: 10px; }
.sticky-panel { position: sticky; top: 160px; padding: 21px; }
.sticky-panel h2 { font-size: 17px; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--text-soft); border-bottom: 1px solid #edf2f8; font-size: 10px; }
.check-list i { color: var(--green-500); }
.sticky-panel hr { margin: 18px 0; border: 0; border-top: 1px solid var(--border); }
.security-note { margin: 0; color: var(--text-soft); font-size: 10px; }
.security-note i { margin-right: 5px; color: var(--blue-600); }

.history-list { display: grid; gap: 13px; }
.history-card { display: grid; grid-template-columns: 62px minmax(0,1fr); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.history-status { display: grid; place-items: start center; padding-top: 25px; color: var(--blue-500); border-right: 1px solid var(--border); background: var(--blue-50); font-size: 20px; }
.history-status.success { color: var(--green-500); background: #f1fff9; }
.history-status.failed { color: var(--red-500); background: #fff3f4; }
.history-main { padding: 19px 21px; min-width: 0; }
.history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.history-head strong { display: block; }
.history-head span:not(.pill) { display: block; color: var(--text-faint); font-size: 9px; }
.file-chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.file-chip-row span { padding: 4px 8px; color: var(--text-soft); border: 1px solid var(--border); border-radius: 7px; background: var(--surface-soft); font-size: 9px; }
.history-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.history-counts span { min-width: 100px; padding: 8px 10px; color: var(--text-soft); border-radius: 9px; background: var(--blue-50); font-size: 8px; }
.history-counts b { display: block; color: var(--text); font-size: 13px; }
.history-main details { margin-top: 13px; padding: 10px 12px; border: 1px solid #f1d9a6; border-radius: 9px; background: #fffaf0; color: #86631b; font-size: 10px; }
.history-main summary { cursor: pointer; font-weight: 600; }
.history-main details ul { margin: 9px 0 0; padding-left: 20px; }
.history-main details.hash-details { border-color: var(--border); background: var(--blue-50); color: var(--text-soft); }
.hash-list { display: grid; gap: 7px; list-style: none; padding-left: 0 !important; }
.hash-list li { display: grid; grid-template-columns: minmax(90px, 150px) minmax(0, 1fr); gap: 10px; align-items: start; }
.hash-list span { font-weight: 600; }
.hash-list code { overflow-wrap: anywhere; color: var(--text); font-size: 9px; }
.error-box { margin-top: 13px; padding: 12px; color: #a62e3b; border: 1px solid #efc0c5; border-radius: 9px; background: #fff3f4; }
.error-box pre { margin: 6px 0 0; white-space: pre-wrap; font-size: 10px; }

/* Auth */
.auth-page { min-height: calc(100vh - 114px); display: grid; place-items: center; padding: 60px 20px; background: radial-gradient(circle at 50% 10%, rgba(51,143,245,.18), transparent 26rem), linear-gradient(145deg, #f2f8ff, #fff); }
.auth-card { width: min(100%, 440px); padding: 38px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); text-align: center; }
.auth-card.wide { width: min(100%, 510px); }
.auth-logo { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 17px; color: #fff; border-radius: 20px; background: linear-gradient(145deg, var(--blue-400), var(--blue-700)); box-shadow: 0 15px 30px rgba(18,107,225,.25); font-size: 24px; }
.auth-card h1 { margin: 0 0 7px; font-size: 30px; }
.auth-card > p { margin: 0 0 25px; color: var(--text-soft); }
.auth-card form { text-align: left; }
.auth-footer { margin-top: 20px; color: var(--text-soft); font-size: 12px; }
.auth-footer a { color: var(--blue-600); font-weight: 600; }

/* Empty states */
.empty-state { padding: 54px 25px; color: var(--text-soft); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); background: rgba(255,255,255,.65); text-align: center; }
.empty-state > i { margin-bottom: 15px; color: var(--blue-300); font-size: 46px; }
.empty-state h2 { margin: 0 0 7px; color: var(--text); }
.empty-state p { margin: 0 0 18px; }
.large-empty { padding: 80px 25px; }

/* SweetAlert alignment */
.swal2-popup { font-family: "Prompt", sans-serif !important; border-radius: 18px !important; }
.swal2-toast { border: 1px solid var(--border) !important; box-shadow: var(--shadow-md) !important; }

/* Responsive */
@media (max-width: 1100px) {
    .hero-grid { grid-template-columns: 1fr 420px; gap: 40px; }
    .hero-copy h1 { font-size: 55px; }
    .monster-grid-six { grid-template-columns: repeat(3, 1fr); }
    .item-card-grid, .map-card-grid { grid-template-columns: repeat(2, 1fr); }
    .spawn-card { grid-template-columns: 64px minmax(200px,1fr) repeat(2, minmax(100px, auto)); }
    .spawn-card .spawn-metric.respawn { grid-column: 2 / -1; padding: 10px 0 0; border-left: 0; border-top: 1px solid var(--border); }
    .server-nav a { padding-inline: 10px; }
    .server-nav a span { display: none; }
}

@media (max-width: 900px) {
    .header-inner { min-height: 68px; gap: 12px; }
    .brand-copy small { display: none; }
    .account-nav .button span { display: none; }
    .server-nav { order: 3; margin-left: auto; }
    .server-nav a { min-width: 38px; justify-content: center; }
    .server-strip-inner { min-height: 56px; }
    .server-actions { gap: 12px; }
    .server-actions a { font-size: 0; }
    .server-actions a i { font-size: 14px; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 70px 100px; }
    .hero-console { max-width: 600px; transform: none; }
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
    .server-card-grid { grid-template-columns: repeat(2,1fr); }
    .realm-hero-inner { grid-template-columns: 1fr 250px; gap: 20px; }
    .realm-crystal { width: 230px; height: 230px; }
    .crystal-core { inset: 53px; }
    .stat-grid { grid-template-columns: repeat(2,1fr); }
    .detail-layout, .form-layout, .import-layout { grid-template-columns: 1fr; }
    .detail-sidebar { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .sticky-panel { position: static; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .upload-grid { grid-template-columns: repeat(2,1fr); }
    .upload-grid > .upload-box:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .container { width: min(calc(100% - 26px), var(--container)); }
    .site-header { position: relative; }
    .header-inner { flex-wrap: wrap; padding-block: 10px; }
    .brand { margin-right: auto; }
    .brand-copy strong { font-size: 16px; }
    .account-nav { margin-left: 0; }
    .server-nav { order: 5; width: 100%; height: 44px; justify-content: space-around; border-top: 1px solid var(--border); }
    .server-nav a { flex: 1; padding: 0; }
    .server-nav a span { display: inline; font-size: 10px; }
    .server-nav a::after { left: 20%; right: 20%; }
    .server-strip-inner { padding-block: 9px; }
    .server-identity { max-width: 72%; }
    .landing-hero { min-height: auto; }
    .hero-grid { padding-block: 62px 90px; }
    .hero-copy h1 { font-size: clamp(39px, 12vw, 55px); }
    .hero-console { display: none; }
    .hero-console .floating-stats { display: none; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-grid > article { border-right: 0; border-bottom: 1px solid var(--border); }
    .feature-grid > article:last-child { border-bottom: 0; }
    .server-card-grid, .item-card-grid, .map-card-grid, .monster-grid, .monster-grid-six, .item-mini-grid { grid-template-columns: 1fr; }
    .section, .compact-section { padding: 48px 0; }
    .section-heading { align-items: flex-start; }
    .realm-hero { padding: 55px 0; }
    .realm-hero-inner { grid-template-columns: 1fr; }
    .realm-crystal { display: none; }
    .stat-grid { margin-top: -18px; gap: 10px; }
    .stat-card { padding: 16px; }
    .filter-panel { align-items: stretch; flex-direction: column; }
    .filter-panel select { width: 100%; }
    .detail-hero-grid { grid-template-columns: 100px minmax(0,1fr); gap: 20px; }
    .detail-asset, .monster-detail-asset { width: 100px; height: 100px; padding: 14px; border-radius: 20px; }
    .detail-asset .asset-fallback { font-size: 38px; }
    .id-plate { grid-column: 1 / -1; min-width: 0; display: flex; align-items: center; justify-content: space-between; padding: 11px 15px; text-align: left; }
    .id-plate strong { font-size: 21px; }
    .detail-sidebar { grid-template-columns: 1fr; }
    .drop-grid, .combat-grid, .attribute-grid, .spawn-location-grid { grid-template-columns: 1fr 1fr; }
    .spawn-card { grid-template-columns: 58px minmax(0,1fr); gap: 12px; }
    .spawn-asset { width: 58px; height: 58px; }
    .spawn-metric { padding: 9px 0 0; border-left: 0; border-top: 1px solid var(--border); }
    .spawn-card .spawn-metric { grid-column: 1 / -1; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px; }
    .spawn-card .spawn-metric small, .spawn-card .spawn-metric strong, .spawn-card .spawn-metric span { display: block; }
    .spawn-card .spawn-metric.respawn { grid-column: 1 / -1; }
    .dashboard-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-heading .button { width: 100%; }
    .upload-grid, .upload-grid.two { grid-template-columns: 1fr; }
    .upload-grid > .upload-box:last-child:nth-child(odd) { grid-column: auto; }
    .import-submit { align-items: stretch; flex-direction: column; }
    .import-submit .button { width: 100%; }
    .history-card { grid-template-columns: 42px minmax(0,1fr); }
    .history-main { padding: 15px; }
    .form-card { padding: 19px; }
    .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
    .account-nav .button-ghost { display: none; }
    .server-nav a span { display: none; }
    .hero-actions .button { width: 100%; }
    .stat-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 80px; }
    .drop-grid, .combat-grid, .attribute-grid, .spawn-location-grid { grid-template-columns: 1fr; }
    .detail-title h1 { font-size: 28px; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-actions { flex-wrap: wrap; }
    .dashboard-actions .button { flex-basis: calc(50% - 5px); }
    .auth-card { padding: 27px 20px; }
    .map-hero-stats > div { min-width: calc(50% - 6px); flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Template-specific refinements */
.console-row > div { min-width: 0; }
.console-row > div strong,
.console-row > div small { display: block; }
.console-row > div small { margin-top: 2px; color: #7694b4; font-size: 10px; }
.console-row > b { color: #dceeff; font-size: 12px; }

.server-card { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; grid-template-rows: auto auto; }
.server-card-logo { grid-row: 1 / 3; }
.server-card-copy { grid-column: 2; }
.server-card-copy h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.server-card-stats { grid-column: 2; align-self: start; }
.server-card > .server-card-arrow { grid-column: 3; grid-row: 1 / 3; align-self: center; }

.monster-detail-hero .detail-hero-grid { grid-template-columns: 210px minmax(0, 1fr) auto; }
.combat-stat.hp { height: auto; overflow: visible; border-radius: 12px; background: var(--surface-soft); }
.combat-stat.hp::before { display: none; }
.combat-stat.hp i { color: var(--red-500); }
.attribute-grid span { display: block; margin-bottom: 5px; color: var(--text-faint); font-size: 11px; }

.info-list dt { color: var(--text-soft); }
.info-list dd { margin: 0; font-weight: 600; text-align: right; }

.drop-card > div:nth-child(2) { min-width: 0; display: grid; }
.drop-card > div:nth-child(2) small { color: var(--blue-600); font-size: 8px; }
.drop-card > div:nth-child(2) strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.drop-card > div:nth-child(2) span { color: var(--text-soft); font-size: 9px; }

.spawn-location-grid a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.spawn-location-grid a > i { color: var(--blue-500); }
.spawn-location-grid a > span { color: var(--blue-700); font-size: 10px; font-weight: 600; text-align: right; }

@media (max-width: 720px) {
    .monster-detail-hero .detail-hero-grid { grid-template-columns: 100px minmax(0, 1fr); }
    .server-card { grid-template-columns: 56px minmax(0, 1fr) auto; }
    .server-card-logo { width: 56px; height: 56px; }
}

/* PHP/MySQLi edition additions */
.form-section { padding: 24px 0; border-bottom: 1px solid var(--border); }
.form-section:first-child { padding-top: 0; }
.form-section:last-of-type { border-bottom: 0; }
.form-section h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 19px; }
.form-section h2 i { color: var(--blue-600); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group code, .help-text code { padding: 2px 6px; border-radius: 6px; background: var(--blue-50); color: var(--blue-700); }
.danger-button { width: 100%; margin-top: 12px; padding: 11px 14px; border: 1px solid #f2c2ca; border-radius: 11px; color: #bc3046; background: #fff5f6; cursor: pointer; font-weight: 600; }
.dashboard-meta { display: flex; flex-wrap: wrap; gap: 8px 15px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); color: var(--text-soft); font-size: 12px; }
.dashboard-meta i { color: var(--blue-500); margin-right: 4px; }
.import-progress-card { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 22px; padding: clamp(24px,5vw,50px); overflow: hidden; }
.progress-orb { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 50%; color: #fff; font-size: 31px; background: linear-gradient(145deg,var(--blue-400),var(--blue-700)); box-shadow: 0 15px 35px rgba(18,107,225,.24); }
.progress-copy h2 { margin: 10px 0 3px; font-size: clamp(20px,3vw,29px); }
.progress-copy p { margin: 0; color: var(--text-soft); }
.progress-number { display: flex; align-items: flex-start; color: var(--blue-700); }
.progress-number strong { font-size: clamp(40px,7vw,74px); line-height: 1; }
.progress-number span { margin-top: 8px; font-size: 20px; font-weight: 700; }
.progress-track { grid-column: 1 / -1; height: 13px; border-radius: 999px; overflow: hidden; background: var(--blue-100); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--blue-500),var(--cyan-500)); transition: width .35s ease; }
.import-progress-card .history-counts, .import-progress-card .import-warning-box, .import-progress-card .progress-actions { grid-column: 1 / -1; }
.import-warning-box { padding: 16px 18px; border: 1px solid #f4d28a; border-radius: 13px; color: #7b5610; background: #fff9e9; }
.import-warning-box ul { margin: 7px 0 0; padding-left: 20px; }
.progress-actions { display: flex; justify-content: flex-end; gap: 10px; }
.admin-stat-grid { margin: 0 0 24px; }
.admin-panel { margin-top: 22px; }
.admin-inline-form { display: grid; grid-template-columns: minmax(95px,1fr) minmax(120px,1fr) minmax(145px,1fr) auto; align-items: center; gap: 8px; }
.admin-inline-form input, .admin-inline-form select { min-width: 0; padding: 8px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background: #fff; }
.admin-table td[colspan] > small { display: block; margin-top: 5px; color: var(--text-faint); }
.pill.red { color: #ba2f45; background: #fff0f3; border-color: #fac5ce; }
.pill.gold { color: #8b5b00; background: #fff8dc; border-color: #f0d483; }
.title-badges .gold { color: #815500; background: #fff4c9; }
.title-badges .pink { color: #aa2e75; background: #fff0f8; }
.title-badges .green { color: #087553; background: #eafff6; }
.history-status.step_ready, .history-status.processing, .history-status.queued { color: var(--blue-600); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
@media (max-width: 820px) {
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .import-progress-card { grid-template-columns: auto 1fr; }
    .progress-number { grid-column: 1 / -1; justify-content: center; }
    .admin-inline-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .import-progress-card { grid-template-columns: 1fr; text-align: center; }
    .progress-orb { margin-inline: auto; }
    .progress-track, .import-progress-card .history-counts, .import-progress-card .import-warning-box, .import-progress-card .progress-actions { grid-column: auto; }
    .progress-actions { justify-content: center; }
    .admin-inline-form { grid-template-columns: 1fr; }
}
