:root {
    --bg-deep: #060a13;
    --bg-primary: #0b1120;
    --bg-secondary: #111d35;
    --bg-card: #14203a;
    --bg-card-hover: #1a2a50;
    --accent: #ff4d00;
    --accent-light: #ff6b2c;
    --accent-dim: #cc3d00;
    --accent-glow: rgba(255,77,0,0.25);
    --cyan: #00e5ff;
    --cyan-dim: #00b8cc;
    --cyan-glow: rgba(0,229,255,0.15);
    --green: #00e676;
    --yellow: #ffab00;
    --red: #ff1744;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --text-muted: #ffffff;
    --border: rgba(255,255,255,0.06);
    --border-accent: rgba(255,77,0,0.25);
    --sidebar-w: 250px;
    --topbar-h: 64px;
    --radius: 6px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100vh;
    font-family: 'Noto Sans SC', sans-serif;
    background: var(--bg-deep);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}
body.portal-body { padding-top: var(--topbar-h); }
body.admin-body { background: linear-gradient(135deg, rgba(6,10,19,0.98), rgba(11,17,32,0.96)); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-dim); border-radius: 3px; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan-dim); }
img { max-width: 100%; display: block; }

.container { width: min(1280px, calc(100% - 32px)); margin: 0 auto; }
.page-shell { min-height: calc(100vh - var(--topbar-h)); }
.page-block { padding: 40px 0 56px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.page-head h1, .page-head h2, .page-head h3, .card-title, .section-title {
    font-family: 'Teko', sans-serif;
    font-size: 34px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.section-title { position: relative; display: inline-block; padding-bottom: 8px; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--accent); }
.section-kicker, .page-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border-accent);
    background: var(--accent-glow);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-light);
    letter-spacing: 1px;
    text-transform: uppercase;
}
.text-muted { color: var(--text-muted) !important; opacity: 1; }
.text-secondary { color: var(--text-secondary) !important; opacity: 1; }
h1, h2, h3, h4, h5, h6, p, label, th, td, span, strong { color: inherit; }
.page-header h1, .section-title, .download-card h3, .metric-label, .field-label, .group-title, .admin-breadcrumb, .footer-copy, .news-date, .hero-stat-item .label {
    color: #fff;
}
.page-header h3, .page-header p, .metric-note, .stat-label, .table-caption, .state-empty, .hero-sub, .feature-card h3, .feature-card p, .news-card h4, .news-card p, .download-card p, .shop-item h4, .shop-item .item-type, .shop-item .item-price span, .uc-name, .uc-page .list-row strong, .uc-page .list-row span, .list-row strong, .list-row > div > span, .table-wrap th, .table-wrap td, .topnav-link, .topnav-user, .uc-nav a, .admin-nav-item, .footer-links a {
    color: #fff !important;
}
a.feature-card, a.feature-card:hover, .news-card, .news-card:hover, .shop-item, .shop-item:hover, .download-card, .download-card:hover {
    color: #fff;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s;
    position: relative;
    overflow: hidden;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-light)); color: #fff; box-shadow: 0 4px 20px var(--accent-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px var(--accent-glow); color: #fff; }
