/* =====================================================
   SouthNW - Global Styles
   Dark gaming theme, neon accents
   ===================================================== */

:root {
  --bg: #0a0d18;
  --bg-2: #11162a;
  --bg-3: #1a2138;
  --bg-card: #141a2e;
  --border: #232b48;
  --text: #e6e9f5;
  --text-dim: #8a93b3;
  --primary: #5b8def;
  --primary-2: #4a6fd6;
  --accent: #00d4ff;
  --accent-2: #00b3d9;
  --success: #2ecc71;
  --danger: #ff4757;
  --warn: #ffa502;
  --rank-vip: #55ff55;
  --rank-mvp: #55ffff;
  --rank-elite: #ff55ff;
  --rank-legend: #ffaa00;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 12px;
  --radius-sm: 8px;
  --gradient: linear-gradient(135deg, #5b8def 0%, #00d4ff 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(91,141,239,.08) 0, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,212,255,.06) 0, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

.main-content { flex: 1; }

/* ===== Navbar ===== */
.navbar {
  background: rgba(10, 13, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: var(--gradient); border-radius: 10px;
  font-size: 22px; color: #fff;
  box-shadow: 0 0 20px rgba(91,141,239,.5);
}
.logo-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  list-style: none; display: flex; align-items: center; gap: 8px;
}
.nav-links a {
  color: var(--text-dim); padding: 8px 14px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 14px; transition: all .2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-2); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-links a.nav-admin { color: var(--warn); }
.nav-user { display: flex; align-items: center; gap: 10px; padding-left: 10px; border-left: 1px solid var(--border); margin-left: 6px; }
.user-credit { color: var(--warn); font-weight: 700; font-size: 14px; }
.user-name { font-weight: 600; font-size: 14px; }

.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 28px; cursor: pointer; }

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); padding: 16px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all .2s; text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 4px 14px rgba(91,141,239,.3); }
.btn-primary:hover { box-shadow: 0 6px 20px rgba(91,141,239,.5); }
.btn-secondary { background: var(--bg-3); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-2); border-color: var(--primary); }
.btn-ghost, .btn-ghost.btn { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
button.btn-ghost { padding: 8px 14px; font-size: 14px; background: transparent; color: var(--text-dim); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; }
button.btn-ghost:hover { color: var(--text); }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 100px 0 80px; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center top, rgba(91,141,239,.15) 0, transparent 50%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23232b48' stroke-width='1'%3E%3Cpath d='M30 0L60 17.32V51.96L30 69.28L0 51.96V17.32z'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover, 60px 60px;
  z-index: -1;
}
.hero-content { text-align: center; }
.hero-badge {
  display: inline-block; padding: 6px 16px; background: var(--bg-3);
  border: 1px solid var(--border); border-radius: 100px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  margin-bottom: 20px;
}
.hero-title { font-size: clamp(48px, 8vw, 96px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; letter-spacing: -2px; }
.title-gradient { background: linear-gradient(135deg, #5b8def 0%, #00d4ff 50%, #5b8def 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtitle { font-size: 20px; color: var(--text-dim); margin-bottom: 36px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 36px; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { font-size: 13px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Announcements ===== */
.announcements-strip {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(90deg, rgba(91,141,239,.1), rgba(0,212,255,.05));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 20px; margin: 32px auto; max-width: 1200px;
}
.ann-icon { font-size: 24px; color: var(--warn); }
.ann-list { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.ann-item { font-size: 14px; }

/* ===== Sections ===== */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h1, .section-head h2 { font-size: 36px; font-weight: 800; margin-bottom: 8px; }
.section-head p { color: var(--text-dim); font-size: 16px; }
.servers-section, .features-section, .store-page, .servers-page, .product-detail { padding: 60px 0; }

/* ===== Server Cards ===== */
.server-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.server-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: all .3s; position: relative; overflow: hidden;
}
.server-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient); opacity: 0; transition: opacity .3s; z-index: -1;
}
.server-card:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.server-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.server-icon {
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border-radius: var(--radius); font-size: 28px; color: var(--accent);
}
.server-smp .server-icon { color: #2ecc71; }
.server-boxpvp .server-icon { color: #ff4757; }
.server-minigames .server-icon { color: #ffa502; }
.server-status { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 10px; background: var(--bg-3); border-radius: 100px; }
.server-status .dot { width: 8px; height: 8px; border-radius: 50%; }
.server-status.online { color: var(--success); }
.server-status.online .dot { background: var(--success); box-shadow: 0 0 10px var(--success); }
.server-status.offline { color: var(--danger); }
.server-status.offline .dot { background: var(--danger); }
.server-name { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.server-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; min-height: 60px; }
.server-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { text-align: center; padding: 24px; }
.feature-icon { font-size: 40px; color: var(--accent); margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; }
.feature p { color: var(--text-dim); font-size: 14px; }

/* ===== Footer ===== */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: 80px; padding: 50px 0 20px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: 14px; }
.footer-col a:hover { color: var(--text); }
.footer-tagline { color: var(--text-dim); font-size: 14px; margin-top: 12px; }
.ip-code { background: var(--bg-3); padding: 8px 12px; border-radius: var(--radius-sm); font-family: 'Courier New', monospace; color: var(--accent); font-size: 13px; display: inline-block; }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); text-align: center; color: var(--text-dim); font-size: 13px; }

@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; } }

/* ===== Auth Pages ===== */
.auth-wrap { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px; width: 100%; max-width: 440px;
  box-shadow: var(--shadow);
}
.auth-head { text-align: center; margin-bottom: 30px; }
.auth-icon {
  width: 64px; height: 64px; margin: 0 auto 16px;
  background: var(--gradient); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
}
.auth-head h1 { font-size: 28px; margin-bottom: 6px; }
.auth-head p { color: var(--text-dim); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; }
.auth-form label > span { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.auth-form input, .admin-form input, .admin-form select, .admin-form textarea {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-size: 14px; font-family: inherit;
  transition: all .2s; width: 100%;
}
.auth-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,212,255,.15);
}
.auth-form small { color: var(--text-dim); font-size: 12px; }
.auth-foot { text-align: center; margin-top: 20px; color: var(--text-dim); font-size: 14px; }

.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: rgba(255,71,87,.1); border: 1px solid var(--danger); color: var(--danger); }
.alert-warn { background: rgba(255,165,2,.1); border: 1px solid var(--warn); color: var(--warn); }

/* ===== Dashboard ===== */
.dashboard { display: grid; grid-template-columns: 280px 1fr; gap: 30px; padding: 40px 24px; max-width: 1200px; margin: 0 auto; }
.dash-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; height: fit-content; position: sticky; top: 90px; }
.dash-avatar img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid var(--accent); margin-bottom: 16px; image-rendering: pixelated; }
.dash-name { font-size: 18px; margin-bottom: 6px; }
.dash-rank { font-size: 14px; margin-bottom: 16px; }
.dash-credits { background: var(--bg-3); padding: 12px; border-radius: var(--radius-sm); font-size: 16px; margin-bottom: 8px; }
.dash-credits strong { color: var(--warn); font-size: 22px; }
.dash-role { color: var(--text-dim); font-size: 13px; }

.dash-main { display: flex; flex-direction: column; gap: 24px; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.dash-card h3 { margin-bottom: 12px; font-size: 16px; }
.dash-form { display: flex; flex-direction: column; gap: 8px; }
.dash-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.dash-section h3 { margin-bottom: 16px; }
.empty { text-align: center; color: var(--text-dim); padding: 30px 0; }

@media (max-width: 900px) {
  .dashboard { grid-template-columns: 1fr; }
  .dash-side { position: static; }
  .dash-grid { grid-template-columns: 1fr; }
}

/* ===== Store ===== */
.cat-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-tab {
  padding: 8px 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text-dim); font-size: 14px; font-weight: 500;
  transition: all .2s;
}
.cat-tab:hover, .cat-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); text-decoration: none; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: all .3s; position: relative; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.product-badge {
  position: absolute; top: 16px; right: 16px; padding: 4px 10px;
  background: var(--bg-3); border-radius: 100px; font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim);
}
.product-card h3 { font-size: 18px; margin-bottom: 8px; padding-right: 70px; }
.product-desc { color: var(--text-dim); font-size: 14px; flex: 1; margin-bottom: 16px; }
.product-price { font-size: 18px; color: var(--warn); margin-bottom: 16px; }
.product-card .btn { margin-top: auto; }

.product-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.product-hero {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 50px 40px; text-align: center;
}
.product-badge-lg { display: inline-block; padding: 6px 16px; background: var(--bg-3); border-radius: 100px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); margin-bottom: 20px; }
.product-hero h1 { font-size: 42px; margin-bottom: 12px; }
.product-hero .lead { color: var(--text-dim); font-size: 16px; margin-bottom: 30px; }
.product-price-big { font-size: 32px; color: var(--warn); margin-bottom: 30px; }
.product-side { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; height: fit-content; }
.info-list { list-style: none; }
.info-list li { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.info-list li:last-child { border: none; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--text-dim); font-size: 14px; }
.back-link:hover { color: var(--text); }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; }
}

/* ===== Servers list ===== */
.server-list { display: flex; flex-direction: column; gap: 16px; }
.server-row {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: grid; grid-template-columns: 60px 1fr auto; gap: 20px; align-items: center;
}
.server-row-icon { font-size: 32px; color: var(--accent); }
.server-row-info h3 { font-size: 20px; margin-bottom: 4px; }
.server-row-info p { color: var(--text-dim); font-size: 14px; }
.server-row-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ===== Tables ===== */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 12px; color: var(--text-dim); font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.data-table tr:hover td { background: var(--bg-2); }
.pos { color: var(--success); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; background: var(--bg-3); border-radius: 100px; font-size: 12px; font-weight: 500; color: var(--text-dim); }
.badge-ok { background: rgba(46,204,113,.15); color: var(--success); }
.badge-off { background: rgba(138,147,179,.15); color: var(--text-dim); }
.badge-banned { background: rgba(255,71,87,.15); color: var(--danger); }
.badge-role { background: rgba(0,212,255,.1); color: var(--accent); }
.badge-completed { background: rgba(46,204,113,.15); color: var(--success); }
.badge-pending { background: rgba(255,165,2,.15); color: var(--warn); }
.badge-cancelled, .badge-refunded { background: rgba(255,71,87,.15); color: var(--danger); }
.mini-avatar { width: 32px; height: 32px; border-radius: 4px; image-rendering: pixelated; vertical-align: middle; }

/* ===== Error pages ===== */
.error-page { text-align: center; padding: 100px 24px; }
.error-code { font-size: 96px; font-weight: 900; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.error-page h1 { font-size: 32px; margin: 16px 0 12px; }
.error-page p { color: var(--text-dim); margin-bottom: 24px; }
.error-icon { font-size: 80px; color: var(--danger); margin-bottom: 24px; }
.error-debug { background: var(--bg-3); padding: 16px; border-radius: var(--radius-sm); text-align: left; max-width: 600px; margin: 24px auto; overflow-x: auto; font-size: 12px; color: var(--danger); }

/* ===== Admin Layout ===== */
.admin-wrap { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }
.admin-side {
  background: var(--bg-2); border-right: 1px solid var(--border); padding: 20px 0;
}
.admin-brand { padding: 0 20px 20px; font-size: 18px; font-weight: 800; color: var(--warn); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.admin-nav { display: flex; flex-direction: column; padding: 20px 12px; gap: 4px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text-dim); border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; }
.admin-nav a:hover { background: var(--bg-3); color: var(--text); text-decoration: none; }
.admin-nav a.active { background: var(--primary); color: #fff; }
.admin-side-foot { padding: 20px; border-top: 1px solid var(--border); }
.admin-side-foot a { color: var(--text-dim); font-size: 13px; }

.admin-main { padding: 30px; overflow-x: auto; }
.admin-page-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 16px; }
.admin-page-head h1 { font-size: 28px; }
.admin-page-head p { color: var(--text-dim); font-size: 14px; }

.admin-search { display: flex; gap: 8px; }
.admin-search input { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text); font-size: 14px; min-width: 260px; }

.admin-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.admin-card h3 { font-size: 18px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }

.admin-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.admin-form { display: flex; flex-direction: column; gap: 12px; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-dim); }
.admin-form label.check { flex-direction: row; align-items: center; gap: 8px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.admin-form textarea { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text); font-family: inherit; resize: vertical; }

.hidden { display: none !important; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 30px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; }
.stat-card .stat-icon { width: 50px; height: 50px; background: var(--bg-3); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--accent); }
.stat-card .stat-num { font-size: 24px; font-weight: 800; color: var(--text); }
.stat-card .stat-label { font-size: 12px; color: var(--text-dim); text-transform: uppercase; }

.server-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.server-admin-card { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.server-admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.server-admin-head h3 { font-size: 18px; }
.server-admin-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 12px; }
.server-admin-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); margin-bottom: 16px; }
.server-admin-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.console-out { background: #000; color: #00ff00; padding: 20px; border-radius: var(--radius-sm); font-family: 'Courier New', monospace; font-size: 13px; white-space: pre-wrap; word-break: break-all; }

.log-details { font-size: 12px; max-width: 300px; word-break: break-all; }

@media (max-width: 900px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { border-right: none; border-bottom: 1px solid var(--border); }
  .admin-nav { flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .admin-2col { grid-template-columns: 1fr; }
}

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 30px; right: 30px; padding: 14px 20px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; z-index: 1000;
  animation: slideIn .3s ease;
}
.toast-error { border-color: var(--danger); color: var(--danger); }
.toast-success { border-color: var(--success); color: var(--success); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }


/* =====================================================
   SouthNW Green + White Minecraft storefront redesign
   Inspired by the clarity of modern Minecraft server hubs.
   ===================================================== */
:root {
  --bg: #f4faf5;
  --bg-2: #ffffff;
  --bg-3: #e8f4ea;
  --bg-card: #ffffff;
  --border: #d4e6d7;
  --text: #153525;
  --text-dim: #5d7464;
  --primary: #197a45;
  --primary-2: #105d34;
  --accent: #62b957;
  --accent-2: #398f4b;
  --success: #2f9e44;
  --danger: #d9485f;
  --warn: #c98517;
  --shadow: 0 18px 48px rgba(26, 86, 48, .10);
  --radius: 18px;
  --radius-sm: 11px;
  --gradient: linear-gradient(135deg, #12653a 0%, #248c4c 55%, #78c850 100%);
}

body {
  background: var(--bg);
  color: var(--text);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(120, 200, 80, .14) 0, transparent 34%),
    radial-gradient(circle at 92% 30%, rgba(25, 122, 69, .08) 0, transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 42%, #f1f9f2 100%);
}

a { color: var(--primary); }
a:hover { color: var(--primary-2); }

.navbar {
  background: rgba(255, 255, 255, .91);
  border-bottom: 1px solid rgba(25, 122, 69, .14);
  box-shadow: 0 5px 22px rgba(26, 86, 48, .07);
}
.navbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent) 30%, var(--primary) 70%, transparent 100%);
  opacity: .68;
}
.logo { color: var(--text); letter-spacing: -.3px; }
.logo-mark {
  background: var(--gradient);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(25, 122, 69, .24);
}
.logo-text {
  background: linear-gradient(135deg, var(--primary-2), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--primary-2); background: var(--bg-3); }
