/* ============================================================
   LinkForge — design system v4 "Apple Glass"
   Frosted-glass surfaces over a soft mesh-gradient canvas.
   (Glassmorphism guidance: blur 10–20px, translucent white,
   1px light border, vibrant background, contrast ≥ 4.5:1)
   ============================================================ */
:root {
    --text: #1b1f27;
    --text-soft: #5d6675;
    --text-faint: #8b93a3;
    --primary: #0a84ff;
    --primary-dark: #0066d6;
    --accent: #bf5af2;
    --danger: #ff453a;
    --success: #30d158;
    --success-deep: #1d9d4a;
    --glass: rgba(255, 255, 255, .58);
    --glass-strong: rgba(255, 255, 255, .74);
    --glass-soft: rgba(255, 255, 255, .42);
    --glass-border: rgba(255, 255, 255, .65);
    --glass-border-soft: rgba(255, 255, 255, .4);
    --line: rgba(20, 30, 55, .08);
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 26px;
    --shadow-sm: 0 1px 3px rgba(20, 30, 55, .06);
    --shadow-md: 0 8px 24px rgba(20, 30, 55, .10);
    --shadow-lg: 0 20px 50px rgba(20, 30, 55, .14);
    --blur: saturate(180%) blur(18px);
    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
            "SF Pro Display", "SF Pro Text", "Apple SD Gothic Neo", "Noto Sans KR",
            "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.55;
    font-size: 14px;
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(70% 55% at 8% 0%, rgba(10, 132, 255, .14), transparent 60%),
        radial-gradient(55% 45% at 95% 8%, rgba(191, 90, 242, .13), transparent 60%),
        radial-gradient(65% 55% at 50% 100%, rgba(94, 210, 255, .13), transparent 62%),
        radial-gradient(40% 35% at 88% 78%, rgba(48, 209, 88, .08), transparent 60%),
        #edf0f6;
    background-attachment: fixed;
    min-height: 100vh;
}
::selection { background: rgba(10, 132, 255, .2); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { text-decoration: none; color: var(--primary-dark); }
h1 { font-size: 23px; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 15px; font-weight: 700; }
.muted { color: var(--text-soft); }
.small { font-size: 12.5px; }
.center { text-align: center; }

/* shared glass surface */
.panel, .site-card, .position-card, .cat-section, .stat, .table-wrap,
.order-row, .support-box, .auth-box, .empty, .grid-slot, .prem-slot,
.banner-ad, .hero, .rent-mini, .flash {
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .55);
}