.btn-secondary { background: transparent; color: var(--cyan); border: 1px solid var(--cyan); box-shadow: 0 0 15px var(--cyan-glow); }
.btn-secondary:hover { background: var(--cyan-glow); color: var(--cyan); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { color: #fff; opacity: .9; }
.btn-ghost { background: rgba(255,255,255,0.05); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-block, .w-100 { width: 100%; }

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all .3s;
    position: relative;
}
.card:hover { border-color: var(--border-accent); transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.card-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity .3s;
}
.card-glow:hover::before { opacity: 1; }
.panel-body, .card-body { padding: 24px; }

.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.badge-accent { background: var(--accent-glow); color: var(--accent-light); }
.badge-cyan { background: var(--cyan-glow); color: var(--cyan); }
.badge-green { background: rgba(0,230,118,0.12); color: var(--green); }
.badge-red { background: rgba(255,23,68,0.12); color: var(--red); }
.badge-yellow { background: rgba(255,171,0,0.12); color: var(--yellow); }

.input-field {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .25s, box-shadow .25s;
}
.input-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-field::placeholder { color: var(--text-muted); }
.field-group { display: grid; gap: 8px; }
.field-label { font-size: 12px; color: var(--text-secondary); letter-spacing: .8px; text-transform: uppercase; }
.form-grid { display: grid; gap: 18px; }
.form-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.four-up { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-actions, .hero-actions, .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-wrap th { background: var(--bg-secondary); color: #fff; font-weight: 600; text-align: left; padding: 12px 16px; white-space: nowrap; }
.table-wrap td { padding: 10px 16px; border-top: 1px solid var(--border); vertical-align: top; color: #fff; }
.table-wrap tr:hover td { background: rgba(255,255,255,0.02); }

.notice-banner {
    padding: 14px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: rgba(20,32,58,0.88);
    margin-bottom: 20px;
}
.notice-info { border-color: rgba(0,229,255,0.16); background: rgba(0,229,255,0.07); }
.notice-warning { border-color: rgba(255,171,0,0.2); background: rgba(255,171,0,0.08); }
.notice-danger { border-color: rgba(255,23,68,0.22); background: rgba(255,23,68,0.08); }
.state-empty { padding: 18px; border-radius: var(--radius); border: 1px dashed var(--border); background: rgba(255,255,255,0.02); color: #fff; }

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--topbar-h);
    background: rgba(6,10,19,0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 40px;
}
.topnav-inner { width: min(1320px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 24px; }
.topnav-brand { display: flex; align-items: center; gap: 12px; color: var(--text-primary); }
.topnav-brand i { font-size: 18px; color: var(--accent); }
.topnav-logo { font-family: 'Teko', sans-serif; font-size: 28px; font-weight: 700; letter-spacing: 3px; color: var(--accent); }
.topnav-subtitle { color: var(--text-primary); font-size: 16px; letter-spacing: 1px; }
.topnav-menu { display: flex; gap: 6px; margin-left: 24px; }
.topnav-link {
    padding: 8px 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    transition: all .25s;
    position: relative;
}
.topnav-link:hover, .topnav-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.topnav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}
.topnav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topnav-user { display: flex; align-items: center; gap: 8px; padding: 6px 16px; background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 20px; color: var(--text-primary); font-size: 13px; }
.topnav-admin { padding: 6px 14px; background: var(--accent-glow); color: var(--accent-light); border-radius: var(--radius); font-size: 12px; border: 1px solid var(--border-accent); }

.hero {
    position: relative;
    min-height: calc(100vh - var(--topbar-h));
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; z-index: 1; background: linear-gradient(135deg, rgba(6,10,19,0.92) 0%, rgba(11,17,32,0.7) 50%, rgba(6,10,19,0.85) 100%); }
.hero-scanline { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,229,255,0.015) 2px, rgba(0,229,255,0.015) 4px); }
.hero-content { position: relative; z-index: 3; padding: 0 80px; max-width: 860px; }
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero-title { font-family: 'Teko', sans-serif; font-size: 82px; font-weight: 700; line-height: .95; letter-spacing: 4px; text-transform: uppercase; }
.hero-title .highlight { color: var(--accent); }
.hero-sub { font-size: 16px; color: #fff; margin-top: 20px; max-width: 560px; }
.hero-stats { display: flex; gap: 48px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.hero-stat-item .num { font-family: 'Teko', sans-serif; font-size: 40px; font-weight: 700; line-height: 1; color: var(--cyan); }
.hero-stat-item .label { font-size: 12px; color: #fff; margin-top: 4px; letter-spacing: 1px; }
.hero-decor { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); z-index: 3; width: 400px; height: 400px; opacity: 0.12; }
.hero-decor svg { width: 100%; height: 100%; }

.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -60px; position: relative; z-index: 10; }
.feature-card { padding: 28px; text-align: center; }
.feature-card .f-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #fff; }
.feature-card p, .news-card p, .download-card p, .shop-item .item-type, .stat-label, .metric-note, .page-copy, .section-copy { font-size: 13px; color: #fff; }

.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.news-card { display: flex; gap: 18px; padding: 20px; }
.news-card-media {
    width: 160px;
    height: 112px;
    border-radius: var(--radius);
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #fff;
}
.news-card h4 { font-size: 16px; font-weight: 700; margin: 8px 0; line-height: 1.4; color: #fff; }
.news-date { font-size: 12px; color: #fff; margin-top: 10px; }

.page-panels, .surface-grid { display: grid; gap: 20px; }
.surface-grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.surface-grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.surface-grid.four-up, .stats-grid, .dash-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stack-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.simple-list, .info-list { list-style: none; display: grid; gap: 12px; }
.list-row, .metric-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child, .metric-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child, .metric-row:first-child { padding-top: 0; }
.metric-card, .stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.metric-number, .stat-value { font-family: 'Teko', sans-serif; font-size: 34px; line-height: 1; }
.metric-label { font-size: 12px; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.metric-note { color: #fff; }
.stat-label { color: #fff; }
.stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; }
.shop-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-tab { padding: 8px 20px; border-radius: var(--radius); font-size: 13px; background: rgba(255,255,255,0.04); color: #fff; border: 1px solid var(--border); }
.shop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.shop-item { text-align: center; }
.shop-item .item-img {
    height: 180px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.shop-item .item-img::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 60px; background: linear-gradient(transparent, var(--bg-card)); }
.shop-item .item-rarity { position: absolute; top: 10px; right: 10px; z-index: 2; width: 10px; height: 10px; border-radius: 50%; }
.rarity-legendary { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); }
.rarity-epic { background: #e040fb; box-shadow: 0 0 10px #e040fb; }
.rarity-rare { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.rarity-common { background: var(--text-secondary); }
.shop-item .item-info { padding: 16px; }
.shop-item h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; color: #fff; }
.shop-item .item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.shop-item .item-price { font-family: 'Teko', sans-serif; font-size: 24px; font-weight: 600; color: var(--accent); }
.shop-item .item-price span { font-size: 13px; color: #fff; font-family: 'Noto Sans SC'; margin-right: 4px; }

.rank-top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.rank-top-card { text-align: center; padding: 30px 20px; }
.rank-num { font-family: 'Teko', sans-serif; font-size: 48px; line-height: 1; }
.rank-top-card:nth-child(1) .rank-num { color: var(--yellow); }
.rank-top-card:nth-child(2) .rank-num { color: #b0bec5; }
.rank-top-card:nth-child(3) .rank-num { color: #ff8a65; }
.rank-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 12px auto; background: var(--bg-secondary); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.rank-score { font-family: 'Teko', sans-serif; font-size: 22px; color: var(--cyan); margin-top: 4px; }

.download-hero {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.download-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%); }
.download-hero > * { position: relative; z-index: 1; }
.download-hero h1, .download-hero h2 { font-family: 'Teko', sans-serif; font-size: 42px; letter-spacing: 3px; }
.download-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.download-card { padding: 24px; }

.auth-shell { min-height: calc(100vh - var(--topbar-h) - 56px); display: flex; align-items: center; justify-content: center; padding: 24px 0; }
.auth-card { width: min(520px, 100%); }
.auth-card-wide { width: min(760px, 100%); }

.uc-layout { display: flex; gap: 24px; min-height: calc(100vh - var(--topbar-h) - 40px); }
.uc-sidebar { width: 240px; flex-shrink: 0; background: var(--bg-card); border-right: 1px solid var(--border); padding: 24px 0; }
.uc-user { text-align: center; padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.uc-avatar { width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 12px; background: linear-gradient(135deg, var(--accent), var(--accent-light)); display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #fff; }
.uc-name { font-size: 16px; font-weight: 700; color: #fff; }
.uc-role { font-size: 12px; color: var(--accent-light); margin-top: 4px; }
.uc-nav { display: grid; }
.uc-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #fff; font-size: 14px; transition: all .2s; }
.uc-nav a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.uc-nav a.active { color: var(--accent-light); background: var(--accent-glow); border-right: 3px solid var(--accent); }
.uc-content { flex: 1; padding: 30px; min-width: 0; }
.uc-page { margin-bottom: 24px; }
.warehouse-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.wh-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; position: relative; transition: all .25s; }
.wh-item:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.wh-icon { font-size: 36px; margin-bottom: 8px; color: #fff; }
.wh-delete { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; display: none; align-items: center; justify-content: center; }
.wh-item:hover .wh-delete { display: flex; }

.toggle-field { display: inline-flex; align-items: center; gap: 12px; }
.toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-switch { width: 44px; height: 24px; border-radius: 12px; background: var(--bg-secondary); border: 1px solid var(--border); cursor: pointer; position: relative; transition: all .3s; }
.toggle-switch.active, .toggle-input:checked + .toggle-switch { background: var(--accent); border-color: var(--accent); }
.toggle-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: all .3s; }
.toggle-switch.active::after, .toggle-input:checked + .toggle-switch::after { left: 22px; }

.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: var(--sidebar-w); background: var(--bg-primary); border-right: 1px solid var(--border); position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 100; }
.admin-logo { padding: 20px 24px; border-bottom: 1px solid var(--border); font-family: 'Teko', sans-serif; font-size: 22px; font-weight: 700; color: var(--accent); letter-spacing: 2px; display: flex; align-items: center; gap: 10px; }
.admin-nav-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.group-title { padding: 8px 24px; font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: #fff; font-weight: 600; }
.admin-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 24px; color: #fff; font-size: 13px; transition: all .2s; }
.admin-nav-item:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-nav-item.active { color: var(--accent-light); background: var(--accent-glow); }
.admin-main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.admin-topbar { height: 56px; background: var(--bg-primary); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 30px; position: sticky; top: 0; z-index: 50; }
.admin-breadcrumb { font-size: 13px; color: #fff; }
.admin-breadcrumb span { color: var(--text-primary); }
.admin-topbar-meta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.admin-content { padding: 30px; }
.admin-auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.admin-auth-card { width: min(520px, 100%); }
.danger-zone { border: 1px solid rgba(255,23,68,0.2); border-radius: var(--radius); padding: 24px; }
.danger-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }

.portal-footer { background: var(--bg-primary); border-top: 1px solid var(--border); padding: 34px 0 28px; margin-top: 40px; }
.footer-inner { text-align: center; display: grid; gap: 10px; }
.footer-logo { font-family: 'Teko', sans-serif; font-size: 24px; color: var(--accent); letter-spacing: 2px; }
.footer-copy { font-size: 12px; color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 16px; }
.footer-links a { color: #fff; font-size: 18px; }

@media (max-width: 1199px) {
    .features-grid, .shop-grid, .surface-grid.three-up, .surface-grid.four-up, .stats-grid, .dash-stats, .warehouse-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid, .download-grid, .stack-two { grid-template-columns: 1fr; }
    .hero-title { font-size: 60px; }
    .hero-content { padding: 0 40px; }
    .hero-decor { display: none; }
}

@media (max-width: 991px) {
    .topnav { height: auto; padding: 12px 18px; }
    body.portal-body { padding-top: 88px; }
    .topnav-inner { flex-wrap: wrap; }
    .topnav-menu { margin-left: 0; flex-wrap: wrap; }
    .topnav-right { width: 100%; justify-content: flex-end; }
    .form-grid.two-up, .form-grid.three-up, .form-grid.four-up, .surface-grid.two-up { grid-template-columns: 1fr; }
    .uc-layout { display: grid; }
    .uc-sidebar { width: 100%; }
    .admin-layout { flex-direction: column; }
    .admin-sidebar { position: static; width: 100%; border-right: 0; border-bottom: 1px solid var(--border); }
    .admin-main { margin-left: 0; }
}

@media (max-width: 767px) {
    .container { width: min(100%, calc(100% - 20px)); }
    .page-block, .admin-content, .uc-content { padding: 18px; }
    .hero-content { padding: 0 20px; }
    .hero-title { font-size: 42px; }
    .hero-stats { flex-direction: column; gap: 18px; }
    .features-grid, .shop-grid, .rank-top3, .warehouse-grid, .danger-grid, .stats-grid, .dash-stats { grid-template-columns: 1fr; }
    .news-card { flex-direction: column; }
    .news-card-media { width: 100%; }
    .table-wrap th, .table-wrap td { padding-left: 12px; padding-right: 12px; }
    .list-row, .metric-row { flex-direction: column; }
}