.nav-links a.active { color: var(--primary); background: rgba(98, 185, 87, .12); }
.nav-links a.nav-admin { color: #8e6412; }
.nav-user { border-left-color: var(--border); }
.user-credit { color: #9c6c13; }
.nav-toggle { color: var(--primary-2); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 20px rgba(25, 122, 69, .22);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 25px rgba(25, 122, 69, .32);
}
.btn-secondary {
  background: var(--bg-3);
  color: var(--primary-2);
  border-color: #c5dfca;
}
.btn-secondary:hover { background: #dcefe0; border-color: var(--accent-2); }
.btn-ghost, .btn-ghost.btn, button.btn-ghost {
  color: var(--primary-2);
  border-color: #c5dfca;
  background: rgba(255, 255, 255, .76);
}
.btn-ghost:hover, button.btn-ghost:hover { background: var(--bg-3); color: var(--primary-2); }

.hero {
  min-height: 585px;
  display: flex;
  align-items: center;
  padding: 116px 0 92px;
  isolation: isolate;
}
.hero-bg {
  background:
    linear-gradient(90deg, rgba(7, 39, 25, .86) 0%, rgba(10, 58, 34, .72) 46%, rgba(14, 78, 44, .44) 100%),
    linear-gradient(180deg, rgba(8, 50, 29, .10) 0%, rgba(8, 50, 29, .72) 100%),
    url('/images/minecraft-hero.png') center center / cover no-repeat;
  z-index: -2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 34%, rgba(5,33,20,.34));
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; text-align: left; }
.hero-badge {
  background: rgba(227, 249, 226, .12);
  border-color: rgba(205, 244, 195, .42);
  color: #d9ffd2;
  letter-spacing: .5px;
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
}
.hero-title {
  max-width: 780px;
  font-size: clamp(46px, 8vw, 92px);
  letter-spacing: -3px;
  color: #fff;
  text-shadow: 0 4px 22px rgba(0,0,0,.24);
}
.title-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #e5ffdc 45%, #9ee879 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero-subtitle {
  max-width: 610px;
  color: rgba(255,255,255,.86);
  font-size: clamp(17px, 2vw, 21px);
  text-shadow: 0 2px 12px rgba(0,0,0,.22);
}
.hero-cta { justify-content: flex-start; margin-bottom: 56px; }
.hero-cta .btn-ghost, .hero-cta button.btn-ghost {
  color: #f5fff1;
  border-color: rgba(255,255,255,.40);
  background: rgba(9, 54, 30, .30);
}
.hero-cta .btn-ghost:hover, .hero-cta button.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
}
.hero-stats { justify-content: flex-start; gap: 34px; }
.stat { padding-right: 34px; border-right: 1px solid rgba(255,255,255,.25); }
.stat:last-child { padding-right: 0; border-right: 0; }
.stat-num {
  background: linear-gradient(135deg, #ffffff, #b8f59e);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 3px 18px rgba(0,0,0,.15);
}
.stat-label { color: rgba(255,255,255,.74); }

.announcements-strip {
  background: #fff;
  border-color: var(--border);
  box-shadow: var(--shadow);
  margin-top: 28px;
}
.ann-icon { color: var(--accent-2); }
.ann-item { color: var(--text); }

.section-head h1, .section-head h2 { color: var(--primary-2); }
.section-head p { color: var(--text-dim); }
.servers-section, .features-section, .store-page, .servers-page, .product-detail { padding: 76px 0; }

.server-grid { gap: 22px; }
.server-card {
  background: rgba(255,255,255,.94);
  border-color: var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(26, 86, 48, .06);
}
.server-card::before {
  background: linear-gradient(135deg, rgba(25,122,69,.08), rgba(120,200,80,.15));
}
.server-card:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 36px rgba(26, 86, 48, .14);
}
.server-icon { background: var(--bg-3); color: var(--primary); }
.server-smp .server-icon { color: #2f9e44; }
.server-boxpvp .server-icon { color: #d9485f; }
.server-minigames .server-icon { color: #c98517; }
.server-status { background: var(--bg-3); }
.server-status.online { color: var(--success); }
.server-status.online .dot { background: var(--success); box-shadow: 0 0 10px rgba(47,158,68,.56); }
.server-status.offline { color: var(--danger); }
.server-status.offline .dot { background: var(--danger); }
.server-name { color: var(--primary-2); }
.server-desc, .server-meta { color: var(--text-dim); }

.feature-grid { gap: 16px; }
.feature {
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(212,230,215,.82);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 8px 20px rgba(26,86,48,.04);
}
.feature-icon { color: var(--primary); }
.feature h3 { color: var(--primary-2); }
.feature p { color: var(--text-dim); }

.footer {
  background: #0d3b25;
  border-top: 4px solid #6fc45b;
  color: #effff0;
  margin-top: 76px;
}
.footer-col h4 { color: #c9f5bd; }
.footer-col a, .footer-tagline, .footer-bottom { color: rgba(232,255,231,.70); }
.footer-col a:hover { color: #fff; }
.ip-code { background: rgba(255,255,255,.10); color: #c9f5bd; }
.footer-bottom { border-top-color: rgba(255,255,255,.16); }

.auth-card, .dash-side, .dash-card, .dash-section, .product-card, .product-hero, .product-side, .server-row, .admin-card, .stat-card {
  background: rgba(255,255,255,.95);
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.auth-icon { background: var(--gradient); box-shadow: 0 10px 24px rgba(25,122,69,.20); }
.auth-head h1, .product-hero h1, .admin-page-head h1 { color: var(--primary-2); }
.auth-head p, .auth-form label > span, .auth-form small, .auth-foot { color: var(--text-dim); }
.auth-form input, .admin-form input, .admin-form select, .admin-form textarea, .admin-search input {
  background: #f8fcf8;
  border-color: var(--border);
  color: var(--text);
}
.auth-form input:focus, .admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(57,143,75,.14);
}
.alert-error { background: rgba(217,72,95,.08); }
.alert-warn { background: rgba(201,133,23,.10); }

.dash-avatar img { border-color: var(--accent-2); }
.dash-credits { background: var(--bg-3); }
.dash-credits strong, .product-price, .product-price-big { color: #a66f10; }
.dash-role, .product-desc, .product-hero .lead, .server-row-info p, .admin-page-head p { color: var(--text-dim); }
.cat-tab { background: #fff; border-color: var(--border); color: var(--text-dim); }
.cat-tab:hover, .cat-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.product-card:hover { border-color: var(--accent); }
.product-badge, .product-badge-lg, .badge { background: var(--bg-3); color: var(--primary-2); }
.product-badge-lg { color: var(--primary); }
.info-list li, .data-table th, .data-table td { border-bottom-color: var(--border); }
.data-table tr:hover td { background: var(--bg-3); }
.server-row-icon { color: var(--primary); }
.back-link { color: var(--text-dim); }
.back-link:hover { color: var(--primary); }
.error-code { background: var(--gradient); -webkit-background-clip: text; background-clip: text; }
.error-page p { color: var(--text-dim); }

.admin-side { background: #0f4a2d; border-right-color: rgba(255,255,255,.12); }
.admin-brand { color: #c9f5bd; border-bottom-color: rgba(255,255,255,.16); }
.admin-nav a { color: rgba(232,255,231,.72); }
.admin-nav a:hover { background: rgba(255,255,255,.10); color: #fff; }
.admin-nav a.active { background: #6fc45b; color: #123d24; }
.admin-side-foot { border-top-color: rgba(255,255,255,.16); }
.admin-side-foot a { color: rgba(232,255,231,.70); }
.stat-card .stat-icon { background: var(--bg-3); color: var(--primary); }
.server-admin-card { background: #f7fcf7; border-color: var(--border); }
.server-admin-desc, .server-admin-meta { color: var(--text-dim); }
.toast { background: #fff; border-color: var(--border); }

@media (max-width: 768px) {
  .hero { min-height: 650px; padding: 92px 0 72px; }
  .hero-content { text-align: center; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-title { letter-spacing: -2px; }
  .stat { padding-right: 20px; }
  .nav-links { top: 70px; background: rgba(255,255,255,.98); border-bottom-color: var(--border); box-shadow: 0 14px 22px rgba(26,86,48,.10); }
  .nav-links a { width: 100%; text-align: center; }
  .nav-user { border-left: 0; border-top: 1px solid var(--border); padding: 12px 0 0; margin: 4px 0 0; width: 100%; justify-content: center; flex-wrap: wrap; }
}


/* ===== Admin CRUD improvements ===== */
.admin-page-head > div { min-width: 0; }
.admin-page-head h1 { margin-bottom: 6px; }
.admin-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.admin-card-title-row h3 { margin-bottom: 4px; }
.form-hint { color: var(--text-dim); font-size: 13px; margin: 0; }
.admin-stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.admin-stat-strip > div { display: flex; flex-direction: column; gap: 2px; background: linear-gradient(135deg, #fff, #f1faef); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.admin-stat-strip strong { color: var(--primary-2); font-size: 25px; line-height: 1.1; }
.admin-stat-strip span { color: var(--text-dim); font-size: 12px; text-transform: uppercase; letter-spacing: .8px; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.admin-search { width: 100%; max-width: 720px; }
.admin-search input { flex: 1; min-width: 0; }
.admin-form-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.admin-table-wrap { width: 100%; overflow-x: auto; }
.admin-table-wrap .data-table { min-width: 760px; }
.data-table td > small, .data-table td > span + small { display: block; color: var(--text-dim); font-size: 12px; margin-top: 3px; }
.announcement-content-cell { max-width: 360px; color: var(--text-dim); white-space: normal; }
.table-actions { white-space: nowrap; }
.inline-form { display: inline-flex; margin: 0; }
.admin-edit-row td { padding: 0; background: #f4fbf3; border-bottom: 1px solid var(--border); }
.admin-edit-row .admin-form { padding: 24px; }
.admin-edit-heading { color: var(--primary-2); font-size: 14px; margin-bottom: 12px; }
.admin-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 56px 20px; }
.admin-empty i { color: var(--accent-2); font-size: 34px; }
.admin-empty strong { color: var(--primary-2); }
.server-admin-card { display: flex; flex-direction: column; min-width: 0; }
.server-admin-head > div { min-width: 0; }
.server-admin-head h3 { margin-top: 4px; margin-bottom: 0; }
.server-slug { display: inline-block; color: var(--accent-2); font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; }
.server-admin-meta { align-items: center; }
.server-admin-meta code { color: var(--primary-2); background: var(--bg-3); padding: 5px 8px; border-radius: 7px; }
.server-edit-form { margin-top: 18px; padding-top: 18px; border-top: 1px dashed #bdd8c0; }
.server-edit-form .form-row { margin-bottom: 4px; }
.server-edit-form label { min-width: 0; }

@media (max-width: 680px) {
  .admin-stat-strip { grid-template-columns: 1fr; }
  .admin-toolbar, .admin-search { flex-direction: column; align-items: stretch; }
  .admin-search .btn, .admin-search a.btn { width: 100%; }
  .admin-card-title-row { flex-direction: column; }
  .server-admin-actions .btn { flex: 1 1 auto; }
  .inline-form { flex: 1 1 auto; }
}


/* ===== Storefront redesign ===== */
.store-shell { background: linear-gradient(180deg, #f6fbf4 0%, #ffffff 44%, #f4faf5 100%); padding-bottom: 28px; }
.store-hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #0b3b25 0%, #12643a 56%, #2d8d4c 100%); color: #fff; isolation: isolate; }
.store-hero::before { content: ''; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(135deg, rgba(255,255,255,.65) 12%, transparent 12%, transparent 50%, rgba(255,255,255,.65) 50%, rgba(255,255,255,.65) 62%, transparent 62%); background-size: 34px 34px; mask-image: linear-gradient(90deg, #000 0%, transparent 76%); z-index: -1; }
.store-hero::after { content: ''; position: absolute; width: 480px; height: 480px; right: -130px; top: -180px; border-radius: 50%; background: rgba(183, 240, 132, .16); filter: blur(10px); z-index: -1; }
.store-hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 410px; gap: 30px; padding-top: 62px; padding-bottom: 58px; }
.store-hero-copy { max-width: 690px; }
.store-kicker, .eyebrow { color: #83d96c; font-size: 12px; font-weight: 800; letter-spacing: 1.7px; text-transform: uppercase; }
.store-kicker { display: inline-flex; align-items: center; gap: 8px; color: #d5fcbf; padding: 8px 12px; border: 1px solid rgba(214, 255, 192, .30); background: rgba(255,255,255,.08); border-radius: 999px; }
.store-hero-copy h1 { margin: 18px 0 14px; color: #fff; font-size: clamp(38px, 6vw, 68px); line-height: 1.05; letter-spacing: -2px; }
.store-hero-copy h1 span { color: #b8f58f; }
.store-hero-copy p { max-width: 600px; color: rgba(255,255,255,.78); font-size: 18px; line-height: 1.65; }
.store-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.store-hero .btn-primary { background: #b8f58f; color: #123d25; border-color: #b8f58f; box-shadow: 0 10px 28px rgba(0,0,0,.16); }
.store-hero .btn-primary:hover { background: #d5ffb9; color: #123d25; }
.store-hero .btn-ghost { color: #fff; background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.30); }
.store-hero .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.18); }
.store-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: rgba(232, 255, 222, .72); font-size: 12px; }
.store-trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.store-trust-row i { color: #b8f58f; }
.store-hero-art { min-height: 290px; position: relative; display: grid; place-items: center; }
.store-orbit { position: absolute; border: 1px solid rgba(210, 255, 185, .28); border-radius: 50%; transform: rotate(-22deg); }
.orbit-one { width: 310px; height: 170px; }
.orbit-two { width: 230px; height: 320px; transform: rotate(35deg); }
.store-art-cube { width: 152px; height: 152px; display: grid; place-items: center; background: linear-gradient(145deg, #d6ffb8 0%, #6abe59 50%, #1b6c40 51%, #0d4329 100%); border: 11px solid rgba(255,255,255,.82); border-radius: 28px; transform: rotate(-8deg); box-shadow: 28px 28px 0 rgba(6, 52, 29, .30), 0 22px 48px rgba(0,0,0,.26); }
.store-art-cube i { color: #fff; font-size: 66px; filter: drop-shadow(0 4px 0 rgba(9,62,35,.38)); }
.store-art-badge { position: absolute; right: 8%; bottom: 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; padding: 13px 16px; border-radius: 15px; background: #fff; color: var(--primary-2); box-shadow: 0 14px 30px rgba(0,0,0,.18); transform: rotate(4deg); }
.store-art-badge i { grid-row: span 2; color: #c98517; font-size: 23px; }
.store-art-badge strong { font-size: 18px; line-height: 1; }
.store-art-badge small { color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.store-categories { padding-top: 54px; }
.store-category-heading, .section-line-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.store-category-heading h2, .section-line-head h2 { color: var(--primary-2); margin-top: 7px; font-size: 28px; letter-spacing: -.6px; }
.store-category-note, .section-line, .store-result-count { color: var(--text-dim); font-size: 13px; }
.section-line { display: inline-flex; align-items: center; gap: 7px; }
.section-line i { color: #c98517; }
.store-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }
.store-category-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 15px; background: #fff; border: 1px solid var(--border); border-radius: 14px; color: var(--text); box-shadow: 0 6px 18px rgba(26,86,48,.04); transition: transform .2s, border-color .2s, box-shadow .2s; }
.store-category-card:hover, .store-category-card.active { color: var(--primary-2); text-decoration: none; border-color: #82c978; box-shadow: 0 10px 24px rgba(26,86,48,.10); transform: translateY(-2px); }
.store-category-card.active { background: linear-gradient(135deg, #f4fff0, #fff); }
.store-category-card > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.store-category-card strong { font-size: 14px; }
.store-category-card small { color: var(--text-dim); font-size: 11px; margin-top: 2px; }
.store-category-card > i:last-child { color: #98b89c; font-size: 15px; }
.category-icon { display: grid; place-items: center; width: 39px; height: 39px; flex: 0 0 39px; border-radius: 11px; font-size: 18px; }
.category-all { background: #e7f3ff; color: #3378b9; }
.category-rank { background: #f5edff; color: #7951b9; }
.category-credits { background: #fff5d8; color: #b27a10; }
.category-cosmetic { background: #ffecef; color: #c24c6a; }
.featured-store-section, .store-products-section { padding-top: 60px; }
.featured-product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.featured-product-card { position: relative; display: flex; align-items: center; gap: 12px; overflow: hidden; padding: 13px; border: 1px solid var(--border); border-radius: 15px; background: #fff; color: var(--text); box-shadow: 0 8px 22px rgba(26,86,48,.05); transition: transform .2s, box-shadow .2s; }
.featured-product-card:hover { color: var(--primary-2); text-decoration: none; transform: translateY(-3px); box-shadow: 0 14px 28px rgba(26,86,48,.12); }
.featured-product-art { display: grid; place-items: center; width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px; background: linear-gradient(145deg, #e2f7d6, #b4e29e); color: #277446; font-size: 27px; }
.featured-rank .featured-product-art { background: linear-gradient(145deg, #eee3ff, #d2b9fa); color: #7745aa; }
.featured-credits .featured-product-art { background: linear-gradient(145deg, #fff3c9, #f6ce68); color: #a66e0f; }
.featured-product-art img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.featured-product-copy { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.featured-product-copy span { color: var(--text-dim); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.featured-product-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; margin: 3px 0; }
.featured-product-copy small { color: #a66f10; font-size: 12px; font-weight: 700; }
.featured-arrow { color: #94b596; }
.featured-ribbon { position: absolute; top: 0; right: 0; padding: 4px 8px; background: #f2bd4b; color: #684400; border-radius: 0 0 0 8px; font-size: 8px; font-weight: 800; letter-spacing: .5px; }
.store-result-count { padding-bottom: 2px; }
.store-product-grid { gap: 17px; }
.store-product-card { min-height: 360px; padding: 14px; border-radius: 17px; box-shadow: 0 9px 25px rgba(26,86,48,.06); }
.store-product-card:hover { transform: translateY(-5px); border-color: #80c476; box-shadow: 0 18px 32px rgba(26,86,48,.13); }
.product-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card-topline .product-badge { position: static; padding: 5px 9px; color: var(--primary-2); font-size: 10px; letter-spacing: .8px; background: #edf8ed; }
.product-stock { color: var(--success); font-size: 10px; font-weight: 700; white-space: nowrap; }
.product-stock.out { color: var(--danger); }
.product-art { position: relative; display: grid; place-items: center; height: 150px; margin: 10px 0 16px; overflow: hidden; border-radius: 14px; background: linear-gradient(135deg, #e9f8e3, #c7e9b6); color: #2a854b; font-size: 62px; }
.product-art::after { content: ''; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(135deg, rgba(255,255,255,.75) 12%, transparent 12%, transparent 50%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.75) 62%, transparent 62%); background-size: 25px 25px; }
.product-art i, .product-art img { position: relative; z-index: 1; }
.product-art i { filter: drop-shadow(0 5px 0 rgba(26,86,48,.15)); }
.product-art img { max-width: 80%; max-height: 80%; width: auto; height: auto; object-fit: contain; border-radius: 10px; }
.product-art-rank { background: linear-gradient(135deg, #f2eaff, #d8bff7); color: #7845af; }
.product-art-credits { background: linear-gradient(135deg, #fff7d8, #f7d26f); color: #ad7510; }
.product-art-cosmetic { background: linear-gradient(135deg, #ffeef5, #f6bed1); color: #c14c70; }
.product-card-content { display: flex; flex-direction: column; flex: 1; }
.product-card-content h3 { color: var(--primary-2); font-size: 17px; margin-bottom: 7px; }
.product-card-content .product-desc { min-height: 50px; margin-bottom: 16px; line-height: 1.5; }
.product-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; }
.price-label { display: block; color: var(--text-dim); font-size: 9px; letter-spacing: 1px; }
.product-card-footer .product-price { margin: 3px 0 0; color: #a66f10; font-size: 16px; }
.product-card-footer .product-price i { font-size: 13px; }
.product-card-footer .btn { width: 38px; height: 38px; padding: 0; border-radius: 11px; }
.store-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 60px 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.store-empty i { color: var(--accent-2); font-size: 36px; }
.store-empty strong { color: var(--primary-2); }
.store-help-banner { display: flex; align-items: center; gap: 15px; margin-top: 60px; padding: 18px 22px; background: #eaf7e8; border: 1px solid #cbe6c7; border-radius: 17px; }
.store-help-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 13px; color: #fff; background: var(--gradient); font-size: 20px; }
.store-help-banner > div:nth-child(2) { display: flex; flex-direction: column; flex: 1; }
.store-help-banner strong { color: var(--primary-2); font-size: 14px; }
.store-help-banner span { color: var(--text-dim); font-size: 12px; margin-top: 3px; }
.store-help-banner .btn { white-space: nowrap; }

@media (max-width: 900px) {
  .store-hero-inner { grid-template-columns: 1fr; }
  .store-hero-art { min-height: 190px; }
  .store-art-cube { width: 120px; height: 120px; }
  .store-art-cube i { font-size: 52px; }
  .store-category-grid, .featured-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .store-hero-inner { padding-top: 46px; padding-bottom: 42px; }
  .store-hero-copy p { font-size: 16px; }
  .store-trust-row { gap: 10px 14px; }
  .store-category-heading, .section-line-head, .store-help-banner { align-items: flex-start; flex-direction: column; }
  .store-category-grid, .featured-product-grid { grid-template-columns: 1fr; }
  .store-help-banner .btn { width: 100%; }
}


/* Yerel marka SVG'si */
.logo-mark { overflow: hidden; padding: 0; }
.logo-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.footer .logo-mark { box-shadow: 0 7px 17px rgba(0,0,0,.22); }


/* Ürün detay görünümü */
.product-detail-page { padding-top: 46px; }
.product-detail-page .product-detail { padding-top: 0; }
.product-detail-art { position: relative; display: grid; place-items: center; height: 190px; margin: -18px auto 26px; max-width: 320px; overflow: hidden; border-radius: 20px; font-size: 78px; }
.product-detail-art::after { content: ''; position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(135deg, rgba(255,255,255,.75) 12%, transparent 12%, transparent 50%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.75) 62%, transparent 62%); background-size: 25px 25px; }
.product-detail-art i, .product-detail-art img { position: relative; z-index: 1; }
.product-detail-art i { filter: drop-shadow(0 6px 0 rgba(26,86,48,.14)); }
.product-detail-art img { max-width: 75%; max-height: 75%; width: auto; height: auto; object-fit: contain; border-radius: 12px; }
.product-side h3 { color: var(--primary-2); display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.product-side-tip { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; padding: 12px; border-radius: 11px; background: #eef9eb; color: var(--text-dim); font-size: 12px; }
.product-side-tip i { color: var(--success); font-size: 16px; }
.product-side-tip span { flex: 1; }


/* ===== Support & application center ===== */
.community-page { padding-top: 48px; padding-bottom: 82px; }
.community-hero { position: relative; display: flex; align-items: center; justify-content: space-between; overflow: hidden; min-height: 220px; padding: 38px 44px; margin-bottom: 26px; border-radius: 22px; color: #fff; background: linear-gradient(120deg, #0b3b25, #1b7a43 68%, #69b952); box-shadow: 0 18px 40px rgba(17, 75, 40, .16); }
.community-hero::after { content: ''; position: absolute; right: -72px; bottom: -130px; width: 340px; height: 340px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.06), 0 0 0 57px rgba(255,255,255,.04); }
.community-hero h1 { position: relative; z-index: 1; margin: 12px 0 8px; color: #fff; font-size: clamp(30px, 5vw, 48px); letter-spacing: -1.4px; }
.community-hero p { position: relative; z-index: 1; max-width: 650px; margin: 0; color: rgba(255,255,255,.80); line-height: 1.65; }
.community-hero .eyebrow { position: relative; z-index: 1; color: #c7f7a9; }
.application-hero { background: linear-gradient(120deg, #223a71, #4866b0 65%, #6f9be2); }
.community-hero-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 108px; height: 108px; flex: 0 0 108px; margin-right: 34px; border: 1px solid rgba(255,255,255,.38); border-radius: 30px; color: #d8ffc1; background: rgba(255,255,255,.12); font-size: 52px; transform: rotate(7deg); }
.community-grid { display: grid; grid-template-columns: minmax(0, 1.07fr) minmax(340px, .93fr); gap: 22px; align-items: start; }
.community-form-card, .community-list-card, .conversation-card, .application-review-card, .application-status-card { padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(26,86,48,.06); }
.community-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 23px; }
.community-card-head h2 { margin-top: 6px; color: var(--primary-2); font-size: 23px; letter-spacing: -.4px; }
.community-step { display: grid; place-items: center; width: 37px; height: 37px; color: var(--primary-2); background: #e8f7e4; border-radius: 11px; font-size: 11px; font-weight: 900; }
.count-pill { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 9px; color: var(--primary-2); background: #e8f7e4; border-radius: 999px; font-size: 12px; font-weight: 800; }
.community-form { display: flex; flex-direction: column; gap: 15px; }
.community-form label { display: flex; flex-direction: column; gap: 7px; color: var(--primary-2); font-size: 12px; font-weight: 700; }
.community-form input, .community-form select, .community-form textarea { width: 100%; color: var(--text); background: #fbfefb; border: 1px solid #d8e8d6; border-radius: 11px; outline: none; font: inherit; font-size: 13px; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.community-form input, .community-form select { height: 44px; padding: 0 13px; }
.community-form textarea { min-height: 110px; padding: 12px 13px; line-height: 1.55; resize: vertical; }
.community-form input:focus, .community-form select:focus, .community-form textarea:focus { border-color: #77bc6b; box-shadow: 0 0 0 3px rgba(119,188,107,.14); }
.community-form .btn { align-self: flex-start; }
.form-row-2 { display: grid; grid-template-columns: 1fr 150px; gap: 14px; }
.community-list-card { min-height: 100%; }
.community-list { display: flex; flex-direction: column; gap: 9px; }
.community-list-item { display: flex; align-items: center; gap: 11px; padding: 13px 12px; color: var(--text); border: 1px solid #e3eee1; border-radius: 13px; background: #fbfefb; transition: transform .18s, border-color .18s, box-shadow .18s; }
.community-list-item:hover { color: var(--primary-2); text-decoration: none; border-color: #94ce8c; box-shadow: 0 7px 17px rgba(26,86,48,.08); transform: translateX(3px); }
.list-item-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; color: #287b48; background: #e6f6e2; border-radius: 11px; }
.application-list-icon { color: #4966ab; background: #e9efff; }
.list-item-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-item-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-2); font-size: 13px; }
.list-item-body small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; color: var(--text-dim); font-size: 11px; }
.community-list-item > i:last-child { color: #a2b9a5; }
.community-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 46px 18px; text-align: center; color: var(--text-dim); }
.community-empty i { color: #9dca93; font-size: 38px; margin-bottom: 5px; }
.community-empty strong { color: var(--primary-2); font-size: 14px; }
.community-empty span { font-size: 12px; line-height: 1.5; }
.status-badge, .category-chip { display: inline-flex; align-items: center; justify-content: center; width: fit-content; white-space: nowrap; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; }
.status-open, .status-pending { color: #9a6800; background: #fff3c7; }
.status-in_progress, .status-reviewing { color: #28619d; background: #e6f1ff; }
.status-answered, .status-accepted { color: #197343; background: #e3f6e4; }
.status-closed, .status-rejected { color: #6a6f76; background: #edf0f2; }
.process-list { display: flex; flex-direction: column; gap: 17px; }
.process-list > div { display: flex; gap: 13px; align-items: flex-start; }
.process-list > div > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; color: #fff; background: var(--gradient); border-radius: 9px; font-size: 10px; font-weight: 900; }
.process-list strong, .process-list small { display: block; }
.process-list strong { color: var(--primary-2); font-size: 13px; }
.process-list small { margin-top: 3px; color: var(--text-dim); font-size: 11px; line-height: 1.4; }
.application-note { display: flex; align-items: flex-start; gap: 9px; margin-top: 24px; padding: 12px; color: #55624e; background: #f4fae9; border: 1px solid #deefc8; border-radius: 11px; font-size: 11px; line-height: 1.5; }
.application-note i { color: #bf8a20; font-size: 16px; }
.mini-history { display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
.mini-history strong { color: var(--primary-2); font-size: 14px; }
.mini-history a { grid-column: 1 / -1; color: var(--accent-2); font-size: 12px; }
.applications-history { margin-top: 24px; }
.detail-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin: 18px 0 25px; }
.detail-page-head h1 { margin: 9px 0 5px; color: var(--primary-2); font-size: clamp(27px, 5vw, 42px); letter-spacing: -1px; }
.detail-page-head p { color: var(--text-dim); font-size: 12px; }
.conversation-card { padding: 16px; }
.conversation-message { padding: 18px; border-radius: 14px; }
.user-message { background: #f3faf1; border: 1px solid #e0efdc; }
.admin-message { margin-top: 12px; color: #fff; background: linear-gradient(135deg, #12613a, #248a4c); }
.message-meta { display: flex; align-items: center; gap: 8px; color: inherit; font-size: 12px; }
.message-meta time { margin-left: auto; opacity: .62; font-size: 10px; }
.message-avatar { display: grid; place-items: center; width: 27px; height: 27px; color: #27794a; background: #dbf0d7; border-radius: 9px; }
.admin-avatar { color: #fff; background: rgba(255,255,255,.17); }
.conversation-message p { margin: 14px 0 0; color: inherit; white-space: pre-wrap; line-height: 1.7; font-size: 13px; }
.waiting-message { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 18px; color: var(--text-dim); border: 1px dashed #c8dec5; border-radius: 13px; background: #fbfefb; }
.waiting-message > i { color: #c08b20; font-size: 23px; }
.waiting-message strong, .waiting-message span { display: block; }
.waiting-message strong { color: var(--primary-2); font-size: 13px; }
.waiting-message span { margin-top: 3px; font-size: 11px; }
.community-actions { display: flex; gap: 10px; margin-top: 18px; }
.application-detail-grid, .admin-conversation-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 22px; align-items: start; }
.application-detail-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.application-detail-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.application-detail-section .eyebrow { display: block; margin-bottom: 10px; }
.application-detail-section p { margin: 0; color: var(--text); white-space: pre-wrap; line-height: 1.72; font-size: 13px; }
.application-status-card { position: sticky; top: 25px; }
.status-card-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; color: #fff; background: var(--gradient); border-radius: 14px; font-size: 22px; }
.application-status-card h2 { margin: 8px 0 8px; color: var(--primary-2); font-size: 23px; }
.muted-copy { color: var(--text-dim); line-height: 1.6; font-size: 12px; }
.admin-decision { margin: 18px 0; padding: 14px; border-left: 3px solid #82c978; border-radius: 0 11px 11px 0; background: #f2faf0; }
.admin-decision strong { color: var(--primary-2); font-size: 12px; }
.admin-decision p { margin: 7px 0; color: var(--text); white-space: pre-wrap; line-height: 1.55; font-size: 12px; }
.admin-decision small { color: var(--text-dim); font-size: 10px; }

/* Admin iletişim yönetimi */
.admin-nav a { position: relative; }
.admin-nav-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; margin-left: auto; padding: 0 5px; border-radius: 999px; color: #fff; background: #4b9e52; font-size: 10px; font-weight: 800; }
.admin-filter-form { display: flex; align-items: center; gap: 10px; }
.admin-filter-form .admin-search { display: flex; flex: 1; gap: 8px; }
.admin-filter-form .admin-search input { flex: 1; }
.admin-filter-form select { min-width: 145px; height: 39px; padding: 0 10px; color: var(--text); border: 1px solid var(--border); border-radius: 9px; background: #fbfefb; }
.community-admin-stats { grid-template-columns: repeat(4, 1fr); }
.application-stats { grid-template-columns: repeat(5, 1fr); }
.community-admin-table td { vertical-align: middle; }
.community-admin-table .table-link { display: block; overflow: hidden; max-width: 240px; color: var(--primary-2); text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.table-preview { display: block; overflow: hidden; max-width: 240px; margin-top: 4px; color: var(--text-dim); text-overflow: ellipsis; white-space: nowrap; }
.detail-admin-head { margin-top: 15px; }
.admin-conversation-card { padding: 16px; }
.reply-card { position: sticky; top: 20px; }
.reply-card .admin-card-title-row { margin-bottom: 18px; }
.application-review-card { padding: 26px; }
.application-section-head { display: flex; justify-content: space-between; gap: 12px; }
.application-section-head > span:last-child { color: var(--text-dim); font-size: 11px; }

@media (max-width: 900px) {
  .community-grid, .application-detail-grid, .admin-conversation-grid { grid-template-columns: 1fr; }
  .application-status-card, .reply-card { position: static; }
  .community-admin-stats, .application-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .community-page { padding-top: 28px; }
  .community-hero { align-items: flex-start; min-height: 250px; padding: 28px 24px; }
  .community-hero-icon { position: absolute; right: 20px; bottom: 20px; width: 72px; height: 72px; font-size: 33px; }
  .community-hero p { max-width: 88%; }
  .form-row-2 { grid-template-columns: 1fr; }
  .community-form-card, .community-list-card, .application-review-card, .application-status-card { padding: 20px; }
  .detail-page-head { flex-direction: column; }
  .community-actions { flex-direction: column; }
  .community-actions .btn { width: 100%; }
  .admin-filter-form { align-items: stretch; flex-direction: column; }
  .admin-filter-form .admin-search { width: 100%; }
  .admin-filter-form select { width: 100%; }
  .community-admin-stats, .application-stats { grid-template-columns: repeat(2, 1fr); }
}


/* Hesap içi destek ve başvuru özetleri */
.account-communication-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.account-communication-card { margin: 0; }
.account-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.account-card-head h3 { display: flex; align-items: center; gap: 8px; color: var(--primary-2); font-size: 15px; }
.account-card-head h3 i { color: var(--accent-2); }
.account-card-head a { color: var(--accent-2); font-size: 11px; font-weight: 700; }
.account-mini-list { display: flex; flex-direction: column; gap: 7px; }
.account-mini-list > a { display: flex; align-items: center; gap: 10px; padding: 10px; color: var(--text); border: 1px solid #e3eee1; border-radius: 10px; background: #fbfefb; }
.account-mini-list > a:hover { color: var(--primary-2); text-decoration: none; border-color: #95cf8e; }
.account-mini-list > a > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.account-mini-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--primary-2); font-size: 12px; }
.account-mini-list small { margin-top: 3px; color: var(--text-dim); font-size: 10px; }
.account-mini-list em { font-style: normal; }


.guest-community-hero { min-height: 315px; }
.guest-community-hero .community-actions { position: relative; z-index: 1; margin-top: 24px; }
.btn-light, .btn-outline-light { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 17px; border-radius: 10px; font-size: 12px; font-weight: 800; }
.btn-light { color: #155c36; background: #fff; box-shadow: 0 7px 17px rgba(0,0,0,.12); }
.btn-light:hover { color: #0d4326; text-decoration: none; transform: translateY(-1px); }
.btn-outline-light { color: #fff; border: 1px solid rgba(255,255,255,.60); background: rgba(255,255,255,.10); }
.btn-outline-light:hover { color: #fff; text-decoration: none; border-color: #fff; background: rgba(255,255,255,.20); }
.guest-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guest-feature { display: flex; align-items: flex-start; gap: 13px; padding: 20px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(26,86,48,.05); }
.guest-feature > span { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; color: #277b48; background: #e8f7e4; border-radius: 12px; font-size: 17px; }
.guest-feature strong, .guest-feature small { display: block; }
.guest-feature strong { color: var(--primary-2); font-size: 13px; }
.guest-feature small { margin-top: 5px; color: var(--text-dim); line-height: 1.5; font-size: 11px; }
@media (max-width: 700px) { .guest-feature-grid { grid-template-columns: 1fr; } .guest-community-hero { min-height: 365px; } }


/* ===== Hypixel savaşçı hero + kategorili market ===== */
.hero-bg { background-image: linear-gradient(90deg, rgba(5, 25, 15, .88) 0%, rgba(8, 44, 25, .67) 45%, rgba(8, 22, 18, .22) 100%), url('/images/minecraft-hero-hypixel.jpg'); background-size: cover; background-position: center 35%; }
.store-hero-battle { background-image: linear-gradient(90deg, rgba(7, 28, 16, .92) 0%, rgba(12, 55, 30, .72) 48%, rgba(10, 22, 17, .33) 100%), url('/images/minecraft-hero-hypixel.jpg'); background-size: cover; background-position: center 28%; }
.store-hero-battle .store-hero-overlay { position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(5, 19, 12, .10), rgba(3, 18, 11, .40)); pointer-events: none; }
.store-hero-battle::before { opacity: .20; }
.store-hero-battle .store-hero-inner { position: relative; z-index: 1; }
.store-hero-art-battle { min-height: 290px; }
.store-art-panel { display: flex; flex-direction: column; gap: 9px; width: 225px; padding: 25px 24px; color: #fff; border: 1px solid rgba(255,255,255,.38); border-radius: 18px; background: linear-gradient(145deg, rgba(7, 32, 21, .82), rgba(39, 102, 57, .58)); box-shadow: 0 24px 45px rgba(0,0,0,.28); transform: rotate(4deg); backdrop-filter: blur(5px); }
.store-art-panel span { color: #d6ffb8; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.store-art-panel strong { color: #fff; font-size: 28px; line-height: 1.08; letter-spacing: -.8px; }
.store-art-panel small { color: rgba(255,255,255,.76); font-size: 11px; }
.store-art-panel small i { color: #d6ffb8; }
.store-category-grid-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.store-category-grid-six .store-category-card { min-height: 92px; flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
.store-category-grid-six .store-category-card > i:last-child { position: absolute; right: 13px; top: 13px; }
.store-category-grid-six .store-category-card { position: relative; }
.store-category-grid-six .store-category-card > span:nth-child(2) { width: 100%; }
.category-crate { color: #a05225; background: #fff0e4; }
.category-key { color: #9a6a16; background: #fff7d2; }
.category-card-crate:hover, .category-card-crate.active { border-color: #e2a46c; }
.category-card-key:hover, .category-card-key.active { border-color: #e5c25c; }
.featured-product-grid-six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.featured-crate .featured-product-art { background: linear-gradient(145deg, #fff0e4, #f6c39a); color: #a05225; }
.featured-key .featured-product-art { background: linear-gradient(145deg, #fff8d9, #f4d36e); color: #9a6a16; }
.store-products-head { align-items: end; }
.store-products-subtitle { margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.store-toolbar { display: flex; align-items: center; gap: 13px; }
.store-sort-form { display: flex; align-items: center; gap: 8px; }
.store-sort-form label { color: var(--text-dim); font-size: 11px; font-weight: 700; }
.store-sort-form select { height: 38px; min-width: 165px; padding: 0 10px; color: var(--primary-2); border: 1px solid var(--border); border-radius: 9px; outline: none; background: #fff; font: inherit; font-size: 11px; font-weight: 700; }
.store-sort-form select:focus { border-color: #76bd68; box-shadow: 0 0 0 3px rgba(118,189,104,.14); }
.product-card-category { display: block; margin-bottom: 4px; color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; }
.product-card-topline .product-badge i { margin-right: 4px; }
.product-art-crate { background: linear-gradient(135deg, #fff0e4, #f6c49d); color: #a05225; }
.product-art-key { background: linear-gradient(135deg, #fff8d9, #f3d36d); color: #9a6a16; }
.store-product-card.product-crate:hover { border-color: #e2a46c; }
.store-product-card.product-key:hover { border-color: #e5c25c; }

@media (max-width: 1100px) {
  .store-category-grid-six { grid-template-columns: repeat(3, 1fr); }
  .featured-product-grid-six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .store-category-grid-six, .featured-product-grid-six { grid-template-columns: repeat(2, 1fr); }
  .store-hero-art-battle { min-height: 210px; }
}
@media (max-width: 600px) {
  .store-category-grid-six, .featured-product-grid-six { grid-template-columns: 1fr; }
  .store-products-head { align-items: flex-start; }
  .store-toolbar { align-items: flex-start; flex-direction: column; width: 100%; }
  .store-sort-form { width: 100%; }
  .store-sort-form select { flex: 1; width: 100%; }
  .store-art-panel { width: 190px; padding: 18px; }
  .store-art-panel strong { font-size: 23px; }
}


/* ===== Motion system ===== */
:root { --ease-out: cubic-bezier(.23, 1, .32, 1); --ease-in-out: cubic-bezier(.77, 0, .175, 1); }
html { scroll-behavior: smooth; }
body { animation: page-fade-in .45s var(--ease-out) both; }
@keyframes page-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-pan { from { transform: scale(1.02); background-position: 50% 35%; } to { transform: scale(1.07); background-position: 53% 39%; } }
@keyframes hero-pattern { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(34px, 20px, 0); } }
@keyframes float-gentle { 0%, 100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@keyframes pulse-soft { 0%, 100% { box-shadow: 0 0 0 0 rgba(111,196,91,.22); } 50% { box-shadow: 0 0 0 9px rgba(111,196,91,0); } }
@keyframes shimmer { from { background-position: 0 0; } to { background-position: 90px 0; } }

.hero-bg { transform-origin: center; animation: hero-pan 18s ease-in-out infinite alternate; }
.hero-content > * { opacity: 0; animation: fade-up .62s var(--ease-out) both; }
.hero-content > .hero-badge { animation-delay: .08s; }
.hero-content > .hero-title { animation-delay: .16s; }
.hero-content > .hero-subtitle { animation-delay: .24s; }
.hero-content > .hero-cta { animation-delay: .32s; }
.hero-content > .hero-stats { animation-delay: .42s; }
.hero::after { animation: pulse-soft 3.2s ease-in-out infinite; }
.store-hero-battle::before { animation: hero-pattern 12s linear infinite alternate; }
.store-art-panel { animation: float-gentle 4.8s ease-in-out infinite; }

.nav-links a { position: relative; transition: color .2s var(--ease-out), background .2s var(--ease-out), transform .2s var(--ease-out); }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 99px; background: var(--accent-2); transform: scaleX(0); transform-origin: center; transition: transform .22s var(--ease-out); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.btn { transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ''; position: absolute; inset: 0 auto 0 -80%; width: 50%; transform: skewX(-18deg); background: linear-gradient(90deg, transparent, rgba(255,255,255,.33), transparent); transition: left .55s var(--ease-out); pointer-events: none; }
.btn-primary:hover::after { left: 135%; }

.announcements-strip, .server-card, .feature, .store-category-card, .featured-product-card, .store-product-card, .store-help-banner, .community-form-card, .community-list-card, .conversation-card, .application-review-card, .application-status-card { animation: fade-up .58s var(--ease-out) both; }
.server-grid > :nth-child(2), .feature-grid > :nth-child(2), .store-category-grid > :nth-child(2), .featured-product-grid > :nth-child(2), .store-product-grid > :nth-child(2) { animation-delay: .06s; }
.server-grid > :nth-child(3), .feature-grid > :nth-child(3), .store-category-grid > :nth-child(3), .featured-product-grid > :nth-child(3), .store-product-grid > :nth-child(3) { animation-delay: .12s; }
.server-grid > :nth-child(4), .feature-grid > :nth-child(4), .store-category-grid > :nth-child(4), .featured-product-grid > :nth-child(4), .store-product-grid > :nth-child(4) { animation-delay: .18s; }
.server-grid > :nth-child(5), .store-category-grid > :nth-child(5), .featured-product-grid > :nth-child(5), .store-product-grid > :nth-child(5) { animation-delay: .24s; }
.server-grid > :nth-child(6), .store-category-grid > :nth-child(6), .featured-product-grid > :nth-child(6), .store-product-grid > :nth-child(6) { animation-delay: .30s; }
.server-card, .store-category-card, .featured-product-card, .store-product-card, .feature { will-change: transform; }
.server-card:hover .server-icon { transform: rotate(-7deg) scale(1.08); }
.server-icon, .category-icon, .store-help-icon { transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.store-category-card:hover .category-icon { transform: rotate(-7deg) scale(1.08); box-shadow: 0 7px 14px rgba(26,86,48,.11); }
.featured-product-card:hover .featured-product-art { transform: scale(1.07) rotate(-3deg); }
.featured-product-art, .product-art { transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out); }
.store-product-card:hover .product-art { transform: translateY(-3px); box-shadow: inset 0 -10px 20px rgba(255,255,255,.16); }
.store-product-card:hover .product-art i { animation: float-gentle 1.5s ease-in-out infinite; }
.product-art::after { background-position: 0 0; transition: background-position .6s var(--ease-out); }
.store-product-card:hover .product-art::after { background-position: 25px 25px; }
.server-status.online .dot { animation: pulse-soft 2.2s ease-in-out infinite; }
.store-kicker i, .store-trust-row i { animation: pulse-soft 2.8s ease-in-out infinite; }

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


/* ===== Rewards / Wheel / Inventory ===== */
.rewards-page { padding-top: 42px; padding-bottom: 82px; }
.rewards-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 190px; margin-bottom: 23px; padding: 32px 38px; overflow: hidden; position: relative; color: #fff; border-radius: 22px; background: linear-gradient(120deg, #0b3b25, #157142 65%, #6fc45b); box-shadow: 0 18px 40px rgba(17,75,40,.14); }
.rewards-hero::after { content: ''; position: absolute; right: -62px; bottom: -152px; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 29px rgba(255,255,255,.05), 0 0 0 58px rgba(255,255,255,.035); }
.rewards-hero h1 { position: relative; z-index: 1; margin: 11px 0 8px; color: #fff; font-size: clamp(28px, 5vw, 45px); letter-spacing: -1.3px; }
.rewards-hero p { position: relative; z-index: 1; max-width: 660px; margin: 0; color: rgba(255,255,255,.80); line-height: 1.65; }
.rewards-hero .eyebrow { position: relative; z-index: 1; color: #d5fcbf; }
.rewards-hero-stat { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 10px; min-width: 145px; padding: 17px 19px; border: 1px solid rgba(255,255,255,.25); border-radius: 16px; background: rgba(255,255,255,.11); backdrop-filter: blur(5px); }
.rewards-hero-stat i { grid-row: span 2; color: #f7d36c; font-size: 25px; }
.rewards-hero-stat strong { color: #fff; font-size: 21px; line-height: 1; }
.rewards-hero-stat span { margin-top: 4px; color: rgba(255,255,255,.7); font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.rewards-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr); gap: 22px; align-items: stretch; }
.wheel-card, .reward-info-card, .inventory-card { padding: 26px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(26,86,48,.06); }
.wheel-card .community-card-head, .reward-info-card .community-card-head { margin-bottom: 16px; }
.wheel-card h2, .reward-info-card h2, .inventory-card h2 { margin-top: 6px; color: var(--primary-2); font-size: 22px; }
.wheel-stage { display: grid; place-items: center; min-height: 275px; position: relative; padding: 10px 0 6px; }
.wheel-pointer { position: absolute; top: 2px; z-index: 3; color: #db9e2c; font-size: 29px; filter: drop-shadow(0 3px 0 rgba(125,77,12,.15)); }
.wheel-spinner { display: grid; place-items: center; width: 234px; height: 234px; position: relative; border: 10px solid #fff; border-radius: 50%; background: var(--wheel-gradient, conic-gradient(#71c85b 0 60deg, #8bd66d 60deg 120deg, #f3c95b 120deg 180deg, #e39b4a 180deg 240deg, #c879d8 240deg 300deg, #86a9de 300deg 360deg)); box-shadow: 0 0 0 5px #b9dcae, 0 15px 33px rgba(26,86,48,.19); transform: rotate(0); }
.wheel-spinner::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.32) 0deg 1deg, transparent 1deg 60deg); }
.wheel-spinner.is-spinning { animation: wheel-spin 1.8s cubic-bezier(.13,.76,.18,1) both; }
.wheel-spinner.wheel-used { filter: saturate(.65); opacity: .83; }
@keyframes wheel-spin { 0% { transform: rotate(0); } 100% { transform: rotate(1440deg); } }
.wheel-labels { position: absolute; inset: 0; z-index: 1; }
.wheel-labels span { position: absolute; left: 50%; top: 50%; color: rgba(21,67,38,.86); font-size: 11px; font-weight: 900; transform: rotate(var(--wheel-angle)) translateY(-88px) rotate(calc(var(--wheel-angle) * -1)); transform-origin: 0 0; }
.wheel-center { display: grid; place-items: center; align-content: center; width: 76px; height: 76px; z-index: 2; color: #fff; border: 7px solid rgba(255,255,255,.88); border-radius: 50%; background: linear-gradient(145deg, #0e5a35, #55ad52); box-shadow: 0 6px 14px rgba(24,83,46,.22); }
.wheel-center i { font-size: 23px; }
.wheel-center small { font-size: 8px; font-weight: 900; letter-spacing: 1px; }
.spin-form { display: flex; justify-content: center; }
.spin-form .btn[disabled] { cursor: not-allowed; opacity: .56; }
.wheel-note { margin: 15px auto 0; max-width: 440px; color: var(--text-dim); text-align: center; font-size: 11px; line-height: 1.55; }
.wheel-note i { margin-right: 4px; color: var(--accent-2); }
.wheel-result { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 12px 14px; color: #fff; border-radius: 12px; background: linear-gradient(120deg, #12613a, #39944e); }
.wheel-result > i { color: #f8d46e; font-size: 23px; }
.wheel-result small, .wheel-result strong, .wheel-result span { display: block; }
.wheel-result small { color: rgba(255,255,255,.7); font-size: 9px; text-transform: uppercase; letter-spacing: .7px; }
.wheel-result strong { margin: 2px 0; font-size: 15px; }
.wheel-result span { color: rgba(255,255,255,.78); font-size: 11px; }
.reward-info-icon { color: #d39b2d; font-size: 23px; }
.reward-list { display: flex; flex-direction: column; gap: 8px; }
.reward-list-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #e5efe3; border-radius: 10px; background: #fbfefb; }
.reward-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(113,200,91,.12); }
.reward-list-row strong { flex: 1; color: var(--primary-2); font-size: 12px; }
.reward-list-row b { color: #a66f10; font-size: 12px; }
.reward-safe-note { display: flex; gap: 8px; margin-top: 18px; padding: 12px; color: #5b6857; border: 1px solid #deefc8; border-radius: 10px; background: #f4fae9; font-size: 10px; line-height: 1.5; }
.reward-safe-note i { color: #43a052; font-size: 15px; }
.inventory-card { margin-top: 22px; }
.inventory-card .community-card-head { align-items: center; }
.inventory-card .form-hint { margin-top: 5px; }
.inventory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 13px; }
.inventory-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border: 1px solid #dfeedd; border-radius: 13px; background: #fbfefb; transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out), border-color .2s var(--ease-out); }
.inventory-item:hover { transform: translateY(-2px); border-color: #93cb88; box-shadow: 0 9px 21px rgba(26,86,48,.08); }
.inventory-item.inventory-used { opacity: .68; }
.inventory-item-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 14px; font-size: 22px; }
.inventory-icon-crate { color: #a05225; background: #fff0e4; }
.inventory-icon-key { color: #9a6a16; background: #fff7d2; }
.inventory-item-body { min-width: 0; flex: 1; }
.inventory-type, .inventory-item-body h3, .inventory-item-body p, .inventory-item-body small { display: block; }
.inventory-type { color: var(--accent-2); font-size: 9px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.inventory-item-body h3 { overflow: hidden; margin: 3px 0; color: var(--primary-2); text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.inventory-item-body p { overflow: hidden; color: var(--text-dim); text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.inventory-item-body small { margin-top: 5px; color: var(--text-dim); font-size: 9px; }
.inventory-use-form { display: flex; align-items: flex-end; gap: 7px; }
.inventory-use-form label { display: flex; flex-direction: column; gap: 4px; color: var(--text-dim); font-size: 9px; font-weight: 700; }
.inventory-use-form select { height: 32px; padding: 0 7px; color: var(--primary-2); border: 1px solid var(--border); border-radius: 7px; background: #fff; font: inherit; font-size: 10px; }
.inventory-use-form .btn { white-space: nowrap; }
.inventory-used-badge { color: #39944e; font-size: 10px; font-weight: 800; white-space: nowrap; }
.inventory-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 35px 20px; color: var(--text-dim); text-align: center; border: 1px dashed #c8dec5; border-radius: 12px; background: #fbfefb; }
.inventory-empty i { color: #90bf86; font-size: 30px; }
.inventory-empty strong { color: var(--primary-2); font-size: 13px; }
.inventory-empty span { font-size: 11px; }
.reward-dashboard-card p { margin: -2px 0 13px; color: var(--text-dim); font-size: 11px; line-height: 1.5; }
.reward-dashboard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.reward-dashboard-meta > span { color: var(--text-dim); font-size: 10px; }
.reward-dashboard-meta > span i { margin-right: 4px; color: #bb871a; }
.reward-dashboard-meta > span strong { color: var(--primary-2); font-size: 14px; }

@media (max-width: 850px) { .rewards-grid { grid-template-columns: 1fr; } .rewards-hero-stat { min-width: 135px; } }
@media (max-width: 620px) { .rewards-page { padding-top: 28px; } .rewards-hero { align-items: flex-start; flex-direction: column; padding: 26px 23px; } .rewards-hero-stat { align-self: stretch; } .wheel-card, .reward-info-card, .inventory-card { padding: 20px; } .inventory-grid { grid-template-columns: 1fr; } .inventory-item { align-items: flex-start; flex-wrap: wrap; } .inventory-use-form { width: 100%; margin-left: 60px; } .inventory-use-form select { flex: 1; } .inventory-use-form .btn { flex: 1; } }


/* ===== Theme toggle ===== */
.theme-toggle { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; color: var(--primary-2); border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.78); cursor: pointer; font: inherit; font-size: 11px; font-weight: 800; transition: transform .18s var(--ease-out), color .18s var(--ease-out), background .18s var(--ease-out), border-color .18s var(--ease-out); }
.theme-toggle:hover { color: var(--primary); border-color: var(--accent-2); background: var(--bg-3); transform: translateY(-1px); }
.theme-toggle:active { transform: scale(.96); }
.theme-toggle i { font-size: 14px; }
.theme-toggle span { white-space: nowrap; }
.theme-toggle:focus-visible { outline: 3px solid rgba(98,185,87,.32); outline-offset: 2px; }

html[data-theme="dark"] body { background: var(--bg); color: var(--text); background-image: radial-gradient(circle at 12% 0%, rgba(111,196,91,.10) 0, transparent 34%), radial-gradient(circle at 92% 30%, rgba(45,151,81,.10) 0, transparent 32%), linear-gradient(180deg, #071c12 0%, #0b2517 46%, #081a11 100%); }
html[data-theme="dark"] .navbar { background: rgba(7, 28, 18, .92); border-bottom-color: rgba(144,218,116,.18); box-shadow: 0 5px 22px rgba(0,0,0,.24); }
html[data-theme="dark"] .nav-links a { color: #a9c4ad; }
html[data-theme="dark"] .nav-links a:hover { color: #ecffeb; background: rgba(121,203,99,.14); }
html[data-theme="dark"] .nav-links a.active { color: #b9f29b; background: rgba(113,200,91,.16); }
html[data-theme="dark"] .nav-links a.nav-admin { color: #f2cb70; }
html[data-theme="dark"] .nav-user { border-left-color: rgba(144,218,116,.20); }
html[data-theme="dark"] .user-name { color: #e7f6e5; }
html[data-theme="dark"] .user-credit { color: #f1c968; }
html[data-theme="dark"] .theme-toggle { color: #efffe9; border-color: rgba(144,218,116,.32); background: rgba(255,255,255,.10); }
html[data-theme="dark"] .theme-toggle:hover { color: #c8f5ad; border-color: #79c867; background: rgba(121,203,99,.16); }
html[data-theme="dark"] .nav-toggle { color: #d7f7cf; }
html[data-theme="dark"] .store-shell { background: linear-gradient(180deg, #0b2819 0%, #0b1e14 50%, #071a10 100%); }
html[data-theme="dark"] .store-categories, html[data-theme="dark"] .featured-store-section, html[data-theme="dark"] .store-products-section { color: #e7f6e5; }
html[data-theme="dark"] .store-category-heading h2, html[data-theme="dark"] .section-line-head h2, html[data-theme="dark"] .product-card-content h3 { color: #c9f5bd; }
html[data-theme="dark"] .store-category-note, html[data-theme="dark"] .section-line, html[data-theme="dark"] .store-result-count, html[data-theme="dark"] .store-products-subtitle { color: #9ebaa3; }
html[data-theme="dark"] .store-category-card, html[data-theme="dark"] .featured-product-card, html[data-theme="dark"] .store-product-card, html[data-theme="dark"] .store-help-banner, html[data-theme="dark"] .store-empty { color: #e7f6e5; border-color: #234b31; background: rgba(17,50,29,.92); box-shadow: 0 12px 28px rgba(0,0,0,.20); }
html[data-theme="dark"] .store-category-card:hover, html[data-theme="dark"] .store-category-card.active, html[data-theme="dark"] .featured-product-card:hover { color: #efffea; border-color: #6fbf60; background: rgba(28,74,40,.95); }
html[data-theme="dark"] .store-category-card strong, html[data-theme="dark"] .featured-product-copy strong, html[data-theme="dark"] .store-empty strong { color: #d3f7c9; }
html[data-theme="dark"] .store-category-card small, html[data-theme="dark"] .featured-product-copy span, html[data-theme="dark"] .product-desc { color: #9ebaa3; }
html[data-theme="dark"] .store-sort-form select { color: #d3f7c9; border-color: #315b3d; background: #102b1b; }
html[data-theme="dark"] .product-card-topline .product-badge { color: #c9f5bd; background: #1b4b2b; }
html[data-theme="dark"] .store-help-banner strong { color: #c9f5bd; }
html[data-theme="dark"] .store-help-banner span { color: #9ebaa3; }
html[data-theme="dark"] .rewards-page, html[data-theme="dark"] .community-page, html[data-theme="dark"] .dashboard, html[data-theme="dark"] .product-detail-page { color: #e7f6e5; }
html[data-theme="dark"] .wheel-card, html[data-theme="dark"] .reward-info-card, html[data-theme="dark"] .inventory-card, html[data-theme="dark"] .community-form-card, html[data-theme="dark"] .community-list-card, html[data-theme="dark"] .conversation-card, html[data-theme="dark"] .application-review-card, html[data-theme="dark"] .application-status-card, html[data-theme="dark"] .dash-card, html[data-theme="dark"] .dash-section, html[data-theme="dark"] .product-hero, html[data-theme="dark"] .product-side, html[data-theme="dark"] .auth-card, html[data-theme="dark"] .admin-card, html[data-theme="dark"] .server-row { color: #e7f6e5; border-color: #234b31; background: rgba(17,50,29,.94); box-shadow: 0 12px 28px rgba(0,0,0,.21); }
html[data-theme="dark"] .rewards-hero, html[data-theme="dark"] .community-hero { box-shadow: 0 18px 40px rgba(0,0,0,.25); }
html[data-theme="dark"] .wheel-card h2, html[data-theme="dark"] .reward-info-card h2, html[data-theme="dark"] .inventory-card h2, html[data-theme="dark"] .community-card-head h2, html[data-theme="dark"] .dash-card h3, html[data-theme="dark"] .dash-section h3 { color: #c9f5bd; }
html[data-theme="dark"] .wheel-note, html[data-theme="dark"] .form-hint, html[data-theme="dark"] .muted-copy, html[data-theme="dark"] .inventory-item-body p, html[data-theme="dark"] .inventory-item-body small { color: #9ebaa3; }
html[data-theme="dark"] .reward-list-row, html[data-theme="dark"] .inventory-item, html[data-theme="dark"] .inventory-empty, html[data-theme="dark"] .waiting-message, html[data-theme="dark"] .community-list-item { border-color: #2d5938; background: #102b1b; }
html[data-theme="dark"] .reward-list-row strong, html[data-theme="dark"] .inventory-item-body h3, html[data-theme="dark"] .inventory-empty strong { color: #c9f5bd; }
html[data-theme="dark"] .community-form input, html[data-theme="dark"] .community-form select, html[data-theme="dark"] .community-form textarea, html[data-theme="dark"] .auth-form input, html[data-theme="dark"] .admin-form input, html[data-theme="dark"] .admin-form select, html[data-theme="dark"] .admin-form textarea { color: #e7f6e5; border-color: #315b3d; background: #0e2819; }
html[data-theme="dark"] .community-form label, html[data-theme="dark"] .auth-form label > span { color: #c9f5bd; }
html[data-theme="dark"] .data-table th { color: #9ebaa3; }
html[data-theme="dark"] .data-table td { border-bottom-color: #2b5236; }
html[data-theme="dark"] .data-table tr:hover td { background: rgba(113,200,91,.08); }
html[data-theme="dark"] .server-name, html[data-theme="dark"] .auth-head h1, html[data-theme="dark"] .product-hero h1, html[data-theme="dark"] .admin-page-head h1 { color: #c9f5bd; }
html[data-theme="dark"] .server-desc, html[data-theme="dark"] .server-meta, html[data-theme="dark"] .auth-head p, html[data-theme="dark"] .auth-foot, html[data-theme="dark"] .admin-page-head p, html[data-theme="dark"] .product-hero .lead { color: #9ebaa3; }
html[data-theme="dark"] .btn-secondary, html[data-theme="dark"] .btn-ghost, html[data-theme="dark"] button.btn-ghost { color: #c9f5bd; border-color: #315b3d; background: rgba(15,47,27,.86); }
html[data-theme="dark"] .btn-secondary:hover, html[data-theme="dark"] .btn-ghost:hover, html[data-theme="dark"] button.btn-ghost:hover { color: #efffea; background: #1a4a2a; border-color: #6fbf60; }
html[data-theme="dark"] .footer { background: #061b11; border-top-color: #4f9c4e; }
html[data-theme="dark"] .footer-col h4 { color: #c9f5bd; }
html[data-theme="dark"] .footer-col a, html[data-theme="dark"] .footer-tagline, html[data-theme="dark"] .footer-bottom { color: rgba(232,255,231,.68); }
html[data-theme="dark"] .ip-code { color: #c9f5bd; background: rgba(255,255,255,.09); }
html[data-theme="dark"] .admin-side { background: #061b11; }
html[data-theme="dark"] .admin-main { background: #081f13; }
html[data-theme="dark"] .admin-card, html[data-theme="dark"] .stat-card, html[data-theme="dark"] .server-admin-card { background: rgba(16,49,28,.94); border-color: #2b5737; }
html[data-theme="dark"] .admin-brand { color: #c9f5bd; }
html[data-theme="dark"] .admin-nav a { color: rgba(232,255,231,.70); }
html[data-theme="dark"] .admin-nav a:hover { background: rgba(121,203,99,.12); color: #fff; }
html[data-theme="dark"] .admin-nav a.active { background: #6fc45b; color: #123d24; }

@media (max-width: 768px) {
  .theme-toggle { width: 100%; justify-content: center; }
}


/* Dark theme tokens must come after the green-white theme tokens. */
html[data-theme="dark"] {
  --bg: #071c12;
  --bg-2: #0d2b1d;
  --bg-3: #123a27;
  --bg-card: #11321d;
  --border: #285539;
  --text: #e7f6e5;
  --text-dim: #9ebaa3;
  --primary: #79c867;
  --primary-2: #c9f5bd;
  --accent: #94da74;
  --accent-2: #6fc45b;
  --success: #73d66d;
  --danger: #ff8992;
  --warn: #f1c968;
  --shadow: 0 18px 48px rgba(0,0,0,.24);
  --gradient: linear-gradient(135deg, #12613a 0%, #248c4c 55%, #71c85b 100%);
}


/* In-game inventory gate notice */
.inventory-gate-note { display: flex; align-items: flex-start; gap: 10px; margin: -4px 0 18px; padding: 12px 14px; color: #55705c; border: 1px solid #dcebc9; border-radius: 12px; background: #f5faec; font-size: 11px; line-height: 1.55; }
.inventory-gate-note i { flex: 0 0 auto; margin-top: 1px; color: var(--accent-2); font-size: 16px; }
.inventory-gate-note strong { color: var(--primary-2); }
html[data-theme="dark"] .inventory-gate-note { color: #b4cbb5; border-color: #315b3d; background: #102b1b; }
html[data-theme="dark"] .inventory-gate-note strong { color: #c9f5bd; }


/* ===== LeaderOS-inspired community portal layer ===== */
.portal-topbar { color: rgba(239,255,240,.78); border-bottom: 1px solid rgba(111,196,91,.20); background: #0d3b25; font-size: 11px; }
.portal-topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 34px; gap: 16px; }
.portal-topbar-item { display: inline-flex; align-items: center; gap: 7px; color: rgba(239,255,240,.78); white-space: nowrap; }
.portal-topbar-item:hover { color: #fff; text-decoration: none; }
.portal-topbar-item i { color: #8cdb71; font-size: 13px; }
.portal-topbar-item strong { color: #d2f6bf; font-weight: 800; }
.portal-topbar-discord { margin-left: auto; }
.portal-breadcrumb { display: flex; align-items: center; gap: 9px; padding-top: 17px; color: var(--text-dim); font-size: 10px; letter-spacing: .3px; }
.portal-breadcrumb a { color: var(--primary); font-weight: 800; }
.portal-breadcrumb span:first-of-type { color: #99bda0; }
.portal-hero { min-height: 535px; margin-top: 15px; border-radius: 22px; overflow: hidden; }
.portal-hero .hero-content { padding-left: 18px; }
.portal-news-section { padding-top: 58px; padding-bottom: 20px; }
.portal-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.portal-section-head .eyebrow { display: block; margin-bottom: 6px; }
.portal-section-head h2 { margin: 0; }
.portal-section-head > p, .portal-section-note { margin: 0 0 3px; color: var(--text-dim); font-size: 11px; }
.portal-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portal-news-card { min-height: 200px; padding: 21px 22px 19px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.92); box-shadow: 0 9px 24px rgba(26,86,48,.06); transition: transform .2s var(--ease-out), border-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.portal-news-card:hover { transform: translateY(-3px); border-color: #9ccc8d; box-shadow: 0 16px 30px rgba(26,86,48,.12); }
.portal-news-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent-2); font-size: 9px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.portal-news-card-top time { color: var(--text-dim); font-weight: 700; letter-spacing: 0; text-transform: none; }
.portal-news-card h3 { margin: 19px 0 7px; color: var(--primary-2); font-size: 17px; letter-spacing: -.25px; }
.portal-news-card p { min-height: 48px; margin: 0 0 16px; color: var(--text-dim); font-size: 11px; line-height: 1.6; }
.portal-news-card a { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 10px; font-weight: 900; }
.portal-news-card a:hover { color: var(--primary-2); text-decoration: none; }
.portal-news-card a i { transition: transform .2s var(--ease-out); }
.portal-news-card a:hover i { transform: translate(2px, -2px); }
.portal-features-section { padding-top: 28px; }
.portal-cta-section { padding-top: 26px; }
.portal-cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 27px 30px; border: 1px solid #bdddbd; border-radius: 18px; background: linear-gradient(120deg, #edf8ed, #fff 52%, #e3f4df); box-shadow: 0 12px 28px rgba(26,86,48,.07); }
.portal-cta-card h2 { margin: 5px 0 6px; color: var(--primary-2); font-size: clamp(20px, 3vw, 28px); letter-spacing: -.6px; }
.portal-cta-card p { margin: 0; color: var(--text-dim); font-size: 12px; }
.portal-cta-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
html[data-theme="dark"] .portal-topbar { background: #061b11; border-bottom-color: rgba(144,218,116,.18); }
html[data-theme="dark"] .portal-topbar-item { color: #b4cbb5; }
html[data-theme="dark"] .portal-topbar-item:hover { color: #efffea; }
html[data-theme="dark"] .portal-topbar-item i { color: #94da74; }
html[data-theme="dark"] .portal-topbar-item strong { color: #c9f5bd; }
html[data-theme="dark"] .portal-breadcrumb span:first-of-type { color: #7d9c83; }
html[data-theme="dark"] .portal-news-card { border-color: #285539; background: rgba(17,50,29,.94); box-shadow: 0 12px 28px rgba(0,0,0,.20); }
html[data-theme="dark"] .portal-news-card:hover { border-color: #6fbf60; background: rgba(24,68,37,.96); box-shadow: 0 16px 30px rgba(0,0,0,.27); }
html[data-theme="dark"] .portal-news-card h3 { color: #c9f5bd; }
html[data-theme="dark"] .portal-cta-card { border-color: #315b3d; background: linear-gradient(120deg, #102b1b, #123a27 56%, #1a4a2a); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
@media (max-width: 760px) {
  .portal-topbar-inner { justify-content: center; min-height: 38px; }
  .portal-topbar-item:first-child { display: none; }
  .portal-topbar-discord { margin-left: 0; }
  .portal-hero { min-height: 610px; margin-top: 10px; border-radius: 16px; }
  .portal-news-grid { grid-template-columns: 1fr; }
  .portal-section-head, .portal-cta-card { align-items: flex-start; flex-direction: column; }
  .portal-cta-actions { justify-content: flex-start; }
}


.footer-tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); color: rgba(232,255,231,.64); font-size: 10px; }
.footer-tools span, .footer-tools a { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
.footer-tools a:hover { color: #fff; text-decoration: none; }
.footer-tools i { color: #91d67b; }
html[data-theme="dark"] .footer-tools { border-top-color: rgba(255,255,255,.12); color: rgba(232,255,231,.62); }
@media (max-width: 620px) { .footer-tools { justify-content: center; flex-wrap: wrap; gap: 9px 14px; } }


/* ===== Reference-inspired typography and brand proportions ===== */
:root { --font-portal: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
body, button, input, select, textarea { font-family: var(--font-portal); }
body { font-weight: 500; }
.logo { gap: 9px; font-weight: 900; letter-spacing: -.65px; }
.logo-mark { width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 7px 17px rgba(25,122,69,.20); }
.logo-text { font-size: 18px; font-weight: 900; letter-spacing: -.8px; }
.nav-links { gap: 4px; }
.nav-links a { font-size: 12px; font-weight: 700; letter-spacing: -.05px; }
.nav-links a.active { box-shadow: inset 0 -2px 0 var(--accent-2); }
.btn { font-weight: 800; letter-spacing: -.08px; }
.hero-title { font-weight: 900; letter-spacing: -3.8px; }
.portal-breadcrumb { font-weight: 600; }
.portal-section-head h2, .store-category-heading h2, .section-line-head h2 { font-weight: 900; letter-spacing: -.75px; }
.portal-news-card h3, .server-name, .product-card-content h3 { font-weight: 850; letter-spacing: -.35px; }
.footer .logo-text { font-size: 17px; }
@media (max-width: 768px) {
  .logo-text { font-size: 17px; }
  .nav-links a { font-size: 13px; }
  .hero-title { letter-spacing: -2.5px; }
}


/* Circular portal brand treatment inspired by the reference header. */
.logo-mark { width: 37px; height: 37px; border-radius: 50%; padding: 2px; border: 2px solid rgba(145,214,123,.38); background: linear-gradient(145deg, #0f6037, #71c85b); box-shadow: 0 0 0 3px rgba(111,196,91,.10), 0 7px 18px rgba(25,122,69,.22); }
.logo-mark img { border-radius: 50%; }
.logo-text { font-size: 17px; font-weight: 900; letter-spacing: -.9px; }
.portal-topbar-item { font-size: 10px; letter-spacing: .05px; }
.portal-topbar-item i { font-size: 12px; }
.nav-links a { padding: 8px 11px; font-size: 11px; }
.nav-links a i { font-size: 11px; }
.theme-toggle { font-size: 10px; }
.footer .logo-mark { width: 34px; height: 34px; }
.footer .logo-text { font-size: 16px; }
@media (max-width: 768px) {
  .logo-mark { width: 35px; height: 35px; }
  .nav-links a { padding: 9px 14px; font-size: 13px; }
}


/* ===== Dark-mode button normalization ===== */
html[data-theme="dark"] .btn-primary { color: #071c0d; border-color: #79d46d; background: linear-gradient(135deg, #8bdc73 0%, #4fb45d 55%, #318f4d 100%); box-shadow: 0 8px 22px rgba(58,166,80,.28); }
html[data-theme="dark"] .btn-primary:hover { color: #04130a; border-color: #b7f29b; background: linear-gradient(135deg, #b7f29b 0%, #6fd36c 56%, #3ca85b 100%); box-shadow: 0 11px 28px rgba(91,196,91,.38); }
html[data-theme="dark"] .btn-primary:focus-visible { outline: 3px solid rgba(148,218,116,.42); outline-offset: 2px; }
html[data-theme="dark"] .btn-secondary,
html[data-theme="dark"] .btn-ghost,
html[data-theme="dark"] button.btn-ghost { color: #d5f5cc; border-color: #477a4c; background: #183a24; box-shadow: 0 5px 14px rgba(0,0,0,.12); }
html[data-theme="dark"] .btn-secondary:hover,
html[data-theme="dark"] .btn-ghost:hover,
html[data-theme="dark"] button.btn-ghost:hover { color: #f0ffe9; border-color: #8bd577; background: #245334; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
html[data-theme="dark"] .btn-secondary:focus-visible,
html[data-theme="dark"] .btn-ghost:focus-visible,
html[data-theme="dark"] button.btn-ghost:focus-visible { outline: 3px solid rgba(148,218,116,.38); outline-offset: 2px; }
html[data-theme="dark"] .btn-success { color: #06170a; border-color: #8ee681; background: #73d66d; box-shadow: 0 7px 18px rgba(79,186,82,.24); }
html[data-theme="dark"] .btn-success:hover { color: #041108; background: #9aeb87; }
html[data-theme="dark"] .btn-danger { color: #22070a; border-color: #ff9da4; background: #ff8992; box-shadow: 0 7px 18px rgba(255,112,125,.20); }
html[data-theme="dark"] .btn-danger:hover { color: #1b0508; background: #ffadb2; }
html[data-theme="dark"] .nav-links .btn-ghost { color: #d5f5cc; border-color: #477a4c; background: #183a24; }
html[data-theme="dark"] .hero-cta .btn-ghost,
html[data-theme="dark"] .store-hero .btn-ghost,
html[data-theme="dark"] .btn-outline-light { color: #f4fff0; border-color: rgba(255,255,255,.52); background: rgba(6,30,17,.48); box-shadow: 0 6px 16px rgba(0,0,0,.14); }
html[data-theme="dark"] .hero-cta .btn-ghost:hover,
html[data-theme="dark"] .store-hero .btn-ghost:hover,
html[data-theme="dark"] .btn-outline-light:hover { color: #fff; border-color: rgba(255,255,255,.82); background: rgba(255,255,255,.16); }
html[data-theme="dark"] .store-hero .btn-primary { color: #123d25; border-color: #b8f58f; background: #b8f58f; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
html[data-theme="dark"] .store-hero .btn-primary:hover { color: #123d25; border-color: #d5ffb9; background: #d5ffb9; }
html[data-theme="dark"] .btn-light { color: #0d4326; border-color: #e5ffdc; background: #e5ffdc; }
html[data-theme="dark"] .btn-light:hover { color: #062b17; background: #fff; }
html[data-theme="dark"] .btn:disabled,
html[data-theme="dark"] .btn[disabled] { color: #7d9782; border-color: #2b4934; background: #152a1c; box-shadow: none; opacity: .72; cursor: not-allowed; }


/* Product command editor */
.command-field { display: flex; flex-direction: column; gap: 7px; }
.command-field .form-hint { display: block; max-width: 920px; line-height: 1.55; }
.command-field code { color: var(--primary-2); background: var(--bg-3); border-radius: 4px; padding: 1px 4px; font-family: 'Courier New', monospace; font-size: 11px; }
.command-field textarea { min-height: 88px; font-family: 'Courier New', monospace; line-height: 1.55; }
html[data-theme="dark"] .command-field code { color: #d5f5cc; background: #183a24; }


/* ===== Discord community side card ===== */
.portal-community-row { display: grid; grid-template-columns: minmax(0, 1fr) 276px; gap: 20px; align-items: stretch; }
.portal-community-row .portal-news-section { min-width: 0; padding-top: 58px; padding-bottom: 20px; }
.portal-community-row .portal-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.discord-card { align-self: start; margin-top: 58px; padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: rgba(255,255,255,.92); box-shadow: 0 10px 26px rgba(26,86,48,.08); }
.discord-card-header { display: flex; align-items: center; gap: 11px; }
.discord-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 auto; border-radius: 13px; color: #fff; background: #5865f2; box-shadow: 0 8px 18px rgba(88,101,242,.25); font-size: 21px; }
.discord-card .eyebrow { display: block; margin-bottom: 4px; color: var(--accent-2); }
.discord-card h2 { margin: 0; color: var(--primary-2); font-size: 15px; line-height: 1.2; }
.discord-card p { min-height: 38px; margin: 19px 0 16px; color: var(--text-dim); font-size: 11px; line-height: 1.55; }
.discord-live-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; color: var(--success); font-size: 10px; }
.discord-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(115,214,109,.15); }
.discord-member-count { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 13px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--bg-3); }
.discord-member-count > i { color: #5865f2; font-size: 19px; }
.discord-member-count div { display: flex; flex-direction: column; gap: 2px; }
.discord-member-count strong { color: var(--primary-2); font-size: 19px; line-height: 1; }
.discord-member-count span { color: var(--text-dim); font-size: 10px; }
.discord-card-no-link { display: flex; align-items: flex-start; gap: 7px; color: var(--text-dim); font-size: 10px; line-height: 1.45; }
.discord-card-no-link i { color: var(--accent-2); }
html[data-theme="dark"] .discord-card { border-color: #285539; background: rgba(17,50,29,.94); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
html[data-theme="dark"] .discord-card h2 { color: #c9f5bd; }
html[data-theme="dark"] .discord-card p, html[data-theme="dark"] .discord-member-count span, html[data-theme="dark"] .discord-card-no-link { color: #9ebaa3; }
html[data-theme="dark"] .discord-member-count { border-color: #315b3d; background: #102b1b; }
html[data-theme="dark"] .discord-member-count strong { color: #c9f5bd; }
@media (max-width: 900px) {
  .portal-community-row { grid-template-columns: 1fr; }
  .portal-community-row .portal-news-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discord-card { margin-top: 0; }
}
@media (max-width: 680px) {
  .portal-community-row .portal-news-grid { grid-template-columns: 1fr; }
}


/* ===== Flat portal theme based on the supplied reference ===== */
:root { --flat-bg: #f5f7fb; --flat-card: #fff; --flat-border: #e1e6ee; --flat-text: #1d2939; --flat-muted: #7b8794; --flat-blue: #0e5aa7; --flat-blue-2: #1c7bd1; --flat-discord: #5865f2; }
body { background: var(--flat-bg); color: var(--flat-text); background-image: none; }
body, button, input, select, textarea { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.navbar { background: #fff; border-bottom: 1px solid #e5e9f0; box-shadow: none; }
.navbar::after { display: none; }
.nav-inner { min-height: 58px; }
.nav-links { gap: 2px; }
.nav-links a { color: #617080; border-radius: 5px; font-size: 12px; font-weight: 600; }
.nav-links a:hover { color: var(--flat-blue); background: #f1f5fa; }
.nav-links a.active { color: var(--flat-blue); background: transparent; box-shadow: inset 0 -2px 0 var(--flat-blue); }
.logo { color: #1d2939; }
.logo-text { background: none; color: #1d2939; -webkit-text-fill-color: initial; font-weight: 800; }
.logo-mark { width: 32px; height: 32px; padding: 1px; border: 1px solid #dce5ef; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(31,55,80,.10); }
.logo-mark img { border-radius: 50%; }
.theme-toggle { color: #617080; border-color: #dce3ec; background: #fff; }
.theme-toggle:hover { color: var(--flat-blue); border-color: #aac6e3; background: #f3f7fb; }
.btn-primary { color: #fff; border-color: var(--flat-blue); background: var(--flat-blue); box-shadow: 0 5px 12px rgba(14,90,167,.18); }
.btn-primary:hover { color: #fff; border-color: #084b8d; background: #084b8d; box-shadow: 0 7px 16px rgba(14,90,167,.24); }
.btn-secondary { color: #526172; border-color: #d5dde8; background: #fff; }
.btn-secondary:hover { color: var(--flat-blue); border-color: #aac6e3; background: #f4f8fc; }
.btn-ghost, .btn-ghost.btn, button.btn-ghost { color: #526172; border-color: #d5dde8; background: #fff; }
.btn-ghost:hover, button.btn-ghost:hover { color: var(--flat-blue); border-color: #aac6e3; background: #f4f8fc; }
.portal-topbar { color: #eaf2fb; background: #203d60; border-bottom: 0; }
.portal-topbar-item { color: #dce9f7; }
.portal-topbar-item:hover { color: #fff; }
.portal-topbar-item i { color: #a8ceef; }
.portal-topbar-item strong { color: #fff; }
.flat-home-banner { position: relative; min-height: 255px; overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(33,54,78,.70), rgba(28,68,100,.25) 50%, rgba(23,39,60,.68)), url('/images/minecraft-hero.png') center 44% / cover no-repeat; }
.flat-home-banner::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 42%, rgba(14,29,49,.18)); }
.flat-home-banner-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; min-height: 255px; gap: 20px; }
.flat-banner-side { display: inline-flex; align-items: center; gap: 14px; min-width: 255px; color: #fff; text-decoration: none; }
.flat-banner-side:hover { color: #fff; text-decoration: none; }
.flat-banner-side small, .flat-banner-side strong { display: block; text-align: left; text-shadow: 0 1px 4px rgba(0,0,0,.28); }
.flat-banner-side small { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 500; letter-spacing: .1px; }
.flat-banner-side strong { margin-top: 4px; color: #fff; font-size: 14px; font-weight: 800; }
.flat-banner-right { justify-content: flex-end; text-align: right; }
.flat-banner-right small, .flat-banner-right strong { text-align: right; }
.flat-banner-icon { display: inline-flex; align-items: center; justify-content: center; width: 51px; height: 51px; flex: 0 0 auto; border-radius: 9px; color: #fff; background: rgba(255,255,255,.22); box-shadow: 0 5px 13px rgba(0,0,0,.12); font-size: 25px; }
.flat-discord-icon { background: rgba(255,255,255,.28); }
.flat-banner-brand { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; color: #fff; text-decoration: none; }
.flat-banner-brand:hover { color: #fff; text-decoration: none; }
.flat-brand-orbit { display: inline-flex; align-items: center; justify-content: center; width: 138px; height: 138px; padding: 27px; border: 5px solid rgba(255,255,255,.88); border-radius: 50%; background: rgba(255,255,255,.12); box-shadow: 0 7px 28px rgba(0,0,0,.20); }
.flat-brand-orbit img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.flat-banner-brand strong { display: none; }
.flat-navbar .nav-inner { min-height: 58px; }
.flat-navbar .nav-links a { padding: 19px 13px 17px; }
.flat-navbar .nav-links a.active { box-shadow: inset 0 -2px 0 var(--flat-blue); }
.flat-site-main { min-height: 600px; padding: 0 0 66px; background: var(--flat-bg); }
.flat-breadcrumb { display: flex; align-items: center; gap: 12px; min-height: 53px; margin-top: 31px; padding: 0 23px; border: 1px solid var(--flat-border); border-radius: 7px; color: #778494; background: #fff; font-size: 12px; }
.flat-breadcrumb a { color: #435466; }
.flat-breadcrumb a:hover { color: var(--flat-blue); }
.flat-breadcrumb span:first-of-type { color: #a2adba; }
.flat-page-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(275px, .92fr); gap: 20px; align-items: start; margin-top: 28px; }
.flat-primary-column { min-width: 0; }
.flat-welcome-card { display: none; }
.flat-announcement-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 17px; border: 1px solid #d8e3ef; border-radius: 7px; color: #415467; background: #fff; }
.flat-announcement-bar > i { color: var(--flat-blue); font-size: 17px; }
.flat-announcement-bar div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.flat-announcement-bar strong { color: #26384b; font-size: 12px; }
.flat-announcement-bar span { overflow: hidden; color: #778494; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.flat-announcement-bar a { margin-left: auto; color: var(--flat-blue); font-size: 11px; font-weight: 800; white-space: nowrap; }
.flat-announcement-bar a:hover { text-decoration: none; }
.flat-news-section { padding: 0; }
.flat-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.flat-section-heading h2 { margin: 2px 0 0; color: #27384b; font-size: 21px; font-weight: 800; letter-spacing: -.45px; }
.flat-section-heading > a { margin-bottom: 3px; color: var(--flat-blue); font-size: 11px; font-weight: 700; }
.flat-section-heading > a:hover { text-decoration: none; }
.flat-kicker { color: #8795a4; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.flat-news-list { display: flex; flex-direction: column; gap: 15px; }
.flat-news-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); min-height: 193px; overflow: hidden; border: 1px solid var(--flat-border); border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(31,55,80,.035); }
.flat-news-image { min-height: 193px; background: #dfe8f0; }
.flat-news-image img { display: block; width: 100%; height: 100%; min-height: 193px; object-fit: cover; }
.flat-news-content { display: flex; flex-direction: column; align-items: flex-start; padding: 21px 20px 17px; }
.flat-news-meta { display: flex; align-items: center; gap: 7px; color: var(--flat-blue); font-size: 10px; }
.flat-news-meta time { color: #8995a2; }
.flat-news-content h3 { margin: 13px 0 8px; color: #1d2939; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.flat-news-content p { display: -webkit-box; overflow: hidden; min-height: 48px; margin: 0 0 14px; color: #6f7d8b; font-size: 11px; line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.flat-news-content .btn { margin-top: auto; padding: 8px 13px; border-radius: 5px; font-size: 11px; }
.flat-sidebar { display: flex; flex-direction: column; gap: 19px; }
.flat-discord-widget, .flat-widget-card { overflow: hidden; border: 1px solid var(--flat-border); border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(31,55,80,.035); }
.flat-discord-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 20px 17px; color: #fff; background: linear-gradient(135deg, #5967ef, #6975f4); }
.flat-discord-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.flat-discord-brand i { font-size: 21px; }
.flat-discord-heading > span { font-size: 10px; font-weight: 600; white-space: nowrap; }
.flat-discord-body { padding: 18px 17px 17px; }
.flat-widget-title { color: #99a4ae; font-size: 9px; font-weight: 800; letter-spacing: .8px; }
.flat-discord-count { display: flex; align-items: center; gap: 9px; margin: 12px 0 8px; }
.flat-discord-count strong { color: #27384b; font-size: 27px; line-height: 1; }
.flat-discord-count span { color: #74818e; font-size: 10px; line-height: 1.35; }
.flat-online-dots { display: flex; gap: 4px; margin: 5px 0 13px; }
.flat-online-dots span { width: 8px; height: 8px; border-radius: 50%; background: #61c277; box-shadow: 0 0 0 2px #e5f5e8; }
.flat-discord-body > p { margin: 0 0 14px; color: #7f8b98; font-size: 10px; line-height: 1.5; }
.flat-discord-body .btn { padding: 9px 12px; border-color: #5865f2; background: #5865f2; font-size: 11px; }
.flat-widget-muted { display: flex; align-items: flex-start; gap: 6px; color: #8c98a4; font-size: 10px; line-height: 1.45; }
.flat-widget-muted i { color: var(--flat-blue); }
.flat-widget-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 17px; border-bottom: 1px solid #edf0f4; }
.flat-widget-heading strong { color: #27384b; font-size: 12px; }
.flat-widget-heading span { color: #8995a2; font-size: 9px; white-space: nowrap; }
.flat-mini-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.flat-mini-table th { padding: 10px 12px; color: #98a3ae; font-size: 8px; font-weight: 800; text-align: left; text-transform: uppercase; }
.flat-mini-table td { padding: 11px 12px; border-top: 1px solid #edf0f4; color: #4e5d6c; font-size: 10px; vertical-align: middle; }
.flat-mini-table th:last-child, .flat-mini-table td:last-child { text-align: right; }
.flat-mini-table td:nth-child(2), .flat-mini-table th:nth-child(2) { white-space: nowrap; }
.flat-mini-table td:nth-child(3), .flat-mini-table th:nth-child(3) { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flat-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 5px; color: #fff; background: linear-gradient(135deg, #89b7db, #5d7eaa); font-size: 10px; font-weight: 800; vertical-align: middle; }
.flat-table-empty { color: #96a1ad !important; text-align: center !important; }
.flat-servers-section { margin-top: 36px; }
.flat-server-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.flat-server-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 17px; border: 1px solid var(--flat-border); border-radius: 7px; background: #fff; }
.flat-server-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 6px; color: var(--flat-blue); background: #edf5fc; }
.flat-server-card h3 { margin: 0 0 4px; color: #27384b; font-size: 13px; }
.flat-server-card p { display: -webkit-box; overflow: hidden; height: 31px; margin: 0 0 7px; color: #7a8793; font-size: 10px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.flat-server-card > div:nth-child(2) { min-width: 0; flex: 1; }
.flat-server-card .btn { align-self: center; padding: 7px 9px; font-size: 9px; }
.flat-server-status { color: #a06a1c; font-size: 9px; }
.flat-server-status.online { color: #2f9e59; }
.flat-server-status i { font-size: 6px; vertical-align: middle; }
.flat-features-section { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin-top: 20px; }
.flat-feature-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--flat-border); border-radius: 7px; background: #fff; }
.flat-feature-item > i { color: var(--flat-blue); font-size: 18px; }
.flat-feature-item strong, .flat-feature-item span { display: block; }
.flat-feature-item strong { color: #344658; font-size: 11px; }
.flat-feature-item span { margin-top: 3px; color: #8a96a2; font-size: 9px; }
.footer { margin-top: 28px; padding-top: 36px; color: #d9e4f0; background: #203d60; border-top: 0; }
.footer-col h4 { color: #fff; }
.footer-col a, .footer-tagline, .footer-bottom { color: rgba(232,242,252,.70); }
.footer-col a:hover { color: #fff; }
.ip-code { color: #d6eaff; background: rgba(255,255,255,.10); }
.footer-tools { border-top-color: rgba(255,255,255,.14); color: rgba(232,242,252,.65); }
.footer-tools i { color: #9ccaf1; }
.footer-tools a:hover { color: #fff; }
.footer-bottom { border-top-color: rgba(255,255,255,.14); }
html[data-theme="dark"] body { background: #101923; color: #e8eef5; background-image: none; }
html[data-theme="dark"] .navbar, html[data-theme="dark"] .flat-navbar { background: #151f2b; border-bottom-color: #253444; }
html[data-theme="dark"] .nav-links a { color: #aab8c6; }
html[data-theme="dark"] .nav-links a:hover { color: #a9d4f8; background: #1d2b3b; }
html[data-theme="dark"] .nav-links a.active { color: #9ecdf2; background: transparent; box-shadow: inset 0 -2px 0 #70b6eb; }
html[data-theme="dark"] .logo, html[data-theme="dark"] .logo-text { color: #e8eef5; }
html[data-theme="dark"] .logo-mark { border-color: #3b536a; background: #1d2a38; }
html[data-theme="dark"] .theme-toggle { color: #d8e4ef; border-color: #3b536a; background: #1d2a38; }
html[data-theme="dark"] .theme-toggle:hover { color: #fff; border-color: #70b6eb; background: #253b50; }
html[data-theme="dark"] .flat-site-main { background: #101923; }
html[data-theme="dark"] .flat-breadcrumb, html[data-theme="dark"] .flat-announcement-bar, html[data-theme="dark"] .flat-news-card, html[data-theme="dark"] .flat-discord-widget, html[data-theme="dark"] .flat-widget-card, html[data-theme="dark"] .flat-server-card, html[data-theme="dark"] .flat-feature-item { border-color: #2c3e50; background: #182431; }
html[data-theme="dark"] .flat-breadcrumb, html[data-theme="dark"] .flat-breadcrumb a { color: #acb9c6; }
html[data-theme="dark"] .flat-breadcrumb a:hover, html[data-theme="dark"] .flat-section-heading > a { color: #9ecdf2; }
html[data-theme="dark"] .flat-breadcrumb span:first-of-type { color: #667789; }
html[data-theme="dark"] .flat-section-heading h2, html[data-theme="dark"] .flat-news-content h3, html[data-theme="dark"] .flat-widget-heading strong, html[data-theme="dark"] .flat-server-card h3 { color: #e6eef6; }
html[data-theme="dark"] .flat-news-meta, html[data-theme="dark"] .flat-kicker { color: #86bce7; }
html[data-theme="dark"] .flat-news-meta time, html[data-theme="dark"] .flat-news-content p, html[data-theme="dark"] .flat-announcement-bar span, html[data-theme="dark"] .flat-widget-heading span, html[data-theme="dark"] .flat-mini-table td, html[data-theme="dark"] .flat-server-card p, html[data-theme="dark"] .flat-feature-item span { color: #9aabba; }
html[data-theme="dark"] .flat-announcement-bar strong { color: #d9e7f3; }
html[data-theme="dark"] .flat-mini-table th { color: #7f92a4; }
html[data-theme="dark"] .flat-mini-table td { border-top-color: #293b4c; }
html[data-theme="dark"] .flat-server-icon { color: #9ecdf2; background: #20384d; }
html[data-theme="dark"] .flat-feature-item strong { color: #cddbe7; }
html[data-theme="dark"] .flat-discord-count strong { color: #edf5fc; }
html[data-theme="dark"] .flat-discord-count span, html[data-theme="dark"] .flat-discord-body > p, html[data-theme="dark"] .flat-widget-muted { color: #a8b8c6; }
html[data-theme="dark"] .flat-discord-widget, html[data-theme="dark"] .flat-widget-card { box-shadow: 0 10px 28px rgba(0,0,0,.22); }
html[data-theme="dark"] .flat-mini-table td { color: #b8c7d4; }
html[data-theme="dark"] .btn-primary { color: #071a2b; border-color: #8bc9f3; background: linear-gradient(135deg, #b7e4ff, #65afe4); }
html[data-theme="dark"] .btn-primary:hover { color: #04101a; border-color: #d5f1ff; background: linear-gradient(135deg, #d5f1ff, #8bc9f3); }
html[data-theme="dark"] .btn-secondary, html[data-theme="dark"] .btn-ghost, html[data-theme="dark"] button.btn-ghost { color: #c7d8e6; border-color: #446078; background: #203243; }
html[data-theme="dark"] .btn-secondary:hover, html[data-theme="dark"] .btn-ghost:hover, html[data-theme="dark"] button.btn-ghost:hover { color: #fff; border-color: #78b9e7; background: #2a455d; }
@media (max-width: 900px) {
  .flat-banner-side { min-width: 0; }
  .flat-banner-side small { font-size: 10px; }
  .flat-page-grid { grid-template-columns: 1fr; }
  .flat-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .flat-discord-widget { grid-column: span 2; }
  .flat-server-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .flat-home-banner { min-height: 215px; }
  .flat-home-banner-inner { min-height: 215px; }
  .flat-banner-side { gap: 7px; }
  .flat-banner-side small, .flat-banner-side strong { font-size: 8px; }
  .flat-banner-icon { width: 35px; height: 35px; font-size: 16px; }
  .flat-brand-orbit { width: 95px; height: 95px; padding: 18px; border-width: 3px; }
  .flat-navbar .nav-links a { padding: 10px 14px; }
  .flat-breadcrumb { margin-top: 17px; }
  .flat-news-card { grid-template-columns: 1fr; }
  .flat-news-image, .flat-news-image img { min-height: 150px; max-height: 190px; }
  .flat-sidebar { display: flex; }
  .flat-discord-widget { grid-column: auto; }
  .flat-features-section { grid-template-columns: 1fr; }
}


/* ===== Flat theme continuity for store and community pages ===== */
.store-shell { background: var(--flat-bg); }
.store-hero { background: linear-gradient(90deg, rgba(27,47,71,.83), rgba(28,79,126,.46)), url('/images/minecraft-hero.png') center / cover no-repeat; }
.store-hero::before { opacity: .06; }
.store-kicker, .eyebrow { color: #6b829b; }
.store-kicker { color: #e9f4ff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
.store-hero-copy h1 span { color: #bfe2ff; }
.store-hero .btn-primary { color: #0e477b; border-color: #c5e6ff; background: #c5e6ff; }
.store-hero .btn-primary:hover { color: #07365f; border-color: #e7f6ff; background: #e7f6ff; }
.store-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.10); }
.store-hero .btn-ghost:hover { color: #fff; background: rgba(255,255,255,.18); }
.store-category-card, .featured-product-card, .store-product-card, .store-help-banner, .store-empty { border-color: var(--flat-border); background: #fff; box-shadow: 0 2px 7px rgba(31,55,80,.04); }
.store-category-card:hover, .store-category-card.active, .featured-product-card:hover, .store-product-card:hover { color: var(--flat-blue); border-color: #a9c8e4; box-shadow: 0 8px 20px rgba(31,75,120,.10); }
.store-category-card.active { background: #f4f8fc; }
.store-category-card strong, .featured-product-copy strong, .product-card-content h3, .store-empty strong { color: #27384b; }
.store-category-card small, .featured-product-copy span, .product-desc, .store-category-note, .section-line, .store-result-count, .store-products-subtitle { color: #7d8b99; }
.store-category-card > i:last-child, .featured-arrow { color: #9aa9b8; }
.product-card-topline .product-badge { color: var(--flat-blue); background: #edf5fc; }
.store-help-banner { background: #eff6fc; }
.store-help-icon { background: var(--flat-blue); }
.store-help-banner strong { color: #27384b; }
.store-help-banner span { color: #7d8b99; }
.community-page, .dashboard, .product-detail-page { background: var(--flat-bg); }
.community-hero { background: linear-gradient(120deg, #203d60, #356eaa 68%, #65a5df); box-shadow: 0 12px 28px rgba(31,55,80,.12); }
.application-hero { background: linear-gradient(120deg, #28385e, #536fb1 68%, #8aaee2); }
.community-form-card, .community-list-card, .conversation-card, .application-review-card, .application-status-card { border-color: var(--flat-border); border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(31,55,80,.04); }
.community-card-head h2, .list-item-body strong { color: #27384b; }
.community-form label { color: #526172; }
.community-form input, .community-form select, .community-form textarea { color: #344658; border-color: #d8e1eb; background: #fbfcfe; border-radius: 6px; }
.community-form input:focus, .community-form select:focus, .community-form textarea:focus { border-color: #75a8d4; box-shadow: 0 0 0 3px rgba(72,137,194,.14); }
.community-list-item { color: #526172; border-color: #e0e7ef; background: #fbfcfe; border-radius: 6px; }
.community-list-item:hover { color: var(--flat-blue); border-color: #aac8e2; box-shadow: 0 6px 16px rgba(31,75,120,.08); }
html[data-theme="dark"] .store-shell, html[data-theme="dark"] .community-page, html[data-theme="dark"] .dashboard, html[data-theme="dark"] .product-detail-page { background: #101923; }
html[data-theme="dark"] .store-category-card, html[data-theme="dark"] .featured-product-card, html[data-theme="dark"] .store-product-card, html[data-theme="dark"] .store-help-banner, html[data-theme="dark"] .store-empty, html[data-theme="dark"] .community-form-card, html[data-theme="dark"] .community-list-card, html[data-theme="dark"] .conversation-card, html[data-theme="dark"] .application-review-card, html[data-theme="dark"] .application-status-card { border-color: #2c3e50; background: #182431; }
html[data-theme="dark"] .store-category-card:hover, html[data-theme="dark"] .store-category-card.active, html[data-theme="dark"] .featured-product-card:hover, html[data-theme="dark"] .store-product-card:hover { color: #bfe2ff; border-color: #5d8fbe; background: #203446; }
html[data-theme="dark"] .store-category-card strong, html[data-theme="dark"] .featured-product-copy strong, html[data-theme="dark"] .product-card-content h3, html[data-theme="dark"] .store-empty strong, html[data-theme="dark"] .community-card-head h2, html[data-theme="dark"] .list-item-body strong { color: #e6eef6; }
html[data-theme="dark"] .store-category-card small, html[data-theme="dark"] .featured-product-copy span, html[data-theme="dark"] .product-desc, html[data-theme="dark"] .store-category-note, html[data-theme="dark"] .section-line, html[data-theme="dark"] .store-result-count, html[data-theme="dark"] .store-products-subtitle, html[data-theme="dark"] .store-help-banner span { color: #9aabba; }
html[data-theme="dark"] .store-help-banner { background: #1b3043; }
html[data-theme="dark"] .community-form input, html[data-theme="dark"] .community-form select, html[data-theme="dark"] .community-form textarea { color: #e6eef6; border-color: #39536b; background: #162432; }
html[data-theme="dark"] .community-form label { color: #c7d8e6; }
html[data-theme="dark"] .community-list-item { color: #b8c7d4; border-color: #30475b; background: #162432; }


/* The supplied Flat reference uses the large centered banner logo as the only home brand mark. */
.flat-navbar .logo { display: none; }
.flat-navbar .nav-inner { justify-content: flex-start; }
.flat-navbar .nav-links { flex: 1; justify-content: flex-start; }
.flat-navbar .nav-links li:has(> a.btn-ghost) { margin-left: auto; }
@media (max-width: 768px) {
  .flat-navbar .nav-inner { justify-content: space-between; }
  .flat-navbar .nav-links { flex: initial; }
  .flat-navbar .nav-links li:has(> a.btn-ghost) { margin-left: 0; }
}


/* Keep the long flat homepage content in normal document flow so the footer cannot overlap it. */
.flat-site-main { flex: 0 0 auto; }


/* ===== Flat storefront replacement: no duplicate hero image ===== */
.store-flat-intro { display: flex; align-items: stretch; justify-content: space-between; gap: 24px; margin-top: 28px; padding: 28px 30px; border: 1px solid var(--flat-border); border-radius: 7px; background: #fff; box-shadow: 0 2px 7px rgba(31,55,80,.04); }
.store-flat-intro-copy { min-width: 0; max-width: 760px; }
.store-flat-intro-copy h1 { margin: 8px 0 8px; color: #27384b; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; }
.store-flat-intro-copy p { max-width: 690px; color: #71808f; font-size: 13px; line-height: 1.65; }
.store-flat-trust { display: flex; flex-wrap: wrap; gap: 15px; margin-top: 19px; color: #758697; font-size: 10px; }
.store-flat-trust span { display: inline-flex; align-items: center; gap: 6px; }
.store-flat-trust i { color: var(--flat-blue); }
.store-flat-intro-card { display: flex; flex-direction: column; justify-content: center; min-width: 190px; padding: 18px 20px; border-left: 1px solid #e6ebf1; }
.store-flat-intro-card > i { margin-bottom: 10px; color: var(--flat-blue); font-size: 25px; }
.store-flat-intro-card strong { color: #27384b; font-size: 22px; }
.store-flat-intro-card span { margin-top: 3px; color: #8996a3; font-size: 10px; line-height: 1.4; }
.store-flat-intro-card a { display: inline-flex; align-items: center; gap: 6px; margin-top: 15px; color: var(--flat-blue); font-size: 10px; font-weight: 800; }
.store-flat-intro-card a:hover { text-decoration: none; }
.store-shell .store-categories { padding-top: 35px; }
.store-shell .featured-store-section, .store-shell .store-products-section { padding-top: 42px; }
.store-shell .store-category-heading h2, .store-shell .section-line-head h2 { color: #27384b; font-size: 21px; }
.store-shell .store-category-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.store-shell .store-category-card { min-height: 82px; padding: 12px; border-radius: 7px; }
.store-shell .store-category-card strong { font-size: 11px; }
.store-shell .store-category-card small { font-size: 9px; }
.store-shell .category-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 7px; font-size: 15px; }
.store-shell .featured-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.store-shell .featured-product-card { border-radius: 7px; }
.store-shell .store-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.store-shell .store-product-card { min-height: 342px; border-radius: 7px; }
.store-shell .product-art { height: 132px; border-radius: 6px; }
.store-shell .store-help-banner { margin-top: 42px; border-radius: 7px; }
html[data-theme="dark"] .store-flat-intro, html[data-theme="dark"] .store-flat-intro-card { border-color: #2c3e50; background: #182431; }
html[data-theme="dark"] .store-flat-intro-copy h1, html[data-theme="dark"] .store-flat-intro-card strong, html[data-theme="dark"] .store-shell .store-category-heading h2, html[data-theme="dark"] .store-shell .section-line-head h2 { color: #e6eef6; }
html[data-theme="dark"] .store-flat-intro-copy p, html[data-theme="dark"] .store-flat-trust, html[data-theme="dark"] .store-flat-intro-card span { color: #9aabba; }
html[data-theme="dark"] .store-flat-intro-card { border-left-color: #2c3e50; }
@media (max-width: 1000px) {
  .store-shell .store-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .store-flat-intro { flex-direction: column; }
  .store-flat-intro-card { min-width: 0; border-top: 1px solid var(--flat-border); border-left: 0; }
  .store-shell .store-category-grid, .store-shell .featured-product-grid, .store-shell .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .store-shell .store-category-grid, .store-shell .featured-product-grid, .store-shell .store-product-grid { grid-template-columns: 1fr; }
}


/* Discord widget list layout */
.flat-discord-widget { display: flex; flex-direction: column; }
.flat-discord-heading { min-height: 76px; padding: 19px 17px; }
.flat-discord-heading > span { font-size: 11px; white-space: nowrap; }
.flat-discord-body { display: flex; flex-direction: column; padding: 0; }
.flat-discord-members { min-height: 210px; max-height: 326px; overflow-y: auto; padding: 12px 16px 10px; scrollbar-width: thin; scrollbar-color: #c4c9d9 transparent; }
.flat-discord-member { display: flex; align-items: center; gap: 7px; min-height: 31px; color: #75808e; font-size: 12px; }
.flat-discord-member img, .flat-discord-avatar { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%; object-fit: cover; color: #fff; background: linear-gradient(135deg, #7e8af4, #5c64cb); font-size: 9px; font-weight: 800; }
.flat-discord-member-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flat-discord-member small { overflow: hidden; margin-left: auto; max-width: 112px; color: #a9b0bb; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.flat-discord-empty { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 190px; padding: 20px; color: #929ba7; font-size: 11px; line-height: 1.5; text-align: center; }
.flat-discord-empty i { color: #6673e8; font-size: 18px; }
.flat-discord-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 49px; padding: 9px 16px; border-top: 1px solid #e6e9ee; color: #7b848e; background: #fff; font-size: 11px; }
.flat-discord-footer span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flat-discord-footer a { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; padding: 8px 13px; border: 1px solid #9298a4; border-radius: 5px; color: #5f6875; background: #fff; font-size: 11px; white-space: nowrap; }
.flat-discord-footer a:hover { border-color: #5967ef; color: #5967ef; text-decoration: none; }
html[data-theme="dark"] .flat-discord-members { scrollbar-color: #4d5d76 transparent; }
html[data-theme="dark"] .flat-discord-member { color: #a8b6c5; }
html[data-theme="dark"] .flat-discord-member small { color: #8392a3; }
html[data-theme="dark"] .flat-discord-empty { color: #9aaabd; }
html[data-theme="dark"] .flat-discord-footer { border-top-color: #324256; color: #aab6c4; background: #172332; }
html[data-theme="dark"] .flat-discord-footer a { border-color: #627189; color: #dbe6f1; background: #1d2b3c; }
html[data-theme="dark"] .flat-discord-footer a:hover { border-color: #8996ff; color: #aeb7ff; }
@media (max-width: 760px) {
  .flat-discord-members { max-height: 270px; }
  .flat-discord-footer { flex-wrap: wrap; }
  .flat-discord-footer a { flex: 0 0 auto; }
}

/* SouthNW dragon brand + official Discord widget embed */
.flat-brand-orbit img,
.logo-mark img { object-fit: contain; image-rendering: auto; }
.flat-brand-orbit img { padding: 7px; }
.flat-discord-embed-wrap { padding: 12px 14px 8px; background: #f7f8fb; }
.flat-discord-embed { display: block; width: 100%; height: 410px; min-height: 410px; border: 0; border-radius: 5px; background: #f1f3f8; }
.flat-discord-note { margin: 0; padding: 0 16px 10px; color: #8a94a4; font-size: 10px; line-height: 1.45; }
html[data-theme="dark"] .flat-discord-embed-wrap { background: #131d2a; }
html[data-theme="dark"] .flat-discord-embed { background: #1a2636; }
html[data-theme="dark"] .flat-discord-note { color: #91a0b3; }
@media (max-width: 760px) {
  .flat-discord-embed { height: 380px; min-height: 380px; }
}

/* Single network entry point */
.flat-join-section { margin-top: 34px; }
.flat-join-card { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--flat-border, #e5e8ee); border-radius: 9px; background: #fff; box-shadow: 0 7px 22px rgba(28, 42, 62, .04); }
.flat-join-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #5967ef, #7c63d9); font-size: 21px; }
.flat-join-card > div:nth-child(2) { min-width: 0; flex: 1; }
.flat-join-card h2 { margin: 2px 0 4px; color: #243043; font-size: 20px; }
.flat-join-card p { margin: 0; color: #778394; font-size: 12px; }
.flat-join-card .copy-ip { flex: 0 0 auto; }
html[data-theme="dark"] .flat-join-card { border-color: #2c3e50; background: #182431; }
html[data-theme="dark"] .flat-join-card h2 { color: #e6eef6; }
html[data-theme="dark"] .flat-join-card p { color: #9aabba; }
@media (max-width: 620px) {
  .flat-join-card { align-items: flex-start; flex-wrap: wrap; padding: 18px; }
  .flat-join-card .copy-ip { width: 100%; }
}