/* ---------------------------------------------------------- header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: saturate(200%) blur(20px);
    backdrop-filter: saturate(200%) blur(20px);
    border-bottom: 1px solid var(--glass-border-soft);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 56px; }
.logo {
    display: inline-flex; align-items: center; gap: 7px;
    font-weight: 800; font-size: 17.5px; color: var(--text); letter-spacing: -0.03em;
}
.logo:hover { color: var(--text); }
.logo-mark {
    width: 24px; height: 24px; border-radius: 8px; flex: none;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 3px 10px rgba(10, 132, 255, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
    position: relative;
}
.logo-mark::after {
    content: ""; position: absolute; inset: 0; margin: auto;
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
}
.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a {
    color: var(--text-soft); font-weight: 600; font-size: 13.5px;
    padding: 6px 11px; border-radius: 999px; transition: background .15s, color .15s;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .55); }
.main-nav a.on {
    color: var(--primary); background: rgba(255, 255, 255, .85);
    box-shadow: var(--shadow-sm);
}
.header-right { display: flex; align-items: center; gap: 7px; }
.lang-switch { font-size: 12.5px; color: var(--text-faint); margin-right: 4px; }
.lang-switch a { color: var(--text-faint); font-weight: 600; }
.lang-switch a.on { color: var(--text); }
.lang-switch a:hover { color: var(--primary); }
.lang-switch .sep { margin: 0 4px; color: var(--line); }

/* ---------------------------------------------------------- buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 16px; border-radius: 999px; border: 1px solid transparent;
    font-size: 13.5px; font-weight: 700; cursor: pointer; font-family: inherit;
    white-space: nowrap; transition: transform .12s, box-shadow .18s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn:focus-visible { outline: 3px solid rgba(10, 132, 255, .35); outline-offset: 1px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-primary {
    background: linear-gradient(180deg, #3b9bff, var(--primary));
    color: #fff; box-shadow: 0 4px 14px rgba(10, 132, 255, .38), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; box-shadow: 0 6px 18px rgba(0, 102, 214, .45); }
.btn-ghost {
    background: var(--glass-soft); color: var(--text);
    border-color: var(--glass-border);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { background: var(--glass-strong); color: var(--text); }
.btn-outline {
    background: rgba(255, 255, 255, .35); color: var(--primary);
    border-color: rgba(10, 132, 255, .45);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.btn-outline:hover { background: rgba(10, 132, 255, .1); border-color: var(--primary); }
.btn-block { width: 100%; }
.btn-small { padding: 4px 10px; font-size: 12.5px; background: rgba(255, 255, 255, .5); color: var(--text); border-color: var(--glass-border); }
.btn-small:hover { background: rgba(255, 255, 255, .85); color: var(--text); }
.btn-danger { color: #fff; background: var(--danger); }
.btn-danger:hover { background: #d63028; color: #fff; }

/* ---------------------------------------------------------- layout */
.main { padding: 26px 18px 60px; min-height: 62vh; }
.page-head { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.page-head h1 { margin-bottom: 2px; }
.center-head { flex-direction: column; text-align: center; }
section { margin-bottom: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head a { font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------- hero */
.hero {
    text-align: center; padding: 52px 20px 38px; margin: 0 0 26px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(70% 100% at 50% 0%, rgba(10, 132, 255, .1), transparent 70%),
        var(--glass);
}
.hero h1 { font-size: clamp(24px, 4.5vw, 34px); letter-spacing: -0.04em; margin-bottom: 8px; }
.hero p { color: var(--text-soft); font-size: 14.5px; margin-bottom: 22px; }
.search-bar {
    display: flex; gap: 6px; max-width: 560px; margin: 0 auto;
    background: var(--glass-strong);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border); border-radius: 999px;
    padding: 5px 5px 5px 18px; box-shadow: var(--shadow-md);
    transition: box-shadow .2s, border-color .2s;
}
.search-bar:focus-within { border-color: rgba(10, 132, 255, .6); box-shadow: 0 10px 30px rgba(10, 132, 255, .22); }
.search-bar input[type="search"] { flex: 1; border: none; margin: 0; padding: 8px 0; background: transparent; font-size: 14px; }
.search-bar input[type="search"]:focus { outline: none; }
.search-bar select { border: none; background: transparent; width: auto; margin: 0; color: var(--text-soft); font-weight: 600; }
.search-bar .btn { padding: 8px 22px; }
.hero-chips { justify-content: center; margin-top: 16px; }

/* ---------------------------------------------------------- banner slots */
.banner-slot { display: grid; gap: 10px; grid-template-columns: 1fr; margin-bottom: 30px; }
.banner-slot:has(.banner-ad:nth-child(2)) { grid-template-columns: 1fr 1fr; }
.banner-ad { display: block; border-radius: var(--radius-lg); overflow: hidden; min-height: 84px; transition: transform .16s, box-shadow .2s; }
.banner-ad:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.banner-ad img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-ad-text { display: flex; align-items: center; justify-content: center; min-height: 84px; font-weight: 700; color: var(--text); }
.banner-ad.house { border: 1.5px dashed rgba(120, 135, 160, .5); background: var(--glass-soft); }
.banner-ad.house:hover { border-color: var(--primary); }
.banner-house-inner { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 14px; text-align: center; }
.banner-house-inner strong { color: var(--text); font-size: 15px; }
.banner-house-inner span { color: var(--text-soft); font-size: 12.5px; }

/* premium ranked row */
.premium-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.prem-slot {
    position: relative; display: flex; border-radius: var(--radius-lg);
    overflow: hidden; min-height: 132px; transition: transform .16s, box-shadow .2s;
}
.prem-slot.large { grid-column: 1 / -1; min-height: 176px; }
.prem-slot:hover { transform: translateY(-2px); }
.prem-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prem-slot.filled { min-height: 104px; }
.prem-text { margin: auto; font-weight: 800; font-size: 17px; color: var(--text); padding: 18px; }
.rank-badge {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm); color: var(--text);
}
.prem-inner { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 22px 14px 18px; }
.prem-inner strong { font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.prem-size { font-size: 12px; color: var(--text-faint); font-weight: 700; font-variant-numeric: tabular-nums; }
.prem-price { font-size: 19px; font-weight: 800; margin-top: 2px; }
.rent-cta { font-size: 12.5px; font-weight: 700; color: var(--primary); margin-top: 4px; }
.prem-slot.empty:hover .rent-cta, .grid-slot.empty:hover .rent-cta { text-decoration: underline; }

@keyframes tierGlow {
    0%, 100% { box-shadow: 0 0 0 1px var(--glow), 0 0 20px var(--glow-soft); }
    50%      { box-shadow: 0 0 0 2px var(--glow), 0 0 38px var(--glow-strong); }
}
.tier-diamond { --glow: rgba(86, 204, 242, .9);  --glow-soft: rgba(86, 204, 242, .35); --glow-strong: rgba(86, 204, 242, .6);
    border-color: rgba(86, 204, 242, .75);
    background: linear-gradient(160deg, rgba(244, 253, 255, .75), rgba(224, 246, 254, .6));
    animation: tierGlow 2.6s ease-in-out infinite; }
.tier-emerald { --glow: rgba(35, 197, 124, .9);  --glow-soft: rgba(35, 197, 124, .32); --glow-strong: rgba(35, 197, 124, .55);
    border-color: rgba(35, 197, 124, .7);
    background: linear-gradient(160deg, rgba(243, 253, 247, .75), rgba(226, 250, 238, .6));
    animation: tierGlow 2.9s ease-in-out infinite; }
.tier-gold    { --glow: rgba(245, 183, 49, .95); --glow-soft: rgba(245, 183, 49, .38); --glow-strong: rgba(245, 183, 49, .62);
    border-color: rgba(245, 183, 49, .8);
    background: linear-gradient(160deg, rgba(255, 253, 244, .8), rgba(255, 246, 220, .65));
    animation: tierGlow 3.2s ease-in-out infinite; }
.tier-diamond .rank-badge { color: #0e7ea8; }
.tier-emerald .rank-badge { color: #127a4c; }
.tier-gold .rank-badge    { color: #9a6b00; }
@media (prefers-reduced-motion: reduce) { .tier-diamond, .tier-emerald, .tier-gold { animation: none; } }

/* standard top grid (silver slots) */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; }
.grid-slot {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; min-height: 88px; padding: 10px; text-align: center;
    border-radius: var(--radius); transition: transform .15s, box-shadow .2s, border-color .15s; overflow: hidden;
}
.grid-slot.slot-1 { grid-column: span 2; min-height: 112px; }
.grid-slot.empty { border-style: dashed; border-color: rgba(130, 145, 170, .55); background: var(--glass-soft); }
.grid-slot.empty:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.grid-slot.filled:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.grid-slot.filled img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid-slot-no { font-size: 12.5px; font-weight: 800; color: #7c8698; }
.grid-slot-price { font-size: 13px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.grid-slot-text { font-weight: 700; color: var(--text); font-size: 13px; }

/* ---------------------------------------------------------- cards */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card-grid.compact { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.site-card {
    display: flex; gap: 11px; align-items: flex-start;
    border-radius: var(--radius-lg); padding: 14px;
    transition: transform .16s, box-shadow .2s;
}
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.avatar {
    flex: none; width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; color: #fff;
    background: linear-gradient(135deg, hsl(var(--h, 215) 78% 60%), hsl(var(--h, 215) 70% 44%));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -5px 10px rgba(0, 0, 0, .12);
}
.avatar-sm { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.avatar-xl { width: 64px; height: 64px; border-radius: 18px; font-size: 26px; }
.site-card-body { min-width: 0; }
.site-card strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; letter-spacing: -0.01em; }
.site-card p {
    color: var(--text-soft); font-size: 12.5px; margin-bottom: 4px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.site-card .small { font-size: 11.5px; color: var(--text-faint); }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
    padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600;
    color: var(--text); background: var(--glass-soft); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    transition: all .15s;
}
.chip:hover { border-color: rgba(10, 132, 255, .5); color: var(--primary); background: rgba(255, 255, 255, .8); transform: translateY(-1px); }

.cta {
    text-align: center; border-radius: var(--radius-xl); padding: 40px 20px; color: #fff;
    background: linear-gradient(120deg, #0066d6, #0a84ff 55%, #bf5af2);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.cta h2 { color: #fff; font-size: 19px; }
.cta p { color: rgba(255, 255, 255, .88); font-size: 13.5px; margin: 6px 0 16px; }
.cta .btn-primary { background: rgba(255, 255, 255, .92); color: var(--primary-dark); box-shadow: 0 5px 16px rgba(0, 0, 0, .2); }
.cta .btn-primary:hover { background: #fff; }

/* --------------------------------------------------- position cards */
.positions-grid { align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.position-card {
    position: relative; display: flex; flex-direction: column;
    border-radius: var(--radius-lg); padding: 20px;
    transition: transform .16s, box-shadow .2s;
}
.position-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.position-card.featured { border: 2px solid var(--primary); box-shadow: 0 12px 30px rgba(10, 132, 255, .2); }
.position-card strong { font-size: 15.5px; letter-spacing: -0.01em; }
.position-card > p { color: var(--text-soft); font-size: 13px; margin: 5px 0 10px; flex: 1; }
.ribbon {
    position: absolute; top: -10px; right: 16px;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
    font-size: 11px; font-weight: 800; letter-spacing: .04em;
    padding: 3px 10px; border-radius: 999px; box-shadow: 0 3px 10px rgba(10, 132, 255, .4);
}
.size-chip {
    display: inline-block; align-self: flex-start;
    background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-border);
    color: var(--text-soft); font-size: 12px; font-weight: 700;
    padding: 3px 9px; border-radius: 7px; margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.price { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px !important; }
.panel.notes ul { padding-left: 18px; }
.panel.notes li { margin-bottom: 4px; }

/* ---------------------------------------------------------- category sections */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; margin-bottom: 32px; }
.cat-section {
    border-radius: var(--radius-lg); padding: 14px 14px 10px;
    height: 100%; transition: box-shadow .2s, transform .18s;
}
.cat-section:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--line);
}
.cat-head h2 { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.cat-head a { font-size: 12.5px; font-weight: 600; flex: none; }
.cat-icon {
    width: 30px; height: 30px; border-radius: 9px; flex: none;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 15px;
    background: hsl(var(--h, 215) 85% 94% / .8);
    border: 1px solid hsl(var(--h, 215) 70% 86% / .8);
}
.cat-section .site-rows { grid-template-columns: 1fr; gap: 1px; }
.cat-section .site-row-host { display: none; }
.cat-section .site-row { padding: 6px; }

.site-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.site-row {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 8px; border-radius: 10px; min-width: 0; transition: background .12s;
}
.site-row:hover { background: rgba(255, 255, 255, .6); }
.row-rank {
    flex: none; width: 18px; text-align: center;
    font-size: 12px; font-weight: 800; color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}
.site-row:nth-child(1) .row-rank { color: #e8a33d; }
.site-row:nth-child(2) .row-rank { color: #8f9bb0; }
.site-row:nth-child(3) .row-rank { color: #c98a4b; }
.site-row-name {
    color: var(--text); font-weight: 600; font-size: 13.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.site-row-host {
    margin-left: auto; flex: none; color: var(--text-faint); font-size: 11.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40%;
}
.rent-mini {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 18px; border-style: dashed; border-color: rgba(130, 145, 170, .55);
    border-radius: var(--radius); transition: border-color .15s, background .15s;
}
.rent-mini:hover { border-color: var(--primary); background: rgba(10, 132, 255, .07); }
.rent-mini strong { color: var(--text-soft); font-size: 13.5px; font-weight: 600; }

/* ---------------------------------------------------------- panels/forms */
.form label, .auth-box label { display: block; margin-bottom: 13px; font-weight: 700; font-size: 13.5px; }
input, select, textarea {
    width: 100%; padding: 10px 13px; border-radius: 10px;
    border: 1px solid rgba(20, 30, 55, .12);
    font-size: 13.5px; font-family: inherit; margin-top: 5px;
    background: rgba(255, 255, 255, .65); color: var(--text);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primary); background: #fff;
    box-shadow: 0 0 0 3.5px rgba(10, 132, 255, .18);
}
input:disabled { background: rgba(240, 243, 248, .7); color: var(--text-faint); }
fieldset { border: none; margin-bottom: 14px; }
legend { font-weight: 700; font-size: 13.5px; margin-bottom: 7px; }
.radio-row {
    display: flex !important; align-items: center; gap: 10px;
    border: 1px solid rgba(20, 30, 55, .12); border-radius: 10px;
    background: rgba(255, 255, 255, .5);
    padding: 10px 13px; margin-bottom: 7px !important; font-weight: 600 !important;
    cursor: pointer; transition: border-color .15s, background .15s; font-size: 13.5px;
}
.radio-row:hover { border-color: var(--primary); }
.radio-row:has(input:checked) { border-color: var(--primary); background: rgba(10, 132, 255, .08); }
.radio-row input { width: auto; margin: 0; accent-color: var(--primary); }
.radio-row .muted { margin-left: auto; font-variant-numeric: tabular-nums; }
.error { display: block; color: var(--danger); font-size: 12.5px; margin-top: 4px; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid.four { grid-template-columns: repeat(4, 1fr); }
.check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.check input { width: auto; margin: 0; accent-color: var(--primary); }
.order-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 16px; align-items: start; }

.auth-box {
    max-width: 400px; margin: 40px auto;
    border-radius: var(--radius-xl); padding: 30px; box-shadow: var(--shadow-md);
}
.auth-box h1 { margin-bottom: 18px; font-size: 21px; }

.kv { display: grid; grid-template-columns: 130px 1fr; row-gap: 10px; margin: 12px 0; }
.kv dt { color: var(--text-soft); font-size: 13.5px; }
.kv dd { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { border-radius: var(--radius-lg); padding: 16px 18px; }
.stat-num { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--text-soft); font-size: 12.5px; font-weight: 600; }

/* ---------------------------------------------------------- subnav */
.subnav {
    display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 24px;
    background: var(--glass-soft); border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-radius: 999px; padding: 4px; width: fit-content; max-width: 100%;
}
.subnav a {
    padding: 7px 13px; color: var(--text-soft); font-weight: 600; font-size: 13px;
    border-radius: 999px; transition: background .15s, color .15s;
}
.subnav a.on { color: var(--primary); background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); }
.subnav a:hover { color: var(--primary); }

/* ---------------------------------------------------------- orders */
.order-list { display: flex; flex-direction: column; gap: 9px; }
.order-row {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    border-radius: var(--radius-lg); padding: 15px 18px; color: var(--text);
    transition: transform .15s, box-shadow .2s;
}
.order-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); color: var(--text); }
.order-right { text-align: right; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- badges */
.badge {
    display: inline-block; padding: 4px 11px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700;
    background: rgba(255, 255, 255, .55); color: var(--text-soft);
    border: 1px solid var(--glass-border);
}
.badge-pending, .badge-paused, .badge-confirming { background: rgba(255, 224, 178, .55); color: #b26a00; border-color: rgba(255, 183, 77, .4); }
.badge-paid, .badge-active { background: rgba(48, 209, 88, .16); color: var(--success-deep); border-color: rgba(48, 209, 88, .3); }
.badge-expired, .badge-cancelled, .badge-ended, .badge-failed { background: rgba(240, 243, 248, .7); color: #8b95a1; }
.badge-hidden { background: rgba(255, 69, 58, .12); color: var(--danger); border-color: rgba(255, 69, 58, .25); }

/* tier badges */
.tier-badge-diamond { background: rgba(86, 204, 242, .18); color: #0e7ea8; border-color: rgba(86, 204, 242, .4); }
.tier-badge-emerald { background: rgba(35, 197, 124, .16); color: #127a4c; border-color: rgba(35, 197, 124, .35); }
.tier-badge-gold    { background: rgba(245, 183, 49, .2); color: #9a6b00; border-color: rgba(245, 183, 49, .4); }
.tier-badge-silver  { background: rgba(238, 241, 246, .8); color: #5d6b82; }
.order-tier { display: inline-block; margin-bottom: 6px; }

/* ---------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th {
    background: rgba(255, 255, 255, .45);
    font-size: 12px; color: var(--text-soft); font-weight: 700; letter-spacing: .01em;
}
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .45); }
tr:last-child td { border-bottom: none; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select { width: auto; margin: 0; padding: 5px 8px; }
.actions { white-space: nowrap; }
code { background: rgba(255, 255, 255, .6); padding: 2px 7px; border-radius: 7px; font-size: 12.5px; border: 1px solid var(--line); }

/* ---------------------------------------------------------- flash/empty */
.flash { border-radius: 12px; padding: 12px 16px; margin: 14px 0 0; font-size: 13.5px; font-weight: 600; }
.flash-success { background: rgba(48, 209, 88, .16); color: var(--success-deep); border-color: rgba(48, 209, 88, .35); }
.flash-error { background: rgba(255, 69, 58, .12); color: var(--danger); border-color: rgba(255, 69, 58, .3); }
.empty {
    text-align: center; padding: 38px 20px; color: var(--text-soft);
    border-style: dashed; border-color: rgba(130, 145, 170, .5); border-radius: var(--radius-lg);
}
.empty p { margin-bottom: 10px; }

/* ---------------------------------------------------------- support box */
.support-box {
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    border-radius: var(--radius-lg); padding: 18px 22px; margin-top: 26px;
}
.support-box p { margin: 2px 0; }

/* ---------------------------------------------------------- payment pages */
.success-page, .error-page { text-align: center; padding: 40px 22px; }
.success-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(48, 209, 88, .18); color: var(--success-deep);
    font-size: 27px; font-weight: 800; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px; box-shadow: 0 0 0 8px rgba(48, 209, 88, .1);
}
.success-page .kv, .error-page .kv { max-width: 360px; margin: 18px auto; text-align: left; }

/* ---------------------------------------------------------- detail page */
.detail { max-width: 720px; }
.detail-hero { display: flex; gap: 18px; align-items: flex-start; border-radius: var(--radius-xl); }
.detail-main { flex: 1; min-width: 0; }
.detail-cat { margin-bottom: 6px; }
.detail-main h1 { margin-bottom: 6px; }
.detail .lead { color: var(--text-soft); font-size: 15px; margin-bottom: 4px; }
.detail-actions { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; flex-wrap: wrap; }
.detail-host { color: var(--text-faint); font-size: 13px; }
.detail-meta { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); grid-template-columns: 110px 1fr; }

/* ---------------------------------------------------------- footer */
.site-footer {
    margin-top: 40px;
    background: rgba(255, 255, 255, .5);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border-top: 1px solid var(--glass-border-soft);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; padding: 32px 18px 24px; }
.footer-logo { margin-bottom: 7px; }
.footer-grid h4 { font-size: 13px; margin-bottom: 9px; color: var(--text); }
.footer-grid a { display: block; color: var(--text-soft); font-size: 13.5px; margin-bottom: 6px; }
.footer-grid a:hover { color: var(--primary); }
.footer-tg { display: inline-flex !important; align-items: center; gap: 7px; font-weight: 700; }
.tg-ic {
    width: 22px; height: 22px; border-radius: 7px; background: #229ed9; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}
.copy { padding: 0 18px 22px; color: var(--text-faint); font-size: 12.5px; }

/* ---------------------------------------------------------- admin */
body.admin .site-header {
    position: static;
    background: rgba(16, 24, 40, .82);
    -webkit-backdrop-filter: saturate(160%) blur(20px);
    backdrop-filter: saturate(160%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body.admin .logo, body.admin .main-nav a { color: rgba(255, 255, 255, .92); }
body.admin .main-nav a { font-size: 13px; }
body.admin .main-nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
body.admin .main-nav a.on { background: var(--primary); color: #fff; box-shadow: none; }
body.admin .btn-ghost { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); box-shadow: none; }
body.admin .btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }
body.admin .main-nav { flex-wrap: wrap; gap: 2px; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .header-inner { flex-wrap: wrap; height: auto; padding: 10px 18px; gap: 6px; row-gap: 8px; }
    .main-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; }
    .order-grid, .form-grid, .form-grid.four { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 16px; }
    .hero { padding: 40px 14px 30px; }
    .premium-row { grid-template-columns: 1fr; }
    .prem-slot.large { grid-column: auto; min-height: 140px; }
    .slot-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .grid-slot.slot-1 { grid-column: span 2; }
    .detail-hero { flex-direction: column; }
    .subnav { border-radius: var(--radius-lg); }
}
@media (max-width: 700px) {
    .cat-grid { grid-template-columns: 1fr; }
    .cat-section .site-row-host { display: block; }
}
@media (max-width: 640px) {
    .site-rows { grid-template-columns: 1fr; }
    .site-row-host { display: none; }
    .cat-section .site-row-host { display: block; }
}
@media (max-width: 480px) {
    .card-grid, .card-grid.compact { grid-template-columns: 1fr 1fr; gap: 8px; }
    .site-card { padding: 11px 12px; gap: 9px; }
    .avatar { width: 32px; height: 32px; font-size: 14px; }
    .site-card p { -webkit-line-clamp: 1; }
    h1 { font-size: 20px; }
}

/* v4.1 — detail/auth/load-more refinements */
.detail-hero { padding: 24px; border-radius: var(--radius-lg); }
.detail-cat { margin: 0 0 10px; }
.detail-cat .chip { background: rgba(255, 255, 255, .75); }
.auth-box p.center { margin-top: 15px; }
.load-more .btn { gap: 4px; flex-wrap: nowrap; }
.load-more .btn .muted { white-space: nowrap; }
.empty .btn { margin-top: 6px; }

/* v4.2 — mobile nav: force own full-width row (flex-basis beats width for flex items) */
@media (max-width: 860px) {
    .main-nav { flex: 0 0 100%; width: 100%; }
    .main-nav a { flex: none; }
}

/* ============================================================
   v4.3 — /categories, /sites, /support redesigns
   ============================================================ */

/* categories index: rich glass cards */
.cat-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.cat-card {
    display: flex; flex-direction: column; gap: 5px;
    border-radius: var(--radius-lg); padding: 18px;
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .16s, box-shadow .2s, border-color .16s;
}
.cat-card:hover {
    transform: translateY(-3px); box-shadow: var(--shadow-lg);
    border-color: hsl(var(--h, 215) 75% 70% / .7);
}
.cat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cat-card-icon {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
    background: hsl(var(--h, 215) 85% 93% / .85);
    border: 1px solid hsl(var(--h, 215) 70% 84% / .8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.cat-card strong { font-size: 16px; color: var(--text); letter-spacing: -0.01em; }
.cat-card p {
    color: var(--text-soft); font-size: 12.5px; line-height: 1.45; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cat-card-count {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--text-soft);
}
.cat-card-arrow { color: var(--primary); transition: transform .15s; }
.cat-card:hover .cat-card-arrow { transform: translateX(3px); }

/* sites filter panel */
.filter-panel {
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .55);
    padding: 14px; margin-bottom: 6px;
}
.filter-panel .search-bar { max-width: none; box-shadow: none; background: rgba(255, 255, 255, .7); }
.filter-chips { margin-top: 11px; }
.chip.on {
    background: linear-gradient(180deg, #3b9bff, var(--primary)); color: #fff;
    border-color: transparent; box-shadow: 0 3px 10px rgba(10, 132, 255, .35);
}
.chip.on:hover { color: #fff; }

/* support page */
.support-hero {
    text-align: center; padding: 42px 22px 34px; margin-bottom: 16px;
    border-radius: var(--radius-xl);
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(34, 158, 217, .12), transparent 70%),
        var(--glass);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.support-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 20px; font-size: 30px;
    background: linear-gradient(135deg, #2aabee, #229ed9); color: #fff;
    box-shadow: 0 10px 24px rgba(34, 158, 217, .4), inset 0 1px 0 rgba(255, 255, 255, .4);
    margin-bottom: 14px;
}
.support-hero h2 { font-size: 20px; margin-bottom: 4px; }
.support-handle { display: inline-block; font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.support-hero .btn { margin-top: 14px; padding: 11px 26px; }
.support-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.support-card {
    border-radius: var(--radius-lg); padding: 18px;
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .55);
    transition: transform .16s, box-shadow .2s;
}
.support-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.support-card-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px; font-size: 19px; margin-bottom: 9px;
    background: hsl(var(--h, 215) 85% 93% / .85);
    border: 1px solid hsl(var(--h, 215) 70% 84% / .8);
}
.support-card strong { display: block; font-size: 14.5px; margin-bottom: 3px; }
.support-card p { font-size: 12.5px; }

/* ============================================================
   v4.4 — animated SVG illustrations
   ============================================================ */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-9px); }
}
.float-anim { animation: floatY 4.5s ease-in-out infinite; will-change: transform; }
@media (prefers-reduced-motion: reduce) { .float-anim { animation: none; } }

/* homepage hero: text + art split */
.hero-inner { display: flex; align-items: center; gap: 34px; text-align: left; }
.hero-text { flex: 1; min-width: 0; }
.hero-text .search-bar { margin: 0; }
.hero-art { flex: none; width: 300px; height: auto; filter: drop-shadow(0 18px 30px rgba(20, 60, 120, .18)); }

/* advertise / generic art hero strip */
.art-hero {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 20px 26px; margin-bottom: 24px;
    border-radius: var(--radius-xl);
    background: var(--glass);
    -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.art-hero-text h1 { margin-bottom: 3px; }
.art-hero-img { flex: none; width: 150px; height: auto; filter: drop-shadow(0 14px 22px rgba(20, 60, 120, .16)); }

/* page head with illustration */
.page-head.with-art { align-items: center; }
.page-head-art { flex: none; width: 120px; height: auto; filter: drop-shadow(0 12px 20px rgba(90, 60, 160, .16)); }

/* support illustration banner */
.support-art {
    max-width: 460px; margin: 0 auto 18px;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-md);
}
.support-art img { display: block; width: 100%; height: auto; }

/* error page illustration */
.error-art { width: 150px; height: auto; margin: 0 auto 6px; display: block; }

@media (max-width: 860px) {
    .hero-inner { flex-direction: column-reverse; text-align: center; gap: 18px; }
    .hero-text .search-bar { margin: 0 auto; }
    .hero-art { width: 190px; }
    .art-hero { padding: 18px 20px; }
    .art-hero-img { width: 110px; }
    .page-head-art { width: 84px; }
}

/* v4.5 — SVG art: explicit boxes (viewBox-ratio height:auto is unreliable) */
.hero-art { width: 300px; height: 300px; object-fit: contain; }
.art-hero-img { width: 150px; height: 140px; object-fit: contain; }
.page-head-art { width: 120px; height: 110px; object-fit: contain; }
.error-art { width: 150px; height: 140px; object-fit: contain; }
@media (max-width: 860px) {
    .hero-art { width: 190px; height: 190px; }
    .art-hero-img { width: 110px; height: 100px; }
    .page-head-art { width: 84px; height: 78px; }
}

/* v4.6 — buy-this-slot button inside slots */
.slot-buy { margin-top: 8px; pointer-events: none; font-size: 12px; padding: 6px 14px; }
.prem-slot:hover .slot-buy, .grid-slot:hover .slot-buy {
    background: var(--primary-dark);
    box-shadow: 0 5px 14px rgba(0, 102, 214, .45);
}

/* ============================================================
   v5 — Admin panel: dark glass sidebar shell
   ============================================================ */
body.admin { background: #edf0f6; }
.admin-shell { display: flex; min-height: 100vh; }

.admin-side {
    position: fixed; inset: 0 auto 0 0; width: 232px; z-index: 60;
    display: flex; flex-direction: column;
    background: rgba(15, 22, 38, .88);
    -webkit-backdrop-filter: saturate(160%) blur(22px);
    backdrop-filter: saturate(160%) blur(22px);
    border-right: 1px solid rgba(255, 255, 255, .07);
    padding: 18px 14px 14px;
}
.admin-logo { font-size: 17px; padding: 4px 8px; }
.admin-logo:hover { color: #fff; }
.admin-side-tag {
    display: block; margin: 2px 8px 14px; font-size: 10.5px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .35);
}
.admin-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.admin-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 11px;
    color: rgba(255, 255, 255, .68); font-size: 13.5px; font-weight: 600;
    transition: background .14s, color .14s;
}
.admin-nav a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.admin-nav a.on {
    background: linear-gradient(180deg, #3b9bff, var(--primary)); color: #fff;
    box-shadow: 0 4px 14px rgba(10, 132, 255, .4);
}
.admin-nav-ic { width: 20px; text-align: center; font-size: 14px; }
.admin-side-foot {
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 12px 8px 2px;
    display: flex; flex-direction: column; gap: 6px;
}
.admin-user {
    color: rgba(255, 255, 255, .5); font-size: 12px; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.admin-logout { color: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 700; }
.admin-logout:hover { color: #fff; }

.admin-main { flex: 1; margin-left: 232px; padding: 22px 26px 50px; min-width: 0; }
.admin-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; gap: 14px;
}
.admin-top h1 { font-size: 22px; }
.admin-content .page-head { margin-bottom: 16px; }

/* stat cards with icon chips */
.admin-stats .stat { position: relative; padding-top: 44px; }
.stat-ic {
    position: absolute; top: 14px; left: 16px;
    width: 34px; height: 34px; border-radius: 10px; font-size: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: hsl(var(--h, 215) 85% 93% / .9);
    border: 1px solid hsl(var(--h, 215) 70% 84% / .8);
}

@media (max-width: 900px) {
    .admin-shell { flex-direction: column; }
    .admin-side {
        position: static; width: 100%; flex-direction: column;
        max-height: none; padding: 12px 14px;
    }
    .admin-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
    .admin-nav a { white-space: nowrap; }
    .admin-side-foot { flex-direction: row; align-items: center; justify-content: space-between; }
    .admin-main { margin-left: 0; padding: 16px 14px 40px; }
}

/* v5.1 — admin top bar button contrast fix (old dark-header ghost rule scope) */
.admin-top .btn-ghost {
    color: var(--text); border-color: var(--glass-border);
    background: var(--glass-soft); box-shadow: var(--shadow-sm);
}
.admin-top .btn-ghost:hover { background: var(--glass-strong); color: var(--text); }

/* v5.2 — admin actions row (after removing duplicate view titles) */
.admin-actions { display: flex; justify-content: flex-end; margin-bottom: 14px; }

/* v5.3 — beat the legacy dark-header ghost rule (specificity) */
body.admin .admin-top .btn-ghost,
body.admin .admin-content .btn-ghost {
    color: var(--text); border-color: var(--glass-border);
    background: var(--glass-soft); box-shadow: var(--shadow-sm);
}
body.admin .admin-top .btn-ghost:hover,
body.admin .admin-content .btn-ghost:hover { background: var(--glass-strong); color: var(--text); }

/* v5.4 — admin tables scroll horizontally on small screens instead of squeezing */
@media (max-width: 900px) {
    body.admin .table-wrap table { min-width: 760px; }
    body.admin th, body.admin td { white-space: nowrap; }
}

/* v5.5 — real logo image */
.logo-img { width: 26px; height: 26px; border-radius: 7px; box-shadow: 0 2px 8px rgba(10, 132, 255, .25); }

/* ============================================================
   v5.6 — discounts + checkout-style payment page
   ============================================================ */
.off-badge {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    background: rgba(48, 209, 88, .16); color: var(--success-deep);
    border: 1px solid rgba(48, 209, 88, .3);
    font-size: 11px; font-weight: 800; white-space: nowrap;
}
.radio-row .off-badge { margin-left: 6px; }
.radio-price { margin-left: auto; font-variant-numeric: tabular-nums; }
.radio-price s { color: var(--text-faint); font-weight: 500; margin-right: 5px; font-size: 12px; }
.discount-note {
    font-size: 12.5px; font-weight: 600; color: var(--success-deep);
    background: rgba(48, 209, 88, .1); border: 1px solid rgba(48, 209, 88, .25);
    border-radius: 10px; padding: 8px 12px; margin-top: 10px;
}

.checkout-head { margin-bottom: 12px; }
.checkout-head h3 { margin-top: 8px; font-size: 17px; }
.big-badge { font-size: 13px; padding: 6px 14px; }

.price-box {
    border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px;
    display: flex; flex-direction: column; gap: 8px;
}
.price-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; }
.price-line.discount span:last-child { color: var(--success-deep); font-weight: 700; }
.price-line.total {
    border-top: 1px dashed var(--line); padding-top: 10px;
    font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums;
}

.pay-panel { text-align: center; padding: 30px 24px; }
.pay-status-ic { font-size: 34px; margin-bottom: 8px; }
.pay-panel h3 { font-size: 17px; margin-bottom: 6px; }
.pay-panel .btn-lg { padding: 13px 20px; font-size: 15px; margin: 14px 0 6px; }
.pay-notes { text-align: left; padding-left: 18px; margin: 10px 0 14px; font-size: 12.5px; }
.pay-notes li { margin-bottom: 3px; }

/* ============================================================
   v5.7 — order page redesign
   ============================================================ */
.order-side { position: sticky; top: 76px; }
.order-side h3 { font-size: 17px; margin: 8px 0 4px; }
.order-side > .muted { font-size: 13px; margin-bottom: 12px; }

.slot-preview {
    position: relative; margin: 12px 0 14px;
    border: 1.5px dashed rgba(120, 135, 160, .55); border-radius: 12px;
    background:
        repeating-linear-gradient(45deg, rgba(120, 135, 160, .05) 0 10px, transparent 10px 20px),
        rgba(255, 255, 255, .4);
    overflow: hidden;
}
.slot-preview span {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--text-faint); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums;
}

.side-price {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 10px 2px; border-top: 1px solid var(--line);
}
.side-price strong { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }

.ladder { border-top: 1px solid var(--line); padding-top: 8px; margin-bottom: 12px; }
.ladder-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 2px; font-size: 13px; font-weight: 600; color: var(--text-soft);
}
.ladder-row.has-off { color: var(--text); }

.order-total-box {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(120deg, rgba(10, 132, 255, .1), rgba(191, 90, 242, .09));
    border: 1px solid rgba(10, 132, 255, .25);
    border-radius: 12px; padding: 13px 16px;
    font-weight: 700; font-size: 14px;
}
.order-total-box strong { font-size: 20px; font-weight: 800; color: var(--primary-dark); font-variant-numeric: tabular-nums; }

.form-section {
    font-size: 13px; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 14px;
}
.radio-row { padding: 13px 15px; }
.radio-row .radio-name { font-weight: 700; }
.btn-lg { padding: 14px 20px; font-size: 15px; }
.btn-total { opacity: .85; font-weight: 600; margin-left: 4px; }

/* ============================================================
   v5.8 — form spacing rhythm + clean slot preview
   ============================================================ */

/* cleaner slot preview: no diagonal stripes */
.slot-preview {
    border: 1.5px dashed rgba(120, 135, 160, .45);
    background: linear-gradient(160deg, rgba(10, 132, 255, .06), rgba(191, 90, 242, .05)), rgba(255, 255, 255, .5);
}
.slot-preview span { letter-spacing: .02em; }
.slot-preview span::before { content: "🖼 "; font-size: 14px; }

/* consistent vertical rhythm in forms */
.form label, .auth-box label { margin-bottom: 18px; }
.form label input, .form label select, .form label textarea,
.auth-box input, .auth-box select { margin-top: 7px; }
.form label .muted.small, .auth-box .muted.small {
    display: block; margin-top: 6px; line-height: 1.45;
}
.form fieldset { margin: 22px 0 0; }
.form legend { margin-bottom: 10px; }
.radio-row { margin-bottom: 9px !important; }
.radio-row:last-of-type { margin-bottom: 0 !important; }
.form .btn-block { margin-top: 18px; }
.form-section { margin-bottom: 16px; }

/* panels on order pages breathe more */
.order-grid { gap: 20px; }
.order-grid .panel { padding: 24px; }
.order-grid .panel > *:last-child { margin-bottom: 0; }

/* errors get their own space */
.error { margin-top: 6px; }
