/* ============================= */
/* GLOBAL PAGE BACKGROUND */
/* ============================= */

body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;

  background:
    radial-gradient(circle at top, rgba(255,255,255,0.9) 0%, rgba(238,244,255,0.95) 35%, rgba(223,233,247,1) 100%),
    linear-gradient(180deg,#f5f7fb 0%,#e6ecf5 100%);

  min-height:100vh;
}

.page-main{
  max-width:1200px;
  margin:0 auto;
  padding:40px 24px;
}
.page-inner{
  width:100%;
}
/* styles.css — MydEmpire Light Theme (Global)
   Use this for all pages (Home, FAQ, Economy, etc.)
*/
/* ============================= */
/* GLOBAL TOP NAVIGATION BAR */
/* ============================= */

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:110px;
  background:#334155;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
  box-shadow:0 6px 20px rgba(0,0,0,0.2);
  border-bottom:1px solid #475569;
}

.site-header-inner{
  width:100%;
  max-width:1000px;   /* reduced width */
  margin:auto;
  padding:0 20px;
}

.site-logo{
  height:100px;
}

.site-nav{
  display:flex;
  gap:22px;
}

.site-nav a{
  color:white;
  text-decoration:none;
  font-weight:700;
  font-size:20px;
  opacity:0.9;
}

.site-nav a:hover{
  opacity:1;
}

.page-main{
  padding-top:130px;
}

.site-nav a.active{
  color:#facc15;
  border-bottom:3px solid #facc15;
  padding-bottom:6px;
}
/* ============== */
/* Design Tokens  */
/* ============== */

:root {
  --bg-main: #f5f7fb;
  --bg-card: #ffffff;
  --bg-soft: #f9fafb;

  --border-soft: #e5e7eb;
  --border-strong: #d1d5db;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --accent-gold: #c9a227;
  --accent-gold-soft: #f7f2de;
  --accent-pill: #e5e7eb;

  --max-width: 960px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ============== */
/* Global Reset   */
/* ============== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--bg-main);
  color: var(--text-main);
}

/* ============== */
/* Layout Shell   */
/* ============== */

.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: 32px 16px 40px;
}

.page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============== */
/* Header         */
/* ============== */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 80px;
  height: 80px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 0, #fbbf24, #c0841a 55%, #854d0e);
  border: 1px solid #f9d977;
}

.brand-text-main {
  font-size: 20px;
  font-weight: 700;
}

.brand-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  text-decoration: none;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--bg-soft);
}

/* ============== */
/* Page Heading   */
/* ============== */

.page-title-wrap {
  margin-bottom: 24px;
}

.page-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.page-title {
  font-size: 32px;
  margin: 0 0 6px;
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
}

/* ============== */
/* Cards / Blocks */
/* ============== */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 22px 20px;
  margin-bottom: 22px;
}

/* ============== */
/* FAQ Styling    */
/* ============== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-question-title span:first-child {
  font-weight: 600;
  font-size: 16px;
}

.faq-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--accent-pill);
  color: var(--text-soft);
  background: #f9fafb;
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-soft);
  transform-origin: center;
  transition: transform 0.15s ease-out, color 0.15s ease-out;
}

details[open] .faq-chevron {
  transform: rotate(90deg);
  color: var(--text-muted);
}

.faq-body {
  padding: 0 14px 14px 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 18px;
  color: var(--text-main);
}

.faq-body p {
  margin: 10px 0;
}

.faq-body ul {
  margin: 8px 0 6px 20px;
  padding: 0;
}

/* ============== */
/* Economic Paper */
/* ============== */

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 8px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.subheading {
  font-size: 18px;
  margin: 18px 0 6px;
}

.text-muted {
  color: var(--text-muted);
}

.table-wrap {
  margin: 10px 0 16px;
  overflow-x: auto;
}

.mde-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.mde-table th,
.mde-table td {
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
}

.mde-table th {
  background: var(--accent-gold-soft);
}

/* ============== */
/* Footer         */
/* ============== */



/* ============== */
/* Responsive     */
/* ============== */

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-main {
    padding: 24px 12px 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .card {
    padding: 18px 14px;
  }
}
/* --------- Accent Enhancement --------- */

.page-title {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text-main);
}

.page-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  font-weight: 600;
}

/* Section Titles (Economic Paper) */
.section-title {
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 700;
  color: #1f2937;
  border-left: 4px solid var(--accent-gold);
  padding-left: 10px;
}

/* Subheadings */
.subheading {
  font-size: 18px;
  margin: 18px 0 6px;
  font-weight: 600;
  color: #374151;
}

/* Highlight important statements */
strong {
  color: #111827;
}

/* Gold soft background highlight */
.highlight-gold {
  background: var(--accent-gold-soft);
  padding: 2px 6px;
  border-radius: 6px;
}
/* styles.css — MydEmpire Light Theme (Shared) */

:root {
  --bg-main: #f5f7fb;
  --bg-card: #ffffff;
  --bg-soft: #f9fafb;

  --border-soft: #e5e7eb;
  --border-strong: #d1d5db;

  --text-main: #111827;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;

  --accent-gold: #c9a227;
  --accent-gold-soft: #f7f2de;
  --accent-pill: #e5e7eb;

  --max-width: 960px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Global Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont,
    'Roboto', 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  background: var(--bg-main);
  color: var(--text-main);
}

/* Layout */

.page-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
  padding: 32px 16px 40px;
}

.page-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-soft);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: radial-gradient(circle at 30% 0, #fbbf24, #c0841a 55%, #854d0e);
  border: 1px solid #f9d977;
}

.brand-text-main {
  font-size: 20px;
  font-weight: 700;
}

.brand-text-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--text-main);
  border-color: var(--border-soft);
  background: var(--bg-soft);
}

/* Page Titles */

.page-title-wrap {
  margin-bottom: 24px;
}

.page-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.page-title {
  font-size: 32px;
  margin: 0 0 8px;
  font-weight: 700;
  color: var(--text-main);
}

.page-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
}

/* Cards */

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 22px 20px;
  margin-bottom: 22px;
}

/* FAQ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: #ffffff;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-question-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-question-title span:first-child {
  font-weight: 600;
  font-size: 16px;
}

.faq-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--accent-pill);
  color: var(--text-soft);
  background: #f9fafb;
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-soft);
  transform-origin: center;
  transition: transform 0.15s ease-out, color 0.15s ease-out;
}

details[open] .faq-chevron {
  transform: rotate(90deg);
  color: var(--text-muted);
}

.faq-body {
  padding: 0 14px 14px 14px;
  border-top: 1px solid var(--border-soft);
  font-size: 16px;
  color: var(--text-main);
}

.faq-body p {
  margin: 10px 0;
}

.faq-body ul {
  margin: 8px 0 6px 20px;
  padding: 0;
}

/* Economic Paper Sections */

.section-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.section-title {
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 700;
  color: #1f2937;
  border-left: 4px solid var(--accent-gold);
  padding-left: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.subheading {
  font-size: 18px;
  margin: 18px 0 6px;
  font-weight: 600;
  color: #374151;
}

.text-muted {
  color: var(--text-muted);
}

/* Table */

.table-wrap {
  margin: 10px 0 16px;
  overflow-x: auto;
}

.mde-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.mde-table th,
.mde-table td {
  border: 1px solid var(--border-soft);
  padding: 8px 10px;
}

.mde-table th {
  background: var(--accent-gold-soft);
}

/* Highlight */

strong {
  color: #111827;
}

.highlight-gold {
  background: var(--accent-gold-soft);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Footer */



/* Responsive */

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-main {
    padding: 24px 12px 30px;
  }

  .page-title {
    font-size: 26px;
  }

  .card {
    padding: 18px 14px;
  }
}
/* Force FAQ answer text to match main body size */
.faq-body {
  font-size: 18px !important;
}


/* ============================= */
/* MYDEMPIRE NAV BAR OVERRIDE */
/* (Added to satisfy new UI requirements) */
/* ============================= */

.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  height:78px;
  background:#334155; /* new lighter slate color */
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
  box-shadow:0 8px 24px rgba(0,0,0,0.25);
}

.site-header-inner{
  width:100%;
  max-width:1250px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 28px;
}

/* Bigger Logo */
.site-logo{
  height:64px;
  width:auto;
}

/* Navigation layout */
.site-nav{
  display:flex;
  gap:32px;
}

/* Bigger Navigation Text */
.site-nav a{
  color:white;
  text-decoration:none;
  font-weight:700;
  font-size:22px;
  opacity:0.95;
  transition:all .2s ease;
}

/* Hover */
.site-nav a:hover{
  color:#facc15;
  opacity:1;
}

/* Active Page */
.site-nav a.active{
  color:#facc15;
  border-bottom:3px solid #facc15;
  padding-bottom:6px;
}

/* Prevent page hiding under fixed header */
.page-main{
  padding-top:110px;
}
:root{
  --bg:#ffffff;
  --ink:#0b1224;
  --muted: rgba(11,18,36,.70);
  --card:#ffffff;
  --border:#e6e9ef;
  --border2:#d7dce6;
  --shadow: 0 18px 60px rgba(15,23,42,0.10);
  --shadow2: 0 10px 24px rgba(15,23,42,0.08);
  --green:#16a34a;
  --radius:18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at 12% 14%, rgba(86, 104, 255, 0.16), transparent 20%),
    radial-gradient(circle at 86% 12%, rgba(39, 174, 196, 0.14), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(139, 92, 246, 0.13), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.10), transparent 18%),
    linear-gradient(135deg, #f6f8fc 0%, #edf2f9 42%, #f3f0fa 72%, #eef7f7 100%);
  background-attachment: fixed;
}
.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:16px 14px 60px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding:10px 2px 14px;
}
.navPills{ display:flex; gap:10px; flex-wrap:wrap; }
.pill{
  display:inline-flex;
  align-items:center;
  padding:9px 14px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid var(--border);
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  color:#0b1224;
}
.pill.dashboard{
  background:#eaf7ef;
  border-color:rgba(22,163,74,.25);
  font-weight:900;
}

.hero{
  border-radius:24px;
  overflow:hidden;
  border:1px solid var(--border);
  box-shadow:var(--shadow);
}
.heroImg{ width:100%; height:420px; object-fit:cover; display:block; }
.heroBelow{
  padding:16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}
.nameLogo{ height:62px; }
.tags{ display:flex; gap:10px; flex-wrap:wrap; }
.tag{
  padding:8px 12px;
  border-radius:999px;
  background:#f5f7fb;
  border:1px solid var(--border);
  font-size:13px;
  font-weight:800;
}

.mainGrid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:16px;
  margin-top:16px;
}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow2);
  padding:16px;
}
.hTitle{ margin:0; font-size:18px; font-weight:900; }
.hText{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.6;
}
.label{ font-size:12px; font-weight:800; margin-bottom:6px; }
.input{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  text-align:center;
}
.btn{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#f7fafc;
  cursor:pointer;
  font-weight:900;
}
.btnPrimary{
  background:linear-gradient(180deg,#22c55e,#16a34a);
  border-color:rgba(22,163,74,.35);
  color:white;
}
.buyGrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:12px;
}
.status{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px dashed var(--border2);
  text-align:center;
  font-weight:800;
}

.empire-path-card {
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(139,92,246,0.08), transparent 30%),
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #e5e7eb;
  border-radius:24px;
  padding:24px;
  box-shadow:0 14px 34px rgba(15,23,42,0.08);
  margin-top:20px;
}
.empire-path-head { margin-bottom: 18px; }
.empire-path-eyebrow{
  display:inline-block;
  font-size:11px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#2563eb;
  background:#eff6ff;
  padding:4px 10px;
  border-radius:999px;
  margin-bottom:10px;
}
.empire-path-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.empire-path-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
  max-width: 760px;
}
.empire-path-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 20px;
  position: relative;
}
.empire-path-grid::before {
  content: "";
  position: absolute;
  top: 70px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: linear-gradient(90deg,#22c55e,#f59e0b,#3b82f6,#8b5cf6,#ef4444);
  opacity: 0.25;
  z-index: 0;
}
.empire-path-step {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px 16px;
  position: relative;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  word-wrap: break-word;
  overflow-wrap: break-word;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  z-index: 1;
}
.empire-path-step:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}
.empire-path-step:nth-child(1) { border-top: 4px solid #22c55e; background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%); }
.empire-path-step:nth-child(2) { border-top: 4px solid #f59e0b; background: linear-gradient(180deg, #ffffff 0%, #fffbeb 100%); }
.empire-path-step:nth-child(3) { border-top: 4px solid #3b82f6; background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%); }
.empire-path-step:nth-child(4) { border-top: 4px solid #8b5cf6; background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%); }
.empire-path-step:nth-child(5) { border-top: 4px solid #ef4444; background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%); }
.empire-step-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
}
.empire-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.empire-path-step:nth-child(1) .empire-step-icon { background:#22c55e; }
.empire-path-step:nth-child(2) .empire-step-icon { background:#f59e0b; }
.empire-path-step:nth-child(3) .empire-step-icon { background:#3b82f6; }
.empire-path-step:nth-child(4) .empire-step-icon { background:#8b5cf6; }
.empire-path-step:nth-child(5) .empire-step-icon { background:#ef4444; }
.empire-step-title { font-size: 16px; font-weight: 800; color: #111827; margin-bottom: 8px; }
.empire-step-text { font-size: 13px; line-height: 1.6; color: #64748b; }
.empire-path-footer { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.empire-path-highlight {
  font-size:14px;
  font-weight:700;
  color:#7c3aed;
  background:#f3e8ff;
  padding:10px 14px;
  border-radius:12px;
  display:inline-block;
  box-shadow:0 6px 14px rgba(124,58,237,0.12);
}
.empire-path-note { font-size: 13px; color: #64748b; margin-top: 8px; font-style: italic; }

.inside-pack-mini{
  margin-top:18px;
  padding:16px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border:1px solid #e5e7eb;
  border-radius:18px;
}
.inside-pack-mini-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:12px;
}
.inside-pack-mini-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
}
.inside-pack-mini-item{
  text-align:center;
  padding:12px 8px;
  border-radius:14px;
  background:#ffffff;
  border:1px solid #e5e7eb;
}
.inside-pack-mini-item.land{ border-top:3px solid #22c55e; }
.inside-pack-mini-item.blueprint{ border-top:3px solid #3b82f6; }
.inside-pack-mini-item.emp{ border-top:3px solid #f59e0b; }
.inside-pack-mini-item.relic{ border-top:3px solid #8b5cf6; }
.inside-pack-mini-icon{ font-size:22px; margin-bottom:6px; }
.inside-pack-mini-name{ font-size:13px; font-weight:800; color:#111827; }
.inside-pack-mini-note{ margin-top:12px; font-size:12px; line-height:1.5; color:#64748b; }

.factorySection{ margin-top:24px; }
.industry-showcase{ margin: 8px 0 26px; }
.industry-slider-wrap{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.industry-slider{
  width:min(760px, 92vw);
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}
.industry-slide{
  display:none;
  background:transparent;
  border:1px solid var(--border);
  border-radius:20px;
  padding:14px;
  text-align:center;
  box-shadow:var(--shadow2);
}
.industry-slide.active{ display:block; }
.industry-slide-img{ width:100%; height:165px; object-fit:contain; display:block; margin:0 auto 10px; }
.industry-label{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-weight:900;
  font-size:20px;
  color:#111827;
}
.industry-name-text{ font-weight:900; color:#111827; }
.pharma-rx{ color:#dc2626; font-weight:900; font-size:22px; line-height:1; font-family:Arial, Helvetica, sans-serif; }
.slider-btn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid #d1d5db;
  background:#ffffff;
  color:#111827;
  font-size:26px;
  line-height:1;
  cursor:pointer;
  flex-shrink:0;
}
.slider-btn:hover{ background:#f9fafb; }

.site-footer{ margin-top:22px; }
.footer-brand-center{
  width:100%;
  display:flex;
  background: transparent;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:14px;
}
.footer-logo-center{ width:110px; height:auto; display:block; margin:0 auto; }
.footer-socials{ display:flex; align-items:center; justify-content:center; gap:22px; }
.footer-social-icon{ width:34px; height:34px; object-fit:contain; display:block; }
.foot{ margin-top:4px; text-align:center; font-size:12px; color:#6b7280; }

@media (max-width: 1080px) {
  .empire-path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mainGrid{ grid-template-columns:1fr; }
}
@media (max-width: 640px) {
  .heroImg{ height:260px; }
  .nameLogo{ height:48px; }
  .buyGrid{ grid-template-columns:1fr; }
  .inside-pack-mini-grid{ grid-template-columns:repeat(2,1fr); }
  .industry-slider{ grid-template-columns:1fr; }
  .empire-path-card { padding: 18px; }
  .empire-path-title { font-size: 22px; }
  .empire-path-grid { grid-template-columns: 1fr; }
  .empire-path-grid::before{ display:none; }
}
  .social-icons img{
  width:32px;
  height:32px;
  transition:transform .2s ease, filter .2s ease;
  cursor:pointer;
}

.social-icons img:hover{
  transform:scale(1.18);
  filter:brightness(1.2);
}
 .founder-box{
  margin-top:16px;
  padding:16px;
  border-radius:16px;
  border:1px solid #e5e7eb;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
}

.founder-box h4{
  margin:0 0 10px;
  font-size:14px;
  font-weight:800;
  color:#0f172a;
}

.founder-item{
  font-size:13px;
  line-height:1.5;
  color:#475569;
  margin-bottom:6px;
}

.founder-item:last-child{
  margin-bottom:0;
}

.footer-social-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease;
}

.footer-social-icon{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
  transition:transform .2s ease, filter .2s ease, opacity .2s ease;
}

.footer-social-link:hover .footer-social-icon{
  transform:translateY(-3px) scale(1.12);
  filter:brightness(1.15);
  opacity:0.95;
}
.footer-social-icon{
  width:32px;
  height:32px;
  margin:0 10px;
  transition: transform 0.25s ease, filter 0.25s ease;
  cursor:pointer;
}

.footer-social-icon:hover{
  transform:translateY(-4px) scale(1.15);
  filter:brightness(1.2);
}
/* ===== UNIVERSAL FIXED TOP BAR ===== */
:root{
  --appbar-bg:#334155;
  --appbar-border:#1e293b;
  --appbar-text:#e5eefc;
  --appbar-text-dim:#c7d2fe;
  --appbar-active:#ffffff;
  --appbar-active-bg:rgba(255,255,255,0.10);
  --appbar-hover:rgba(255,255,255,0.07);
  --appbar-height:86px;
}

body{
  padding-top: var(--appbar-height);
}

.appbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 96px;
  z-index: 1000;
  background: #334155;
  border-bottom: 1px solid #475569;
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.18);
}

.appbar-inner{
  max-width: 1000px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.appbar-left{
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.appbar-logo{
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.appbar-logo img{
  height: 84px;
  width: auto;
  display: block;
  object-fit: contain;
}

.appbar-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.appbar-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--appbar-text);
  text-decoration: none;
  font-size:16px;
  font-weight: 700;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.appbar-link:hover{
  background: var(--appbar-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.appbar-link.active{
  background: var(--appbar-active-bg);
  color: var(--appbar-active);
}
/* 🔐 AUTH PROTECTED NAV LINKS FIX */
.appbar-link.auth-only {
  display: none !important;
}

.appbar-link.auth-only.show-auth-link {
  display: inline-flex !important;
}

.appbar-right{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.appbar-login-btn,
.appbar-account-btn{
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size:18px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}

.appbar-login-btn:hover,
.appbar-account-btn:hover{
  background: rgba(255,255,255,0.14);
  transform: translateY(-1px);
}

.appbar-account-wrap{
  position: relative;
}

.appbar-dropdown{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  padding: 8px;
  display: none;
  z-index: 99999;
}
.appbar-account-wrap{
  position: relative;
  z-index: 99999;
}
.appbar-dropdown.open{
  display: block;
}

.appbar-dropdown-head{
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 1px solid #eef2f7;
  margin-bottom: 6px;
}

.appbar-dropdown-link{
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #334155;
  text-decoration: none;
  font-size:18px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
}

.appbar-dropdown-link:hover{
  background: #f8fafc;
  color: #0f172a;
}

@media (max-width: 980px){
  .appbar-inner{
    padding: 0 12px;
    gap: 10px;
  }

  .appbar-nav{
    gap: 4px;
  }

  .appbar-link{
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }

  .appbar-logo img{
    height: 36px;
  }
}
.appbar{
  transition: transform 0.25s ease;
}

.appbar-hidden{
  transform: translateY(-100%);
}
.account-menu{
position:relative;
margin-left:auto;
font-weight:600;
cursor:pointer;
}

.account-name{
padding:8px 14px;
background:#f1f5f9;
border-radius:8px;
border:1px solid #e2e8f0;
}

.account-dropdown{
display:none;
position:absolute;
right:0;
top:40px;
background:white;
border:1px solid #e2e8f0;
border-radius:8px;
box-shadow:0 6px 16px rgba(0,0,0,0.1);
min-width:200px;
}

.account-dropdown a{
display:block;
padding:10px 14px;
text-decoration:none;
color:#333;
}

.account-dropdown a:hover{
background:#f3f4f6;
}

.account-menu:hover .account-dropdown{
display:block;
}
.site-header{
  background:#334155 !important;
}

.brand-logo{
  width:90px !important;
  height:90px !important;
}

.site-nav a{
  font-size:20px !important;
}

/*====================*/
PLAYER DASHBOARD
/*====================*/

/* ===== MYDEMPIRE GLOBAL THEME ===== */

:root {
  --bg-page: #f4f6fb;
  --bg-card: #ffffff;
  --border-soft: #e4e7ec;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent-blue: #4f7cff;
  --accent-blue-soft: #eaf0ff;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6fb;
  color: var(--text-main);
  font-size: 15px;
}
.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  background: transparent;
}
.section {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  box-shadow: 0 10px 24px rgba(0,0,0,0.04);
}
.card,
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}

.primary-button,
button {
  background: var(--accent-blue-soft);
  border: 1px solid #b9ccff;
  color: #2446a6;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
}

.primary-button:hover {
  background: #dbe7ff;
}

/* ===== your existing CSS continues below ===== */


  /* ===== SLOT BAR (clean, non-decorative) ===== */

.land-surface{
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top: 52px;     /* space under badge */
  padding-bottom: 22px;  /* space above strip */
}

.slot-bar{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
}

.slot-pill{
  width: 50px;
  height: 50px;
  border-radius: 14px;
  border: 2px solid rgba(200,155,99,0.95);
  background: #eee7dc;
  box-shadow: 0 6px 12px rgba(0,0,0,0.10);
}

/* filled slots = darker / more "owned" */
.slot-pill.filled{
  background: rgba(0,0,0,0.10);
}

/* optional: subtle dotted pattern for empty */
.slot-pill.empty{
  background: #eee7dc;
}  
.land-strip{
  padding: 10px 14px 12px;
}

.land-strip-row{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.land-strip-matrix{
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.95;
}

.land-strip b{
  color: #fff;
}

/* ===== LAND NFT (SCRATCH / CLEAN) ===== */


   
   /* ==== Land NFT – refined full-frame 3:4 card ==== */

.land-nft{
  /* keep everything you already have */
  background: linear-gradient(180deg,#f8fafc 0%, #eef2f7 50%, #e2e8f0 100%);
}

.land-nft-shell{
  position: relative;
  overflow: hidden;   /* prevents any text peeking behind */
}


/* subtle glow inside (not a border) */
.land-nft::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 50% 18%, rgba(255,255,255,0.70) 0%, rgba(255,255,255,0) 55%);
  pointer-events:none;
}

.land-badge{
  position:absolute;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  width:58px;
  height:58px;
  border-radius:50%;
  background: var(--tier-color, #64748b);
  color:#fff;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  border:4px solid #fff;
  box-shadow:0 8px 16px rgba(0,0,0,0.22);
}

.land-stage{
  position:absolute;
  left:22px;
  right:22px;
  top:125px;
  bottom: 110px;                /* ✅ must be bigger than strip height */
  border-radius:14px;
  background:
    linear-gradient(rgba(203,213,225,0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(203,213,225,0.55) 1px, transparent 1px);
  background-size:26px 26px;
}
.land-slot{
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 3px solid #c89f6a;
  background: rgba(200,159,106,0.10);

  position: absolute;
  top: 58%;
  transform: translate(-50%, -50%);

  box-shadow: 0 10px 18px rgba(15,23,42,0.12);
}

/* single slot */
.land-slot.center{
  left: 50%;
  transform: translate(-50%, -50%);
}

/* left slot */
.land-slot.left{
  left: 28%;
}

/* right slot */
.land-slot.right{
  left: 72%;
}
.land-slot{
  box-shadow:
    0 10px 18px rgba(15,23,42,0.12),
    inset 0 2px 6px rgba(255,255,255,0.4);
}
/* ===== LAND NFT CARDS (GENESIS) ===== */

.land-card {
  position: relative;
  border-radius: 26px;

  /* ✅ Tier border (set by JS via --tier-border) */
  border: 6px solid var(--tier-border, #d1d5db);

  background: radial-gradient(circle at top, #f8fafc 0%, #e2e8f0 60%, #cbd5e1 100%);
  aspect-ratio: 3 / 4;   /* 🔥 3:4 ratio */
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Tier badge (L1 / L2 / L3) */
.land-badge {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #ffffff;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}

/* Industrial grid surface */
.land-surface{
  height: calc(100% - 92px);   /* keep space for strip */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
/* Slot markers (light brown outlined pads) */
.land-slot{
  width: 96px;
  height: 96px;
  border-radius: 16px;
  border: 3px solid #c89f6a;
  background: rgba(200,159,106,0.10);

  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);

  box-shadow: 0 10px 18px rgba(15,23,42,0.12);
}

.land-slot.left  { left: 30%; }
.land-slot.center{ left: 50%; }
.land-slot.right { left: 70%; }

/* positions */
.land-slot.left  { left: 30%; }
.land-slot.center{ left: 50%; }
.land-slot.right { left: 70%; }
/* Center + spacing for slots */
.land-slot.center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.land-slot.left {
  top: 50%;
  left: 32%;
  transform: translate(-50%, -50%);
}

.land-slot.right {
  top: 50%;
  left: 68%;
  transform: translate(-50%, -50%);
}

/* Bottom strip */
.land-strip{
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  height:92px;

  background: var(--tier-color, #64748b);
  color:#fff;

  padding:14px 16px;
  font-size:13px;
  font-weight:700;

  letter-spacing:0.03em;

  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;

  z-index:5; /* keeps strip above surface */
}

/* ===== MINI BLUEPRINT CARDS (DASHBOARD FINAL) ===== */

.blueprint-card{
  display:flex;
}

.bp-mini-card{
  position:relative;
  width:100%;
  min-height:310px;
  border-radius:18px;

  border:4px solid var(--bp-border, #d1d5db);

  background:var(--bp-bg, #f8fafc);

  padding:0;              /* 👈 ADD THIS (important) */

  overflow:hidden;

  box-shadow:none;        /* 👈 REMOVE shadow (causes extra edge) */
}

.bp-mini-badge{
  position:absolute;
  top:10px;
  left:50%;
  transform:translateX(-50%);
  width:46px;
  height:46px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:13px;
  background:var(--bp-border, #22c55e);
  color:#ffffff;
  border:2px solid #ffffff;
  box-shadow:0 4px 10px rgba(0,0,0,0.16);
  z-index:3;
}

.bp-mini-building{
  flex:1;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:82px 14px 84px;
  filter:drop-shadow(0 10px 18px rgba(15,23,42,0.28));
}

.bp-mini-building img{
  width:100%;
  max-width:240px;
  height:auto;
  display:block;
}

.bp-mini-strip{
  position:absolute;
  left:8px;
  right:8px;
  bottom:8px;
  min-height:54px;
  padding:8px 10px;
  background: hotpink !important;
  border-radius:12px;
  color:#ffffff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
}

.bp-mini-row{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
}

.bp-mini-label{
  font-size:10px;
  font-weight:600;
  opacity:0.75;
}

.bp-mini-value{
  font-size:10px;
  font-weight:800;
  text-align:right;
  color:#ffffff;
}

@media (max-width: 768px){
  .bp-mini-card{
    min-height:360px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  }

  .bp-mini-building{
    padding:76px 12px 78px;
  }

  .bp-mini-building img{
    max-width:200px;
  }
}
/* ===== Blueprint collection visuals ===== */

.blueprint-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.blueprint-visual {
  border-radius: 12px;
  padding: 4px;
  background: #f9fafb;
  border: 2px solid #e5e7eb; /* will be overwritten with inline color */
  overflow: hidden;
}

.blueprint-visual img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

    /* ===== BLUEPRINT NFT PREVIEW (LOCKED DESIGN) ===== */

:root {
  --bg-page: #f4f6fb;
  --bg-card: #ffffff;
  --bg-section: #ffffff;
  --border-soft: #e4e7ec;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent-blue: #4f7cff;
  --accent-gold: #fbbf24;
  --accent-green: #16a34a;
  --accent-red: #ef4444;

  --b1-color: #22c55e;   /* green */
  --b2-color: #1565c0; /* Deep Blue */
  --b3-color: #7e57c2; /* Purple */
  --b4-color: #ff8f00; /* Orange */
  --b5-color: #ffca28; /* Gold */
  --bp-accent: var(--b1-color);
}
.bp-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.bp-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 380px;         /* 🔹 enough height so card is not "half" */
  border-radius: 20px;
  border: 8px solid var(--bp-accent);
  background: color-mix(in srgb, var(--bp-accent) 10%, #ffffff 90%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

/* Top circle badge (B1/B4 etc.) */
.bp-badge {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bp-accent);
  border: 4px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 20px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

/* Factory building art */
.bp-building {
  position: absolute;
  left: 50%;
  bottom: 90px;      /* 🔹 push up so strip fits below */
  transform: translateX(-50%);
  width: 110%;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.bp-building img {
  width: 100%;
  height: auto;
  display: block;
}

/* Bottom matrix strip */
.bp-matrix-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 14px 10px;
  background: #050b14;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #ffffff;
}

.bp-matrix-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.bp-matrix-label {
  opacity: 0.8;
  font-weight: 600;
  font-size: 11px;
}

.bp-matrix-value {
  color: var(--bp-accent);
  font-weight: 900;
  font-size: 13px;
  text-align: right;
}

.bp-matrix-formula {
  color: var(--bp-accent);
  font-weight: 800;
  font-size: 12px;
  text-align: right;
  white-space: nowrap;
}

/* Buttons row under card */
.bp-controls {
  display: flex;
  gap: 6px;
  font-size: 12px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.bp-controls button {
  border-radius: 999px;
  border: 1px solid #d1d5db;
  padding: 4px 10px;
  cursor: pointer;
  background: #ffffff;
  color: #374151;
  font-size: 12px;
}

.bp-controls button.active {
  border-color: var(--bp-accent);
  box-shadow: 0 0 8px color-mix(in srgb, var(--bp-accent) 50%, transparent);
}

@media (max-width: 700px) {
  .bp-card {
    height: 340px;
  }
}

    .blueprint-card.selected {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
}



    :root {
  --bg-page: #f4f6fb;
  --bg-card: #ffffff;
  --bg-section: #ffffff;
  --border-soft: #e4e7ec;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --accent-blue: #4f7cff;
  --accent-gold: #fbbf24;
  --accent-green: #16a34a;
  --accent-red: #ef4444;
}

    * { box-sizing: border-box; }

    body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  font-size: 15px;
}

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background:
        radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.16), transparent 22%),
        radial-gradient(circle at 88% 10%, rgba(251, 191, 36, 0.16), transparent 20%),
        radial-gradient(circle at 50% 100%, rgba(16, 185, 129, 0.08), transparent 26%);
      z-index: 0;
    }

   body {
  background: #f4f6fb !important;
}

    h1, h2, h3 {
      margin: 0 0 8px;
      font-weight: 600;
      color: var(--text-main);
    }

    h1 { font-size: 26px; }
    h2 { margin-top: 24px; margin-bottom: 12px; font-size: 20px; }

    a { color: inherit; text-decoration: none; }

    /* ===== TOP NAV (common) ===== */
    .top-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      margin-bottom: 16px;
      border-radius: 999px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
      box-shadow: 0 4px 16px rgba(148, 163, 184, 0.25);
    }

    .top-nav-left {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 600;
      font-size: 15px;
      color: #111827;
    }

    .top-nav-logo-dot {
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #2563eb, #22c55e);
    }

    .top-nav-right {
      display: flex;
      gap: 10px;
      font-size: 14px;
      flex-wrap: wrap;
    }

    .top-nav-link {
      padding: 6px 12px;
      border-radius: 999px;
      color: #4b5563;
    }

    .top-nav-link-active {
      background: #e0ecff;
      color: #1d4ed8;
      font-weight: 500;
    }

    .top-nav-link:hover {
      background: #f3f4ff;
    }

    /* ===== HEADER ===== */
    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 12px;
      padding: 14px 18px;
      border-radius: 16px;
      background: linear-gradient(135deg, #ffffff, #f9fafb);
      border: 1px solid var(--border-soft);
      box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
    }

    .header-title {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }

    .header-title span {
      font-size: 13px;
      color: var(--text-muted);
    }

    .header-title h1 { font-size: 26px; }

    .header-subline {
      font-size: 14px;
      color: var(--text-muted);
    }

    .header-right {
      text-align: right;
      font-size: 13px;
      color: var(--text-muted);
    }

    .pill {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      background: #eef2ff;
      border: 1px solid #e0e7ff;
      color: #4338ca;
      margin-bottom: 6px;
      font-weight: 500;
    }

    /* ===== SUB NAV (tabs) ===== */
    .subnav {
      margin-top: 10px;
      margin-bottom: 8px;
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .subnav-btn {
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      padding: 6px 12px;
      font-size: 13px;
      color: #4b5563;
      cursor: pointer;
    }

    .subnav-btn-active {
      border-color: #2563eb;
      background: #e0ecff;
      color: #1d4ed8;
      font-weight: 500;
    }

    .subnav-btn:hover {
      background: #f3f4ff;
    }

    /* ===== Sections ===== */
    .section {
      margin-top: 12px;
      padding: 16px 16px 16px;
      border-radius: 16px;
      background: #ffffff;
      border: 1px solid var(--border-soft);
      box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
    }

    .section-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 14px;
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
}

.section-header small {
  color: var(--text-muted);
  font-size: 13px;
}

    .tab-panel { display: none; }
    .tab-panel-active { display: block; }

    /* ===== OVERVIEW STRUCTURE ===== */
.overview-block {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.65);
  border: 1px solid var(--border-soft);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.overview-block-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.overview-block-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.overview-link-row {
  margin-top: 14px;
}

/* ===== GRIDS ===== */
.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.summary-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--border-soft);

  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 165px;

  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

.action-card {
  background: #fffaf3;
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-emoji {
  font-size: 18px;
}

.summary-value {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-main);
}

.summary-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.summary-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ===== BUTTONS ===== */
.primary-button {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
  color: #1e3a8a;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.primary-button:hover {
  background: #bfdbfe;
}

.secondary-button {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.secondary-button:hover {
  background: #f8fafc;
}

.primary-select {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 8px 12px;
  font-size: 14px;
}

/* ===== EMP BUY ===== */
.emp-buy-box {
  margin-top: 6px;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emp-buy-status,
.status-text {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
}

/* ===== EMPIRE PREVIEW ===== */
.empire-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 56px);
  gap: 12px;
  justify-content: start;
  margin-top: 10px;
}

.empire-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  border: 2px solid rgba(0,0,0,0.06);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
  position: relative;
}

.empire-tile small {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.85;
}

/* ===== Empire Preview polish ===== */

.empire-tile {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.empire-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
}

.empire-tile-label {
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.empire-tile-meta {
  font-size: 13px;
  line-height: 1;
  color: rgba(15, 23, 42, 0.72);
  font-weight: 700;
}

.empire-tile-alert {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.28);
}

.empire-tile.l1 {
  background: #dcfce7;
  color: #166534;
}

.empire-tile.l2 {
  background: #fef3c7;
  color: #92400e;
}

.empire-tile.l3 {
  background: #fee2e2;
  color: #b91c1c;
}

.empire-tile.needs-action::after {
  content: "!";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .snapshot-grid,
  .action-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 700px) {
  .snapshot-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .empire-preview-grid {
    grid-template-columns: repeat(4, 56px);
  }
}
    /* ===== OVERVIEW GRID (clean aligned layout) ===== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

.summary-card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(15,23,42,0.05);

  padding: 20px;
  min-height: 210px;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;

  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15,23,42,0.08);
}

.summary-card.emp-card {
  grid-column: span 1;
  min-height: 240px;
}

.summary-card.pack-card {
  grid-column: span 2;
  min-height: 170px;
}

.summary-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.1;
}

.summary-sub {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.summary-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

/* ===== BUY EMP inner box ===== */
.emp-buy-box {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.emp-buy-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.emp-buy-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.emp-buy-status {
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
}

/* make select and buttons look aligned */
.primary-select,
.primary-button {
  min-height: 40px;
}

.primary-select {
  width: 100%;
}

/* responsive */
@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .summary-card.pack-card {
    grid-column: span 2;
  }
}

@media (max-width: 700px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

  .summary-card.pack-card {
    grid-column: span 1;
  }
}
    .summary-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .summary-emoji { font-size: 16px; }

    .summary-value {
      font-size: 24px;
      font-weight: 600;
      color: var(--text-main);
    }

    .summary-sub {
      font-size: 13px;
      color: var(--text-muted);
    }

    .primary-button {
      padding: 7px 14px;
      border-radius: 999px;
      border: 1px solid var(--accent-blue);
      background: #dbeafe;
      color: #1e3a8a;
      font-size: 13px;
      cursor: pointer;
      font-weight: 500;
    }

    .primary-button:hover { background: #bfdbfe; }

    .summary-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-top: 6px;
      gap: 4px;
    }

    /* ===== Land grid (Lands tab) ===== */
    .land-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-top: 6px;
    }

    .tier-l1 {
      background: linear-gradient(135deg, #bbf7d0, #22c55e);
    }
    .tier-l2 {
      background: linear-gradient(135deg, #fef3c7, #fbbf24);
    }
    .tier-l3 {
      background: linear-gradient(135deg, #fecaca, #ef4444);
    }

    .land-header-line {
      height: 3px;
      border-radius: 999px;
      margin-bottom: 8px;
    }

    .land-line-l1 { background: linear-gradient(90deg,#22c55e,#a3e635); }
    .land-line-l2 { background: linear-gradient(90deg,#fbbf24,#f97316); }
    .land-line-l3 { background: linear-gradient(90deg,#ef4444,#f97373); }

    .land-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 4px;
    }

    .land-name {
      font-weight: 600;
      font-size: 14px;
    }

    .land-meta {
      font-size: 12px;
      color: var(--text-muted);
    }

    .land-tags {
      display: flex;
      gap: 6px;
      margin-top: 4px;
      flex-wrap: wrap;
    }

    .tag {
      font-size: 11px;
      text-transform: uppercase;
      border-radius: 999px;
      padding: 3px 9px;
      border: 1px solid #e5e7eb;
      color: var(--text-muted);
      background: #ffffff;
    }

    .tag-l1 { border-color: var(--accent-green); color:#166534; background:#dcfce7; }
    .tag-l2 { border-color: var(--accent-gold);  color:#92400e; background:#fef3c7; }
    .tag-l3 { border-color: var(--accent-red);   color:#b91c1c; background:#fee2e2; }

    .factories-list {
      margin-top: 6px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .factory-row {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      font-size: 13px;
      padding: 6px 8px;
      border-radius: 10px;
      background: #ffffff;
      border: 1px solid #e5e7eb;
    }

    .factory-main {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .factory-title { font-weight: 500; }

    .factory-sub {
      font-size: 12px;
      color: var(--text-muted);
    }

    .factory-meta {
      text-align: right;
      font-size: 12px;
      color: var(--text-muted);
    }

    .factory-status-pill {
      display: inline-block;
      padding: 2px 6px;
      border-radius: 999px;
      font-size: 11px;
      border: 1px solid #e5e7eb;
      margin-left: 4px;
    }

    .status-active {
      border-color: #22c55e;
      background: #dcfce7;
      color: #166534;
    }

    .status-upgrading {
      border-color: #f97316;
      background: #ffedd5;
      color: #9a3412;
    }

    .status-inactive {
      border-color: #9ca3af;
      background: #f3f4f6;
      color: #4b5563;
    }

    /* ===== Factory grid for Factories tab ===== */
    .factory-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 10px;
      margin-top: 6px;
    }

    .factory-card{
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

    .factory-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 13px;
    }

    .factory-card-title { font-weight: 500; }
    .factory-card-meta { font-size: 12px; color: var(--text-muted); }

    /* Text helpers */
    .status-text { font-size: 12px; color: var(--text-muted); }
    .status-error { font-size: 13px; color: var(--accent-red); margin-top: 4px; }

    .footer {
      margin-top: 24px;
      font-size: 11px;
      color: var(--text-muted);
      text-align: center;
    }

    @media (max-width: 700px) {
      .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        border-radius: 16px;
      }
      .top-nav-right { flex-wrap: wrap; }
      .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
      }
      .header-right { text-align: left; }
    }

    /* DEBUG: if any overlay blocks clicks */
    .page::before,
    .page::after,
    .section::before,
    .section::after,
    .tab-panel::before,
    .tab-panel::after {
      pointer-events: none !important;
    }

    /* =========================================================
       LAND ROW LAYOUT (CLEAN)
       ========================================================= */
   .land-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

   .land-card-row {
  border: 3px solid var(--tier-border, #64748b);
  border-radius: 18px;
  background: #ffffff;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  min-width: 0;
}


    @media (max-width: 980px){
      .land-grid{
        grid-template-columns: 1fr !important;
      }
    }

    .land-left{
      display:flex;
      flex-direction:column;
      gap:10px;
    }

    .land-badge-row{
      display:inline-flex;
      align-items:center;
      justify-content:center;
      width:48px;
      height:28px;
      border-radius: 999px;
      color:#fff;
      font-weight:900;
      font-size:13px;
    }

    .land-title-row{
      font-weight: 900;
      font-size: 18px;
      color:#0b1224;
    }

    .land-sub-row{
      font-weight: 800;
      color: rgba(11,18,36,0.70);
      font-size: 13px;
    }

    .slot-bar-row{
      display:flex;
      gap:10px;
      align-items:center;
      flex-wrap:wrap;
    }

    .slot-pill{
      width:46px;
      height:46px;
      border-radius:14px;
      border:2px solid rgba(200,155,99,0.95);
      background:#eee7dc;
      box-shadow: 0 6px 12px rgba(0,0,0,0.10);
    }

    .slot-pill.filled{
      background: rgba(0,0,0,0.12);
    }

    .land-matrix-row {
  background: #f8fafc;

  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 10px 12px;
}

    .land-matrix-row b{
      font-weight: 900;
    }

    .matrix-line{
      line-height:1.25;
    }

    .land-factories-col{
      background: rgba(0,0,0,0.02);
      border: 1px solid rgba(0,0,0,0.06);
      border-radius: 14px;
      padding: 10px;
    }

  .pack-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.pack-modal.hidden {
  display: none;
}

.pack-modal-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.pack-modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 14px;
  color: #111827;
}

.pack-modal-message {
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  white-space: pre-line;
  margin-bottom: 18px;
}
/* ===== LAND CARD DECORATION ===== */

.land-card-row,
.land-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-radius: 22px !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08) !important;
}

.land-matrix-row{
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  padding:6px 10px;

  font-size:13px;      /* restore readable font */
  line-height:1.25;    /* tighter spacing but not cramped */
}

.matrix-line {
  color: #0f172a;
  font-weight: 700;
  margin-bottom: 6px;
}

.matrix-line:last-child {
  margin-bottom: 0;
}

.factory-row {
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  padding: 8px 10px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}


.factory-title {
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
}

.factory-sub {
  color: #475569;
  font-size: 12px;
  margin-top: 2px;
}

.factory-meta {
  color: #0f172a;
  font-weight: 700;
}

.land-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.land-name {
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  margin: 0;
}

.land-sub-row,
.land-meta {
  color: #475569;
  font-weight: 700;
  font-size: 12px;
}

.slot-bar-row {
  margin-top: 8px;
}

.slot-pill {
  border-radius: 999px;
}

/* ===== LAND HEADER IMPROVEMENT ===== */

.land-title-row {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.land-sub-row {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

/* tier colors */

.tier-l1 {
  border-left: 6px solid #22c55e;
  padding-left: 10px;
}

.tier-l2 {
  border-left: 6px solid #f59e0b;
  padding-left: 10px;
}

.tier-l3 {
  border-left: 6px solid #ef4444;
  padding-left: 10px;
}
/* ===== BUY EMP ===== */
.emp-buy-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emp-buy-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.emp-buy-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.emp-buy-status {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 18px;
}

/* ===== EMPIRE PREVIEW THUMBNAILS ===== */
.empire-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 56px);
  gap: 12px;

  align-items: start;

  overflow: visible;
}

.empire-tile {
  width: 56px;
  height: 56px;
  border-radius: 14px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 13px;

  border: 2px solid rgba(0,0,0,0.06);

  position: relative;

  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);

  transition: transform 0.15s ease, box-shadow 0.15s ease;

  cursor: pointer;
}

.empire-tile:hover {
  transform: scale(1.10);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
  z-index: 5;
}

.empire-tile small {
  font-size: 10px;
  font-weight: 700;
  margin-top: 2px;
  opacity: 0.85;
}

.empire-tile.l1 {
  background: #dcfce7;
  color: #166534;
}

.empire-tile.l2 {
  background: #fef3c7;
  color: #92400e;
}

.empire-tile.l3 {
  background: #fee2e2;
  color: #b91c1c;
}

.empire-tile.needs-action::after {
  content: "!";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: white;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);

  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.empire-preview-tile:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
  .empire-preview-grid {
    grid-template-columns: repeat(4, 56px);
  }
}

/* ===== BUILD FACTORY UI ===== */
.build-factory-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.build-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.build-row label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.build-input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  color: #111827;
}

.build-input:focus,
.primary-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}
/* ===== EMPIRE PREVIEW POLISH ===== */

.empire-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 14px;
}

.empire-preview-tile {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: default;
}

.empire-preview-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.14);
}

.empire-preview-tier {
  font-size: 25px;
  line-height: 1;
}

.empire-preview-label {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.empire-preview-meta {
  font-size: 12px;
  color: rgba(15, 23, 42, 0.72);
  line-height: 1;
}

/* Tier looks */
.empire-preview-l1 {
  background: linear-gradient(180deg, #dcfce7, #bbf7d0);
}

.empire-preview-l2 {
  background: linear-gradient(180deg, #fef3c7, #fde68a);
}

.empire-preview-l3 {
  background: linear-gradient(180deg, #fee2e2, #fecaca);
}

/* Small alert badge */
.empire-preview-alert {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 12px rgba(239, 68, 68, 0.28);
  border: 2px solid #ffffff;
}

/* CTA button polish */
.empire-preview-btn {
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.empire-preview-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* ===== MINI TERRITORY ZONE ===== */

.land-territory {
  margin-top: 14px;
  margin-bottom: 14px;
  min-height: 150px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.95), rgba(248,250,252,0.92) 60%, rgba(241,245,249,0.96) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 8px 18px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.land-tier-l1 .land-territory {
  background:
    radial-gradient(circle at 50% 30%, rgba(34,197,94,0.20), rgba(255,255,255,0.96) 62%),
    repeating-linear-gradient(
      90deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ) !important;
}

.land-tier-l2 .land-territory {
  background:
    radial-gradient(circle at 50% 30%, rgba(234,179,8,0.20), rgba(255,255,255,0.96) 62%),
    repeating-linear-gradient(
      90deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ) !important;
}

.land-tier-l3 .land-territory {
  background:
    radial-gradient(circle at 50% 30%, rgba(239,68,68,0.20), rgba(255,255,255,0.96) 62%),
    repeating-linear-gradient(
      90deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(148,163,184,0.05) 0px,
      rgba(148,163,184,0.05) 1px,
      transparent 1px,
      transparent 30px
    ) !important;
}

.land-territory-slots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.land-slot-pad {
  width: 122px;
  height: 122px;
  border-radius: 22px;
  border: 2px solid rgba(200, 155, 99, 0.95);
  background: linear-gradient(180deg, #f8f1e6, #eee7dc);
  box-shadow:
    inset 0 2px 6px rgba(255,255,255,0.65),
    0 8px 16px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.land-slot-pad.filled {
  width: 132px;
  height: 132px;
  border: none;
  background: transparent;
  box-shadow: none;
}

.land-slot-pad.empty::after {
  content: "+";
  font-size: 28px;
  font-weight: 700;
  color: rgba(148, 163, 184, 0.7);
}

.land-slot-factory {
  width: 118px;
  height: 118px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow:
    0 14px 24px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255,255,255,0.85);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.land-slot-pad.filled:hover .land-slot-factory {
  transform: translateY(-3px);
  box-shadow:
    0 18px 28px rgba(15, 23, 42, 0.18),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.land-slot-factory-img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  display: block;
}

.land-slot-badge {
  position: absolute;
  bottom: -10px;
  right: -8px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}
.land-slot-badge.b1 { background:#22c55e; }   /* Green */
.land-slot-badge.b2 { background:#2563eb; }   /* Blue */
.land-slot-badge.b3 { background:#7c3aed; }   /* Purple */
.land-slot-badge.b4 { background:#f97316; }   /* Orange */
.land-slot-badge.b5 { background:#facc15; color:#111; } /* Gold */
.land-slot-status {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.land-slot-status.active {
  background: #22c55e;
  color: #ffffff;
}

.land-slot-status.inactive {
  background: #9ca3af;
  color: #ffffff;
}

.land-slot-status.building {
  background: #f59e0b;
  color: #ffffff;
}
.land-slot-pad.empty {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  background: linear-gradient(180deg, #f8f1e6, #ece3d4);
}

.land-slot-pad.empty:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #2563eb;
  box-shadow:
    inset 0 2px 8px rgba(255,255,255,0.7),
    0 12px 22px rgba(37, 99, 235, 0.16);
}

.land-slot-pad.empty::after {
  content: "+";
  font-size: 36px;
  font-weight: 700;
  color: #2563eb;
  line-height: 1;
}
.land-slot-pad.active {
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.7);
  border: 2px solid #22c55e;
}
.land-slot-pad.building {
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.7);
  border: 2px solid #facc15;
}
.land-slot-pad.expired {
  border: 2px solid #ef4444;
}
/* ===== Construction animation ===== */

.land-slot-status.building {
  background: #f59e0b;
  color: white;
}

/* glowing construction frame */
.land-slot-pad.filled.building {
  animation: constructionGlow 1.6s ease-in-out infinite;
}

/* animated hammer icon */
.land-slot-status.building::after {
  content: "🔨";
  font-size: 12px;
}

@keyframes constructionGlow {
  0% {
    box-shadow:
      0 0 0 rgba(245,158,11,0.0),
      0 8px 16px rgba(15,23,42,0.12);
  }

  50% {
    box-shadow:
      0 0 16px rgba(245,158,11,0.65),
      0 8px 16px rgba(15,23,42,0.12);
  }

  100% {
    box-shadow:
      0 0 0 rgba(245,158,11,0.0),
      0 8px 16px rgba(15,23,42,0.12);
  }
}

.land-slot-pad.empty {
  cursor: pointer;
}

.land-slot-pad.empty:hover {
  transform: translateY(-3px);
  border-color: #2563eb;
  box-shadow:
    0 0 16px rgba(37, 99, 235, 0.25),
    0 8px 18px rgba(15, 23, 42, 0.12);
}
.factory-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rename-factory-btn,
.upgrade-factory-btn,
.maintenance-factory-btn,
.factory-title-row a {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
}
  /* ===== DASHBOARD POLISH PASS ===== */

/* smoother feel */
.summary-card,
.section,
.land-card-row,
.factory-card,
.primary-button,
.subnav-btn,
.top-nav-link {
  transition: all 0.18s ease;
}

/* section polish */
.section {
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfe 100%);
  border: 1px solid #e6eaf2;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.section-header {
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eef2f7;
}

/* summary cards look more premium */
.summary-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #e7ebf3;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.summary-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #fbbf24);
  opacity: 0.9;
}

.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.summary-value {
  letter-spacing: -0.02em;
}

/* stronger production card feel */
#summary-production-rate {
  color: #1d4ed8;
  font-weight: 700;
}

/* claim button more important */
.primary-button {
  background: linear-gradient(180deg, #e0ecff 0%, #cfe2ff 100%);
  border-color: #93c5fd;
  color: #173b7a;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.12);
}

.primary-button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.18);
}

/* tabs nicer */
.subnav-btn {
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.subnav-btn:hover {
  background: #f8fbff;
  border-color: #cfe0ff;
}

.subnav-btn-active {
  background: linear-gradient(180deg, #e9f2ff 0%, #dceaff 100%);
  border-color: #93c5fd;
  color: #1d4ed8;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.10);
}

/* land rows more polished */
.land-card-row {
  border-width: 4px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.land-card-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.09);
}

.land-matrix-row,
.land-factories-col {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e8edf5;
}

/* slot pills slightly better */
.slot-pill {
  border-color: rgba(200, 155, 99, 0.95);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255,255,255,0.35);
}

.slot-pill.filled {
  background: linear-gradient(180deg, #d7c2a1 0%, #bea178 100%);
}
.slot-pill.b1 { background: var(--b1-color); color: #ffffff; }
.slot-pill.b2 { background: var(--b2-color); color: #ffffff; }
.slot-pill.b3 { background: var(--b3-color); color: #ffffff; }
.slot-pill.b4 { background: var(--b4-color); color: #ffffff; }
.slot-pill.b5 { background: var(--b5-color); color: #111827; }

/* factory rows cleaner */
.factory-row,
.factory-card {
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
}

.factory-row:hover,
.factory-card:hover {
  border-color: #d7e3f7;
  background: #fbfdff;
}

/* claim/open status text more readable */
.status-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* top nav slight polish */
.top-nav {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

    /* ===== FINAL SUMMARY VALUE STYLE (OVERRIDE) ===== */
.summary-value {
  font-size: 25px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
body {
  background: linear-gradient(180deg,#e8f2ff 0%,#f7fbff 50%,#e6f7ec 100%);
}

.summary-card {
  border-radius:16px;
  border:1px solid #e5e7eb;
  background:white;
  padding:18px;
  box-shadow:0 4px 10px rgba(0,0,0,0.05);
  transition:all .2s ease;
}

.summary-card:hover{
  transform:translateY(-3px);
  box-shadow:0 10px 24px rgba(0,0,0,0.08);
}
.card-ep {border-top:4px solid #d4a017;}
.card-land {border-top:4px solid #16a34a;}
.card-factory {border-top:4px solid #f97316;}
.card-production {border-top:4px solid #2563eb;}
/* ===== SNAPSHOT CARD COLORS ===== */

.card-emp {
  border-top:4px solid #16a34a;
  background:linear-gradient(180deg,#ecfdf5,#ffffff);
}

.card-land {
  border-top:4px solid #22c55e;
  background:linear-gradient(180deg,#f0fdf4,#ffffff);
}

.card-factory {
  border-top:4px solid #f97316;
  background:linear-gradient(180deg,#fff7ed,#ffffff);
}

.card-production {
  border-top:4px solid #2563eb;
  background:linear-gradient(180deg,#eff6ff,#ffffff);
}

.card-ep {
  border-top:4px solid #d4a017;
  background:linear-gradient(180deg,#fffaf0,#ffffff);
}

.card-reward {
  border-top:4px solid #7c3aed;
  background:linear-gradient(180deg,#f5f3ff,#ffffff);
}

.card-wallet {
  border-top:4px solid #059669;
  background:linear-gradient(180deg,#ecfdf5,#ffffff);
}

.card-withdraw {
  border-top:4px solid #dc2626;
  background:linear-gradient(180deg,#fef2f2,#ffffff);
}

.card-relic {
  border-top:4px solid #9333ea;
  background:linear-gradient(180deg,#faf5ff,#ffffff);
}

.card-writ {
  border-top:4px solid #0ea5e9;
  background:linear-gradient(180deg,#f0f9ff,#ffffff);
}
.card-lifetime {
  border-top: 4px solid #d97706;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
}
/* ===== LOGGED-IN MAIN NAV ===== */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin: 0 0 18px 0;
  border: 1px solid #dbe3f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.app-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-nav-logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  flex: 0 0 auto;
}

.app-nav-brand {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.app-nav-link:hover {
  transform: translateY(-1px);
  border-color: #c7d7ee;
  background: #f8fbff;
  color: #0f172a;
}

.app-nav-link.active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
}

.app-nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.app-nav-account span {
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 860px) {
  .app-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-nav-right {
    width: 100%;
    justify-content: flex-start;
  }
}
/*==================*/
   TRANSPARENCT
/*=================*/
 .pill-row {
      margin-top: 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .pill {
      display: inline-flex;
      align-items: center;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 12px;
      border: 1px solid rgba(0,0,0,0.12);
      background: rgba(0,0,0,0.03);
    }
    .pill.onchain { border-color: rgba(21,128,61,0.35); background: rgba(21,128,61,0.08); }
    .pill.offchain { border-color: rgba(37,99,235,0.35); background: rgba(37,99,235,0.08); }

    .highlight-box {
      border-radius: 14px;
      border: 1px dashed rgba(37,99,235,0.6);
      background: rgba(37,99,235,0.06);
      padding: 12px 14px;
      font-size: 14px;
      line-height: 1.55;
      margin-top: 10px;
    }

    .table-wrap { overflow-x: auto; margin-top: 10px; }
    table {
      width: 100%;
      border-collapse: collapse;
      font-size: 14px;
      min-width: 820px;
    }
    th, td {
      border: 1px solid rgba(0,0,0,0.12);
      padding: 10px 12px;
      text-align: left;
      vertical-align: top;
    }
    th {
      background: rgba(37,99,235,0.06);
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      opacity: 0.9;
    }
    tr:nth-child(even) td { background: rgba(0,0,0,0.02); }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 10px;
      border-radius: 999px;
      font-size: 12px;
      border: 1px solid rgba(0,0,0,0.12);
      background: rgba(0,0,0,0.02);
      white-space: nowrap;
    }
    .badge.on { border-color: rgba(21,128,61,0.35); background: rgba(21,128,61,0.10); }
    .badge.off { border-color: rgba(37,99,235,0.35); background: rgba(37,99,235,0.10); }
    .badge.mixed { border-color: rgba(245,158,11,0.45); background: rgba(245,158,11,0.14); }

    .list {
      margin: 8px 0 0;
      padding-left: 18px;
      line-height: 1.6;
    }
    code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }



/*===MARKETPLACE ====*/
/*=====================*/

:root {
      --bg: #f7f8fb;
      --card: #ffffff;
      --text: #182235;
      --muted: #6b7280;
      --border: #e5e7eb;
      --primary: #2563eb;
      --primary-dark: #1d4ed8;
      --danger: #dc2626;
      --danger-dark: #b91c1c;
      --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
      --radius: 18px;
      --b1-color: #22c55e
      --b2-color: #1565c0;
      --b3-color: #7e57c2;
      --b4-color: #ff8f00;
      --b5-color: #ffca28;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
    }

    .page {
      max-width: 1240px;
      margin: 0 auto;
      padding: 24px;
    }

    .topbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .title {
      margin: 0;
      font-size: 30px;
      font-weight: 800;
    }

    .subtitle {
      margin-top: 6px;
      font-size: 14px;
      color: var(--muted);
    }

    .userbox {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      box-shadow: var(--shadow);
      padding: 12px 16px;
      min-width: 220px;
    }

    .userbox-line {
      font-size: 14px;
      font-weight: 700;
      margin-bottom: 6px;
    }

    .userbox-line:last-child {
      margin-bottom: 0;
      color: var(--muted);
      font-weight: 600;
    }

    .tabbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 20px;
    }

    .tab-btn {
      border: 1px solid #c7d2fe;
      background: #eef2ff;
      color: #312e81;
      border-radius: 999px;
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .tab-btn.active {
      background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
      color: #fff;
      border-color: #1d4ed8;
    }

    .market-tab-panel { display: none; }
    .market-tab-panel.active { display: block; }

    .stack {
      display: grid;
      gap: 18px;
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding: 20px;
    }

    .market-header {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 16px;
    }

    .market-header-left h2 {
      margin: 0;
      font-size: 20px;
    }

    .market-header-sub {
      margin-top: 4px;
      color: var(--muted);
      font-size: 13px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 7px 12px;
      background: #eff6ff;
      color: #1d4ed8;
      font-size: 13px;
      font-weight: 700;
    }

    .market-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
}

@media (max-width: 768px) {
  .market-toolbar {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    align-items: stretch !important;
  }

  .market-toolbar .field,
  .market-toolbar button {
    width: 100% !important;
  }

  .market-toolbar input,
  .market-toolbar select {
    width: 100% !important;
    min-height: 48px !important;
  }
}

    .field label {
      display: block;
      font-size: 13px;
      font-weight: 700;
      margin-bottom: 6px;
      color: var(--muted);
    }

    .field input,
    .field select {
      width: 100%;
      padding: 11px 12px;
      border: 1px solid var(--border);
      border-radius: 12px;
      font-size: 14px;
      background: #fff;
    }

    .hint {
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
      line-height: 1.4;
    }

    .status {
      min-height: 20px;
      margin-top: 12px;
      font-size: 13px;
      color: var(--muted);
      white-space: pre-wrap;
    }

    button {
      border: none;
      border-radius: 12px;
      padding: 11px 14px;
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
    }

    .primary-btn {
      background: var(--primary);
      color: #fff;
    }

    .secondary-btn {
      background: #eef2ff;
      color: #312e81;
    }

    .danger-btn {
      background: var(--danger);
      color: #fff;
    }

    .listing-list {
      display: grid;
      gap: 14px;
    }

    .listing-card {
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 16px;
      background: #fff;
    }

    .listing-card.mine {
      border-color: #bfdbfe;
      background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    }

    .listing-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .listing-title {
      font-size: 18px;
      font-weight: 800;
    }

    .listing-meta {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .kv-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(120px, 1fr));
      gap: 10px;
      margin-top: 10px;
      margin-bottom: 12px;
    }

    .kv {
      background: #f8fafc;
      border: 1px solid #edf2f7;
      border-radius: 12px;
      padding: 10px;
    }

    .k {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 4px;
    }

    .v {
      font-size: 15px;
      font-weight: 800;
    }

    .empty {
      padding: 22px;
      text-align: center;
      color: var(--muted);
      border: 1px dashed var(--border);
      border-radius: 16px;
      background: #fff;
    }

    .bp-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
    }

    .bp-card {
      border: 1px solid var(--border);
      border-radius: 18px;
      background: #fff;
      padding: 16px;
      box-shadow: var(--shadow);
    }

    .bp-badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 46px;
      height: 32px;
      border-radius: 999px;
      color: #fff;
      font-weight: 900;
      margin-bottom: 10px;
      padding: 0 12px;
    }

    .bp-title {
      font-weight: 800;
      font-size: 18px;
      margin-bottom: 6px;
    }

    .bp-meta {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.45;
    }

    .pack-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 16px;
    }

  

    .pack-title {
      font-size: 18px;
      font-weight: 800;
      margin-bottom: 8px;
    }
/* ===== MARKETPLACE BALANCE FIX ===== */

.market-tab-panel .card{
  padding: 18px 18px;
}

.market-header{
  margin-bottom: 14px;
  align-items: center;
}

.market-header-left h2{
  margin: 0 0 4px;
  line-height: 1.15;
}

.market-header-sub{
  line-height: 1.4;
}

.market-toolbar{
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: end;
}

.market-toolbar .field{
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  min-width:0;
}

.market-toolbar .field label{
  min-height: 18px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.market-toolbar input,
.market-toolbar select{
  width:100%;
  height:44px;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:12px;
  font-size:14px;
  background:#fff;
  box-sizing:border-box;
}
.market-toolbar small{
  min-height:16px;
  font-size:12px;
  color:#6b7280;
  margin-top:4px;
  display:block;
}
.market-toolbar .primary-btn,
.market-toolbar .secondary-btn{
  height: 44px;
  min-width: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: end;
}

.status{
  margin-top: 10px;
  min-height: 18px;
}

/* ===== COMPACT LISTING ROW ===== */

.compact-listing{
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(320px, 2fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
}

.compact-main{
  min-width: 0;
}

.compact-title{
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.15;
}

.compact-meta{
  font-size: 13px;
  line-height: 1.4;
  color: #64748b;
}

.compact-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.compact-stats > div{
  min-height: 58px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 8px 10px;
}

.compact-stats span{
  font-size: 11px;
  line-height: 1.1;
  color: #64748b;
  margin-bottom: 4px;
}

.compact-stats strong{
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.compact-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.compact-actions input{
  width: 72px;
  height: 38px;
  padding: 6px 8px;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 10px;
}

.compact-actions .primary-btn,
.compact-actions .danger-btn{
  height: 38px;
  min-width: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ===== MOBILE ===== */

@media (max-width: 980px){
  .market-toolbar{
    grid-template-columns: 1fr 1fr;
  }

  .market-toolbar .primary-btn,
  .market-toolbar .secondary-btn{
    width: 100%;
  }

  .compact-listing{
    grid-template-columns: 1fr;
  }

  .compact-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-actions{
    justify-content: flex-start;
  }
}

@media (max-width: 640px){
  .market-toolbar{
    grid-template-columns: 1fr;
  }

  .compact-stats{
    grid-template-columns: 1fr 1fr;
  }
}
#pack-reveal-stage .empty {
  width: 100%;
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
  background: transparent;
  border: none;
  box-shadow: none;
}
.coming-soon-card {
  text-align: center;
  padding: 38px 24px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.coming-soon-kicker {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffedd5 0%, #fdba74 100%);
  color: #9a3412;
  border: 1px solid #fb923c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  box-shadow: 0 0 14px rgba(251, 146, 60, 0.25);
}

.coming-soon-card h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.coming-soon-card p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

.coming-soon-note {
  margin-top: 20px;
  display: inline-block;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff7ed;
  color: #9a3412;
  font-weight: 800;
  border: 1px solid #fed7aa;
}

.premium-soon {
  background:
    radial-gradient(circle at top, rgba(201, 162, 39, 0.18), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fffbeb 100%);
}

.premium-preview-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.premium-preview-card {
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.premium-preview-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.premium-preview-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.premium-preview-text {
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}
    @media (max-width: 1000px) {
      .market-toolbar {
        grid-template-columns: 1fr;
      }
    }
    /* ===== LOGGED-IN MAIN NAV ===== */
.app-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.app-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-nav-logo-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  flex: 0 0 auto;
}

.app-nav-brand {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.app-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #ffffff;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.app-nav-link:hover {
  transform: translateY(-1px);
  border-color: #c7d7ee;
  background: #f8fbff;
  color: #0f172a;
}

.app-nav-link.active {
  border-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
}

.app-nav-account {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid #dbe3f0;
  background: #ffffff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

.app-nav-account span {
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 860px) {
  .app-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-nav-right {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ===== REVERT TO PREVIOUS STABLE APPBAR ===== */

.appbar{
  background:#8E44AD !important;
  height:72px !important;
  border-bottom:2px solid rgba(255,255,255,0.18) !important;
  box-shadow:none !important;
}

.appbar-inner{
  width:100% !important;
  max-width:none !important;
  margin:0 !important;
  padding:0 12px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:18px !important;
}

.appbar-left{
  display:flex !important;
  align-items:center !important;
  gap:20px !important;
  min-width:0 !important;
  flex:1 1 auto !important;
}

.appbar-logo img{
  height:100px !important;
  width:auto !important;
  display:block !important;
}

.appbar-nav{
  display:flex !important;
  align-items:center !important;
  gap:22px !important;
  flex-wrap:nowrap !important;
  white-space:nowrap !important;
}

.appbar-link{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  color:#ffffff !important;
  text-decoration:none !important;
  font-size:17px !important;
  font-weight:900 !important;
  padding:0 !important;
  min-height:auto !important;
  border:none !important;
  background:none !important;
  border-radius:0 !important;
  white-space:nowrap !important;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.45),
     1px -1px 0 rgba(0,0,0,0.45),
    -1px  1px 0 rgba(0,0,0,0.45),
     1px  1px 0 rgba(0,0,0,0.45);
}

.appbar-link:hover,
.appbar-link.active{
  color:#fff7d6 !important;
}

.appbar-right{
  display:flex !important;
  align-items:center !important;
  flex:0 0 auto !important;
}

.appbar-login-btn,
.appbar-account-btn{
  min-height:40px !important;
  padding:0 16px !important;
  border-radius:10px !important;
  border:1px solid rgba(255,255,255,0.35) !important;
  background:rgba(255,255,255,0.08) !important;
  color:#ffffff !important;
  font-size:16px !important;
  font-weight:900 !important;
  white-space:nowrap !important;
  text-shadow:
    -1px -1px 0 rgba(0,0,0,0.30),
     1px -1px 0 rgba(0,0,0,0.30),
    -1px  1px 0 rgba(0,0,0,0.30),
     1px  1px 0 rgba(0,0,0,0.30);
}

body{
  padding-top:72px !important;
}
/* ============================= */
/* MYDEMPIRE LIVE GAME CARD SYSTEM */
/* ============================= */

.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.game-card{
  position:relative;
  overflow:hidden;

  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,248,255,0.95) 100%);
  border:1px solid rgba(148,163,184,0.22);
  border-radius:20px;

  padding:22px 20px 20px;
  margin-bottom:0;

  box-shadow:0 12px 28px rgba(15,23,42,0.08);
  transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.game-card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(15,23,42,0.14);
  border-color:rgba(59,130,246,0.28);
}

/* top glow strip */
.game-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:linear-gradient(90deg,#8E44AD,#2563eb,#0ea5e9);
}

/* soft background glow */
.game-card::after{
  content:"";
  position:absolute;
  top:-30px;
  right:-20px;
  width:120px;
  height:120px;
  background:radial-gradient(circle, rgba(142,68,173,0.14) 0%, rgba(142,68,173,0) 70%);
  pointer-events:none;
}

.game-card-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:24px;
  margin-bottom:14px;

  background:linear-gradient(180deg,#eef2ff,#f8faff);
  border:1px solid rgba(99,102,241,0.16);
  box-shadow:0 6px 14px rgba(15,23,42,0.06);
}

.game-card-title{
  font-size:22px;
  font-weight:800;
  line-height:1.2;
  margin-bottom:10px;
  color:#111827;
}

.game-card-text{
  font-size:15px;
  line-height:1.7;
  color:#475569;
}

.game-card-text strong{
  color:#0f172a;
}

/* bigger feature card */
.game-card.feature-card{
  padding:28px 24px;
}

.game-card.feature-card .game-card-title{
  font-size:28px;
}

.game-card.feature-card .game-card-text{
  font-size:16px;
}

/* colored variants */
.game-card.purple::before{
  background:linear-gradient(90deg,#8E44AD,#c084fc);
}

.game-card.blue::before{
  background:linear-gradient(90deg,#2563eb,#38bdf8);
}

.game-card.green::before{
  background:linear-gradient(90deg,#16a34a,#22c55e);
}

.game-card.gold::before{
  background:linear-gradient(90deg,#d97706,#fbbf24);
}

.game-card.red::before{
  background:linear-gradient(90deg,#dc2626,#f87171);
}
/* ============================= */
/* MYDEMPIRE CODEX LAYOUT */
/* ============================= */

.codex-layout{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:32px;
  align-items:start;
}

.codex-sidebar{
  position:sticky;
  top:96px;
  align-self:start;

  background:rgba(255,255,255,0.88);
  border:1px solid rgba(148,163,184,0.22);
  border-radius:18px;
  padding:18px 16px;
  box-shadow:0 10px 24px rgba(15,23,42,0.06);
}

.codex-sidebar-title{
  font-size:14px;
  font-weight:800;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#8E44AD;
  margin-bottom:14px;
}

.codex-menu{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.codex-menu a{
  text-decoration:none;
  color:#334155;
  font-size:15px;
  font-weight:700;
  padding:8px 10px;
  border-radius:10px;
  transition:background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.codex-menu a:hover{
  background:#f3e8ff;
  color:#6b21a8;
  transform:translateX(2px);
}

.codex-content{
  display:flex;
  flex-direction:column;
  gap:26px;
}

.codex-hero{
  background:linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(245,248,255,0.95) 100%);
  border:1px solid rgba(148,163,184,0.22);
  border-radius:22px;
  padding:28px 24px;
  box-shadow:0 12px 28px rgba(15,23,42,0.08);
}

.codex-hero h1{
  margin:0 0 10px;
  font-size:34px;
  line-height:1.15;
  color:#111827;
}

.codex-hero p{
  margin:0;
  font-size:17px;
  line-height:1.8;
  color:#475569;
}

.codex-section{
  background:rgba(255,255,255,0.94);
  border:1px solid rgba(148,163,184,0.18);
  border-radius:20px;
  padding:26px 24px;
  box-shadow:0 10px 24px rgba(15,23,42,0.06);
}

.codex-section h2{
  margin:0 0 14px;
  font-size:28px;
  color:#111827;
}

.codex-section h3{
  margin:18px 0 8px;
  font-size:20px;
  color:#1f2937;
}

.codex-section p{
  margin:0 0 14px;
  font-size:16px;
  line-height:1.8;
  color:#475569;
}

.codex-section ul{
  margin:0 0 14px 20px;
  color:#475569;
  line-height:1.8;
  font-size:16px;
}

.codex-flow{
  margin:18px 0 6px;
  padding:18px;
  border-radius:16px;
  background:linear-gradient(180deg,#f8fafc 0%, #eef2ff 100%);
  border:1px solid rgba(99,102,241,0.15);
  font-weight:700;
  color:#312e81;
  line-height:2;
}

@media (max-width: 980px){
  .codex-layout{
    grid-template-columns:1fr;
  }

  .codex-sidebar{
    position:relative;
    top:auto;
  }
}

.nft-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:20px;
}

.dashboard-nft-card{
  background:#111;
  color:#fff;
  padding:12px;
  border-radius:16px;
  text-align:center;
}

.nft-art{
  height:160px;
  border-radius:12px;
  overflow:hidden;
}

.nft-placeholder{
  width:100%;
  height:100%;
}

.nft-placeholder.green{ background:#2ecc71; }
.nft-placeholder.blue{ background:#3498db; }
.nft-placeholder.gold{ background:#f1c40f; }

.nft-img{
  width:100%;
  height:100%;
  object-fit:cover;
}
/* IMAGE */
.nft-img{
  width:100%;
  height:100%;
  object-fit:contain;
}

/* BADGE */
.level-badge{
  position:absolute;
  bottom:8px;
  left:8px;
  padding:4px 8px;
  font-size:12px;
  border-radius:6px;
  background:rgba(0,0,0,0.7);
}

/* ================= */
/* BLUEPRINT COLORS */
/* ================= */

.hidden-auth-link {
  display: none !important;
}

.hidden-auth-link.show-auth-link {
  display: inline-flex !important;
}
.uniform-card.nft-image-card .textile-card-fix {
  transform: scale(1.14);
  transform-origin: center center;
}
.uniform-card.nft-image-card .food-card-fix {
  transform: scale(1.28);
  transform-origin: center center;
}
.shop-emp-balance-box{
  margin: 14px 0 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid rgba(148,163,184,0.18);
  box-shadow: 0 8px 18px rgba(15,23,42,0.05);
}

.shop-emp-balance-label{
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-emp-balance-value{
  font-size: 28px;
  font-weight: 900;
  color: #111827;
}
/* ============================= */
/* SHOP NFT IMAGE CARD FIX */
/* ============================= */

.uniform-card.nft-image-card{
  border-radius: 18px;
  overflow: hidden;
  background: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.uniform-card.nft-image-card .nft-card-image{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Optional blueprint image tuning */
.uniform-card.nft-image-card .food-card-fix{
  transform: scale(1.18);
  transform-origin: center center;
}

.uniform-card.nft-image-card .textile-card-fix{
  transform: scale(1.08);
  transform-origin: center center;

box-shadow:

  0 4px 10px rgba(0,0,0,0.2),
  0 0 0 2px rgba(255,255,255,0.4);
}
/* ===== FORCE BLUEPRINT COLORS (FINAL FIX) ===== */



.bp-mini-card[data-level="2"]{
  --bp-border: #2563eb !important;
}

.bp-mini-card[data-level="3"]{
  --bp-border: #7c3aed !important;
}

.bp-mini-card[data-level="4"]{
  --bp-border: #ea580c !important;
}

.bp-mini-card[data-level="5"]{
  --bp-border: #facc15 !important;
}
/* ===== FINAL BLUEPRINT MINI CARD COLORS ===== */

.bp-mini-card{
  border-color: var(--bp-border, #22c55e) !important;
}

.bp-mini-badge{
  background: var(--bp-border, #22c55e) !important;
}

.bp-mini-strip{
  background: var(--bp-border, #22c55e) !important;
}
/* ===== FORCE B1 GREEN ===== */

/* ===== TEMP FORCE ALL B1-LOOK CARDS GREEN ===== */
/* Hide protected nav links by default */
.appbar-link.protected-link {
  display: none !important;
}

/* Show them only after login */
body.user-logged-in .appbar-link.protected-link {
  display: inline-flex !important;
}
/* ===== AUTH-AWARE APPBAR LINKS ===== */
.appbar-link.auth-only.hidden-auth-link {
  display: none !important;
}

body.user-logged-in .appbar-link.auth-only.hidden-auth-link {
  display: inline-flex !important;
}

/* ===== APPBAR HIDE ON SCROLL ===== */
.appbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(0);
  transition: transform 0.28s ease;
}

.appbar.appbar-hidden {
  transform: translateY(-100%);
}
.subnav {
  position: relative;
  z-index: 50;
}

.subnav .subnav-btn {
  position: relative;
  z-index: 51;
  pointer-events: auto;
}
.phase-live-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff7a18);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.6px;
  box-shadow: 0 6px 16px rgba(255, 122, 24, 0.25);
  animation: phaseShake 2.4s ease-in-out infinite;
}

@keyframes phaseShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  4% { transform: translateX(-1px) rotate(-1deg); }
  8% { transform: translateX(2px) rotate(1deg); }
  12% { transform: translateX(-2px) rotate(-1deg); }
  16% { transform: translateX(1px) rotate(1deg); }
  20% { transform: translateX(0) rotate(0deg); }
}
.phase-center-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 6px 0 10px 0;
}
.top-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  column-gap: 24px;
}

.phase-live-badge {
  justify-self: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #ff7a18);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.5px;
  animation: phaseShake 2.4s ease-in-out infinite;
}.phase-tag{
  background: linear-gradient(135deg,#ffb347,#ff7a18);
  color:#fff;
  font-weight:700;
  animation: phasePulse 2.6s ease-in-out infinite;
}
@keyframes phasePulse{
  0%,100%{ transform:scale(1); box-shadow:0 0 0 rgba(255,122,24,0); }
  50%{ transform:scale(1.05); box-shadow:0 0 10px rgba(255,122,24,0.35); }
}.packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.sealed-pack-card {
  border: 1px solid #d7dce5;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  padding: 18px 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 230px;
}

.sealed-pack-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(20, 35, 90, 0.10);
  border-color: #a9bbff;
}

.sealed-pack-img {
  width: 110px;
  height: auto;
  object-fit: contain;
  margin-bottom: 14px;
}

.sealed-pack-title {
  font-size: 18px;
  font-weight: 700;
  color: #17305c;
  margin-bottom: 6px;
  text-align: center;
}

.sealed-pack-sub {
  font-size: 14px;
  color: #5d6b82;
  text-align: center;
}

.pack-reveal-stage,
.packs-board-card,
.pack-reveal-card,
.packs-stat-card {
  border: 1px solid #d7dce5;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.packs-board-card,
.pack-reveal-card,
.packs-topbar {
  padding: 20px;
  margin-top: 18px;
}

.packs-stat-label,
.packs-board-note,
.page-subtitle,
.empty {
  color: #5d6b82;
}

.packs-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: #17305c;
  margin-top: 6px;
}

.pack-reveal-stage {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin-top: 14px;
}.sealed-pack-main {
  width: 220px;
  margin: 30px auto;
  border-radius: 20px;
  border: 1px solid #d7dce5;
  background: linear-gradient(180deg,#ffffff,#f5f7fb);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.sealed-pack-main:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(30,50,100,.15);
}

.sealed-pack-main-img {
  width: 140px;
  margin-bottom: 12px;
}

.sealed-pack-main-title {
  font-size: 20px;
  font-weight: 700;
  color: #17305c;
}

.sealed-pack-main-count {
  margin-top: 6px;
  font-size: 16px;
  color: #3c4b6a;
}

.sealed-pack-main-sub {
  margin-top: 4px;
  font-size: 14px;
  color: #6c7a96;
}
#packs-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  padding: 8px 0;
}
.reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  width: 100%;
}

.reveal-card {
  border: 1px solid #d7dce5;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  text-align: center;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reveal-card-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5f6f88;
  margin-bottom: 10px;
}

.reveal-card-value {
  font-size: 28px;
  font-weight: 800;
  color: #17305c;
}

.reveal-card-sub {
  font-size: 14px;
  color: #5d6b82;
  margin-top: 8px;
}

.reveal-card-bonus {
  border-color: #9db6ff;
  box-shadow: 0 8px 22px rgba(66, 102, 194, 0.10);
}

.reveal-card-relic {
  border-color: #d8b24c;
  box-shadow: 0 10px 28px rgba(194, 145, 38, 0.14);
}

.pack-opened-banner {
  font-size: 20px;
  font-weight: 800;
  color: #17305c;
  margin-bottom: 18px;
  text-align: center;
}
.pack-reveal-card {
  border: 1px solid #d7dce5;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  padding: 20px;
  margin-top: 18px;
}

.pack-reveal-stage {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  margin-top: 12px;
  border: 1px solid #d6e1f0;
  border-radius: 22px;
  background:
    radial-gradient(circle at top center, rgba(255, 211, 95, 0.12) 0%, rgba(255, 211, 95, 0) 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 55%, #fff8ea 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}
.empty {
  color: #5d6b82;
}
/* =========================
   PACKS PAGE - CELEBRATION STYLE
   ========================= */

.packs-board-card,
.pack-reveal-card {
  border: 1px solid #d6e1f0;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 215, 120, 0.20) 0%, rgba(255, 215, 120, 0) 30%),
    linear-gradient(135deg, #eef5ff 0%, #f7fbff 40%, #fff7e8 100%);
  padding: 22px 22px 26px;
  margin-top: 18px;
  box-shadow: 0 12px 32px rgba(22, 50, 92, 0.08);
}

.packs-board-head h3,
.pack-reveal-card h3,
.page-header h2 {
  color: #16325c;
}

.packs-board-note,
.page-subtitle {
  color: #5d6f8c;
}

/* Sealed pack area */
#packs-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  padding: 10px 0 10px;
}

/* Main clickable pack */
.sealed-pack-main {
  width: 360px;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.sealed-pack-main:hover {
  transform: translateY(-8px) scale(1.03);
  filter: drop-shadow(0 18px 28px rgba(36, 68, 136, 0.18));
}

/* MUCH BIGGER PACK IMAGE */
.sealed-pack-main-img {
  width: 320px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 18px 32px rgba(25, 40, 80, 0.22));
  animation: packFloat 2.8s ease-in-out infinite;
}

/* Gentle floating motion */
@keyframes packFloat {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Click shake */
.sealed-pack-main.pack-opening .sealed-pack-main-img {
  animation: packShake 0.7s ease-in-out 1;
}

@keyframes packShake {
  0%   { transform: translateY(0) rotate(0deg) scale(1); }
  15%  { transform: translateY(-6px) rotate(-3deg) scale(1.03); }
  30%  { transform: translateY(3px) rotate(3deg) scale(1.06); }
  45%  { transform: translateY(-4px) rotate(-2deg) scale(1.08); }
  60%  { transform: translateY(3px) rotate(2deg) scale(1.05); }
  75%  { transform: translateY(-2px) rotate(-1deg) scale(1.03); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

/* Smaller text so image dominates */
.sealed-pack-main-title {
  font-size: 18px;
  font-weight: 800;
  color: #17305c;
  margin-top: 2px;
  line-height: 1.2;
  text-align: center;
}

.sealed-pack-main-count {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 700;
  color: #36558a;
  text-align: center;
}

.sealed-pack-main-sub {
  margin-top: 3px;
  font-size: 13px;
  color: #6f7f98;
  text-align: center;
}

/* Reveal area becomes celebration zone */
.pack-reveal-stage {
  min-height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  margin-top: 14px;
  border: 1px solid #d6e1f0;
  border-radius: 24px;
  background:
    radial-gradient(circle at top center, rgba(255, 211, 95, 0.18) 0%, rgba(255, 211, 95, 0) 28%),
    linear-gradient(135deg, #ffffff 0%, #f3f8ff 55%, #fff8ea 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

/* Cards wrap nicely for bonus drops */
.reveal-grid {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  width: 100%;
}

/* Bigger cards with more breathing room */
.reveal-card {
  min-width: 180px;
  max-width: 210px;
  min-height: 128px;
  border: 1px solid #d7e2f0;
  border-radius: 22px;
  padding: 18px 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(24, 48, 92, 0.08);
}

.reveal-card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #6d7f98;
  margin-bottom: 12px;
}

.reveal-card-value {
  font-size: 22px;
  font-weight: 800;
  color: #17305c;
  line-height: 1.2;
  word-break: break-word;
}

.reveal-card-sub {
  font-size: 13px;
  color: #61728c;
  margin-top: 6px;
}

/* Different reward colors */
.reveal-card.land-card {
  background: linear-gradient(180deg, #f4fff4 0%, #e5f8e5 100%);
  border-color: #9fd59f;
}

.reveal-card.blueprint-card {
  background: linear-gradient(180deg, #f3f7ff 0%, #e6efff 100%);
  border-color: #a8bfff;
}

.reveal-card.emp-card {
  background: linear-gradient(180deg, #fff9ef 0%, #ffefcb 100%);
  border-color: #e4c06b;
}

.reveal-card.reveal-card-bonus {
  background: linear-gradient(180deg, #f8f2ff 0%, #eee1ff 100%);
  border-color: #b896ff;
}

.reveal-card.reveal-card-relic {
  background: linear-gradient(180deg, #fff7df 0%, #ffe9a8 100%);
  border-color: #dfb84a;
  box-shadow: 0 12px 26px rgba(194, 145, 38, 0.16);
}

/* Celebration title */
.pack-opened-banner {
  font-size: 22px;
  font-weight: 800;
  color: #17305c;
  margin-bottom: 18px;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

.empty {
  color: #6c7a92;
  font-size: 15px;
}
.reveal-grid-main {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.reveal-grid-bonus {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.bonus-section {
  margin-top: 18px;
  padding-top: 10px;
}

.bonus-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #7a4cff;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.bonus-reveal-card {
  position: relative;
  background: linear-gradient(180deg, #fff8ff 0%, #f1e8ff 100%);
  border: 1px solid #c9a8ff;
  box-shadow: 0 12px 26px rgba(122, 76, 255, 0.16);
}

.lucky-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #ffdd66, #ffb300);
  color: #1b1b1b;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(255, 179, 0, 0.25);
  white-space: nowrap;
}

.emp-reveal-card {
  width: 170px;
  height: 140px;
  background: linear-gradient(145deg, #ffd966 0%, #ffbf00 100%);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(255, 179, 0, 0.22);
  border: 2px solid rgba(255,255,255,0.35);
}

.emp-icon {
  font-size: 30px;
  margin-bottom: 8px;
}

.emp-value {
  font-size: 28px;
  font-weight: 800;
  color: #1e1e1e;
  line-height: 1;
}

.emp-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-top: 8px;
  color: #2d2d2d;
}

.land-reveal-img {
  width: 140px;
}

.blueprint-reveal-img {
  width: 160px;
}

.relic-reveal-card .relic-art-img {
  width: 150px;
}

.relic-reveal-card {
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.22);
}
.land-reveal-card {
  width: 190px;
  min-height: 250px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.land-reveal-card .land-layout {
  width: 170px;
  margin: 0 auto;
}

.land-reveal-card .land-tile {
  width: 100%;
  height: auto;
  display: block;
}
.blueprint-reveal-card {
  width: 210px;
  min-height: 220px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.blueprint-reveal-card .nft-art {
  width: 180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blueprint-reveal-card .nft-art img {
  width: 100%;
  height: auto;
  display: block;
}

.relic-reveal-card {
  width: 210px;
  min-height: 220px;
  padding: 16px 10px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.relic-reveal-card .relic-art-img {
  width: 150px;
  height: auto;
  display: block;
}
.pack-opened-banner {
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: #17305c;
  margin-bottom: 20px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff3c4, #ffe08a);
  display: inline-block;
  box-shadow: 0 8px 20px rgba(255, 183, 0, 0.18);
}

.pack-reveal-stage {
  text-align: center;
}

.pack-reveal-stage > * {
  width: 100%;
}

.packs-left{
  width:35%;
}

.packs-right{
  width:65%;
}

@media (max-width:900px){
  .packs-layout{
    flex-direction:column;
  }
  .packs-left,
  .packs-right{
    width:100%;
  }
}

/* EMP solid block */
.emp-reveal-card {
  width: 170px;
  height: 140px;
  background: #ffbf00;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 26px rgba(255, 191, 0, 0.26);
  border: 3px solid #fff0b3;
}

.emp-icon {
  font-size: 30px;
  margin-bottom: 8px;
  color: #1f1f1f;
}

.emp-value {
  font-size: 30px;
  font-weight: 900;
  color: #1f1f1f;
  line-height: 1;
}

.emp-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-top: 8px;
  color: #1f1f1f;
}

/* Lucky Drops section with strong purple */
.bonus-section {
  margin-top: 24px;
  padding-top: 8px;
}

.bonus-title {
  text-align: center;
  font-size: 18px;
  font-weight: 900;
  color: #6d28d9;
  margin-bottom: 14px;
}

.bonus-reveal-card {
  position: relative;
  background: #ede0ff;
  border: 3px solid #b07cff;
  box-shadow: 0 14px 26px rgba(109, 40, 217, 0.16);
}

.lucky-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #6d28d9;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.22);
}

/* Tabs stronger */
.subnav-btn {
  background: #ffffff;
  color: #17305c;
  border: 2px solid #d7e0f0;
  border-radius: 999px;
  font-weight: 700;
}

.subnav-btn-active {
  background: #17305c !important;
  color: #ffffff !important;
  border-color: #17305c !important;
  box-shadow: 0 8px 18px rgba(23, 48, 92, 0.22);
}
.pack-reveal-nft-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-reveal-stage .nft-card {
  width: 190px;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 22px rgba(15,23,42,0.12);
}

.pack-reveal-stage .nft-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pack-reveal-stage .nft-title {
  text-align: center;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 8px;
}

.pack-reveal-stage .nft-badge {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 56px;
  height: 56px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
}

.pack-reveal-stage .nft-art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.pack-reveal-stage .nft-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pack-reveal-stage .nft-card.land.l1 {
  background: #dcfce7;
  border: 2px solid #22c55e;
}
.pack-reveal-stage .nft-card.land.l1 .nft-title {
  background: #22c55e;
  color: #fff;
}
.pack-reveal-stage .nft-card.land.l1 .nft-badge {
  background: #86efac;
  color: #14532d;
}

.pack-reveal-stage .nft-card.land.l2 {
  background: #fef9c3;
  border: 2px solid #facc15;
}
.pack-reveal-stage .nft-card.land.l2 .nft-title {
  background: #facc15;
  color: #111827;
}
.pack-reveal-stage .nft-card.land.l2 .nft-badge {
  background: #fde68a;
  color: #713f12;
}

.pack-reveal-stage .nft-card.land.l3 {
  background: #fee2e2;
  border: 2px solid #ef4444;
}
.pack-reveal-stage .nft-card.land.l3 .nft-title {
  background: #ef4444;
  color: #fff;
}
.pack-reveal-stage .nft-card.land.l3 .nft-badge {
  background: #fca5a5;
  color: #7f1d1d;
}

.pack-reveal-stage .nft-card.blueprint.b1 {
  background: linear-gradient(180deg, #f3f4f6 0%, #d1d5db 100%);
  border: 2px solid #7f8c8d;
}
.pack-reveal-stage .nft-card.blueprint.b1 .nft-title {
  background: #7f8c8d;
  color: #fff;
}
.pack-reveal-stage .nft-card.blueprint.b1 .nft-badge {
  background: #cbd5e1;
  color: #374151;
}

.pack-reveal-stage .nft-card.blueprint.b2 {
  background: linear-gradient(180deg, #dbeafe 0%, #bfdbfe 100%);
  border: 2px solid #1f4fa3;
}
.pack-reveal-stage .nft-card.blueprint.b2 .nft-title {
  background: #1f4fa3;
  color: #fff;
}
.pack-reveal-stage .nft-card.blueprint.b2 .nft-badge {
  background: #93c5fd;
  color: #1e3a8a;
}

.pack-reveal-stage .nft-card.blueprint.b3 {
  background: linear-gradient(180deg, #f3e8ff 0%, #e9d5ff 100%);
  border: 2px solid #8E44AD;
}
.pack-reveal-stage .nft-card.blueprint.b3 .nft-title {
  background: #8E44AD;
  color: #fff;
}
.pack-reveal-stage .nft-card.blueprint.b3 .nft-badge {
  background: #d8b4fe;
  color: #581c87;
}

.pack-reveal-stage .nft-card.blueprint.b4 {
  background: linear-gradient(180deg, #ffedd5 0%, #fed7aa 100%);
  border: 2px solid #e67e22;
}
.pack-reveal-stage .nft-card.blueprint.b4 .nft-title {
  background: #e67e22;
  color: #fff;
}
.pack-reveal-stage .nft-card.blueprint.b4 .nft-badge {
  background: #fdba74;
  color: #9a3412;
}

.pack-reveal-stage .nft-card.blueprint.b5 {
  background: linear-gradient(180deg, #fef9c3 0%, #fde68a 100%);
  border: 2px solid #f1c40f;
}
.pack-reveal-stage .nft-card.blueprint.b5 .nft-title {
  background: #f1c40f;
  color: #111827;
}
.pack-reveal-stage .nft-card.blueprint.b5 .nft-badge {
  background: #fde047;
  color: #713f12;
}
/* ===================================== */
/* PACK OPEN REVEAL AREA */
/* ===================================== */

#pack-reveal-stage{
  min-height: 420px;
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pack-reveal-wrap{
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px 18px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #dbe4ee;
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.10);
  text-align: center;
}

.pack-opened-banner{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  margin-bottom: 14px;
}

.pack-reveal-progress{
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 800;
  color: #475569;
}

.pack-reveal-single-view{
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-reveal-item{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pack-reveal-label{
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.pack-reveal-label.lucky{
  color: #7c3aed;
}

.pack-reveal-nft-shell{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* premium reveal cards */
#pack-reveal-stage .nft-card{
  width: 240px;
  height: 320px;
  border-radius: 22px;
  position: relative;
  box-shadow:
    0 18px 32px rgba(15,23,42,0.18),
    0 6px 12px rgba(15,23,42,0.10);
  overflow: hidden;
}

#pack-reveal-stage .nft-card .nft-inner{
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
}

/* blueprint colors */
#pack-reveal-stage .nft-card.blueprint.b1{ --color:#22c55e; }
#pack-reveal-stage .nft-card.blueprint.b2{ --color:#1565c0; }
#pack-reveal-stage .nft-card.blueprint.b3{ --color:#7e57c2; }
#pack-reveal-stage .nft-card.blueprint.b4{ --color:#ff8f00; }
#pack-reveal-stage .nft-card.blueprint.b5{ --color:#ffca28; }

#pack-reveal-stage .nft-card.blueprint{
  background: linear-gradient(180deg, var(--color) 0%, color-mix(in srgb, var(--color) 70%, #000 30%) 100%);
  padding: 5px;
}

#pack-reveal-stage .nft-card.blueprint .nft-inner{
  background: linear-gradient(180deg,#eaf0f7 0%,#dde6ef 100%);
}

#pack-reveal-stage .nft-card.blueprint .nft-title{
  padding-top: 16px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0f172a;
}

#pack-reveal-stage .nft-card.blueprint .nft-art{
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

#pack-reveal-stage .nft-card.blueprint .nft-art img{
  max-width: 84%;
  max-height: 170px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.20));
}

#pack-reveal-stage .nft-card.blueprint .nft-badge{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  border: 2px solid rgba(15,23,42,0.18);
  box-shadow:
    0 8px 16px rgba(0,0,0,0.18),
    inset 0 1px 4px rgba(255,255,255,0.45);
  z-index: 3;
}

#pack-reveal-stage .nft-card.blueprint.b1 .nft-badge{
  background: radial-gradient(circle at 35% 30%, #dcfce7 0%, #86efac 58%, #22c55e 100%);
}
#pack-reveal-stage .nft-card.blueprint.b2 .nft-badge{
  background: radial-gradient(circle at 35% 30%, #dbeafe 0%, #93c5fd 58%, #1565c0 100%);
}
#pack-reveal-stage .nft-card.blueprint.b3 .nft-badge{
  background: radial-gradient(circle at 35% 30%, #f3e8ff 0%, #d8b4fe 58%, #7e57c2 100%);
}
#pack-reveal-stage .nft-card.blueprint.b4 .nft-badge{
  background: radial-gradient(circle at 35% 30%, #ffedd5 0%, #fdba74 58%, #ff8f00 100%);
}
#pack-reveal-stage .nft-card.blueprint.b5 .nft-badge{
  background: radial-gradient(circle at 35% 30%, #fef9c3 0%, #fde68a 58%, #ffca28 100%);
}

/* land colors */
#pack-reveal-stage .nft-card.land.l1{ --color:#22c55e; }
#pack-reveal-stage .nft-card.land.l2{ --color:#eab308; }
#pack-reveal-stage .nft-card.land.l3{ --color:#ef4444; }

/*#pack-reveal-stage .nft-card.land{
  background: linear-gradient(180deg, var(--color) 0%, color-mix(in srgb, var(--color) 72%, #000 28%) 100%);
  padding: 5px;
}

#pack-reveal-stage .nft-card.land .nft-inner{
  background:
    linear-gradient(180deg, #dfe4ea 0%, #cfd6dd 100%),
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.035) 0px,
      rgba(0,0,0,0.035) 8px,
      rgba(255,255,255,0.03) 8px,
      rgba(255,255,255,0.03) 16px
    );
}

#pack-reveal-stage .nft-card.land .nft-title{
  padding-top: 16px;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #0f172a;
}

#pack-reveal-stage .nft-card.land .nft-badge{
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e2e8f0 58%, #94a3b8 100%);
  border: 2px solid rgba(15,23,42,0.18);
  box-shadow:
    0 8px 16px rgba(0,0,0,0.18),
    inset 0 1px 4px rgba(255,255,255,0.45);
}

/* land layout fix 
#pack-reveal-stage .nft-card.land .land-layout{
  position: relative;
  width: 100%;
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#pack-reveal-stage .nft-card.land .land-layout-1,
#pack-reveal-stage .nft-card.land .land-layout-2,
#pack-reveal-stage .nft-card.land .land-layout-3{
  position: relative;
  width: 100%;
  height: 205px;
}

#pack-reveal-stage .nft-card.land .land-layout-1{
  display: flex;
  align-items: center;
  justify-content: center;
}

#pack-reveal-stage .nft-card.land .land-layout-1 .land-tile{
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  position: static;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,0.18));
}

#pack-reveal-stage .nft-card.land .land-layout-2 .land-tile{
  width: 112px;
  height: 112px;
  object-fit: contain;
  display: block;
  position: absolute;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.16));
}

#pack-reveal-stage .nft-card.land .land-layout-2 .land-tile:nth-child(1){
  left: 34px;
  top: 50px;
}

#pack-reveal-stage .nft-card.land .land-layout-2 .land-tile:nth-child(2){
  right: 34px;
  top: 50px;
}

#pack-reveal-stage .nft-card.land .land-layout-3 .land-tile{
  width: 88px;
  height: 88px;
  object-fit: contain;
  display: block;
  position: absolute;
  filter: drop-shadow(0 8px 12px rgba(0,0,0,0.16));
}

#pack-reveal-stage .nft-card.land .land-top{
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
}

#pack-reveal-stage .nft-card.land .land-bottom-left{
  left: 42px;
  bottom: 18px;
}

#pack-reveal-stage .nft-card.land .land-bottom-right{
  right: 42px;
  bottom: 18px;
}
*/ 
/* ===================================== */
/* PACK OPEN REVEAL AREA */
/* ===================================== */

#pack-reveal-stage .reveal-card{
  width: 240px;
  min-height: 320px;
  border-radius: 22px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
  box-shadow:
    0 18px 32px rgba(15,23,42,0.18),
    0 6px 12px rgba(15,23,42,0.10);
  position: relative;
}

#pack-reveal-stage .emp-icon{
  font-size: 44px;
  margin-bottom: 10px;
}

#pack-reveal-stage .emp-value{
  font-size: 42px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
}

#pack-reveal-stage .emp-label{
  margin-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #475569;
}

#pack-reveal-stage .bonus-reveal-card{
  background: linear-gradient(180deg, #fff7ed 0%, #f3e8ff 100%);
}

#pack-reveal-stage .lucky-badge,
#pack-reveal-stage .lucky-corner-badge{
  position: absolute;
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, #f59e0b 0%, #7c3aed 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 6px 10px;
  z-index: 5;
}

#pack-reveal-stage .relic-art-img{
  max-width: 88%;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.pack-reveal-controls{
  margin-top: 18px;
}

.pack-reveal-next-btn{
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(79,70,229,0.25);
}

.pack-reveal-next-btn:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.pack-reveal-thumbs{
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pack-reveal-thumb{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.pack-reveal-thumb.opened{
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #3730a3;
}

.pack-reveal-thumb.active{
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  border-color: transparent;
  color: #fff;
}

.reveal-card{
  animation: popReveal .35s ease;
}

@keyframes popReveal{
  from{
    transform: scale(.85);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}

/* ===================================== */
/* PACK REVEAL LAND CARDS = SHOP STYLE   */
/* ===================================== */

#pack-reveal-stage .nft-card.land.l1{ --color:#22c55e; }
#pack-reveal-stage .nft-card.land.l2{ --color:#eab308; }
#pack-reveal-stage .nft-card.land.l3{ --color:#ef4444; }

#pack-reveal-stage .nft-card.land{
  width: 240px;
  height: 320px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(15,23,42,0.18);
  background: linear-gradient(180deg, var(--color) 0%, color-mix(in srgb, var(--color) 72%, #000 28%) 100%);
}

#pack-reveal-stage .nft-card.land::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:22px;
  padding:4px;
  background:linear-gradient(145deg,var(--color),#0f172a,var(--color));
  -webkit-mask:
  linear-gradient(#000 0 0) content-box,
  linear-gradient(#000 0 0);
mask:
  linear-gradient(#000 0 0) content-box,
  linear-gradient(#000 0 0);

-webkit-mask-composite: xor;
mask-composite: exclude;
}

#pack-reveal-stage .nft-card.land .nft-inner{
  position:absolute;
  inset:8px;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,0.05);
  background:
    linear-gradient(180deg, #dfe4ea 0%, #cfd6dd 100%),
    repeating-linear-gradient(
      45deg,
      rgba(0,0,0,0.035) 0px,
      rgba(0,0,0,0.035) 8px,
      rgba(255,255,255,0.03) 8px,
      rgba(255,255,255,0.03) 16px
    );
}

#pack-reveal-stage .nft-card.land .nft-title{
  text-align:center;
  font-weight:800;
  padding:14px 10px 8px;
  color:#24324a;
  letter-spacing:1.5px;
  font-size:13px;
  position:relative;
  z-index:2;
}

#pack-reveal-stage .nft-card.land .nft-badge{
  position:absolute;
  bottom:14px;
  left:50%;
  transform:translateX(-50%);
  width:58px;
  height:58px;
  border-radius:50%;
  color:#13233c;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
  font-size:17px;
  border:2px solid rgba(15,23,42,0.18);
  box-shadow:
    0 8px 16px rgba(0,0,0,0.18),
    inset 0 1px 4px rgba(255,255,255,0.45);
  z-index:3;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, #e2e8f0 58%, #94a3b8 100%);
}

#pack-reveal-stage .nft-card.land .land-layout{
  position: relative;
  width: 100%;
  height: 190px;
}

#pack-reveal-stage .nft-card.land .land-layout-1{
  display:flex;
  align-items:center;
  justify-content:center;
}

#pack-reveal-stage .nft-card.land .land-layout-1 .land-tile{
  width:110px;
  height:110px;
  object-fit:contain;
  display:block;
}

#pack-reveal-stage .nft-card.land .land-layout-2 .land-tile{
  width:88px;
  height:88px;
  object-fit:contain;
  display:block;
  position:absolute;
}

#pack-reveal-stage .nft-card.land .land-layout-2 .land-tile:nth-child(1){
  left:38px;
  top:52px;
}

#pack-reveal-stage .nft-card.land .land-layout-2 .land-tile:nth-child(2){
  right:38px;
  top:52px;
}

#pack-reveal-stage .nft-card.land .land-layout-3 .land-tile{
  width:72px;
  height:72px;
  object-fit:contain;
  display:block;
  position:absolute;
}

#pack-reveal-stage .nft-card.land .land-top{
  left:50%;
  top:26px;
  transform:translateX(-50%);
}

#pack-reveal-stage .nft-card.land .land-bottom-left{
  left:46px;
  bottom:22px;
}

#pack-reveal-stage .nft-card.land .land-bottom-right{
  right:46px;
  bottom:22px;
}

/* ===================================== */
/* SIMPLE TWO PANEL LAYOUT               */
/* ===================================== */

.packs-layout {
  display: grid;
  grid-template-columns: 380px 380px;
  justify-content: center;
  gap: 36px;
  align-items: start;
}

.packs-left,
.packs-right {
  width: 380px;
}

.packs-left .packs-board-card,
.packs-right .packs-board-card {
  width: 100%;
  min-height: 520px;
}

.packs-left .packs-board-body,
.packs-right .packs-board-body,
.packs-board-body {
  min-height: 420px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 10px;
}

#packs-grid,
#pack-reveal-stage {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

#pack-reveal-stage {
  min-height: 420px;
}

.pack-open-simple {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
}

.pack-open-simple-img {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
}

.pack-open-simple-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 6px;
}

.pack-open-simple-count {
  font-size: 14px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 12px;
}

.pack-open-simple-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
}

#pack-open-count-slider {
  width: 100%;
  margin-bottom: 14px;
}

.pack-open-controls {
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.open-selected-packs-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  cursor: pointer;
  display: block;
}

.pack-reveal-wrap {
  width: 100%;
  max-width: 280px;
  min-height: 420px;
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pack-reveal-single-view {
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

#pack-reveal-stage .empty {
  width: 100%;
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
  background: transparent;
  border: none;
  box-shadow: none;
}

@media (max-width: 900px) {
  .packs-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .packs-left,
  .packs-right {
    width: 100%;
    max-width: 380px;
  }
}

@media (max-width: 640px){
  .pack-reveal-wrap{
    max-width: 100%;
    padding: 18px 12px 16px;
  }

  #pack-reveal-stage .nft-card,
  #pack-reveal-stage .reveal-card{
    width: 220px;
    min-height: 294px;
    height: 294px;
  }

  .pack-reveal-single-view{
    min-height: 330px;
  }
}
/* FINAL VERTICAL PACK LAYOUT */

.packs-layout{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:28px;
}

.packs-left,
.packs-right{
  width:100%;
  max-width:520px;
}
/* ===== FULL-WIDTH SIMPLE PACK PAGE ===== */

.packs-layout{
  width:100%;
  max-width:1000px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:34px;
  padding:10px 0 20px;
}

.packs-hero-section{
  width:100%;
  text-align:center;
}

.packs-section-head{
  margin-bottom:18px;
}

.packs-section-head h3{
  font-size:26px;
  font-weight:800;
  color:#1e3a5f;
  margin:0 0 6px;
}

.packs-section-note{
  font-size:14px;
  color:#64748b;
}

.pack-reveal-stage{
  width:100%;
  min-height:320px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.pack-reveal-stage .empty{
  font-size:16px;
  color:#64748b;
  text-align:center;
}

.packs-grid{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* opened reveal content */
.pack-reveal-wrap{
  width:100%;
  max-width:420px;
  margin:0 auto;
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
}

.pack-reveal-single-view{
  min-height:300px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.pack-reveal-controls{
  margin-top:14px;
}

.pack-reveal-thumbs{
  margin-top:12px;
  display:flex;
  justify-content:center;
  gap:8px;
}

/* open pack controls */
/*.pack-open-simple{
  width:100%;
  max-width:320px;
  margin:0 auto;
  text-align:center;
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
}

.pack-open-simple-img{
  width:120px;
  height:auto;
  display:block;
  margin:0 auto 14px;
}

.pack-open-simple-title{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:6px;
}

.pack-open-simple-count{
  font-size:14px;
  font-weight:700;
  color:#475569;
  margin-bottom:10px;
}

.pack-open-simple-label{
  display:block;
  font-size:14px;
  font-weight:700;
  color:#0f172a;
  margin-bottom:10px;
}

#pack-open-count-slider{
  width:100%;
  margin-bottom:14px;
}

.open-selected-packs-btn{
  width:100%;
  border:none;
  border-radius:14px;
  padding:13px 16px;
  font-size:15px;
  font-weight:800;
  color:#fff;
  background:linear-gradient(90deg,#4f46e5 0%,#7c3aed 100%);
  cursor:pointer;
} */
/* SEALED PACK HORIZONTAL LAYOUT */

.pack-open-simple{
  max-width:720px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:28px;
  flex-wrap:wrap;
  text-align:left;
}

.pack-open-simple-img{
  width:120px;
  height:auto;
}

.pack-open-simple-info{
  flex:1;
  min-width:220px;
}

.pack-open-simple-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:6px;
}

.pack-open-simple-count{
  font-size:14px;
  color:#475569;
  margin-bottom:8px;
}

#pack-open-count-slider{
  width:100%;
  margin:8px 0 12px;
}

.open-selected-packs-btn{
  max-width:200px;
}
/* ===== PACK REVEAL MODAL ===== */

.pack-reveal-modal.hidden{
  display:none;
}

.pack-reveal-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pack-reveal-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,0.58);
  backdrop-filter:blur(4px);
}

.pack-reveal-modal-box{
  position:relative;
  z-index:2;
  width:min(92vw, 720px);
  max-height:95vh;
  overflow:auto;
  border-radius:24px;
  padding:22px 20px 20px;
  background:linear-gradient(180deg,#f8fbff 0%,#eef3f9 100%);
  box-shadow:0 20px 50px rgba(0,0,0,0.28);
  border:1px solid rgba(255,255,255,0.5);
}

.pack-reveal-close-btn{
  position:absolute;
  top:12px;
  right:12px;
  width:42px;
  height:42px;
  border:none;
  border-radius:999px;
  background:#e2e8f0;
  color:#0f172a;
  font-size:28px;
  line-height:1;
  cursor:pointer;
}

.pack-reveal-modal-head{
  text-align:center;
  margin-bottom:16px;
}

.pack-reveal-modal-head h3{
  margin:0 0 4px;
  font-size:26px;
  font-weight:800;
  color:#1e3a5f;
}

.pack-reveal-modal-note{
  font-size:14px;
  color:#64748b;
}

.pack-reveal-modal-stage{
  min-height:420px;
  display:flex;
  justify-content:center;
  align-items:center;
}

/* empty state in modal */
.pack-reveal-modal-stage .empty{
  text-align:center;
  color:#64748b;
  font-size:15px;
}

/* keep reveal content centered in popup */
.pack-reveal-modal-stage .pack-reveal-wrap{
  width:100%;
  max-width:420px;
  margin:0 auto;
  padding:0;
  background:transparent;
  border:none;
  box-shadow:none;
}

.pack-reveal-modal-stage .pack-reveal-single-view{
  min-height:320px;
  display:flex;
  justify-content:center;
  align-items:center;
}
/* ============================= */
/* FINAL GLOBAL BACKGROUND OVERRIDE */
/* keep this at very end of styles.css */
/* ============================= */

body {
  background:
    radial-gradient(circle at 12% 14%, rgba(86, 104, 255, 0.16), transparent 20%),
    radial-gradient(circle at 86% 12%, rgba(39, 174, 196, 0.14), transparent 18%),
    radial-gradient(circle at 78% 72%, rgba(139, 92, 246, 0.13), transparent 22%),
    radial-gradient(circle at 18% 82%, rgba(59, 130, 246, 0.10), transparent 18%),
    linear-gradient(135deg, #f6f8fc 0%, #edf2f9 42%, #f3f0fa 72%, #eef7f7 100%) !important;
  background-attachment: fixed !important;
}
/* ===== TEST: FORCE BACKGROUND ===== */
html,
body {
  background: #dfe6ff !important;
}

body {
  background:
    radial-gradient(circle at 20% 20%, rgba(80,120,255,0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(120,80,255,0.06), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(80,255,200,0.05), transparent 40%),
    #f6f8fb;
}
.status-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
  animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34,197,94,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34,197,94,0);
  }
}
.leaderboard-row {
  display: grid;
  grid-template-columns: 90px 1fr 180px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.leaderboard-top {
  background: linear-gradient(180deg, #fffdf5 0%, #fff7e8 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.10);
}

.leaderboard-rank {
  font-size: 1.05rem;
}
/* ===== Leaderboard Sub Navigation ===== */

.leaderboard-subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.leaderboard-subnav-btn {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  background: #eef2ff;
  color: #1e3a8a;
  cursor: pointer;
}

.leaderboard-subnav-btn-active {
  background: #1e3a8a;
  color: #ffffff;
}

.leaderboard-tab-panel {
  display: none;
}

.leaderboard-tab-panel-active {
  display: block;
}
.leaderboard-tab-panel-active {
  width: 100%;
  min-height: 420px;
}
/* ===== Premium Leaderboard ===== */

.card-leaderboard {
  width: 100%;
  min-height: 260px;
  padding: 0;
  overflow: hidden;
}

.leaderboard-shell {
  width: 100%;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,255,0.98) 100%);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.leaderboard-topbar {
  height: 5px;
  background: linear-gradient(90deg, #3b82f6 0%, #64748b 45%, #fbbf24 100%);
}

.leaderboard-body {
  padding: 18px 18px 16px;
}

.leaderboard-empty {
  min-height: 190px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  color: #1f2937;
  font-weight: 600;
  line-height: 1.6;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 90px 1.8fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.leaderboard-sort-header {
  cursor: pointer;
  user-select: none;
  border-radius: 10px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

.leaderboard-sort-header:hover {
  background: #eef2ff;
  color: #1d4ed8;
}

.leaderboard-sort-header.active {
  background: #fef3c7;
  color: #92400e;
  box-shadow: inset 0 0 0 1px #facc15;
}
.leaderboard-metric {
  text-align: center;
  white-space: nowrap;
}
.leaderboard-player {
  min-width: 0;
}
.leaderboard-header-row {
  display: grid;
  grid-template-columns: 90px 1.8fr 1fr 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
}
.leaderboard-top {
  background: linear-gradient(180deg, #fffdf5 0%, #fff7e8 100%);
  border: 1px solid rgba(251, 191, 36, 0.28);
  box-shadow: 0 8px 18px rgba(251, 191, 36, 0.10);
}

.leaderboard-rank {
  font-weight: 900;
  color: #1d4ed8;
  font-size: 1.05rem;
}

.leaderboard-player {
  font-weight: 800;
  color: #0f172a;
}

.leaderboard-score {
  text-align: right;
  font-weight: 900;
  color: #0f172a;
}
.your-rank-row {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.20);
  font-weight: 800;
  color: #1e3a8a;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}
/* =========================================
   CODEX PAGE V2
========================================= */

.codex-page{
  width:100%;
}

.codex-shell{
  max-width:1200px;
  margin:0 auto;
  padding:28px 20px 60px;
}

.codex-hero-v2{
  display:grid;
  grid-template-columns:1.4fr 0.9fr;
  gap:22px;
  align-items:stretch;
  margin-bottom:22px;
}

.codex-hero-copy,
.codex-hero-panel,
.codex-card-block,
.codex-mini-card{
  background:rgba(255,255,255,0.88);
  border:1px solid rgba(25,35,55,0.08);
  border-radius:22px;
  box-shadow:0 14px 34px rgba(24,39,75,0.10);
}

.codex-hero-copy{
  padding:28px;
}

.codex-kicker{
  display:inline-block;
  margin-bottom:10px;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(40,86,170,0.10);
  color:#2856aa;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.codex-hero-copy h1{
  margin:0 0 12px;
  font-size:40px;
  line-height:1.1;
  color:#162033;
}

.codex-hero-copy p{
  margin:0;
  font-size:16px;
  line-height:1.75;
  color:#42506a;
}

.codex-hero-panel{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.codex-hero-stat{
  padding:16px 18px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(245,248,255,0.95) 0%, rgba(234,241,251,0.95) 100%);
  border:1px solid rgba(45,71,125,0.08);
}

.codex-stat-label{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.06em;
  color:#6b7890;
  font-weight:700;
}

.codex-hero-stat strong{
  font-size:16px;
  color:#172339;
}

.codex-pill-nav{
  position: fixed;
  top: 88px;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 900;

  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;

  max-width: 1120px;
  width: calc(100% - 32px);

  padding: 10px;
  background: rgba(238,244,255,0.94);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15,23,42,0.10);
}
.codex-shell{
  padding-top:110px;
}

.codex-pill-nav a{
  text-decoration:none;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(255,255,255,0.88);
  border:1px solid rgba(25,35,55,0.08);
  color:#22314d;
  font-size:14px;
  font-weight:600;
  box-shadow:0 8px 20px rgba(24,39,75,0.08);
  transition:transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.codex-pill-nav a:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(24,39,75,0.12);
  background:#ffffff;
}

.codex-grid-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-bottom:20px;
}

.codex-grid-3{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.codex-card-block{
  padding:24px;
  margin-bottom:20px;
}

.codex-highlight-block{
  background:linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(244,248,255,0.95) 100%);
  border:1px solid rgba(66,106,177,0.14);
}

.codex-mini-card{
  padding:18px;
}

.codex-card-block h2{
  margin:0 0 14px;
  font-size:28px;
  line-height:1.2;
  color:#172339;
}

.codex-mini-card h3,
.codex-card-block h3{
  margin:0 0 10px;
  font-size:18px;
  color:#203150;
}

.codex-card-block p,
.codex-mini-card p,
.codex-card-block li,
.codex-mini-card li{
  font-size:15px;
  line-height:1.75;
  color:#42506a;
}

.codex-card-block ul,
.codex-card-block ol,
.codex-mini-card ul,
.codex-mini-card ol{
  margin:0;
  padding-left:20px;
}

.codex-card-block p + ul,
.codex-card-block p + ol,
.codex-card-block h3 + ul,
.codex-card-block h3 + ol,
.codex-mini-card p + ul,
.codex-mini-card h3 + ul{
  margin-top:8px;
}

.codex-flow-box{
  margin:14px 0 14px;
  padding:16px 18px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(235,243,255,0.95) 0%, rgba(225,236,251,0.95) 100%);
  border:1px solid rgba(67,104,173,0.12);
  color:#1c2d4a;
  font-weight:700;
  line-height:1.7;
}

.codex-note{
  margin-top:10px !important;
  font-size:13px !important;
  color:#6b7890 !important;
}

@media (max-width: 980px){
  .codex-hero-v2,
  .codex-grid-2,
  .codex-grid-3{
    grid-template-columns:1fr;
  }

  .codex-hero-copy h1{
    font-size:32px;
  }
}

@media (max-width: 640px){
  .codex-shell{
    padding:20px 14px 44px;
  }

  .codex-card-block,
  .codex-hero-copy,
  .codex-hero-panel,
  .codex-mini-card{
    border-radius:18px;
  }

  .codex-card-block{
    padding:18px;
  }

  .codex-hero-copy{
    padding:22px 18px;
  }

  .codex-card-block h2{
    font-size:24px;
  }

  .codex-pill-nav a{
    font-size:13px;
    padding:9px 13px;
  }
}
/* =========================================
   CODEX POLISH
========================================= */

.codex-card-block,
.codex-mini-card,
.codex-hero-copy,
.codex-hero-panel{
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.codex-card-block:hover,
.codex-mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(24,39,75,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.codex-card-block{
  position: relative;
  overflow: hidden;
}

.codex-card-block::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background: linear-gradient(90deg, #6ea8ff 0%, #8f7bff 50%, #67d7c4 100%);
  opacity:0.9;
}

.codex-mini-card{
  position: relative;
  overflow: hidden;
}

.codex-mini-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background: linear-gradient(90deg, rgba(110,168,255,0.95) 0%, rgba(143,123,255,0.95) 100%);
}

.codex-card-block h2{
  letter-spacing:-0.02em;
}

.codex-card-block h2::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background: linear-gradient(90deg, #7aa7ff 0%, #8c80ff 100%);
}

.codex-mini-card h3,
.codex-card-block h3{
  letter-spacing:-0.01em;
}

.codex-card-block ul li,
.codex-card-block ol li,
.codex-mini-card ul li,
.codex-mini-card ol li{
  margin-bottom:6px;
}

.codex-highlight-block{
  box-shadow: 0 18px 42px rgba(62,96,170,0.14);
}

.codex-flow-box{
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.codex-pill-nav{
  position: sticky;
  top: 78px;
  z-index: 5;
  padding: 10px 0 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.codex-pill-nav a.active,
.codex-pill-nav a:hover{
  color:#13203a;
  border-color: rgba(61,97,172,0.18);
}

@media (max-width: 980px){
  .codex-pill-nav{
    position: static;
    top: auto;
    padding: 0;
  }
}
/* =========================================
   CODEX POLISH
========================================= */

.codex-card-block,
.codex-mini-card,
.codex-hero-copy,
.codex-hero-panel{
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.codex-card-block:hover,
.codex-mini-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(24,39,75,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.codex-card-block{
  position: relative;
  overflow: hidden;
}

.codex-card-block::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
  background: linear-gradient(90deg, #6ea8ff 0%, #8f7bff 50%, #67d7c4 100%);
  opacity:0.9;
}

.codex-mini-card{
  position: relative;
  overflow: hidden;
}

.codex-mini-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:3px;
  background: linear-gradient(90deg, rgba(110,168,255,0.95) 0%, rgba(143,123,255,0.95) 100%);
}

.codex-card-block h2{
  letter-spacing:-0.02em;
}

.codex-card-block h2::after{
  content:"";
  display:block;
  width:56px;
  height:3px;
  margin-top:10px;
  border-radius:999px;
  background: linear-gradient(90deg, #7aa7ff 0%, #8c80ff 100%);
}

.codex-mini-card h3,
.codex-card-block h3{
  letter-spacing:-0.01em;
}

.codex-card-block ul li,
.codex-card-block ol li,
.codex-mini-card ul li,
.codex-mini-card ol li{
  margin-bottom:6px;
}

.codex-highlight-block{
  box-shadow: 0 18px 42px rgba(62,96,170,0.14);
}

.codex-flow-box{
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.codex-pill-nav{
  position: sticky;
  top: 78px;
  z-index: 5;
  padding: 10px 0 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.codex-pill-nav a.active,
.codex-pill-nav a:hover{
  color:#13203a;
  border-color: rgba(61,97,172,0.18);
}

@media (max-width: 980px){
  .codex-pill-nav{
    position: static;
    top: auto;
    padding: 0;
  }
}
.codex-card-block::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:1px;
  background:linear-gradient(
    90deg,
    transparent,
    rgba(120,150,255,0.35),
    transparent
  );
}
.codex-icon{
  width:20px;
  height:20px;
  margin-right:8px;
  vertical-align:-3px;
  stroke:#4a6cff;
  stroke-width:2;
  fill:none;
}
.codex-icon{
  width:26px;
  height:26px;
  margin-right:10px;
  vertical-align:-4px;
  stroke:#4a6cff;
  stroke-width:2;
  fill:none;
}
.ui-icon{
  width:22px;
  height:22px;
  vertical-align:-4px;
  margin-right:6px;
  stroke:#4a6cff;
  stroke-width:2;
  fill:none;
}
.footer-icons{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:35px;
  flex-direction:row;
}
.footer-social-icon:hover{
  transform: translateY(-4px) scale(1.15);
  opacity:1;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.25));
}
.global-footer{
  margin-top:60px;
}
.global-footer{
  background: transparent;
  text-align: center;
  padding: 28px 0 50px;
}
.leader-name{
  font-size:22px;
  font-weight:700;
  color:#1b2538;
}

.leader-title{
  font-size:14px;
  font-weight:500;
  color:#6c7a92;
  margin-top:4px;
}
.leaderboard-name{
  font-size: 20px;
  font-weight: 800;
  color: #16233b;
  line-height: 1.1;
}

.leaderboard-title{
  font-size: 13px;
  font-weight: 600;
  color: #7a869a;
  margin-top: 4px;
}.leaderboard-title{
  font-size: 13px;
  font-weight: 600;
  color: #7a869a;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-title-icon{
  width: 16px;
  height: 16px;
  stroke: #6b7cff;
  stroke-width: 2.2;
  fill: none;
  flex-shrink: 0;
  display: inline-block;
}
.leaderboard-title{
  font-size: 13px;
  font-weight: 600;
  color: #7a869a;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.leaderboard-title-icon{
  flex-shrink: 0;
}
.leaderboard-rank-icon{
  width:32px;
  height:32px;
  stroke:#f4a62a;
  stroke-width:2.4;
  fill:none;
  display:block;
}
/* =========================================
   MYDEMPIRE — OPEN PACK SECTION POLISH
   Paste at END of styles.css
   ========================================= */

.packs-board-card,
.pack-reveal-card{
  border:1px solid #d9e2f0;
  border-radius:24px;
  background:
    radial-gradient(circle at top left, rgba(79,124,255,0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(124,58,237,0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding:24px;
  box-shadow:0 12px 28px rgba(15,23,42,0.06);
}

/* remove heavy dark header feel */
.packs-board-head{
  background:transparent !important;
  border:none !important;
  padding:0 0 14px 0 !important;
  margin-bottom:12px !important;
  text-align:center;
}

.packs-board-head h3{
  margin:0;
  font-size:30px;
  font-weight:900;
  letter-spacing:0.02em;
  color:#17305c !important;
}

.packs-board-note{
  margin-top:6px;
  font-size:14px;
  color:#64748b !important;
  font-weight:600;
}

/* main area */
#packs-grid,
.packs-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-height:280px;
  padding:8px 0 0;
}

/* full pack card */
.sealed-pack-main{
  width:min(100%, 720px);
  margin:0 auto;
  padding:22px 26px;
  border-radius:24px;
  border:1px solid #dde6f5;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(243,248,255,0.98) 100%);
  display:grid;
  grid-template-columns:160px 1fr;
  gap:24px;
  align-items:center;
  cursor:pointer;
  box-shadow:
    0 14px 30px rgba(29,78,216,0.08),
    inset 0 1px 0 rgba(255,255,255,0.85);
  transition:transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.sealed-pack-main:hover{
  transform:translateY(-4px);
  border-color:#bfd1ee;
  box-shadow:
    0 18px 34px rgba(29,78,216,0.12),
    inset 0 1px 0 rgba(255,255,255,0.92);
}

/* image box */
.sealed-pack-main-media{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:150px;
  border-radius:20px;
  background:
    radial-gradient(circle at center, rgba(255,214,102,0.22) 0%, rgba(255,214,102,0) 62%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border:1px solid #e6edf8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}

/* bigger pack image + gentle movement */
.sealed-pack-main-img{
  width:110px !important;
  max-width:100%;
  height:auto;
  display:block;
  object-fit:contain;
  filter:drop-shadow(0 14px 20px rgba(15,23,42,0.18));
  animation:mdePackFloat 3.2s ease-in-out infinite;
  transform-origin:center;
}

@keyframes mdePackFloat{
  0%   { transform:translateY(0px); }
  50%  { transform:translateY(-10px); }
  100% { transform:translateY(0px); }
}

/* optional shake when opening */
.sealed-pack-main.pack-opening .sealed-pack-main-img{
  animation:mdePackShake .75s ease-in-out 1;
}

@keyframes mdePackShake{
  0%   { transform:translateY(0) rotate(0deg) scale(1); }
  20%  { transform:translateY(-4px) rotate(-4deg) scale(1.03); }
  40%  { transform:translateY(2px) rotate(4deg) scale(1.05); }
  60%  { transform:translateY(-3px) rotate(-3deg) scale(1.04); }
  80%  { transform:translateY(1px) rotate(2deg) scale(1.02); }
  100% { transform:translateY(0) rotate(0deg) scale(1); }
}

.sealed-pack-main-content{
  min-width:0;
}

.sealed-pack-main-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 18px;
  margin-bottom:10px;
}

.sealed-pack-main-title{
  font-size:24px;
  font-weight:900;
  color:#0f172a;
  margin:0;
}

.sealed-pack-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  border:1px solid #d9e3f3;
  background:#f8fbff;
  color:#334155;
}

.sealed-pack-chip strong{
  color:#1d4ed8;
  margin-left:4px;
}

.sealed-pack-main-sub{
  font-size:14px;
  line-height:1.6;
  color:#64748b;
  margin-bottom:16px;
}

/* slider zone */
.pack-open-controls,
.pack-open-simple,
.packs-open-controls{
  width:100%;
}

.pack-open-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  font-size:14px;
  font-weight:800;
  color:#334155;
}

.pack-open-value{
  color:#4f46e5;
  font-weight:900;
}

#pack-open-count-slider,
input[type="range"]{
  width:100%;
  height:6px;
  appearance:none;
  border-radius:999px;
  background:linear-gradient(90deg,#22d3ee 0%, #4f46e5 100%);
  outline:none;
  margin:8px 0 18px;
}

#pack-open-count-slider::-webkit-slider-thumb,
input[type="range"]::-webkit-slider-thumb{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#ffffff;
  border:3px solid #4f46e5;
  box-shadow:0 3px 10px rgba(79,70,229,0.25);
  cursor:pointer;
}

#pack-open-count-slider::-moz-range-thumb,
input[type="range"]::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#ffffff;
  border:3px solid #4f46e5;
  box-shadow:0 3px 10px rgba(79,70,229,0.25);
  cursor:pointer;
}

/* button */
.open-selected-packs-btn,
.open-pack-btn,
#open-pack-btn{
  min-width:190px;
  border:none;
  border-radius:14px;
  padding:14px 20px;
  background:linear-gradient(135deg,#5b5cf0 0%, #7c3aed 100%);
  color:#ffffff;
  font-size:15px;
  font-weight:900;
  letter-spacing:0.01em;
  box-shadow:0 10px 20px rgba(92,92,240,0.22);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.open-selected-packs-btn:hover,
.open-pack-btn:hover,
#open-pack-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 24px rgba(92,92,240,0.28);
  filter:brightness(1.02);
}

/* center button if wrapped separately */
.pack-open-btn-wrap{
  margin-top:8px;
  display:flex;
  justify-content:center;
}

/* responsive */
@media (max-width: 760px){
  .sealed-pack-main{
    grid-template-columns:1fr;
    text-align:center;
    gap:18px;
    padding:20px 16px;
  }

  .sealed-pack-main-top{
    justify-content:center;
  }

  .sealed-pack-main-media{
    min-height:130px;
  }

  .sealed-pack-main-img{
    width:96px !important;
  }
}
/* =========================================
   MYDEMPIRE — FINAL PACK OPEN POLISH
   Paste at END of styles.css
   ========================================= */

/* section wrapper */
.packs-layout{
  width:100%;
  max-width:760px;
  margin:0 auto;
  padding:6px 0 18px;
}

.packs-hero-section{
  width:100%;
}

.packs-grid{
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0;
  margin:0;
}

/* kill old heavy headers if any still remain */
.packs-board-head,
.packs-section-head{
  display:none !important;
}

/* outer area card */
.packs-board-card,
.pack-reveal-card{
  border:1px solid #dbe4f0;
  border-radius:26px;
  background:
    radial-gradient(circle at top left, rgba(79,70,229,0.05), transparent 28%),
    radial-gradient(circle at bottom right, rgba(56,189,248,0.06), transparent 26%),
    linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  padding:24px;
  box-shadow:0 14px 34px rgba(15,23,42,0.06);
}

/* main sealed pack card */
.sealed-pack-main{
  width:min(100%, 760px);
  margin:0 auto;
  padding:24px;
  border-radius:26px;
  border:1px solid #dbe4f0;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(241,248,255,0.98) 100%);
  display:grid;
  grid-template-columns:170px 1fr;
  gap:24px;
  align-items:center;
  box-shadow:
    0 14px 32px rgba(29,78,216,0.08),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sealed-pack-main:hover{
  transform:translateY(-3px);
  border-color:#c9d9ee;
  box-shadow:
    0 18px 36px rgba(29,78,216,0.12),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

/* pack image area */
.sealed-pack-main-media{
  min-height:156px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  border:1px solid #e5edf8;
  background:
    radial-gradient(circle at center, rgba(255,203,70,0.22) 0%, rgba(255,203,70,0) 58%),
    linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
  overflow:hidden;
}

.sealed-pack-main-img{
  width:118px !important;
  height:auto;
  display:block;
  object-fit:contain;
  filter:drop-shadow(0 12px 22px rgba(15,23,42,0.18));
  animation:mdePackFloat 3.4s ease-in-out infinite;
  transform-origin:center;
}

@keyframes mdePackFloat{
  0%{ transform:translateY(0); }
  50%{ transform:translateY(-8px); }
  100%{ transform:translateY(0); }
}

.sealed-pack-main-content{
  min-width:0;
}

.sealed-pack-main-top{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px 12px;
  margin-bottom:10px;
}

.sealed-pack-main-title{
  margin:0;
  font-size:19px;
  font-weight:900;
  color:#0f172a;
}

.sealed-pack-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid #dbe4f0;
  background:#f8fbff;
  color:#334155;
  font-size:13px;
  font-weight:800;
}

.sealed-pack-chip strong{
  color:#4f46e5;
}

.sealed-pack-main-sub{
  font-size:14px;
  line-height:1.65;
  color:#64748b;
  margin-bottom:14px;
}

.pack-open-label{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:8px;
  font-size:14px;
  font-weight:800;
  color:#334155;
}

.pack-open-value{
  color:#4f46e5;
  font-weight:900;
}

/* slider */
#pack-open-count-slider{
  width:100%;
  appearance:none;
  height:6px;
  border-radius:999px;
  outline:none;
  margin:8px 0 18px;
  background:linear-gradient(90deg,#22d3ee 0%, #4f46e5 100%);
}

#pack-open-count-slider::-webkit-slider-thumb{
  appearance:none;
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4f46e5;
  box-shadow:0 3px 10px rgba(79,70,229,0.25);
  cursor:pointer;
}

#pack-open-count-slider::-moz-range-thumb{
  width:18px;
  height:18px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4f46e5;
  box-shadow:0 3px 10px rgba(79,70,229,0.25);
  cursor:pointer;
}

/* button */
.pack-open-btn-wrap{
  display:flex;
  justify-content:flex-start;
}

.open-selected-packs-btn,
#open-selected-packs-btn{
  min-width:190px;
  border:none;
  border-radius:14px;
  padding:14px 20px;
  font-size:15px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,#5b5cf0 0%, #7c3aed 100%);
  box-shadow:0 10px 20px rgba(92,92,240,0.22);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.open-selected-packs-btn:hover,
#open-selected-packs-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 26px rgba(92,92,240,0.28);
  filter:brightness(1.02);
}

/* mobile */
@media (max-width: 760px){
  .sealed-pack-main{
    grid-template-columns:1fr;
    text-align:center;
    gap:18px;
    padding:18px;
  }

  .sealed-pack-main-top{
    justify-content:center;
  }

  .pack-open-btn-wrap{
    justify-content:center;
  }

  .sealed-pack-main-img{
    width:104px !important;
  }
}
/* =========================================
   MYDEMPIRE — PACK OPEN STAGE REDESIGN
   ========================================= */

.packs-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:10px 0 18px;
}

.pack-opening-stage{
  position:relative;
  width:100%;
  max-width:620px;
  margin:0 auto;
}

.pack-stage-glow{
  position:absolute;
  inset:auto 50% 30px 50%;
  width:280px;
  height:280px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(96,165,250,0.18) 0%, rgba(124,58,237,0.14) 35%, rgba(255,255,255,0) 72%);
  pointer-events:none;
  filter:blur(10px);
}

.pack-stage-card{
  position:relative;
  z-index:1;
  padding:28px 28px 26px;
  border-radius:28px;
  border:1px solid rgba(201,213,231,0.9);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(246,250,255,0.98) 100%);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.08),
    inset 0 1px 0 rgba(255,255,255,0.95);
  text-align:center;
}

.pack-stage-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  flex-wrap:wrap;
}

.pack-stage-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#1e3a8a 0%, #4338ca 100%);
  color:#fff;
  font-size:13px;
  font-weight:800;
  letter-spacing:0.02em;
  box-shadow:0 8px 20px rgba(67,56,202,0.18);
}

.pack-stage-stock{
  font-size:14px;
  font-weight:700;
  color:#475569;
}

.pack-stage-stock strong{
  color:#4338ca;
}

.pack-stage-image-wrap{
  position:relative;
  width:220px;
  height:220px;
  margin:0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:28px;
  background:
    radial-gradient(circle at center, rgba(255,214,102,0.24) 0%, rgba(255,214,102,0.08) 30%, rgba(255,255,255,0) 70%);
}

.pack-stage-image{
  width:150px;
  height:auto;
  object-fit:contain;
  display:block;
  filter:drop-shadow(0 18px 28px rgba(15,23,42,0.22));
  animation:mdePackHoverFloat 3.2s ease-in-out infinite;
  transition:transform .25s ease;
}

.pack-stage-card:hover .pack-stage-image{
  transform:scale(1.04);
}

@keyframes mdePackHoverFloat{
  0%{ transform:translateY(0px); }
  50%{ transform:translateY(-10px); }
  100%{ transform:translateY(0px); }
}

.pack-stage-title{
  font-size:32px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:8px;
  letter-spacing:-0.02em;
}

.pack-stage-subtitle{
  max-width:420px;
  margin:0 auto 22px;
  font-size:15px;
  line-height:1.7;
  color:#64748b;
}

.pack-stage-control{
  max-width:440px;
  margin:0 auto;
  text-align:left;
}

.pack-stage-count-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:15px;
  font-weight:800;
  color:#1e293b;
  margin-bottom:8px;
}

.pack-stage-count-row span:last-child{
  color:#4f46e5;
}

#pack-open-count-slider{
  width:100%;
  appearance:none;
  height:8px;
  border-radius:999px;
  outline:none;
  margin:8px 0 22px;
  background:linear-gradient(90deg,#22d3ee 0%, #4f46e5 100%);
}

#pack-open-count-slider::-webkit-slider-thumb{
  appearance:none;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4f46e5;
  box-shadow:0 4px 14px rgba(79,70,229,0.28);
  cursor:pointer;
}

#pack-open-count-slider::-moz-range-thumb{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4f46e5;
  box-shadow:0 4px 14px rgba(79,70,229,0.28);
  cursor:pointer;
}

.open-selected-packs-btn,
#open-selected-packs-btn{
  width:100%;
  border:none;
  border-radius:16px;
  padding:16px 22px;
  font-size:17px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,#4f46e5 0%, #7c3aed 100%);
  box-shadow:0 14px 28px rgba(79,70,229,0.24);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.open-selected-packs-btn:hover,
#open-selected-packs-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 32px rgba(79,70,229,0.30);
  filter:brightness(1.03);
}

@media (max-width: 640px){
  .pack-stage-card{
    padding:22px 16px 20px;
  }

  .pack-stage-top{
    justify-content:center;
  }

.pack-stage-image-wrap{
  width:420px;
  height:260px;
}

  .pack-stage-image{
    width:126px;
  }

  .pack-stage-title{
    font-size:26px;
  }
}
/* =====================================
   COMPACT PACK OPEN STAGE (75% SIZE)
   ===================================== */

.pack-opening-stage{
  transform: scale(0.85);
  transform-origin: top center;
}

/* reduce vertical spacing */
.pack-stage-card{
  padding:20px 22px 20px;
}

.pack-stage-image-wrap{
  width:170px;
  height:170px;
  margin-bottom:10px;
}

.pack-stage-image{
  width:340px;
  max-width:90%;
}

.pack-stage-title{
  font-size:26px;
  margin-bottom:4px;
}

.pack-stage-subtitle{
  font-size:14px;
  margin-bottom:16px;
}

.pack-stage-control{
  max-width:360px;
}

/* smaller button */
.open-selected-packs-btn,
#open-selected-packs-btn{
  padding:12px 18px;
  font-size:15px;
}
/* =========================================
   MYDEMPIRE — FINAL PACK OPEN EXPERIENCE
   ========================================= */

.packs-grid{
  display:flex;
  justify-content:center;
  align-items:center;
  padding:0 !important;
  margin:0 !important;
}

.pack-opening-stage{
  position:relative;
  width:100%;
  max-width:720px;
  margin:0 auto;
}

.pack-stage-glow{
  position:absolute;
  left:50%;
  top:110px;
  width:420px;
  height:420px;
  transform:translateX(-50%);
  border-radius:50%;
  background:
    radial-gradient(circle,
      rgba(255,196,64,0.30) 0%,
      rgba(124,58,237,0.14) 34%,
      rgba(59,130,246,0.10) 54%,
      rgba(255,255,255,0) 76%);
  filter:blur(18px);
  pointer-events:none;
  z-index:0;
}

.pack-stage-card{
  position:relative;
  z-index:1;
  text-align:center;
  padding:20px 22px 22px;
  border-radius:30px;
  border:1px solid #dbe4f0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97) 0%, rgba(246,250,255,0.98) 100%);
  box-shadow:
    0 22px 44px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.95);
  overflow:hidden;
}

.pack-stage-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.pack-stage-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 14px;
  border-radius:999px;
  background:linear-gradient(135deg,#1d4ed8 0%, #6d28d9 100%);
  color:#fff;
  font-size:13px;
  font-weight:900;
  letter-spacing:.03em;
  box-shadow:0 8px 18px rgba(79,70,229,0.20);
}

.pack-stage-stock{
  font-size:14px;
  font-weight:800;
  color:#475569;
}

.pack-stage-stock strong{
  color:#4f46e5;
}

.pack-stage-image-wrap{
  position:relative;
  width:100%;
  height:250px;
  margin:0 auto 8px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.pack-stage-image{
  width:320px !important;
  max-width:92% !important;
  height:auto !important;
  display:block;
  object-fit:contain;
  filter:
    drop-shadow(0 18px 28px rgba(15,23,42,0.20))
    drop-shadow(0 0 26px rgba(255,191,36,0.24));
  animation:mdePackFloatGlow 3s ease-in-out infinite;
  transition:transform .22s ease, filter .22s ease;
}

.pack-stage-card:hover .pack-stage-image{
  transform:scale(1.04);
  filter:
    drop-shadow(0 22px 32px rgba(15,23,42,0.22))
    drop-shadow(0 0 34px rgba(255,191,36,0.34));
}

@keyframes mdePackFloatGlow{
  0%   { transform:translateY(0px) scale(1); }
  50%  { transform:translateY(-12px) scale(1.02); }
  100% { transform:translateY(0px) scale(1); }
}

.pack-stage-title{
  font-size:24px;
  font-weight:900;
  color:#0f172a;
  margin:4px 0 6px;
  letter-spacing:-0.02em;
}

.pack-stage-subtitle{
  max-width:470px;
  margin:0 auto 16px;
  font-size:14px;
  line-height:1.7;
  color:#64748b;
}

.pack-stage-control{
  max-width:460px;
  margin:0 auto;
  text-align:left;
}

.pack-stage-count-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  font-size:15px;
  font-weight:900;
  color:#1e293b;
}

.pack-stage-count-row span:last-child{
  color:#4f46e5;
}

#pack-open-count-slider{
  width:100%;
  appearance:none;
  height:8px;
  border-radius:999px;
  outline:none;
  margin:8px 0 18px;
  background:linear-gradient(90deg,#22d3ee 0%, #4f46e5 55%, #7c3aed 100%);
}

#pack-open-count-slider::-webkit-slider-thumb{
  appearance:none;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4f46e5;
  box-shadow:0 4px 14px rgba(79,70,229,0.28);
  cursor:pointer;
}

#pack-open-count-slider::-moz-range-thumb{
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  border:3px solid #4f46e5;
  box-shadow:0 4px 14px rgba(79,70,229,0.28);
  cursor:pointer;
}

.open-selected-packs-btn,
#open-selected-packs-btn{
  width:100%;
  border:none;
  border-radius:18px;
  padding:15px 20px;
  font-size:17px;
  font-weight:900;
  color:#fff;
  background:linear-gradient(135deg,#4f46e5 0%, #7c3aed 100%);
  box-shadow:0 14px 30px rgba(79,70,229,0.26);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.open-selected-packs-btn:hover,
#open-selected-packs-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(79,70,229,0.32);
  filter:brightness(1.03);
}

@media (max-width: 640px){
  .pack-stage-card{
    padding:18px 14px 18px;
  }

  .pack-stage-top{
    justify-content:center;
  }

  .pack-stage-image-wrap{
    height:200px;
  }

  .pack-stage-image{
    width:240px !important;
  }

  .pack-stage-title{
    font-size:22px;
  }
}
@keyframes mdePackBurst{
  0%   { transform:scale(1) rotate(0deg); }
  30%  { transform:scale(1.10) rotate(-4deg); }
  60%  { transform:scale(1.16) rotate(4deg); }
  100% { transform:scale(1) rotate(0deg); }
}
/* =========================================
   PACK REVEAL POPUP — PREMIUM SUMMARY GRID
   ========================================= */

.pack-opened-banner{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  background:linear-gradient(135deg,#4f46e5 0%, #7c3aed 100%);
  color:#fff;
  font-size:14px;
  font-weight:900;
  margin:0 auto 14px;
  box-shadow:0 10px 22px rgba(79,70,229,0.22);
}

.pack-reveal-title{
  text-align:center;
  font-size:30px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:6px;
}

.pack-reveal-subtitle{
  text-align:center;
  font-size:14px;
  color:#64748b;
  margin-bottom:22px;
}

.premium-reveal-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(170px, 1fr));
  gap:18px;
  align-items:stretch;
}

.reveal-card{
  position:relative;
  overflow:hidden;
  min-height:160px;
  border-radius:24px;
  border:1px solid #dbe4f0;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  padding:18px 16px;
  box-shadow:0 14px 30px rgba(15,23,42,0.07);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  animation:revealCardIn .45s ease;
}

.reveal-card-glow{
  position:absolute;
  inset:auto 50% 8px 50%;
  width:120px;
  height:120px;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(circle, rgba(99,102,241,0.12) 0%, rgba(255,255,255,0) 70%);
  pointer-events:none;
}

.reveal-card-label{
  position:relative;
  z-index:1;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  color:#64748b;
  margin-bottom:10px;
}

.reveal-card-value{
  position:relative;
  z-index:1;
  font-size:24px;
  font-weight:900;
  color:#0f172a;
  line-height:1.2;
}

.reveal-card-sub{
  position:relative;
  z-index:1;
  margin-top:8px;
  font-size:13px;
  font-weight:700;
  color:#475569;
}

.reveal-card-land{
  border-color:#86efac;
  box-shadow:0 14px 30px rgba(34,197,94,0.12);
}

.reveal-card-blueprint{
  border-color:#c4b5fd;
  box-shadow:0 14px 30px rgba(124,58,237,0.12);
}

.reveal-card-emp,
.reveal-card-bonus{
  border-color:#93c5fd;
  box-shadow:0 14px 30px rgba(59,130,246,0.12);
}

.reveal-card-relic{
  border-color:#fcd34d;
  box-shadow:0 14px 34px rgba(245,158,11,0.16);
  background:linear-gradient(180deg,#fffdf5 0%, #fff8dc 100%);
}

@keyframes revealCardIn{
  0%{
    opacity:0;
    transform:translateY(16px) scale(0.96);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}
#pack-reveal-single-view{
  transition: all 0.35s cubic-bezier(.2,.8,.2,1);
}

.pack-reveal-item.reveal-pop{
  animation: packRevealPop 0.45s cubic-bezier(.22,.9,.24,1);
}

@keyframes packRevealPop{
  0%{
    opacity:0;
    transform:scale(0.82) translateY(18px);
    filter:blur(2px);
  }
  60%{
    opacity:1;
    transform:scale(1.04) translateY(-2px);
    filter:blur(0);
  }
  100%{
    opacity:1;
    transform:scale(1) translateY(0);
    filter:blur(0);
  }
}
.summary-icon{
  width:18px;
  height:18px;
  margin-right:6px;
  vertical-align:middle;
  opacity:0.9;
}
.summary-icon{
  width:18px;
  height:18px;
  margin-right:6px;
  vertical-align:middle;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  opacity:0.95;
}

.summary-icon-blue{
  color:#4f6fff;
}
.health-badge{
  display:inline-block;
  margin-top:6px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.04em;
}

.health-badge.green{
  background:rgba(34,197,94,0.12);
  color:#15803d;
  border:1px solid rgba(34,197,94,0.35);
}

.health-badge.yellow{
  background:rgba(234,179,8,0.12);
  color:#a16207;
  border:1px solid rgba(234,179,8,0.35);
}

.health-badge.red{
  background:rgba(239,68,68,0.12);
  color:#b91c1c;
  border:1px solid rgba(239,68,68,0.35);
}
.status-dot{
  display:inline-block;
  width:8px;
  height:8px;
  border-radius:50%;
  margin-right:6px;
  vertical-align:middle;
}
.assets-block{
  margin-top:30px;
}

.assets-title{
  font-weight:700;
  margin-bottom:12px;
  font-size:18px;
}

.assets-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:18px;
}

.asset-card{
  position:relative;
  text-align:center;
}

.asset-card img{
  width:100%;
}

.asset-qty{
  position:absolute;
  top:6px;
  right:8px;
  background:#1e293b;
  color:white;
  padding:2px 8px;
  border-radius:10px;
  font-size:12px;
}

.asset-land-card{
  text-align:center;
}

.asset-image{
  width:100%;
}

.asset-info{
  font-size:13px;
  margin-top:6px;
  color:#475569;
}

.status-ready{ background:#22c55e; }      /* green */
.status-pending{ background:#f59e0b; }    /* amber */
.status-completed{ background:#3b82f6; }  /* blue */
.status-notready{ background:#ef4444; }   /* red */

.home-login-box{
  margin-top:18px;
  padding:16px;
  border-radius:16px;
  border:1px solid #e5e7eb;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  box-shadow:0 8px 18px rgba(15,23,42,0.06);
}

.home-login-title{
  font-size:16px;
  font-weight:900;
  color:#0f172a;
  margin-bottom:8px;
}

.home-login-text{
  font-size:13px;
  line-height:1.6;
  color:#475569;
  margin-bottom:14px;
}

.home-login-btn{
  width:100%;
  padding:12px 14px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,#2563eb,#1d4ed8);
  color:#ffffff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 20px rgba(37,99,235,0.18);
}

.home-login-btn:hover{
  filter:brightness(1.03);
}

.home-login-note{
  margin-top:10px;
  font-size:12px;
  color:#64748b;
  text-align:center;
  font-weight:700;
}
#whitelist-popup {
position: fixed;
top:0;
left:0;
width:100%;
height:100%;
background: rgba(0,0,0,0.75);
display:flex;
align-items:center;
justify-content:center;
z-index:9999;
}

#whitelist-popup.hidden{
display:none;
}

.whitelist-popup-box{
background:#1b1b1b;
padding:40px;
border-radius:12px;
max-width:420px;
text-align:center;
color:white;
box-shadow:0 10px 40px rgba(0,0,0,0.6);
}

.discord-btn{
display:inline-block;
margin-top:20px;
padding:12px 20px;
background:#5865F2;
color:white;
text-decoration:none;
border-radius:6px;
font-weight:bold;
}

.popup-ok-btn{
margin-top:15px;
padding:10px 18px;
background:#444;
border:none;
color:white;
border-radius:6px;
cursor:pointer;
}
/* ============================= */
/* CARD ACTION MENU (TRANSFER / TRADE) */
/* ============================= */

.card-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.land-card:hover .card-actions,
.factory-card:hover .card-actions,
.blueprint-card:hover .card-actions {
  opacity: 1;
}

.card-menu-btn {
  background: rgba(0,0,0,0.65);
  color: white;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
}

.card-menu {
  display: none;
  position: absolute;
  top: 40px;
  right: 0;
  background: white;
  border-radius: 10px;
  border: 1px solid #ddd;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  padding: 6px;
}

.card-menu button {
  display: block;
  width: 180px;
  border: none;
  background: white;
  padding: 8px 10px;
  text-align: left;
  cursor: pointer;
}

.card-menu button:hover {
  background: #f5f5f5;
}
.bp-card-menu{
  display: none;
}
/* ============================= */
/* BLUEPRINT CARD ACTION MENU */
/* ============================= */

.blueprint-card{
  position: relative;
}

.bp-card-actions{
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 30;
}

.bp-card-menu-btn{
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}

.bp-card-menu{
  display: none;
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #dbe3ef;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
  padding: 8px;
}

.bp-card-menu.open{
  display: block;
}

.bp-card-menu button{
  width: 100%;
  border: none;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.bp-card-menu button:hover{
  background: #f8fafc;
}
.bp-mini-card{
  position: relative;
}
.bp-card-menu-btn{
  background: none;
  border: none;
  color: #1f2937;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}

.bp-card-menu-btn:hover{
  color: #0f172a;
  transform: scale(1.1);
}
.bp-card-menu-btn:hover{
  background: rgba(0,0,0,0.05);
  border-radius: 6px;
}
.asset-count-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:5;
  min-width:42px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#1f2937;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  box-shadow:0 4px 10px rgba(0,0,0,0.18);
}
/* ===== EMPIRE ASSETS HELPERS ===== */
.assets-tab-shell{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.assets-group-title{
  font-size:18px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:14px;
}

.asset-card-wrap{
  position:relative;
}

.asset-count-badge{
  position:absolute;
  top:10px;
  right:10px;
  z-index:5;
  min-width:42px;
  height:24px;
  padding:0 8px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#1f2937;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
  line-height:1;
  box-shadow:0 4px 10px rgba(0,0,0,0.18);
}

.assets-basic-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(180px, 1fr));
  gap:14px;
  margin-top:12px;
}

.assets-basic-box{
  background:#ffffff;
  border:1px solid #dbe3ee;
  border-radius:16px;
  padding:16px;
  box-shadow:0 8px 20px rgba(15,23,42,0.08);
}

.assets-basic-label{
  font-size:14px;
  font-weight:700;
  color:#475569;
  margin-bottom:8px;
}

.assets-basic-value{
  font-size:28px;
  font-weight:900;
  color:#0f172a;
}
.asset-card-wrap{
  position:relative;
}

.asset-count-badge{
  position:absolute;
  top:10px;
  right:10px;
  background:#1f2937;
  color:#fff;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  z-index:5;
}
/* LAND TILE SIZE */
.assets-dashboard-scope .land-tile{
  width:60px;
  height:auto;
}

/* LAND CARD INNER LAYOUT */
.assets-dashboard-scope .land-layout{
  position:relative;
  width:100%;
  height:120px;
  margin-top:30px;
}

/* L1 */
.assets-dashboard-scope .land-layout-1 .land-tile{
  position:absolute;
  left:50%;
  top:35px;
  transform:translateX(-50%);
}

/* L2 */
.assets-dashboard-scope .land-layout-2 .land-tile:nth-child(1){
  position:absolute;
  left:35%;
  top:35px;
  transform:translateX(-50%);
}

.assets-dashboard-scope .land-layout-2 .land-tile:nth-child(2){
  position:absolute;
  left:65%;
  top:35px;
  transform:translateX(-50%);
}

/* L3 triangle */
.assets-dashboard-scope .land-layout-3 .land-top{
  position:absolute;
  left:50%;
  top:0;
  transform:translateX(-50%);
}

.assets-dashboard-scope .land-layout-3 .land-bottom-left{
  position:absolute;
  left:35%;
  top:55px;
  transform:translateX(-50%);
}

.assets-dashboard-scope .land-layout-3 .land-bottom-right{
  position:absolute;
  left:65%;
  top:55px;
  transform:translateX(-50%);
}
.assets-iframe-wrap{
  width:100%;
  margin-top:12px;
  overflow:hidden;
}
.assets-showcase-frame{
  width:100%;
  height:800px;
  border:none;
  background:transparent;
  overflow:hidden;
}
.empire-inventory{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:18px;
}

.inventory-card{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background:#ffffff;
  border-radius:14px;
  border:1px solid #e5e7eb;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

.inventory-icon{
  width:46px;
  height:46px;
  object-fit:contain;
}

.inventory-info{
  display:flex;
  flex-direction:column;
}

.inventory-title{
  font-weight:700;
  font-size:14px;
  color:#1e293b;
}

.inventory-count{
  font-size:22px;
  font-weight:800;
  color:#0f172a;
}
.inventory-subcount{
  font-size:12px;
  font-weight:600;
  color:#64748b;
  margin-top:4px;
  line-height:1.5;
}
.land-grid{
  display:grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap:14px !important;
}

@media (max-width: 980px){
  .land-grid{
    grid-template-columns: 1fr !important;
  }
}
/* ===== LAND GRID IMPROVEMENT ===== */

.land-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:20px;
}

/* cleaner card spacing */
.land-card{
  background:#ffffff;
  border-radius:16px;
  padding:18px;
  border:1px solid #e5e7eb;
  box-shadow:0 6px 16px rgba(0,0,0,0.06);
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* title row */
.land-card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:700;
  font-size:16px;
}

/* factory slots area */
.land-card-slots{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* slot icons cleaner alignment */
.land-slot{
  width:90px;
  height:90px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f9fafb;
  border-radius:12px;
  border:1px solid #e5e7eb;
}

/* mobile responsiveness */
@media (max-width:900px){
  .land-grid{
    grid-template-columns:1fr;
  }
}
/* ===== EMPIRE ASSETS VISUAL UPGRADE ===== */

.empire-inventory{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
  gap:18px;
}

.inventory-card{
  display:flex;
  align-items:center;
  gap:16px;
  background:linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:16px;
  box-shadow:0 8px 20px rgba(15,23,42,0.06);
  transition:transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.inventory-card:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 28px rgba(15,23,42,0.10);
  border-color:#cbd5e1;
}

.inventory-icon{
  width:78px;
  height:78px;
  object-fit:contain;
  flex-shrink:0;
  border-radius:14px;
  background:#ffffff;
  padding:6px;
}

.inventory-info{
  flex:1;
  min-width:0;
}

.inventory-title{
  font-size:15px;
  font-weight:800;
  color:#0f172a;
  margin-bottom:6px;
}

.inventory-count{
  font-size:28px;
  font-weight:900;
  color:#1d4ed8;
  line-height:1.1;
}
.inventory-card.land-card-style{
  border-top:4px solid #22c55e;
}

.inventory-card.pack-card-style{
  border-top:4px solid #8b5cf6;
}

.inventory-card.relic-card-style{
  border-top:4px solid #f59e0b;
}

.inventory-card.writ-card-style{
  border-top:4px solid #3b82f6;
}

.inventory-card.bp-food{
  border-top:4px solid #22c55e;
}

.inventory-card.bp-textile{
  border-top:4px solid #8b5cf6;
}

.inventory-card.bp-pharma{
  border-top:4px solid #ef4444;
}

.inventory-card.bp-chemical{
  border-top:4px solid #06b6d4;
}

.inventory-card.bp-supermarket{
  border-top:4px solid #f59e0b;
}
.inventory-subcount{
  margin-top:8px;
  font-size:12px;
  line-height:1.6;
  color:#64748b;
}
/* ===== AUTO COLOR FOR EMPIRE ASSETS ===== */

.inventory-card:has(img[src*="land"]){
  border-top:4px solid #22c55e;
}

.inventory-card:has(img[src*="pack"]){
  border-top:4px solid #8b5cf6;
}

.inventory-card:has(img[src*="relic"]){
  border-top:4px solid #f59e0b;
}

.inventory-card:has(img[src*="writ"]){
  border-top:4px solid #3b82f6;
}

.inventory-card:has(img[src*="food"]){
  border-top:4px solid #22c55e;
}

.inventory-card:has(img[src*="textile"]){
  border-top:4px solid #8b5cf6;
}

.inventory-card:has(img[src*="pharma"]){
  border-top:4px solid #ef4444;
}

.inventory-card:has(img[src*="chemical"]){
  border-top:4px solid #06b6d4;
}

.inventory-card:has(img[src*="supermarket"]){
  border-top:4px solid #f59e0b;
}
.inventory-land{border-top:4px solid #22c55e !important;}
.inventory-pack{border-top:4px solid #8b5cf6 !important;}
.inventory-relic{border-top:4px solid #f59e0b !important;}
.inventory-writ{border-top:4px solid #3b82f6 !important;}
.inventory-food{border-top:4px solid #22c55e !important;}
.inventory-textile{border-top:4px solid #8b5cf6 !important;}
.inventory-pharma{border-top:4px solid #ef4444 !important;}
.inventory-chemical{border-top:4px solid #06b6d4 !important;}
.inventory-supermarket{border-top:4px solid #f59e0b !important;}
.compact-listing{
  display:grid;
  grid-template-columns: 1.4fr 2fr auto;
  gap:14px;
  align-items:center;
  padding:14px 16px;
}

.compact-main{
  min-width:0;
}

.compact-title{
  font-size:18px;
  font-weight:800;
  margin-bottom:4px;
}

.compact-meta{
  font-size:13px;
  color:var(--muted);
  line-height:1.4;
}

.compact-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap:10px;
}

.compact-stats div{
  background:#f8fafc;
  border:1px solid #edf2f7;
  border-radius:12px;
  padding:8px 10px;
}

.compact-stats span{
  display:block;
  font-size:11px;
  color:var(--muted);
  margin-bottom:3px;
}

.compact-stats strong{
  font-size:14px;
  font-weight:800;
  color:var(--text);
}

.compact-actions{
  display:flex;
  justify-content:flex-end;
}

@media (max-width: 900px){
  .compact-listing{
    grid-template-columns: 1fr;
  }

  .compact-stats{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-actions{
    justify-content:flex-start;
  }
}
/* ===== MYDEMPIRE MARKETPLACE UI FIX ===== */

.market-tab-panel .card{
  padding: 18px;
}

.market-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:14px;
}

.market-header-left h2{
  margin:0 0 4px;
  line-height:1.15;
}

.market-header-sub{
  font-size:13px;
  line-height:1.4;
  color:#64748b;
}

.market-toolbar{
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr auto auto;
  gap:12px;
  align-items:end;
}

.market-toolbar .field{
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.market-toolbar .field label{
  min-height:18px;
  margin-bottom:6px;
  font-size:13px;
  font-weight:700;
  color:#64748b;
}

.market-toolbar input,
.market-toolbar select{
  width:100%;
  height:44px;
  padding:10px 12px;
  border:1px solid #d1d5db;
  border-radius:12px;
  font-size:14px;
  background:#fff;
}

.market-toolbar .primary-btn,
.market-toolbar .secondary-btn{
  height:44px;
  min-width:110px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:end;
}

.status{
  min-height:20px;
  margin-top:10px;
  font-size:13px;
}

/* ===== COMPACT MARKET LISTINGS ===== */

.compact-listing{
  display:grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(320px, 2fr) auto;
  gap:14px;
  align-items:center;
  padding:14px 16px;
}

.compact-main{
  min-width:0;
}

.compact-title{
  font-size:16px;
  font-weight:800;
  line-height:1.15;
  margin-bottom:4px;
}

.compact-meta{
  font-size:13px;
  line-height:1.4;
  color:#64748b;
}

.compact-stats{
  display:grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap:10px;
}

.compact-stats > div{
  min-height:58px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:#f8fafc;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:8px 10px;
}

.compact-stats span{
  display:block;
  font-size:11px;
  line-height:1.1;
  color:#64748b;
  margin-bottom:4px;
}

.compact-stats strong{
  font-size:14px;
  line-height:1.2;
  font-weight:800;
  color:#0f172a;
}

.compact-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.compact-actions input{
  width:72px;
  height:38px;
  padding:6px 8px;
  text-align:center;
  border:1px solid #d1d5db;
  border-radius:10px;
}

.compact-actions .primary-btn,
.compact-actions .danger-btn{
  height:38px;
  min-width:92px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 980px){
  .market-toolbar{
    grid-template-columns:1fr 1fr;
  }

  .market-toolbar .primary-btn,
  .market-toolbar .secondary-btn{
    width:100%;
  }

  .compact-listing{
    grid-template-columns:1fr;
  }

  .compact-stats{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }

  .compact-actions{
    justify-content:flex-start;
  }
}

@media (max-width: 640px){
  .market-toolbar{
    grid-template-columns:1fr;
  }
}
/* ============================= */
/* MYDEMPIRE MARKETPLACE STRONG OVERRIDE */
/* ============================= */

.page .tabbar{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
  margin-bottom:20px !important;
}

.page .tab-btn{
  border:1px solid #c7d2fe !important;
  background:#eef2ff !important;
  color:#312e81 !important;
  border-radius:999px !important;
  padding:10px 16px !important;
  font-size:14px !important;
  font-weight:800 !important;
  cursor:pointer !important;
}

.page .tab-btn.active{
  background:linear-gradient(180deg,#2563eb 0%,#1d4ed8 100%) !important;
  color:#fff !important;
  border-color:#1d4ed8 !important;
}

.page .market-tab-panel{
  display:none !important;
}

.page .market-tab-panel.active{
  display:block !important;
}

.page .stack{
  display:grid !important;
  gap:18px !important;
}

.page .market-tab-panel .card{
  background:#ffffff !important;
  border:1px solid #e5e7eb !important;
  border-radius:18px !important;
  box-shadow:0 8px 24px rgba(15,23,42,0.08) !important;
  padding:20px !important;
  margin-bottom:0 !important;
}

.page .market-header{
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  margin-bottom:16px !important;
}

.page .market-header-left h2{
  margin:0 !important;
  font-size:20px !important;
  line-height:1.15 !important;
}

.page .market-header-sub{
  margin-top:4px !important;
  color:#6b7280 !important;
  font-size:13px !important;
  line-height:1.4 !important;
}

.page .pill{
  display:inline-flex !important;
  align-items:center !important;
  border-radius:999px !important;
  padding:7px 12px !important;
  background:#eff6ff !important;
  color:#1d4ed8 !important;
  font-size:13px !important;
  font-weight:700 !important;
  border:1px solid #bfdbfe !important;
}

.page .market-toolbar{
  display:grid !important;
  grid-template-columns:1.2fr 1fr 1fr auto auto !important;
  gap:12px !important;
  align-items:end !important;
}

.page .market-toolbar .field{
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
  min-width:0 !important;
}

.page .market-toolbar .field label{
  display:block !important;
  min-height:18px !important;
  margin-bottom:6px !important;
  font-size:13px !important;
  font-weight:700 !important;
  color:#6b7280 !important;
}

.page .market-toolbar input,
.page .market-toolbar select{
  width:100% !important;
  height:44px !important;
  padding:10px 12px !important;
  border:1px solid #d1d5db !important;
  border-radius:12px !important;
  font-size:14px !important;
  background:#fff !important;
  box-sizing:border-box !important;
}

.page .market-toolbar .primary-btn,
.page .market-toolbar .secondary-btn{
  height:44px !important;
  min-width:110px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  align-self:end !important;
  border-radius:12px !important;
  font-weight:800 !important;
}

.page .status{
  min-height:20px !important;
  margin-top:12px !important;
  font-size:13px !important;
}

/* compact rows for packs */
.page .compact-listing{
  display:grid !important;
  grid-template-columns:minmax(180px,1.2fr) minmax(320px,2fr) auto !important;
  gap:14px !important;
  align-items:center !important;
  padding:14px 16px !important;
}

.page .compact-main{
  min-width:0 !important;
}

.page .compact-title{
  font-size:16px !important;
  font-weight:800 !important;
  margin-bottom:4px !important;
  line-height:1.15 !important;
}

.page .compact-meta{
  font-size:13px !important;
  color:#64748b !important;
  line-height:1.4 !important;
}

.page .compact-stats{
  display:grid !important;
  grid-template-columns:repeat(4,minmax(88px,1fr)) !important;
  gap:10px !important;
}

.page .compact-stats > div{
  min-height:58px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  background:#f8fafc !important;
  border:1px solid #e5e7eb !important;
  border-radius:12px !important;
  padding:8px 10px !important;
}

.page .compact-stats span{
  display:block !important;
  font-size:11px !important;
  color:#64748b !important;
  margin-bottom:4px !important;
}

.page .compact-stats strong{
  font-size:14px !important;
  font-weight:800 !important;
  color:#0f172a !important;
}

.page .compact-actions{
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:8px !important;
}

.page .compact-actions input{
  width:72px !important;
  height:38px !important;
  padding:6px 8px !important;
  text-align:center !important;
  border:1px solid #d1d5db !important;
  border-radius:10px !important;
}

.page .compact-actions .primary-btn,
.page .compact-actions .danger-btn{
  height:38px !important;
  min-width:92px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
}

@media (max-width:980px){
  .page .market-toolbar{
    grid-template-columns:1fr 1fr !important;
  }

  .page .market-toolbar .primary-btn,
  .page .market-toolbar .secondary-btn{
    width:100% !important;
  }

  .page .compact-listing{
    grid-template-columns:1fr !important;
  }

  .page .compact-stats{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .page .compact-actions{
    justify-content:flex-start !important;
  }
}

@media (max-width:640px){
  .page .market-toolbar{
    grid-template-columns:1fr !important;
  }
}
/* ===== EXACT MARKET TOOLBAR ALIGN FIX ===== */

.page .market-toolbar{
  display: grid !important;
  grid-template-columns: 1.2fr 1fr 1fr auto auto !important;
  gap: 12px !important;
  align-items: start !important;
}

.page .market-toolbar .field{
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.page .market-toolbar .field label{
  display: block !important;
  height: 18px !important;
  margin-bottom: 6px !important;
}

.page .market-toolbar .field input,
.page .market-toolbar .field select{
  height: 44px !important;
  box-sizing: border-box !important;
}

.page .market-toolbar .field .hint{
  display: block !important;
  min-height: 16px !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  color: #64748b !important;
}

.page .market-toolbar > .primary-btn,
.page .market-toolbar > .secondary-btn{
  height: 44px !important;
  align-self: start !important;
  margin-top: 24px !important;
}
/* ============================= */
/* INDEX PAGE MOBILE FIXES */
/* ============================= */

@media (max-width: 900px) {
  .wrap {
    padding: 12px 12px 40px;
  }

  .heroImg {
    height: 240px;
  }

  .heroBelow {
    padding: 12px;
  }

  .nameLogo {
    height: 44px;
  }

  .tags {
    gap: 8px;
  }

  .tag {
    font-size: 12px;
    padding: 7px 10px;
  }

  .mainGrid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .buyGrid {
    grid-template-columns: 1fr;
  }

  .empire-path-title {
    font-size: 24px;
  }

  .empire-path-subtitle {
    font-size: 14px;
  }

  .empire-path-grid {
    grid-template-columns: 1fr;
  }

  .empire-path-grid::before {
    display: none;
  }

  .inside-pack-mini-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .heroImg {
    height: 200px;
  }

  .nameLogo {
    height: 40px;
  }

  .tag {
    font-size: 11px;
    padding: 6px 9px;
  }

  .card {
    padding: 14px;
  }

  .buyGrid {
    grid-template-columns: 1fr;
  }

  .empire-path-card {
    padding: 16px;
  }

  .empire-path-title {
    font-size: 21px;
  }

  .empire-step-title {
    font-size: 15px;
  }

  .empire-step-text {
    font-size: 13px;
  }

  .inside-pack-mini-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 900px) {

  .appbar-nav {
    gap: 10px;
  }

  .appbar-link {
    font-size: 14px;
    padding: 6px 10px;
  }

}
@media (max-width: 900px) {
  .appbar-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
  }

  .appbar-left {
    width: 100%;
    flex-wrap: wrap;
  }

  .appbar-right {
    width: 100%;
    justify-content: flex-start;
  }

  .appbar-account-btn,
  .appbar-login-btn {
    font-size: 14px;
    padding: 0 10px;
    min-height: 36px;
    max-width: 100%;
  }
}
@media (max-width: 900px) {
  .appbar-account-btn {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .appbar {
    height: auto;
    min-height: 88px;
    padding: 10px 0;
  }

  .appbar-inner {
    height: auto;
    align-items: flex-start;
  }

  body {
    padding-top: 150px;
  }
}
@media (max-width: 640px) {
  body {
    padding-top: 185px;
  }
}
@media (max-width: 900px) {
  .appbar-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }

  .appbar-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .appbar-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .appbar-right {
    width: 100%;
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  body {
    padding-top: 220px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 250px;
  }
}
@media (max-width: 900px) {
  .appbar-nav {
    flex-wrap: wrap;
    gap: 8px;
  }

  .appbar-link {
    font-size: 14px;
    padding: 6px 10px;
  }

  .appbar-account-btn,
  .appbar-login-btn {
    font-size: 14px;
    min-height: 36px;
    padding: 0 10px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
@media (max-width: 900px) {
  .appbar-inner {
    flex-wrap: wrap;
  }

  .appbar-left {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .appbar-right {
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }
}
@media (max-width: 900px) {
  body {
    padding-top: 130px;
  }
}
@media (max-width: 900px) {
  .appbar {
    position: static !important;
    transform: none !important;
  }

  body {
    padding-top: 0 !important;
  }
}
@media (max-width: 900px) {
  .appbar-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto !important;
    padding: 12px 14px;
  }

  .appbar-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 10px;
  }

  .appbar-nav {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 8px;
    justify-content: flex-start;
  }

  .appbar-logo img {
    height: 56px;
    width: auto;
  }
}
@media (max-width: 900px) {
  .appbar-left {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .appbar-nav {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .appbar-link {
    font-size: 14px !important;
    padding: 6px 10px !important;
  }
}
@media (max-width: 900px) {

  .appbar-nav {
    display: none;
    width: 100%;
  }

  

  .appbar-inner {
    justify-content: center;
  }

}
@media (max-width: 640px) {

  .heroImg {
    height: auto;
    border-radius: 16px;
  }

  .heroBelow {
    padding: 10px;
  }

  .nameLogo {
    height: 38px;
  }

}
@media (max-width: 640px) {

  .heroImg {
    max-height: 260px;
    object-fit: cover;
  }

}
@media (max-width: 640px) {

  .appbar {
    padding: 6px 0;
  }

  .appbar-logo img {
    height: 42px;
  }

}
@media (max-width: 640px) {
  .tags {
    justify-content: center;
    gap: 10px;
  }

  .tag {
    width: fit-content;
    max-width: 100%;
    text-align: center;
  }

  .buyGrid {
    grid-template-columns: 1fr;
  }
}
.testing-progress-pill {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(142, 68, 173, 0.16);
  border: 1px solid rgba(142, 68, 173, 0.45);
  color:#4c1d95;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(142, 68, 173, 0.25);
}

/* ===== MARKETPLACE LISTINGS SAFE RESTORE ===== */

.page .listing-list{
  display:grid !important;
  gap:14px !important;
}

.page .listing-card{
  border:1px solid #e5e7eb !important;
  border-radius:16px !important;
  padding:16px !important;
  background:#ffffff !important;
  box-shadow:0 8px 20px rgba(15,23,42,0.06) !important;
}

.page .listing-card.mine{
  border-color:#bfdbfe !important;
  background:linear-gradient(180deg,#f8fbff 0%,#ffffff 100%) !important;
}

.page .listing-top{
  display:flex !important;
  justify-content:space-between !important;
  gap:12px !important;
  flex-wrap:wrap !important;
  margin-bottom:10px !important;
}

.page .listing-title{
  font-size:18px !important;
  font-weight:800 !important;
  color:#0f172a !important;
}

.page .listing-meta{
  color:#64748b !important;
  font-size:13px !important;
  line-height:1.45 !important;
}

.page .kv-grid{
  display:grid !important;
  grid-template-columns:repeat(2,minmax(120px,1fr)) !important;
  gap:10px !important;
  margin:10px 0 12px !important;
}

.page .kv{
  background:#f8fafc !important;
  border:1px solid #edf2f7 !important;
  border-radius:12px !important;
  padding:10px !important;
}

.page .k{
  font-size:12px !important;
  color:#64748b !important;
  margin-bottom:4px !important;
}

.page .v{
  font-size:15px !important;
  font-weight:800 !important;
  color:#0f172a !important;
}

.page .button-row{
  display:flex !important;
  gap:10px !important;
  flex-wrap:wrap !important;
}

@media(max-width:640px){
  .page .kv-grid{
    grid-template-columns:1fr !important;
  }
}
/* ===== MARKETPLACE PACK COMPACT ROW FIX ===== */

.page .compact-list{
  display:grid !important;
  gap:12px !important;
}

.page .compact-row{
  display:grid !important;
  grid-template-columns:1.2fr 1fr 1.2fr 0.8fr auto !important;
  gap:12px !important;
  align-items:center !important;
  padding:14px 16px !important;
  border:1px solid #e5e7eb !important;
  border-radius:16px !important;
  background:#ffffff !important;
  box-shadow:0 8px 20px rgba(15,23,42,0.06) !important;
}

.page .compact-cell{
  min-width:0 !important;
  font-size:13px !important;
  color:#334155 !important;
}

.page .compact-asset-title{
  font-size:16px !important;
  font-weight:900 !important;
  color:#0f172a !important;
  margin-bottom:4px !important;
}

.page .compact-asset-sub{
  font-size:12px !important;
  color:#64748b !important;
  line-height:1.4 !important;
}

.page .compact-seller{
  font-size:14px !important;
  font-weight:800 !important;
  color:#1e3a8a !important;
}

.page .compact-details{
  line-height:1.55 !important;
}

.page .compact-price{
  font-size:16px !important;
  font-weight:900 !important;
  color:#0f172a !important;
  text-align:right !important;
}

.page .compact-action{
  display:flex !important;
  justify-content:flex-end !important;
  align-items:center !important;
}

.page .compact-buy-btn,
.page .compact-cancel-btn{
  border:none !important;
  border-radius:10px !important;
  padding:9px 13px !important;
  font-size:13px !important;
  font-weight:900 !important;
  cursor:pointer !important;
}

.page .compact-buy-btn{
  background:#2563eb !important;
  color:#ffffff !important;
}

.page .compact-cancel-btn{
  background:#fee2e2 !important;
  color:#991b1b !important;
}

@media(max-width:900px){
  .page .compact-row{
    grid-template-columns:1fr !important;
  }

  .page .compact-price,
  .page .compact-action{
    text-align:left !important;
    justify-content:flex-start !important;
  }
}
/* ===== MARKETPLACE COMPACT FIX (NO PAGE DEPENDENCY) ===== */

.compact-row{
  display:grid !important;
  grid-template-columns:1.2fr 1fr 1.2fr 0.8fr auto !important;
  gap:12px !important;
  align-items:center !important;
  padding:14px 16px !important;
  border:1px solid #e5e7eb !important;
  border-radius:16px !important;
  background:#ffffff !important;
  box-shadow:0 8px 20px rgba(15,23,42,0.06) !important;
}

.compact-cell{
  min-width:0 !important;
}

.compact-action{
  display:flex !important;
  justify-content:flex-end !important;
}

.compact-price{
  text-align:right !important;
}
/* ===== MARKETPLACE PACK HISTORY FIX ===== */

.trade-row{
  display:grid !important;
  grid-template-columns:1fr 1.3fr 1fr 1fr 1fr !important;
  gap:12px !important;
  align-items:center !important;
  padding:12px 14px !important;
  border:1px solid #e5e7eb !important;
  border-radius:14px !important;
  background:#ffffff !important;
  margin-bottom:10px !important;
  box-shadow:0 6px 16px rgba(15,23,42,0.05) !important;
}

.trade-row-even{
  background:#f8fafc !important;
}

.trade-col{
  font-size:13px !important;
  color:#334155 !important;
  line-height:1.4 !important;
  word-break:break-word !important;
}

.trade-asset{
  font-weight:900 !important;
  color:#0f172a !important;
}

.trade-users{
  color:#1e3a8a !important;
  font-weight:700 !important;
}

.trade-price,
.trade-total{
  font-weight:800 !important;
  color:#0f172a !important;
}

.trade-time{
  color:#64748b !important;
  font-size:12px !important;
}

@media(max-width:800px){
  .trade-row{
    grid-template-columns:1fr !important;
  }
}
/* ===== PACK HISTORY HARD RESTORE ===== */

#pack-history-list{
  display:grid !important;
  gap:10px !important;
}

#pack-history-list .trade-row{
  display:grid !important;
  grid-template-columns:1fr 1.4fr 1fr 1fr 1fr !important;
  gap:12px !important;
  align-items:center !important;
  padding:12px 14px !important;
  border:1px solid #e5e7eb !important;
  border-radius:14px !important;
  background:#ffffff !important;
  box-shadow:0 6px 16px rgba(15,23,42,0.05) !important;
}

#pack-history-list .trade-row-even{
  background:#f8fafc !important;
}

#pack-history-list .trade-col{
  font-size:13px !important;
  line-height:1.4 !important;
  color:#334155 !important;
  word-break:break-word !important;
}

#pack-history-list .trade-asset{
  font-weight:900 !important;
  color:#0f172a !important;
}

#pack-history-list .trade-users{
  font-weight:800 !important;
  color:#1e3a8a !important;
}

#pack-history-list .trade-price,
#pack-history-list .trade-total{
  font-weight:900 !important;
  color:#0f172a !important;
}

#pack-history-list .trade-time{
  font-size:12px !important;
  color:#64748b !important;
}

@media(max-width:800px){
  #pack-history-list .trade-row{
    grid-template-columns:1fr !important;
  }
}
/* ===== LEADERBOARD ROW + COLUMN FIX ===== */

.leaderboard-list{
  display: grid !important;
  gap: 10px !important;
  width: 100% !important;
}

.leaderboard-row{
  display: grid !important;
  grid-template-columns: 70px 1.4fr 1fr 1fr 1fr !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  padding: 12px 14px !important;
  box-sizing: border-box !important;
}

.leaderboard-header-row{
  background: #f8fafc !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 14px !important;
}

.leaderboard-rank{
  text-align: center !important;
}

.leaderboard-player{
  text-align: left !important;
  min-width: 0 !important;
}

.leaderboard-metric{
  text-align: right !important;
  min-width: 0 !important;
}

.leaderboard-score-grid{
  display: contents !important;
}
/* ===== LEADERBOARD TOOLTIP RESTORE ===== */

.leaderboard-row{
  position: relative !important;
}

.leaderboard-row[data-tooltip]:hover::after{
  content: attr(data-tooltip);
  position: absolute;
  right: 18px;
  top: -34px;
  background: #111827;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 50;
  box-shadow: 0 8px 18px rgba(15,23,42,0.22);
}

.leaderboard-row[data-tooltip=""]:hover::after{
  display: none;
}
/* ===== LEADERBOARD HOVER FIX ===== */

.card-leaderboard:hover,
.leaderboard-shell:hover,
.leaderboard-body:hover,
.leaderboard-list:hover{
  transform: none !important;
}

.leaderboard-row{
  transition: transform 0.18s ease, box-shadow 0.18s ease !important;
}

.leaderboard-row:hover{
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 22px rgba(15,23,42,0.10) !important;
}
/* Industry leaderboard fix */
.leaderboard-score-grid{
  display: flex !important;
  justify-content: flex-end !important;
  gap: 20px !important;
}

.leaderboard-score-grid .leaderboard-metric{
  text-align: right !important;
}
/* Industry leaderboard spacing fix */
.leaderboard-industry-list .leaderboard-rank{
  min-width: 120px;
  font-weight: 800;
  color: #1e3a8a;
}

.leaderboard-industry-list .leaderboard-player{
  padding-left: 10px;
}
/* ===== INDUSTRY FINAL ALIGN FIX ===== */

.industry-header,
.industry-item{
  display: grid !important;
  grid-template-columns: 140px 1.6fr 1fr 1fr !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Fix text overlap */
.industry-name{
  font-weight: 800;
  color: #1e3a8a;
  white-space: nowrap;
}

.industry-player{
  font-weight: 700;
  padding-left: 8px;
  white-space: nowrap;
}

/* Keep EP & Share in one line */
.industry-ep,
.industry-share{
  text-align: right;
  font-weight: 800;
  white-space: nowrap;
}

/* Header clarity */
.industry-header{
  background:#f1f5f9;
  border-radius:14px;
  padding:14px 18px;
  font-weight:800;
  color:#64748b;
}
/* ===== INDUSTRY LEADERBOARD HARD GRID FIX ===== */

#industry-leaderboard-list .industry-list{
  display:flex !important;
  flex-direction:column !important;
  gap:14px !important;
  width:100% !important;
}

#industry-leaderboard-list .industry-header,
#industry-leaderboard-list .industry-item{
  display:grid !important;
  grid-template-columns:140px minmax(220px,1.6fr) minmax(140px,1fr) minmax(120px,1fr) !important;
  align-items:center !important;
  gap:18px !important;
  width:100% !important;
  box-sizing:border-box !important;
}

#industry-leaderboard-list .industry-header{
  padding:14px 18px !important;
  border-radius:14px !important;
  background:#f1f5f9 !important;
  font-weight:900 !important;
  color:#64748b !important;
}

#industry-leaderboard-list .industry-item{
  padding:16px 18px !important;
  border-radius:18px !important;
  background:#ffffff !important;
  border:1px solid #e5e7eb !important;
}

#industry-leaderboard-list .industry-name,
#industry-leaderboard-list .industry-player,
#industry-leaderboard-list .industry-ep,
#industry-leaderboard-list .industry-share{
  white-space:nowrap !important;
  min-width:0 !important;
}

#industry-leaderboard-list .industry-name{
  font-weight:900 !important;
  color:#1e3a8a !important;
}

#industry-leaderboard-list .industry-player{
  font-weight:800 !important;
}

#industry-leaderboard-list .industry-ep,
#industry-leaderboard-list .industry-share{
  text-align:right !important;
  font-weight:900 !important;
}
/* ===== INDUSTRY LEADERBOARD COLORS ===== */

#industry-leaderboard-list .industry-item:nth-child(2){
  border:2px solid #22c55e !important;
  background:rgba(34,197,94,0.10) !important;
}

#industry-leaderboard-list .industry-item:nth-child(2) .industry-name{
  color:#15803d !important;
}

#industry-leaderboard-list .industry-item:nth-child(3){
  border:2px solid #8b5cf6 !important;
  background:rgba(139,92,246,0.10) !important;
}

#industry-leaderboard-list .industry-item:nth-child(3) .industry-name{
  color:#7c3aed !important;
}

#industry-leaderboard-list .industry-item:nth-child(4){
  border:2px solid #3b82f6 !important;
  background:rgba(59,130,246,0.10) !important;
}

#industry-leaderboard-list .industry-item:nth-child(4) .industry-name{
  color:#2563eb !important;
}

#industry-leaderboard-list .industry-item:nth-child(5){
  border:2px solid #f97316 !important;
  background:rgba(249,115,22,0.10) !important;
}

#industry-leaderboard-list .industry-item:nth-child(5) .industry-name{
  color:#ea580c !important;
}

#industry-leaderboard-list .industry-item:nth-child(6){
  border:2px solid #ef4444 !important;
  background:rgba(239,68,68,0.10) !important;
}

#industry-leaderboard-list .industry-item:nth-child(6) .industry-name{
  color:#dc2626 !important;
}
/* ===== INDUSTRY HEADER ALIGN FIX ===== */

#industry-leaderboard-list .industry-header{
  display:grid !important;
  grid-template-columns:140px minmax(220px,1.6fr) minmax(140px,1fr) minmax(120px,1fr) !important;
  align-items:center !important;
  gap:18px !important;
  width:100% !important;
  box-sizing:border-box !important;
}

#industry-leaderboard-list .industry-header div:nth-child(3),
#industry-leaderboard-list .industry-header div:nth-child(4){
  text-align:right !important;
}
/* ===== EMPEROR LEADERBOARD ALIGN FIX ===== */

#emperor-leaderboard-list .leaderboard-row{
  display:grid !important;
  grid-template-columns:80px 1.6fr 1fr 1fr 1fr !important;
  align-items:center !important;
  gap:18px !important;
}

#emperor-leaderboard-list .leaderboard-score-grid{
  display:contents !important;
}

#emperor-leaderboard-list .leaderboard-metric{
  text-align:right !important;
}

#emperor-leaderboard-list .leaderboard-metric span{
  display:none !important; /* remove "lifetime", "EP/day" text */
}
.dashboard-feature-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
}

.dashboard-feature-card {
  border-radius: 14px;
  padding: 14px;
  font-weight: 700;
}

.crate-feature-card {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  border: 1px solid #fdba74;
  color: #7c2d12;
}

.redevelopment-feature-card {
  background: linear-gradient(180deg, #eef6ff, #dbeafe);
  border: 1px solid #93c5fd;
  color: #173b7a;
}

.feature-title {
  font-weight: 900;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 10px;
}

@media (max-width: 760px) {
  .dashboard-feature-row {
    grid-template-columns: 1fr;
  }
}
.crate-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.68);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.crate-modal-content {
  width: min(420px, 94vw);
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid #fdba74;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  color: #7c2d12;
}

.crate-modal-header {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 12px;
}

.crate-modal-body {
  font-size: 15px;
  line-height: 1.6;
}

.crate-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.crate-history-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(124, 45, 18, 0.15);
}

.crate-history-reward {
  font-weight: 900;
}

.crate-history-date {
  font-size: 12px;
  color: #64748b;
}
.inventory-card.inventory-fragment {
  background: linear-gradient(135deg, #f8fbff 0%, #eef4ff 100%);
  border-top: 4px solid #8b5cf6;
}

.inventory-card.inventory-fragment .inventory-icon {
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 18px;
  background: #eef2ff;
  padding: 14px;
}

.inventory-card.inventory-fragment .inventory-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
}

.inventory-card.inventory-fragment .inventory-count {
  font-size: 42px;
  font-weight: 900;
  color: #1d4ed8;
  line-height: 1.1;
}

.inventory-card.inventory-fragment .inventory-subcount {
  font-size: 14px;
  color: #64748b;
  font-weight: 700;
  line-height: 1.35;
}
.inventory-card.inventory-fragment:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(99, 102, 241, 0.18);
}
.inventory-card.inventory-fragment:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(139, 92, 246, 0.25);
}
.inventory-card {
  min-height: 160px;
  display: flex;
  align-items: center;
}
.inventory-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.inventory-count {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
}
/* Force same text sizing for all Empire Asset cards */
.empire-inventory .inventory-card .inventory-title,
.empire-inventory .inventory-card.inventory-fragment .inventory-title {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

.empire-inventory .inventory-card .inventory-count,
.empire-inventory .inventory-card.inventory-fragment .inventory-count {
  font-size: 36px !important;
  font-weight: 900 !important;
  color: #2563eb !important;
  line-height: 1 !important;
}

.empire-inventory .inventory-card .inventory-subcount,
.empire-inventory .inventory-card.inventory-fragment .inventory-subcount {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  line-height: 1.4 !important;
}
.dashboard-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-feature-card {
  min-width: 0;
}

.crate-feature-card {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.player-dashboard-page .crate-card {
  width: 100%;
  min-height: 230px;

  position: relative; /* ✅ ADD THIS */

  background:
    radial-gradient(circle at 16% 12%, rgba(255,255,255,0.95), transparent 34%),
    linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);

  border: 1px solid #fdba74;
  border-radius: 20px;
  padding: 22px 26px;

  box-shadow: 0 14px 34px rgba(251, 146, 60, 0.18);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.player-dashboard-page .crate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.35),
    transparent 60%
  );
  pointer-events: none;
}

.crate-header,
.crate-main,
.crate-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.player-dashboard-page.crate-title {
  font-size: 22px;
  font-weight: 900;
  color: #7c2d12;
}

.crate-badge {
  background: #22c55e;
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  padding: 7px 16px;
  border-radius: 999px;
}

.crate-cost {
  font-size: 30px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1;
}

.crate-timer {
  margin-top: 10px;
  font-size: 16px;
  color: #7c2d12;
}

.crate-open-btn {
  min-width: 150px;
  padding: 13px 20px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
}

.player-dashboard-page.crate-footer {
  font-size: 15px;
  color: #7c2d12;
}

.crate-footer a {
  color: #7c2d12;
  font-weight: 800;
  text-decoration: none;
}

.crate-footer a:hover {
  text-decoration: underline;
}

.redevelopment-feature-card {
  min-height: 230px;
}
.redevelopment-feature-card {
  height: 100%;
}
.navbar,
.top-nav,
.header {
  overflow: visible !important;
}
.nav-dropdown,
.nav-account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 9999;
}
.nav-account {
  position: relative;
}
/* ===== Season NEW Badge ===== */
.season-new-badge {
  background: linear-gradient(90deg, #ef4444, #f97316);
  color: #fff;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;

  animation: pulseGlow 1.5s infinite;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Glow animation */
@keyframes pulseGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.9);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
  }
}
.leaderboard-season-btn {
  position: relative;
  overflow: hidden;
}

.leaderboard-season-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  animation: shine 2.5s infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}
/* ===== Leaderboard tab visibility fix ===== */
.leaderboard-tab-panel {
  display: none;
}

.leaderboard-tab-panel.leaderboard-tab-panel-active {
  display: block;
}
/* ===== Season Coming Soon Premium Card ===== */
.season-coming-card {
  position: relative;
  overflow: hidden;
  margin-top: 18px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #eef4ff 52%, #fff7ed 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.season-coming-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 45%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
  animation: seasonCardShine 4s infinite;
}

@keyframes seasonCardShine {
  0% { left: -60%; }
  55% { left: 120%; }
  100% { left: 120%; }
}

.season-coming-top {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.season-coming-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #1e40af;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.season-coming-live {
  background: linear-gradient(90deg, #ef4444, #f97316);
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.55);
  animation: pulseGlow 1.6s infinite;
}

.season-coming-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  color: #0f172a;
}

.season-coming-card p {
  max-width: 760px;
  color: #334155;
  font-size: 16px;
  line-height: 1.7;
}

.season-coming-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.season-coming-item {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(148,163,184,0.22);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 22px rgba(15,23,42,0.08);
}

.season-coming-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.season-coming-item strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 6px;
}

.season-coming-item span {
  display: block;
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

.season-coming-footer {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 800;
}

@media (max-width: 760px) {
  .season-coming-grid {
    grid-template-columns: 1fr;
  }

  .season-coming-card h2 {
    font-size: 24px;
  }
}
/* ===== INDUSTRY SEASON UI ===== */

#active-season-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

#season-status-text {
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-weight: 800;
}

#season-details-box {
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

#season-live-leaderboard,
#season-history-display {
  margin-top: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  line-height: 1.8;
  font-size: 14px;
}

#season-live-leaderboard strong {
  color: #7c3aed;
}

#season-history-display button {
  width: auto;
  padding: 8px 12px;
  font-size: 13px;
}

#season-growth-display {
  font-weight: 800;
  color: #7c3aed;
}
#season-history-display {
  line-height: 1.45;
}
#season-history-display .season-history-nav {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

#season-history-display .season-history-nav button {
  min-width: 120px;
}
/* ===== SEASON HISTORY POLISH ===== */

#active-season-card {
  max-width: 920px;
}

#season-status-text {
  margin-top: 14px;
}

#season-history-display {
  max-width: 760px;
  line-height: 1.45;
  font-size: 15px;
}

#season-history-display strong {
  color: #111827;
}

#season-history-display hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}

#season-history-display .season-history-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#season-history-display .season-history-nav button {
  min-width: 130px;
}

#season-history-display {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
  #season-history-display {
    font-size: 14px;
    padding: 14px;
  }

  #season-history-display .season-history-nav button {
    width: 100%;
  }
}/* ===== SEASON HISTORY POLISH ===== */

#active-season-card {
  max-width: 920px;
}

#season-status-text {
  margin-top: 14px;
}

#season-history-display {
  max-width: 760px;
  line-height: 1.45;
  font-size: 15px;
}

#season-history-display strong {
  color: #111827;
}

#season-history-display hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 14px 0;
}

#season-history-display .season-history-nav {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

#season-history-display .season-history-nav button {
  min-width: 130px;
}

#season-history-display {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

@media (max-width: 640px) {
  #season-history-display {
    font-size: 14px;
    padding: 14px;
  }

  #season-history-display .season-history-nav button {
    width: 100%;
  }
}
/* ===== LIVE SEASON LEADERBOARD ===== */

#season-live-leaderboard {
  margin-top: 14px;
}

.season-live-card {
  display: grid;
  gap: 8px;
}

.season-live-rank {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  margin-bottom: 8px;
}

.season-live-rank.top3 {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fde68a;
}

.season-live-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.season-live-name {
  font-weight: 800;
  color: #111827;
}

.season-live-ep {
  font-weight: 900;
  color: #1e3a8a;
  white-space: nowrap;
}

.season-your-rank {
  margin-bottom: 16px;
  background: linear-gradient(90deg, #ede9fe 0%, #faf5ff 100%);
  border: 1px solid #c4b5fd;
  color: #6d28d9;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  font-size: 15px;
}
/* ===== SEASON HISTORY PREMIUM CARD ===== */

#season-history-display {
  max-width: 760px;
}

.season-history-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.season-history-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.season-history-title {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.season-history-sub {
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  margin-top: 4px;
}

.season-reward-badge {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  white-space: nowrap;
}

.season-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  margin-bottom: 8px;
}

.season-rank-row.top-rank {
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border-color: #fde68a;
}

.season-rank-name {
  font-weight: 900;
  color: #111827;
}

.season-rank-ep {
  font-weight: 900;
  color: #1e3a8a;
}

.season-growth-badge {
  margin-top: 14px;
  display: inline-block;
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
}
/* ===== SEASON REWARD PREVIEW ===== */

.season-reward-preview {
  margin: 18px 0 20px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  border: 1px solid #fde68a;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.08);
}

.season-reward-title {
  font-size: 18px;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 14px;
}

.season-reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.season-reward-item {
  background: rgba(255,255,255,0.75);
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  color: #1f2937;
}

.season-reward-item span {
  color: #1e3a8a;
  font-weight: 900;
}
.season-reward-info {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #fcd34d;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}
.season-reward-item {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.season-reward-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.season-reward-item {
  grid-column: span 2;
}

.season-reward-item.wide {
  grid-column: span 3;
}
.soon-pill {
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffedd5 0%, #fdba74 100%);
  color: #9a3412;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  vertical-align: middle;
  border: 1px solid #fb923c;
  box-shadow: 0 0 10px rgba(251, 146, 60, 0.28);
  animation: soonPulse 2s infinite;
}

@keyframes soonPulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.18);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 16px rgba(251, 146, 60, 0.38);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 8px rgba(251, 146, 60, 0.18);
  }
}
.season-live-banner{
  margin: 14px 0 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid rgba(245,158,11,.45);
  background:
    radial-gradient(circle at 12% 20%, rgba(250,204,21,.34), transparent 24%),
    radial-gradient(circle at 88% 30%, rgba(124,58,237,.25), transparent 28%),
    linear-gradient(135deg,#1e1b4b 0%, #312e81 48%, #111827 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(49,46,129,.24);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
}

.season-live-pill{
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(251,191,36,.16);
  border: 1px solid rgba(251,191,36,.5);
  color: #fde68a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
}

.season-live-title{
  margin-top: 10px;
  font-size: 26px;
  font-weight: 950;
}

.season-live-text{
  margin-top: 4px;
  color: #dbeafe;
  font-size: 14px;
  font-weight: 650;
}

.season-live-btn{
  background: linear-gradient(135deg,#facc15,#f59e0b) !important;
  color: #1f2937 !important;
  border: none !important;
  box-shadow: 0 10px 24px rgba(245,158,11,.28);
  white-space: nowrap;
}

@media (max-width: 760px){
  .season-live-banner{
    flex-direction: column;
    align-items: flex-start;
  }

  .season-live-btn{
    width: 100%;
  }
}
.land-filter-bar{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:18px;
}
.blueprint-filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.blueprint-filter-btn {
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  background: #e2e8f0;
  color: #334155;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.blueprint-filter-btn:hover {
  transform: translateY(-1px);
}

.blueprint-filter-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #f59e0b);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.25);
}
.land-filter-btn{
  position: relative;
  border: 1px solid rgba(99,102,241,.22);
  padding: 10px 16px;
  border-radius: 14px;
  background:
    linear-gradient(180deg,#ffffff 0%, #eef2ff 100%);
  color: #1e293b;
  font-weight: 800;
  cursor: pointer;
  transition: all .22s ease;
  box-shadow:
    0 4px 10px rgba(15,23,42,.06),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.land-filter-btn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 10px 20px rgba(79,70,229,.14),
    inset 0 1px 0 rgba(255,255,255,.7);
  border-color: rgba(79,70,229,.4);
}

.land-filter-btn.active{
  background:
    linear-gradient(135deg,#4338ca 0%, #7c3aed 100%);
  color:#fff;
  border-color: transparent;
  box-shadow:
    0 12px 24px rgba(79,70,229,.28);
}

.land-filter-btn.active::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:14px;
  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,.18),
      transparent
    );
  pointer-events:none;
}
.land-filter-count{
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15,23,42,.10);
  font-size: 12px;
  font-weight: 900;
}

.land-filter-btn.active .land-filter-count{
  background: rgba(255,255,255,.22);
  color: #fff;
}
/* Empire Surge leaderboard 6-column fix */
.leaderboard-header-row,
.leaderboard-row {
  display: grid !important;
  grid-template-columns: 90px minmax(180px, 1.8fr) repeat(4, minmax(90px, 1fr)) !important;
  gap: 8px !important;
  align-items: center !important;
}

.leaderboard-header-row > div,
.leaderboard-row > div {
  min-width: 0;
}

.leaderboard-metric {
  text-align: center !important;
  white-space: nowrap !important;
}
.operations-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 20px;
}

.operations-hero-card {
  background:
    radial-gradient(circle at top left, rgba(245,158,11,0.16), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
  border: 1px solid #fed7aa;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.operations-active-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #f59e0b;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 42px rgba(245,158,11,0.14);
}

.operations-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.operation-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(15,23,42,0.08);
  border-top: 5px solid #3b82f6;
}

.operation-card.local { border-top-color: #22c55e; }
.operation-card.regional { border-top-color: #f59e0b; }
.operation-card.imperial { border-top-color: #ef4444; }

.operation-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

.operation-meta {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  color: #64748b;
  font-weight: 600;
}

.operation-live-status {
  margin-top: 14px;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  border-radius: 16px;
  color: #9a3412;
  font-weight: 800;
  line-height: 1.55;
}

.operation-countdown-pill {
  margin-top: 14px;
  display: inline-flex;
  padding: 10px 16px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: 900;
}

@media (max-width: 900px) {
  .operations-cards-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================= */
/* EMPIRE OPERATIONS — PREMIUM UI */
/* ============================= */

[data-tab-panel="operations"] {
  background:
    radial-gradient(circle at top left, rgba(245,158,11,0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(59,130,246,0.10), transparent 26%),
    linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 24px;
  padding: 22px;
}

[data-tab-panel="operations"] .summary-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  padding: 22px !important;
  background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%) !important;
  border: 1px solid rgba(226,232,240,0.95) !important;
  box-shadow: 0 14px 32px rgba(15,23,42,0.08) !important;
}

[data-tab-panel="operations"] .summary-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg,#3b82f6,#f59e0b,#22c55e);
}

[data-tab-panel="operations"] .summary-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15,23,42,0.13) !important;
  transition: all .22s ease;
}

[data-tab-panel="operations"] .summary-label {
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
}

[data-tab-panel="operations"] .summary-value,
[data-tab-panel="operations"] h2 {
  color: #111827 !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
}

[data-tab-panel="operations"] .summary-sub {
  color: #64748b !important;
  font-size: 15px !important;
  line-height: 1.65;
}

[data-tab-panel="operations"] button,
[data-tab-panel="operations"] .primary-button,
[data-tab-panel="operations"] .secondary-button {
  border-radius: 16px !important;
  font-weight: 900 !important;
  box-shadow: 0 10px 22px rgba(37,99,235,0.14);
}

[data-tab-panel="operations"] select {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  border: 1px solid #cbd5e1 !important;
  background: #ffffff !important;
  font-size: 15px !important;
}
/* ============================= */
/* EMPIRE OPERATIONS FINAL ALIGN */
/* ============================= */

[data-tab-panel="operations"] {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

[data-tab-panel="operations"] .section-header {
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#operations-live-area {
  max-width: 1180px !important;
  margin: 0 auto !important;
}

#operations-live-area > div {
  width: 100% !important;
}

#operations-live-area .operation-active-card {
  width: 100% !important;
  max-width: 1180px !important;
}

#operations-live-area .summary-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
}

#operations-live-area .summary-grid .summary-card {
  width: 100% !important;
  min-height: 360px;
}

@media (max-width: 900px) {
  #operations-live-area .summary-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ============================= */
/* OPERATION CARDS — FINAL COLORS */
/* ============================= */

[data-tab-panel="operations"] .summary-grid .summary-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(34,197,94,0.20), transparent 34%),
    linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%) !important;
  border-color: #86efac !important;
}

[data-tab-panel="operations"] .summary-grid .summary-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(250,204,21,0.24), transparent 34%),
    linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%) !important;
  border-color: #fde68a !important;
}

[data-tab-panel="operations"] .summary-grid .summary-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(249,115,22,0.24), transparent 34%),
    linear-gradient(180deg, #fff7ed 0%, #fed7aa 100%) !important;
  border-color: #fdba74 !important;
}

[data-tab-panel="operations"] .summary-grid .summary-card:nth-child(1) .primary-button {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
}

[data-tab-panel="operations"] .summary-grid .summary-card:nth-child(2) .primary-button {
  background: #facc15 !important;
  border-color: #facc15 !important;
  color: #111827 !important;
}

[data-tab-panel="operations"] .summary-grid .summary-card:nth-child(3) .primary-button {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #ffffff !important;
}
.empire-ops-intel {
  background:
    linear-gradient(135deg, rgba(255,247,237,0.96), rgba(248,250,252,0.98)) !important;
  border: 1px solid rgba(251,191,36,0.28) !important;
  position: relative;
  overflow: hidden;
}

.empire-ops-intel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(245,158,11,0.10), transparent 30%),
    radial-gradient(circle at bottom left, rgba(59,130,246,0.08), transparent 28%);
  pointer-events: none;
}

.empire-ops-intel-label {
  color: #92400e !important;
  font-size: 13px !important;
  letter-spacing: 0.08em;
}

.empire-ops-intel-text {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #475569;
  font-size: 15px;
  line-height: 1.9;
  font-weight: 500;
}
/* ============================= */
/* EMPIRE OPERATIONS INTEL HYPE */
/* ============================= */



.empire-ops-intel-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-100%);
  animation: opsIntelSweep 5s infinite;
}

@keyframes opsIntelSweep {
  0% { transform: translateX(-100%); }
  45% { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}

.empire-ops-intel-top {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  align-items: center;
}

.empire-ops-intel-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(249,115,22,0.35);
}



.empire-ops-intel-title {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.empire-ops-intel-body {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  max-width: 860px;
  color: #475569;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 600;
}

.empire-ops-intel-grid {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}



.empire-ops-intel-chip.green {
  background: rgba(34,197,94,0.18);
  color: #bbf7d0;
}

.empire-ops-intel-chip.gold {
  background: rgba(250,204,21,0.18);
  color: #fef3c7;
}

.empire-ops-intel-chip.orange {
  background: rgba(249,115,22,0.20);
  color: #fed7aa;
}

.empire-ops-intel-card {
  position: relative;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 26px;
  overflow: hidden;

  background:
    radial-gradient(circle at 0% 0%, rgba(245,158,11,0.20), transparent 32%),
    radial-gradient(circle at 100% 100%, rgba(37,99,235,0.12), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 45%, #fff7ed 100%);

  border: 1px solid rgba(245,158,11,0.28);
  box-shadow: 0 16px 34px rgba(15,23,42,0.12);
  color: #0f172a;
}

.empire-ops-intel-card::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 22px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.16), transparent 65%);
  pointer-events: none;
}

.empire-ops-intel-kicker {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  color: #b45309;
}

.empire-ops-intel-chip {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}

/* individual chip colors */

.empire-ops-intel-chip.green {
  background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
  color: #166534;
}

.empire-ops-intel-chip.yellow {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #78350f !important;
}

.empire-ops-intel-chip.orange {
  background: linear-gradient(135deg, #ffedd5 0%, #fdba74 100%);
  color: #9a3412;
}

.empire-ops-intel-note {
  position: relative;
  z-index: 1;

  margin-top: 18px;
  padding: 14px 16px;

  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #fff7ed 0%,
      #ffedd5 100%
    );

  border: 1px solid rgba(249,115,22,0.22);

  color: #9a3412;

  font-size: 15px;
  font-weight: 850;

  box-shadow:
    0 8px 18px rgba(249,115,22,0.10);
}
/* ================================= */
/* EMPIRE OPERATIONS LIVE TICKER */
/* ================================= */

.empire-ops-live-ticker {
  margin-bottom: 16px;
  padding: 14px 18px;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      #fff7ed 0%,
      #ffedd5 45%,
      #fef3c7 100%
    );

  border: 1px solid rgba(249,115,22,0.22);

  color: #9a3412;

  font-size: 15px;
  font-weight: 850;

  box-shadow:
    0 10px 22px rgba(249,115,22,0.10);

  cursor: pointer;

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.empire-ops-live-ticker:hover {
  transform: translateY(-1px);

  box-shadow:
    0 14px 28px rgba(249,115,22,0.16);
}
.empire-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.empire-popup-box {
  width: min(420px, 92vw);
  background: #ffffff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.35);
  text-align: center;
  border: 1px solid #e5e7eb;
}

.empire-popup-title {
  font-size: 20px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.empire-popup-message {
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
}

.empire-popup-box button {
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(135deg, #8b5cf6, #f59e0b);
  color: #ffffff;
}
/* =========================
   EMP HISTORY MODAL
========================= */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-box {
  width: 100%;
  max-width: 620px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.modal-head h3 {
  margin: 0;
  font-size: 20px;
  color: #1e3a8a;
}

.modal-head button {
  border: none;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #475569;
}

.modal-body {
  padding: 18px 22px;
  max-height: 500px;
  overflow-y: auto;
}
.emp-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.emp-history-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.emp-history-main {
  font-size: 18px;
  font-weight: 900;
}

.emp-history-sub {
  font-size: 13px;
  color: #64748b;
  text-transform: capitalize;
}

.emp-history-right {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.emp-history-row.emp-in {
  border-left: 5px solid #22c55e;
  background: #f0fdf4;
}

.emp-history-row.emp-out {
  border-left: 5px solid #ef4444;
  background: #fef2f2;
}

.emp-history-row.emp-in .emp-history-main {
  color: #15803d;
}

.emp-history-row.emp-out .emp-history-main {
  color: #b91c1c;
}
.emp-history-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.emp-history-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emp-history-amount {
  font-size: 16px;
  font-weight: 700;
}

.emp-history-source {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
}

.emp-history-right {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
}

.emp-in .emp-history-amount {
  color: #15803d;
}

.emp-out .emp-history-amount {
  color: #dc2626;
}
.emp-history-left span {
  display: inline-flex;
  align-items: center;
}
.emp-history-line {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.emp-history-main-text {
  font-weight: 800;
}

.emp-history-source-text {
  font-size: 13px;
  color: #64748b;
  text-transform: uppercase;
}

.emp-history-date-text {
  font-size: 12px;
  color: #94a3b8;
  text-align: right;
}

.emp-in .emp-history-main-text {
  color: #15803d;
}

.emp-out .emp-history-main-text {
  color: #dc2626;
}
/* =========================
   🔔 Notifications
========================= */

.notification-wrap {
  position: relative;
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.notification-bell {
  width: 46px;
  height: 46px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notification-bell {
  position: relative;
  border: none;
  background: #ffffff;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.notification-bell:hover {
  background: #f8fafc;
}

.notification-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: white;
  border-radius: 999px;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.notification-panel {
  position: fixed;
  right: 16px;
  top: 90px;
  bottom: 16px;
  width: 340px;
  overflow-y: auto;
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  z-index: 9999;
}

.notification-panel-title {
  padding: 14px 16px;
  font-weight: 800;
  border-bottom: 1px solid #f1f5f9;
}

.notification-list {
  padding: 10px;
  }

.notification-item {
  padding: 12px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  margin-bottom: 10px;
}

.notification-item.unread {
  border-color: #93c5fd;
  background: #eff6ff;
}

.notification-title {
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.notification-message {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.5;
}

.notification-time {
  margin-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}
/* Fix notification bell alignment inside top navbar */
.appbar-account-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-direction: row !important;
}

.notification-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-right: 0;
}

.notification-bell {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.appbar-dropdown {
  display: none;
}

.appbar-dropdown.open {
  display: block;
}
.rat-situation-card {
  margin-top: 22px;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 32%),
    linear-gradient(180deg, #fffdf7 0%, #fff7ed 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #1f2937;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.rat-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fffbeb;
  border: 1px solid #fbbf24;
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.rat-situation-card h2 {
  margin: 0 0 10px;
  font-size: 30px;
  font-weight: 900;
  color: #111827;
}

.rat-subtitle {
  margin: 0 0 18px;
  max-width: 720px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.7;
}

.rat-alert-box {
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #fed7aa;
}

.rat-alert-title {
  font-size: 16px;
  font-weight: 900;
  color: #92400e;
  margin-bottom: 10px;
}

.rat-alert-box p {
  margin: 8px 0;
  color: #374151;
  line-height: 1.65;
}

.rat-footer-line {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  color: #92400e;
  font-size: 14px;
  font-style: italic;
  font-weight: 700;
  border: 1px dashed #fbbf24;
}
.hub-panel {
  width: 100%;
}

#rats-panel,
#operations-panel {
  width: 100%;
}

.rat-situation-card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.empire-hub-page {
  width: 100%;
  max-width: 1600px;
}

.empire-hub-page .section {
  width: 100%;
  max-width: 100%;
}
body.empire-hub-wide .page {
  max-width: 1500px !important;
  width: calc(100% - 48px) !important;
  margin: 0 auto !important;
}

body.empire-hub-wide .section {
  max-width: none !important;
  width: 100% !important;
}
#rats-panel .rat-situation-card {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.18), transparent 32%),
    linear-gradient(180deg, #fff5f5 0%, #ffe4e6 100%);

  border: 1px solid rgba(239, 68, 68, 0.35);
}

#rats-panel .rat-kicker {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

#rats-panel .rat-alert-box {
  border: 1px solid #fca5a5;
  background: rgba(255, 255, 255, 0.85);
}

#rats-panel .rat-alert-title {
  color: #b91c1c;
}

#rats-panel .rat-footer-line {
  background: #fef2f2;
  border: 1px dashed #ef4444;
  color: #991b1b;
}
.rat-situation-card {
  position: relative;
  overflow: hidden;
}

.rat {
  position: absolute;
  font-size: 22px;
  opacity: 0.22;
  pointer-events: none;
  animation: ratMove 6s ease-in-out infinite;
}

.rat-1 {
  top: 20px;
  right: 40px;
  animation-duration: 12s;
}

.rat-2 {
  bottom: 30px;
  left: 50px;
  animation-duration: 18s;
}

.rat-3 {
  top: 120px;
  right: 180px;
  animation-duration: 15s;
}

@keyframes ratMove {

  0% {
    transform: translateX(0px) rotate(0deg);
  }

  25% {
    transform: translateX(-18px) translateY(6px) rotate(-6deg);
  }

  50% {
    transform: translateX(12px) translateY(-4px) rotate(4deg);
  }

  75% {
    transform: translateX(-10px) translateY(3px) rotate(-3deg);
  }

  100% {
    transform: translateX(0px) rotate(0deg);
  }
}
.subnav-btn.rat-active {
  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;
  border-color: #ef4444;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.28);
}
.hub-panel {
  margin-top: 14px;
}


.rat-situation-banner img {
  width: 100%;
  display: block;
  border-radius: 22px;
}
#rats-panel {
  width: 100% !important;
  max-width: none !important;
}

#rats-panel .rat-situation-banner {
  width: 100% !important;
  max-width: none !important;
  margin: 18px 0 0 !important;
}

#rats-panel .rat-situation-banner img {
  width: 100% !important;
  display: block;
  border-radius: 24px;
}
.notification-bell-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);

  padding: 8px 14px;
  border-radius: 14px;

  color: #fff8dc;
  font-weight: 700;
  font-size: 15px;

  cursor: pointer;

  transition: all 0.2s ease;
}

.notification-bell-btn:hover {
  transform: translateY(-1px);

  background: rgba(255,255,255,0.14);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.18),
    0 0 18px rgba(255,215,0,0.18);
}
#notification-count {
  min-width: 18px;
  height: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;

  font-size: 11px;
  font-weight: 700;

  background: #64748b;
  color: white;

  padding: 0 5px;
}

.notification-panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: 340px;
  height: 420px;
overflow-y: scroll;
  background: white;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
  z-index: 999;
}

.notification-item {
  padding: 16px 18px;
  border-bottom: 1px solid #f1f1f1;
}
.new-flag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;

  background: #dc2626;
  color: white;

  font-size: 10px;
  font-weight: 800;

  border-radius: 4px;

  vertical-align: middle;

  letter-spacing: 0.6px;

  box-shadow: 0 2px 6px rgba(220,38,38,0.35);
}
/* ================================================= */
/* MOBILE NAVBAR FIX — SIMPLE STACKED NAV */
/* Add below previous mobile block */
/* ================================================= */

@media (max-width: 768px) {

  body {
    padding-top: 118px !important;
  }

  .appbar {
    height: 118px !important;
  }

  .appbar-inner {
    height: 100%;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 6px 10px !important;
  }

  .appbar-left {
    width: 100%;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 4px !important;
  }

  .appbar-logo img {
    height: 48px !important;
  }

  .appbar-nav {
    width: 100%;
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 2px 4px 6px !important;
  }

  .appbar-link {
    display: inline-flex !important;
    min-height: 30px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.08);
  }

  .appbar-right {
    display: none !important;
  }
}
/* ================================================= */
/* MOBILE HAMBURGER MENU */
/* ================================================= */

.mobile-menu-btn{
  display:none;
}

@media (max-width:768px){

  .mobile-menu-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    border:none;
    border-radius:10px;
    background:rgba(255,255,255,0.10);
    color:#ffffff;
    font-size:24px;
    font-weight:800;
    cursor:pointer;
  }

  .appbar{
    height:auto !important;
    min-height:76px;
    padding:10px 0;
  }

  body{
    padding-top:90px !important;
  }

  .appbar-inner{
    align-items:flex-start !important;
  }

  .appbar-left{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex-wrap:wrap;
    gap:10px;
  }

  .appbar-logo img{
    height:56px !important;
  }

  .appbar-nav{
  display:none !important;
  position:absolute;
  top:72px;
  left:12px;
  width:220px;
  flex-direction:column;
  gap:4px;
  padding:10px;
  border-radius:14px;
  background:#3b4758;
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 10px 28px rgba(0,0,0,0.25);
  z-index:9999;
}

  .appbar-nav.mobile-open{
    display:flex !important;
  }

 .appbar-link{
  width:100%;
  min-height:40px;
    justify-content:flex-start;
    padding:12px 14px;
    font-size:15px;
    border-radius:10px;
  }

  .appbar-right{
    display:none !important;
  }
}
/* FINAL MOBILE MENU POSITION FIX */
@media (max-width:768px){

  .appbar{
    position:fixed !important;
    height:76px !important;
    min-height:76px !important;
    padding:0 !important;
    overflow:visible !important;
  }

  .appbar-inner{
    position:relative !important;
    height:76px !important;
    align-items:center !important;
  }

  .appbar-left{
    position:relative !important;
    width:100% !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

 .appbar-nav{
  display:none !important;
  position:fixed !important;

  top:94px !important;
  left:20px !important;
  right:20px !important;

  width:auto !important;
  max-width:none !important;
  min-width:0 !important;

  margin:0 !important;
  padding:10px !important;

  border-radius:0 0 18px 18px !important;
  background:linear-gradient(
    180deg,
    rgba(142,68,173,0.98),
    rgba(59,71,88,0.98)
  ) !important;

  box-shadow:0 16px 36px rgba(0,0,0,0.30) !important;
  z-index:999999 !important;
}

  .appbar-nav.mobile-open{
    display:flex !important;
    flex-direction:column !important;
  }

  .appbar-link{
    width:100% !important;
    min-height:38px !important;
    justify-content:flex-start !important;
    padding:8px 12px !important;
    font-size:14px !important;
  }

  body{
    padding-top:76px !important;
  }
}
/* ================================================= */
/* DASHBOARD MOBILE FEATURE CARDS FIX */
/* ================================================= */

@media (max-width:768px){

  .dashboard-feature-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .dashboard-feature-card{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
  }

  .crate-feature-card,
  .redevelopment-feature-card{
    width:100% !important;
    flex:unset !important;
  }

  .crate-card{
    width:100% !important;
  }

  #expansion-allocation-card{
    min-height:auto !important;
  }
}
/* ================================================= */
/* MOBILE LEADERBOARD FIX */
/* ================================================= */

@media (max-width:768px){

  .leaderboard-header,
  .leaderboard-row{
    display:grid !important;
    grid-template-columns: 56px 1fr !important;
    gap:10px !important;
    align-items:flex-start !important;
  }

  .leaderboard-header{
    display:none !important;
  }

  .leaderboard-rank{
    font-size:24px !important;
    justify-content:center;
    align-items:center;
  }

  .leaderboard-player{
    width:100% !important;
  }

  .leaderboard-player-name{
    font-size:18px !important;
    line-height:1.2;
    margin-bottom:6px;
  }

  .leaderboard-stats{
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
    margin-top:8px;
  }

  .leaderboard-stat{
    display:flex !important;
    justify-content:space-between !important;
    align-items:center !important;
    font-size:14px !important;
    padding:4px 0;
    border-bottom:1px solid rgba(255,255,255,0.06);
  }

  .leaderboard-stat:last-child{
    border-bottom:none;
  }

  .leaderboard-stat-label{
    opacity:0.7;
    font-weight:700;
  }

  .leaderboard-stat-value{
    font-weight:800;
  }
}
/* ================================================= */
/* SAFE MOBILE LEADERBOARD SCROLL FIX */
/* ================================================= */

@media (max-width:768px){

  .leaderboard-card,
  .leaderboard-panel,
  .leaderboard-list,
  .leaderboard-table-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .leaderboard-header,
  .leaderboard-row{
    min-width:620px !important;
  }

  .leaderboard-row{
    padding:14px 18px !important;
  }

  .leaderboard-player-name{
    font-size:20px !important;
    line-height:1.15 !important;
  }

  .leaderboard-header{
    font-size:14px !important;
  }
}
/* ================================================= */
/* SHOP MOBILE FIX */
/* ================================================= */

@media (max-width:768px){

  .shop-hero{
    margin:12px 0 24px !important;
    padding:22px 18px !important;
    border-radius:22px !important;
  }

  .shop-hero h1{
    font-size:32px !important;
  }

  .shop-hero p,
  .shop-section-sub,
  .shop-note{
    max-width:100% !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
  }

  .shop-section{
    overflow:hidden !important;
  }

  .shop-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
  }

  .shop-card{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
  }

  .shop-table{
    min-width:540px !important;
  }

  .pack-progress-card,
  .pack-contents-section,
  .pack-showcase-slider-wrap,
  .pack-showcase-slider{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }
}
/* ================================================= */
/* MARKETPLACE MOBILE FIX */
/* ================================================= */

@media (max-width:768px){

  /* ===== MARKET TABS ===== */

  .market-tabs,
  .market-subtabs{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:10px !important;
  }

  .market-tab,
  .market-subtab{
    flex:1 1 calc(50% - 10px) !important;
    min-width:140px !important;
    justify-content:center !important;
    text-align:center !important;
  }

  .soon-badge{
    font-size:10px !important;
    padding:3px 8px !important;
  }

  /* ===== USER BALANCE BOX ===== */

  .market-user-box,
  .market-user-summary{
    width:100% !important;
    max-width:100% !important;
  }

  /* ===== EMP CONTROL FORM ===== */

  .emp-market-controls,
  .market-controls-row,
  .market-filter-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .emp-market-controls input,
  .emp-market-controls select,
  .market-controls-row input,
  .market-controls-row select{
    width:100% !important;
    min-height:46px !important;
    font-size:15px !important;
  }

  .emp-market-controls button,
  .market-controls-row button{
    width:100% !important;
    min-height:48px !important;
  }

  /* ===== MARKET CARDS ===== */

  .market-card,
  .listing-card,
  .emp-listing-card,
  .bp-listing-card,
  .pack-listing-card{
    width:100% !important;
    max-width:100% !important;
    overflow:hidden !important;
  }

  /* ===== TABLES ===== */

  .market-table-wrap,
  .listing-table-wrap{
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  table{
    min-width:620px !important;
  }

  /* ===== TEXT SAFETY ===== */

  .market-card *,
  .listing-card *{
    overflow-wrap:anywhere;
  }
}
/* ================================================= */
/* MARKET TOOLBAR MOBILE STACK */
/* ================================================= */

@media (max-width:768px){

  .market-toolbar{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
    align-items:stretch !important;
  }

  .market-toolbar .field{
    width:100% !important;
  }

  .market-toolbar label{
    display:block !important;
    margin-bottom:6px !important;
  }

  .market-toolbar input,
  .market-toolbar select{
    width:100% !important;
    min-height:48px !important;
    font-size:16px !important;
  }

  .market-toolbar .primary-btn,
  .market-toolbar .secondary-btn{
    width:100% !important;
    min-height:50px !important;
  }
}
/* MARKETPLACE FORM FIX - TABLET/MOBILE */
@media (max-width: 900px) {
  .market-toolbar {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .market-toolbar .field,
  .market-toolbar button {
    width: 100% !important;
  }

  .market-toolbar input,
  .market-toolbar select {
    width: 100% !important;
    min-height: 48px !important;
  }
}
/* FORCE EMP MARKET FORM MOBILE STACK */
@media (max-width:900px){

  .emp-mobile-toolbar{
    display:flex !important;
    flex-direction:column !important;
    gap:14px !important;
    align-items:stretch !important;
  }

  .emp-mobile-toolbar .field,
  .emp-mobile-toolbar button{
    width:100% !important;
    max-width:100% !important;
  }

  .emp-mobile-toolbar input,
  .emp-mobile-toolbar select{
    width:100% !important;
    max-width:100% !important;
    min-height:48px !important;
    box-sizing:border-box !important;
  }

  .emp-mobile-toolbar .primary-btn,
  .emp-mobile-toolbar .secondary-btn{
    width:100% !important;
  }
}
@media (max-width:768px){

  .appbar-right{
    display:flex !important;
    position:absolute !important;
    top:18px !important;
    right:66px !important;
    z-index:10000 !important;
  }

  .appbar-account-wrap,
  .appbar-login-btn{
    display:none !important;
  }

  .notification-bell-btn{
    display:flex !important;
    width:42px !important;
    height:42px !important;
    align-items:center !important;
    justify-content:center !important;
  }
}
/* ================================================= */
/* FINAL MOBILE TOPBAR POLISH */
/* ================================================= */

@media (max-width:768px){

  .appbar{
    height:74px !important;
  }

  .appbar-inner{
    height:74px !important;
    padding:0 14px !important;
  }

  .appbar-right{
    display:flex !important;
    position:fixed !important;
    top:16px !important;
    right:66px !important;
    z-index:999999 !important;
    width:auto !important;
    gap:8px !important;
    align-items:center !important;
  }

  .notification-bell-btn{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    border-radius:10px !important;
    font-size:16px !important;
    padding:0 !important;
  }

  #notification-count{
    width:18px !important;
    height:18px !important;
    font-size:10px !important;
  }

  .appbar-account-wrap{
    display:block !important;
  }

  .appbar-account-btn{
    height:36px !important;
    max-width:82px !important;
    padding:0 8px !important;
    border-radius:10px !important;
    font-size:12px !important;
    font-weight:700 !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
  }

  .mobile-menu-btn{
    width:40px !important;
    height:40px !important;
    border-radius:12px !important;
    font-size:22px !important;
  }

  .appbar-logo img{
    height:42px !important;
  }

  .appbar-dropdown{
  top:52px !important;
  right:0 !important;
  left:auto !important;

  width:220px !important;
  padding:10px !important;

 background:rgba(255,255,255,0.96) !important;
  border:1px solid rgba(255,255,255,0.08) !important;
  border-radius:18px !important;

  box-shadow:0 16px 34px rgba(15,23,42,0.16) !important;
  backdrop-filter:blur(10px) !important;
}
.appbar-dropdown a{
  padding:9px 12px !important;
  border-radius:12px !important;

  font-size:14px !important;
  font-weight:800 !important;

  color:#f8fafc !important;
}

.appbar-dropdown a:hover{
  background:rgba(255,255,255,0.08) !important;
}
}
/* ================================================= */
/* EMPIRE HUB MOBILE FIX */
/* ================================================= */

@media (max-width:768px){

  .ia-stats-row,
  .hub-stats-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .ia-reward-grid,
  .ia-milestone-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .ia-reward-card,
  .ia-milestone-card{
    width:100% !important;
    min-height:auto !important;
    padding:14px !important;
    border-radius:14px !important;
  }

  .ia-progress-wrap{
    margin:18px 0 !important;
  }

  .ia-info-box{
    padding:16px !important;
    font-size:14px !important;
    line-height:1.7 !important;
  }

  .ia-info-box p{
    margin-bottom:12px !important;
  }
}
/* MOBILE FIX — Empire Hub active operation */
@media (max-width: 640px) {
  .empire-hub-page {
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow-x: hidden !important;
  }

  #operations-live-area {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #operations-live-area .operations-active-card {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px !important;
    overflow: visible !important;
  }

  #operations-live-area .operations-active-card > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  #operations-live-area button {
    width: 100% !important;
    max-width: 100% !important;
  }
}/* MOBILE HARD FIX — Empire Operations horizontal cut */
@media (max-width: 640px) {
  body,
  html {
    overflow-x: hidden !important;
  }

  .empire-hub-wide,
  .empire-hub-page,
  .hub-panel,
  #operations-panel,
  #operations-live-area {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }

  #operations-live-area * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  #operations-live-area [style*="grid-template-columns"],
  #operations-live-area [style*="display:grid"],
  #operations-live-area [style*="display: grid"],
  #operations-live-area [style*="display:flex"],
  #operations-live-area [style*="display: flex"] {
    display: block !important;
  }

  #operations-live-area button {
    width: 100% !important;
    margin-top: 14px !important;
  }
}
.genesis-countdown-banner{
  margin-top:22px;
  margin-bottom:22px;
  padding:28px 24px;
  border-radius:24px;

background:
  radial-gradient(circle at top right, rgba(255,255,255,0.10), transparent 26%),
  linear-gradient(135deg,#9b6bc7 0%, #8d5fbc 45%, #7c4ba8 100%);

  border:1px solid rgba(250,204,21,0.28);

  text-align:center;

  box-shadow:
    0 18px 50px rgba(15,23,42,0.35);
}

.genesis-countdown-label{
  font-size:12px;
  font-weight:800;
  letter-spacing:.18em;
  color:#0f172a;
  margin-bottom:12px;
}

.genesis-countdown-title{
  font-size:32px;
  font-weight:900;
  color:#1e293b;;
  margin-bottom:12px;
  text-shadow:0 4px 14px rgba(0,0,0,0.22);
  letter-spacing:-0.02em;
}

.genesis-countdown-text{
  font-size:16px;
  line-height:1.7;
  color:rgba(255,255,255,0.82);
  max-width:760px;
  margin:0 auto 20px;
}

.genesis-countdown-timer{
  display:inline-block;
  padding:14px 22px;
  border-radius:16px;

 background:rgba(255,255,255,0.12);
border:1px solid rgba(255,255,255,0.16);

  color:#bbf7d0;

  font-size:28px;
  font-weight:900;

  letter-spacing:.06em;
}
.codex-card-block {
  min-width: 0;
  overflow: hidden;
}

.codex-card-block .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.codex-card-block .codex-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.codex-card-block .codex-table th,
.codex-card-block .codex-table td {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.codex-side-nav{
  position:fixed;
  top:140px;
  left:18px;
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:50;
}

.codex-side-nav a{
  text-decoration:none;
  background:rgba(255,255,255,0.92);
  border:1px solid rgba(148,163,184,0.25);
  color:#0f172a;
  padding:10px 14px;
  border-radius:14px;
  font-size:14px;
  font-weight:800;
  box-shadow:0 8px 20px rgba(15,23,42,0.08);
  transition:all .18s ease;
  backdrop-filter:blur(8px);
}

.codex-side-nav a:hover{
  transform:translateX(4px);
  background:#8b5cf6;
  color:white;
}

@media (max-width: 1100px){

  .codex-side-nav{
    position:sticky;
    top:96px;
    left:auto;
    z-index:80;

    display:flex;
    flex-direction:row;
    flex-wrap:wrap;
    justify-content:center;

    gap:8px;

    padding:10px 8px;
    margin-bottom:16px;

    background:rgba(246,248,252,0.96);
    border-bottom:1px solid rgba(148,163,184,0.22);

    backdrop-filter:blur(10px);
  }

  .codex-side-nav a{
    flex:0 0 auto;

    padding:8px 12px;
    font-size:13px;
    border-radius:999px;

    white-space:nowrap;
  }

  .codex-side-nav a:hover,
  .codex-side-nav a.active{
    transform:none;
  }
}
.codex-side-nav a.active{
  background:#8b5cf6;
  color:white;
  transform:translateX(4px);
  box-shadow:0 10px 24px rgba(139,92,246,0.28);
}
@media (max-width:768px){

  nav#mobileNavMenu.appbar-nav{
    width:190px !important;
    max-width:190px !important;

    padding:6px !important;
    gap:2px !important;

    background:rgba(51,65,85,0.82) !important;
    border-radius:16px !important;
    border:1px solid rgba(255,255,255,0.12) !important;

    box-shadow:0 14px 28px rgba(15,23,42,0.18) !important;
    backdrop-filter:blur(14px) !important;
  }

  nav#mobileNavMenu.appbar-nav a.appbar-link{
    min-height:28px !important;
    height:28px !important;

    padding:4px 8px !important;
    margin:0 !important;

    font-size:13px !important;
    line-height:1 !important;
  }
}
@media (max-width:1100px){

  nav#mobileNavMenu.appbar-nav{
    width:190px !important;
    max-width:190px !important;
    min-width:190px !important;

    padding:6px !important;
    gap:2px !important;

    background:rgba(51,65,85,0.82) !important;
    border-radius:16px !important;
    border:1px solid rgba(255,255,255,0.12) !important;

    box-shadow:0 14px 28px rgba(15,23,42,0.18) !important;
    backdrop-filter:blur(14px) !important;
  }

  nav#mobileNavMenu.appbar-nav a.appbar-link{
    min-height:28px !important;
    height:28px !important;
    padding:4px 8px !important;

    font-size:13px !important;
    line-height:1 !important;
  }
}
@media (max-width:1100px){

  .appbar #mobileNavMenu{
    position:absolute !important;
    top:76px !important;
    right:6px !important;
    left:auto !important;

    width:185px !important;
    max-width:185px !important;
    min-width:185px !important;

    padding:6px !important;
    gap:2px !important;

    background:rgba(147,51,234,0.30) !important;
    backdrop-filter:blur(18px) saturate(160%) !important;
    border-radius:16px !important;
    border:1px solid rgba(255,255,255,0.18) !important;

    box-shadow:0 14px 28px rgba(15,23,42,0.20) !important;
    backdrop-filter:blur(14px) !important;
  }

  .appbar #mobileNavMenu.show{
    display:flex !important;
    flex-direction:column !important;
  }

 .appbar #mobileNavMenu .appbar-link{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;

  width:100% !important;
  min-height:46px !important;
  height:46px !important;

  padding:0 14px !important;
  margin:0 0 10px 0 !important;

  font-size:15px !important;
  line-height:46px !important;
  font-weight:900 !important;

  position:relative !important;
  transform:none !important;
}
}



.rat-situation-card {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff7ed 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  box-shadow: 0 14px 30px rgba(127, 29, 29, 0.12);
}

.rat-situation-card h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 900;
  color: #111827;
}

.rat-subtitle {
  margin: 8px 0 22px;
  color: #64748b;
  font-weight: 700;
}

.rat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.rat-stat {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 16px;
}

.rat-label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 6px;
}

.rat-stat span:last-child {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.rat-message-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px dashed #fca5a5;
  color: #7f1d1d;
  font-weight: 700;
  margin-bottom: 18px;
}

#rat-cleanup-btn {
  padding: 12px 18px;
  border-radius: 14px;
  border: none;
  background: #dc2626;

.season-2-banner {
  width: 100%;
  margin: 0 0 18px;
  padding: 22px 26px;
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(180, 83, 9, 0.45);
  background:
    radial-gradient(circle at 85% 20%, rgba(34,197,94,0.30), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(250,204,21,0.35), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fef3c7 42%, #ecfdf5 100%);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.16);
}

.season-2-banner::after {
  content: "⚗️";
  position: absolute;
  right: 32px;
  top: 8px;
  font-size: 92px;
  opacity: 0.12;
  transform: rotate(-10deg);
}

.season-2-left,
.season-2-right {
  position: relative;
  z-index: 1;
}

.season-2-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #92400e;
  color: #fff7ed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.season-2-title {
  font-size: 30px;
  font-weight: 950;
  color: #111827;
  line-height: 1.05;
}

.season-2-sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.season-2-right {
  min-width: 290px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.85);
}

.season-2-reward-main {
  font-size: 18px;
  font-weight: 950;
  color: #14532d;
}

.season-2-reward-sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #7c2d12;
}

.season-2-btn {
  margin-top: 10px;
  padding: 9px 14px;
  border: none;
  border-radius: 12px;
  background: #16a34a;

  color: white;
  font-weight: 900;
  cursor: pointer;
}

.rat-story {
  margin: 18px 0 24px;
  padding: 18px 22px;
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  border-left: 5px solid #dc2626;
  font-size: 16px;
  line-height: 1.8;
  color: #374151;
  font-style: italic;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.condition-badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
}
.rat-guide-box {
  margin: 0 0 24px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #fed7aa;
}

.rat-guide-title {
  font-size: 18px;
  font-weight: 900;
  color: #7c2d12;
  margin-bottom: 12px;
}

.rat-guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  overflow: hidden;
  border-radius: 14px;
}

.rat-guide-table th,
.rat-guide-table td {
  padding: 10px;
  border-bottom: 1px solid #fed7aa;
  text-align: left;
}

.rat-guide-table th {
  background: #ffedd5;
  color: #7c2d12;
  font-weight: 900;
}

.rat-guide-note {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #7c2d12;
}
.inventory-salvage img.inventory-icon {
  width: 72px;
  height: 72px;
  object-fit: contain;
}
.inventory-salvage img {
  width: 90px !important;
  height: 90px !important;
  object-fit: contain !important;
}
.inventory-card.inventory-salvage img.inventory-icon {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain !important;
  transform: scale(1.35);
}
.salvage-icon-big {
  width: 92px !important;
  height: 92px !important;
  object-fit: contain !important;
  display: block !important;
}
.inventory-salvage {
  border-top: 4px solid #94a3b8 !important;
}
.rat-history-content {
  min-width: 320px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.65);
  border: 1px solid #fecaca;
  font-size: 14px;
}
.rat-history-row {
  display: grid;
  grid-template-columns: 90px 90px 90px 180px;
}

.rat-history-row:last-child {
  border-bottom: none;
}
.dashboard-feature-card{
  display:flex;
  flex-direction:column;
  height:100%;
}
#rat-monitor-card {
  justify-content: space-between !important;
  padding: 24px !important;
}

.rat-dashboard-title {
  font-size: 18px;
  font-weight: 900;
  color: #7f1d1d;
  margin-bottom: 14px;
}

.rat-dashboard-lines {
  display: grid;
  gap: 10px;
}

.rat-dashboard-lines div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.65);
  border-radius: 12px;
  font-weight: 800;
}

.rat-dashboard-lines span {
  color: #991b1b;
}

.rat-dashboard-lines strong {
  color: #111827;
}

.rat-dashboard-lines div {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 16px !important;
}

.rat-dashboard-lines span {
  white-space: nowrap;
}

.rat-dashboard-lines strong {
  white-space: nowrap;
  text-align: right;
}
.rat-dashboard-link{
  display:inline-block;
  padding:10px 16px;
  border-radius:12px;
  background:rgba(239,68,68,0.08);
  text-decoration:none;
  font-weight:800;
}

.rat-dashboard-subtext {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 16px;
}
.rat-dashboard-card{
  display:flex;
  flex-direction:column;
}

.rat-dashboard-link{
  margin-top:auto;
}
.rat-dashboard-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 18px;
}
.rat-dashboard-card {
  max-height: 286px !important;
  padding: 22px 28px !important;
}

.rat-dashboard-message {
  margin: 28px 0 12px !important;
  color:#991b1b;
  font-weight:700;

}
.overview-block {
  width: 100%;
  display: block !important;
}
.dashboard-feature-row {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr !important;
  gap: 20px !important;
  align-items: stretch !important;
}

.dashboard-feature-row > .dashboard-feature-card {
  height: 100% !important;
}

.crate-card,
.rat-dashboard-card {
  height: 100% !important;
}
.rat-dashboard-card{
  border: 2px solid #fecaca;
  border-radius: 18px;
}

@media (max-width: 760px) {
  .season-2-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .season-2-title {
    font-size: 24px;
  }

  .season-2-right {
    width: 100%;
    min-width: 0;
  }
}
}
.rat-dashboard-card {
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.14), transparent 32%),
    linear-gradient(135deg, #fff7ed 0%, #fff1f2 100%) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  border-radius: 22px !important;
  padding: 22px !important;
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.10) !important;
  color: #111827 !important;
}

.rat-dashboard-title {
  font-size: 18px !important;
  font-weight: 900 !important;
  color: #7f1d1d !important;
  margin-bottom: 10px !important;
}

.rat-dashboard-message {
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.55 !important;
  color: #111827 !important;
  margin-bottom: 8px !important;
}

.rat-dashboard-subtext {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #7f1d1d !important;
  margin-bottom: 8px !important;
}

.rat-dashboard-link {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #991b1b !important;
  text-decoration: none !important;
}
.season-2-banner {
  width: 100%;
  margin: 0 0 18px;
  padding: 22px 26px;
  border-radius: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(180, 83, 9, 0.45);
  background:
    radial-gradient(circle at 85% 20%, rgba(34,197,94,0.30), transparent 28%),
    radial-gradient(circle at 20% 10%, rgba(250,204,21,0.35), transparent 30%),
    linear-gradient(135deg, #fff7ed 0%, #fef3c7 42%, #ecfdf5 100%);
  box-shadow: 0 16px 34px rgba(146, 64, 14, 0.16);
}

.season-2-banner::after {
  content: "⚗️";
  position: absolute;
  right: 32px;
  top: 8px;
  font-size: 92px;
  opacity: 0.12;
  transform: rotate(-10deg);
}

.season-2-left,
.season-2-right {
  position: relative;
  z-index: 1;
}

.season-2-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #92400e;
  color: #fff7ed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.season-2-title {
  font-size: 30px;
  font-weight: 950;
  color: #111827;
  line-height: 1.05;
}

.season-2-sub {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

.season-2-right {
  min-width: 290px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(255,255,255,0.85);
}

.season-2-reward-main {
  font-size: 18px;
  font-weight: 950;
  color: #14532d;
}

.season-2-reward-sub {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #7c2d12;
}

.season-2-btn {
  margin-top: 10px;
  padding: 9px 14px;
  border: none;
  border-radius: 12px;
  background: #16a34a;
  color: white;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 760px) {
  .season-2-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
  }

  .season-2-title {
    font-size: 24px;
  }

  .season-2-right {
    width: 100%;
    min-width: 0;
  }
}
/* ===== EMPIRE ASSET CARD IMAGE FIX ===== */

.inventory-card {
  overflow: hidden !important;
}

.inventory-icon {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.inventory-card img {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain !important;
}
.inventory-salvage {
  border-top: 4px solid #64748b !important;
}

/* ============================= */
/* FOUNDRY BALANCE CARDS */
/* ============================= */

.foundry-balance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.foundry-balance-card {
  padding: 22px 20px;
  min-height: 150px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.foundry-fragments-card {
  border-top: 5px solid #f97316;
}

.foundry-smp-card {
  border-top: 5px solid #eab308;
}

.foundry-emp-card {
  border-top: 5px solid #8b5cf6;
}

.foundry-balance-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 12px;
}

.foundry-balance-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.foundry-fragments-card .foundry-balance-value {
  color: #7c2d12;
}

.foundry-smp-card .foundry-balance-value {
  color: #334155;
}

.foundry-emp-card .foundry-balance-value {
  color: #b45309;
}

.foundry-balance-note {
  font-size: 15px;
  color: #475569;
  margin-top: 12px;
  font-weight: 600;
}
/* ============================= */
/* FOUNDRY RECIPE CARDS */
/* ============================= */

.foundry-recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.foundry-recipe-card {
  padding: 24px;
  min-height: 165px;
}

.foundry-b4-card {
  border-top: 5px solid #f97316;
}

.foundry-b5-card {
  border-top: 5px solid #eab308;
}

.foundry-relic-card {
  border-top: 5px solid #8b5cf6;
}

.foundry-recipe-title {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 18px;
}

.foundry-recipe-text {
  font-size: 16px;
  color: #0f172a;
  margin: 0 0 18px;
  line-height: 1.6;
}

.foundry-coming-soon {
  display: inline-block;
  font-size: 16px;
  font-weight: 900;
  color: #020617;
}
.foundry-hero-card {
  border-radius: 22px;
  padding: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedb5 45%, #fef3c7 100%);
  border: 1px solid #f97316;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.18);
}

.foundry-hero-title {
  margin: 0 0 8px;
  color: #7c2d12;
}

.foundry-hero-text {
  margin: 0;
  color: #9a3412;
  font-weight: 700;
  line-height: 1.6;
}
.foundry-craft-btn {
  width: 100%;
  margin-top: 8px;
  min-height: 46px;
}

.foundry-craft-status {
  margin-top: 10px;
  font-size: 13px;
}
/* ================================================= */
/* MYDEMPIRE MOBILE CLEANUP — SEASON + HUB + RATS */
/* Added for better mobile layout */
/* ================================================= */

@media (max-width: 768px){

  /* ========================= */
  /* GENERAL PAGE WIDTH FIX */
  /* ========================= */

  .page,
  .empire-hub-page,
  .player-dashboard-page .page{
    width:100% !important;
    max-width:100% !important;
    padding-left:10px !important;
    padding-right:10px !important;
    overflow-x:hidden !important;
  }

  .section,
  .overview-block,
  .summary-card,
  .card{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  /* ========================= */
  /* DASHBOARD / HUB TAB BUTTONS */
  /* ========================= */

  .subnav,
  .leaderboard-subnav{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow-x:auto !important;
    gap:8px !important;
    padding-bottom:8px !important;
    -webkit-overflow-scrolling:touch;
  }

  .subnav-btn,
  .leaderboard-subnav-btn{
    flex:0 0 auto !important;
    white-space:nowrap !important;
    font-size:13px !important;
    padding:9px 12px !important;
    border-radius:12px !important;
  }

  /* ========================= */
  /* SEASON REWARD MOBILE FIX */
  /* ========================= */

  .season-reward-preview{
    width:100% !important;
    max-width:100% !important;
    padding:14px !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }

  .season-reward-title{
    font-size:18px !important;
    line-height:1.3 !important;
    margin-bottom:12px !important;
  }

  .season-reward-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .season-reward-item,
  .season-reward-item.wide{
    width:100% !important;
    min-width:0 !important;
    min-height:auto !important;
    padding:12px 14px !important;
    border-radius:14px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;

    text-align:left !important;
    font-size:14px !important;
    line-height:1.35 !important;
    word-break:normal !important;
    overflow-wrap:anywhere !important;
  }

  .season-reward-item span{
    font-size:15px !important;
    font-weight:900 !important;
    text-align:right !important;
    white-space:normal !important;
  }

  .season-reward-info{
    font-size:13px !important;
    line-height:1.55 !important;
    margin-top:12px !important;
  }

  #season-live-leaderboard{
    width:100% !important;
    overflow-x:hidden !important;
  }

  .season-rank-row{
    display:flex !important;
    flex-direction:column !important;
    align-items:flex-start !important;
    gap:4px !important;
    padding:10px 12px !important;
  }

  .season-rank-left{
    width:100% !important;
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
  }

  .season-rank-name{
    font-size:15px !important;
    overflow-wrap:anywhere !important;
  }

  .season-rank-ep{
    font-size:13px !important;
    font-weight:800 !important;
    margin-left:30px !important;
  }

  .season-history-head{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    align-items:flex-start !important;
  }

  .season-prize-breakdown,
  .season-reward-badge,
  .season-growth-badge{
    width:100% !important;
    font-size:13px !important;
    white-space:normal !important;
    overflow-wrap:anywhere !important;
  }

  .season-history-nav{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  /* ========================= */
  /* RAT SITUATION MOBILE FIX */
  /* ========================= */

  .rat-situation-card{
    width:100% !important;
    max-width:100% !important;
    padding:16px !important;
    border-radius:18px !important;
    overflow:hidden !important;
  }

  .rat-situation-card h2{
    font-size:22px !important;
    line-height:1.25 !important;
  }

  .rat-story,
  .rat-guide-note,
  .rat-message-box{
    font-size:14px !important;
    line-height:1.6 !important;
  }

  .rat-guide-box{
    width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .rat-guide-table{
    min-width:560px !important;
    font-size:13px !important;
  }

  .rat-guide-table th,
  .rat-guide-table td{
    padding:8px 10px !important;
    white-space:nowrap !important;
  }

  .rat-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  .rat-stat{
    width:100% !important;
    min-width:0 !important;
    padding:14px !important;
  }

  .rat-label{
    font-size:12px !important;
  }

  #warehouse-condition,
  #rat-activity,
  #rat-cleanup-cost,
  #rat-smp-balance{
    font-size:18px !important;
  }

  #rat-cleanup-btn,
  .empire-action-btn{
    width:100% !important;
    min-height:48px !important;
    font-size:15px !important;
    border-radius:14px !important;
  }

  .rat-history-box{
    width:100% !important;
    overflow:hidden !important;
  }

  .rat-history-row{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
    padding:10px 12px !important;
    font-size:13px !important;
  }

  /* ========================= */
  /* EMPIRE HUB PANELS MOBILE */
  /* ========================= */

  .hub-panel{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  #operations-live-area{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  #operations-live-area .summary-grid,
  #operations-live-area .empire-ops-intel-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  #operations-live-area .summary-card,
  .empire-ops-intel-card{
    width:100% !important;
    max-width:100% !important;
  }

  #active-operation-countdown{
    white-space:normal !important;
    text-align:center !important;
    line-height:1.4 !important;
  }

  #culture-panel > div,
  #foundry-panel > div{
    max-width:100% !important;
  }

  #culture-panel div[style*="grid-template-columns"],
  #foundry-panel div[style*="grid-template-columns"]{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:12px !important;
  }

  #culture-panel .card,
  #foundry-panel .card{
    width:100% !important;
    max-width:100% !important;
  }
}
/* ============================= */
/* FOUNDRY FINAL LAYOUT FIX */
/* ============================= */

.foundry-balance-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  margin: 22px 0 34px !important;
}

.foundry-balance-grid .foundry-balance-card {
  width: 100% !important;
  min-height: 170px !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

@media (max-width: 900px) {
  .foundry-balance-grid {
    grid-template-columns: 1fr !important;
  }
}
/* ========================================= */
/* PREMIUM MATERIAL SUB-TABS */
/* ========================================= */

.premium-material-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:4px 0 18px;
}

.premium-material-tab{
  border:1px solid #dbeafe;
  background:#ffffff;
  color:#334155;
  border-radius:999px;
  padding:10px 15px;
  font-size:14px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(15,23,42,0.06);
  transition:all 0.18s ease;
}

.premium-material-tab:hover{
  transform:translateY(-1px);
  border-color:#93c5fd;
  background:#eff6ff;
}

.premium-material-tab.active{
  background:linear-gradient(180deg,#2563eb 0%,#1d4ed8 100%);
  color:#ffffff;
  border-color:#1d4ed8;
}

.premium-material-tab.disabled,
.premium-material-tab:disabled{
  opacity:0.55;
  cursor:not-allowed;
  background:#f8fafc;
  color:#94a3b8;
  border-color:#e5e7eb;
  box-shadow:none;
}

.premium-material-tab.disabled:hover,
.premium-material-tab:disabled:hover{
  transform:none;
  background:#f8fafc;
  border-color:#e5e7eb;
}
/* ============================= */
/* CLEAN APPBAR HOME DROPDOWN */
/* ============================= */

.appbar-nav .appbar-dropdown {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}


.appbar-nav .appbar-dropdown-menu {
  display: none !important;
  position: absolute !important;
  top: 42px !important;
  left: 0 !important;
  width: 170px !important;
  min-width: 170px !important;
  padding: 8px !important;
  background: #ffffff !important;
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.18) !important;
  z-index: 99999 !important;
}

.appbar-nav .appbar-dropdown:hover .appbar-dropdown-menu {
  display: block !important;
}

.appbar-nav .appbar-dropdown-item {
  display: block !important;
  padding: 10px 12px !important;
  border-radius: 10px !important;
  color: #111827 !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.appbar-nav .appbar-dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #2563eb !important;
}
/* ============================= */
/* SHARE MARKET NAV BADGE */
/* ============================= */

.share-market-nav-link {
  gap: 7px;
}

.nav-new-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #facc15;
  color: #7c2d12;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-shadow: none;
  transform: translateY(-1px);
}
/* ============================= */
/* EMPIRE SHARE MARKET — SOFT TEASER */
/* ============================= */

.share-market-page {
  background:
    radial-gradient(circle at 12% 12%, rgba(147, 197, 253, 0.28), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(216, 180, 254, 0.22), transparent 28%),
    radial-gradient(circle at 70% 86%, rgba(187, 247, 208, 0.22), transparent 26%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 45%, #f8fafc 100%);
}

.share-market-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 116px 0 60px;
}

.share-teaser-hero {
  width: 100%;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 54px 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.82), rgba(239,246,255,0.9)),
    radial-gradient(circle at top right, rgba(168,85,247,0.18), transparent 34%);
  border-bottom: 1px solid rgba(148,163,184,0.22);
}

.share-teaser-inner {
  max-width: 1040px;
  text-align: center;
}

.share-kicker {
  display: inline-flex;
  padding: 8px 16px;
  border-radius: 999px;
  background: #eef2ff;
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  font-size: 13px;
  font-weight: 1000;
  margin-bottom: 18px;
}

.share-teaser-hero h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  color: #111827;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.share-lead {
  max-width: 780px;
  margin: 22px auto 0;
  font-size: 20px;
  line-height: 1.75;
  color: #475569;
  font-weight: 650;
}

.share-mystery-line {
  max-width: 880px;
  margin: 28px auto 0;
  padding: 18px 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.78);
  border: 1px solid rgba(148,163,184,0.24);
  box-shadow: 0 16px 34px rgba(15,23,42,0.08);
  color: #334155;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 900;
}

.share-teaser-actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-teaser-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15,23,42,0.05);
}

.share-teaser-grid {
  width: min(1180px, calc(100% - 36px));
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.share-teaser-card {
  min-height: 260px;
  padding: 26px;
  border-radius: 28px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(226,232,240,0.9);
  box-shadow: 0 18px 36px rgba(15,23,42,0.07);
}

.share-card-symbol {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: 28px;
  margin-bottom: 16px;
}

.share-teaser-card h2 {
  margin: 0 0 10px;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.15;
}

.share-teaser-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.7;
  font-size: 16px;
}

.share-hidden-rule {
  margin-top: 18px;
  padding: 11px 13px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #475569;
  font-size: 14px;
  font-weight: 900;
}

.share-teaser-banner {
  width: min(1180px, calc(100% - 36px));
  margin: 26px auto 0;
  padding: 30px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, #ffffff 0%, #f8fafc 48%, #eef2ff 100%);
  color: #0f172a;
  border: 1px solid rgba(196, 181, 253, 0.45);
  box-shadow: 0 18px 40px rgba(15,23,42,0.08);
}

.share-banner-label {
  color: #7c3aed;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 1000;
  margin-bottom: 8px;
}

.share-teaser-banner h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  color: #111827;
}

.share-teaser-banner p {
  margin: 0;
  color: #475569;
  line-height: 1.7;
  font-size: 16px;
}

.share-teaser-warning {
  width: min(1180px, calc(100% - 36px));
  margin: 20px auto 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-weight: 850;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .share-market-shell {
    padding-top: 104px;
  }

  .share-teaser-grid {
    grid-template-columns: 1fr;
  }

  .share-teaser-hero {
    min-height: auto;
    padding: 38px 16px;
  }

  .share-lead {
    font-size: 17px;
  }

  .share-teaser-banner h2 {
    font-size: 24px;
  }
}
/* ============================= */
/* EMPIRE RANK PROGRESS STRIP */
/* ============================= */

.empire-rank-strip {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 34%),
    linear-gradient(90deg, #f5f3ff 0%, #eef2ff 52%, #fff7ed 100%);
  border: 2px solid #a78bfa;
  color: #312e81;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.13);
  font-weight: 800;
}

.empire-rank-left {
  flex: 1;
  min-width: 260px;
}

.empire-rank-kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d28d9;
  margin-bottom: 5px;
}

.empire-rank-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 19px;
  font-weight: 950;
  color: #111827;
}

#empire-rank-title {
  color: #7c2d12;
}

#empire-rank-next {
  color: #4f46e5;
}

.empire-rank-arrow {
  color: #a16207;
}

.empire-rank-progress-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.empire-rank-progress-bar {
  flex: 1;
  height: 10px;
  min-width: 180px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(124, 58, 237, 0.22);
  overflow: hidden;
}

.empire-rank-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b 0%, #8b5cf6 100%);
  transition: width 0.4s ease;
}

#empire-rank-progress-text {
  min-width: 42px;
  font-size: 13px;
  font-weight: 950;
  color: #4c1d95;
}

.empire-rank-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #4c1d95;
}

#empire-rank-current-ep,
#empire-rank-need {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.35);
  white-space: nowrap;
}

.empire-rank-guide-btn {
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.empire-rank-guide-btn:hover {
  filter: brightness(0.96);
}

@media (max-width: 760px) {
  .empire-rank-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .empire-rank-right {
    justify-content: flex-start;
  }

  .empire-rank-progress-bar {
    min-width: 0;
  }
}
/* ============================= */
/* EMPIRE RANK GUIDE POPUP */
/* ============================= */

.empire-rank-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.empire-rank-guide-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(3px);
}

.empire-rank-guide-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #a78bfa;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}

.empire-rank-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.24), transparent 35%),
    linear-gradient(90deg, #f5f3ff 0%, #eef2ff 100%);
  border-bottom: 1px solid #ddd6fe;
}

.empire-rank-guide-kicker {
  font-size: 12px;
  font-weight: 900;
  color: #6d28d9;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.empire-rank-guide-head h3 {
  margin: 0;
  font-size: 22px;
  color: #111827;
}

.empire-rank-guide-head button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #c4b5fd;
  background: #ffffff;
  color: #4c1d95;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.empire-rank-guide-body {
  padding: 20px;
}

.empire-rank-guide-body p {
  margin: 0 0 16px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 700;
}

.rank-guide-list {
  display: grid;
  gap: 10px;
}

.rank-guide-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  font-size: 14px;
}

.rank-guide-row span {
  font-weight: 900;
  color: #111827;
}

.rank-guide-row strong {
  font-weight: 900;
  color: #4c1d95;
  white-space: nowrap;
}

.rank-guide-row.emperor {
  background: #fffbeb;
  border-color: #facc15;
}

.rank-guide-row.grand {
  background: #f5f3ff;
  border-color: #c4b5fd;
}

.rank-guide-row.magnate {
  background: #eff6ff;
  border-color: #93c5fd;
}

.rank-guide-row.builder {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.empire-rank-guide-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #166534;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.empire-rank-guide-close-btn {
  width: 100%;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.empire-rank-guide-close-btn:hover {
  filter: brightness(0.96);
}
/* ============================= */
/* FACTORY GOODS PAGE */
/* Final-compatible Goods styling */
/* ============================= */

.factory-goods-page .goods-page-shell {
  max-width: 1200px;
  margin: 0 auto;
}

.factory-goods-page .goods-hero-section {
  border-top: 5px solid #22c55e;
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 28%),
    linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.factory-goods-page .goods-alert {
  margin: 14px 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fffbeb;
  border: 1px solid #facc15;
  color: #78350f;
  font-size: 14px;
  font-weight: 900;
}

.factory-goods-page .goods-summary-grid {
  margin-top: 18px;
}

.factory-goods-page .goods-summary-card {
  border-top: 4px solid #22c55e;
}

.factory-goods-page .goods-action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 16px 0 4px;
}

.factory-goods-page .goods-action-row button {
  width: auto;
  min-width: 180px;
}

.factory-goods-page #goods-claim-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.factory-goods-page .goods-rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.factory-goods-page .goods-rule-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 15px;
}

.factory-goods-page .goods-rule-card strong {
  display: block;
  color: #166534;
  font-size: 15px;
  margin-bottom: 8px;
}

.factory-goods-page .goods-rule-card p {
  margin: 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 700;
}

.factory-goods-page .goods-factory-list,
.factory-goods-page .goods-inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.factory-goods-page .goods-factory-card {
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.08);
}

.factory-goods-page .goods-factory-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.factory-goods-page .goods-factory-top strong {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 950;
}

.factory-goods-page .goods-factory-top span {
  color: #334155;
  font-size: 13px;
  font-weight: 900;
}

.factory-goods-page .goods-factory-bottom {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.factory-goods-page .goods-ready {
  color: #15803d;
  font-weight: 950;
}

.factory-goods-page .goods-cooldown {
  color: #b45309;
  font-weight: 950;
}

.factory-goods-page .goods-skipped {
  color: #64748b;
  font-weight: 950;
}

.factory-goods-page .goods-empty-card {
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 640px) {
  .factory-goods-page .goods-action-row button {
    width: 100%;
  }
}
/* ============================= */
/* FACTORY GOODS — PRODUCT CARDS */
/* ============================= */

.factory-goods-page .goods-product-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-top: 5px solid #22c55e;
  border-radius: 18px;
  padding: 15px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.factory-goods-page .goods-product-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.factory-goods-page .goods-product-industry {
  font-size: 12px;
  font-weight: 950;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 4px 9px;
}

.factory-goods-page .goods-product-quality {
  font-size: 12px;
  font-weight: 950;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 4px 9px;
}

.factory-goods-page .goods-product-name {
  font-size: 18px;
  line-height: 1.25;
  font-weight: 950;
  color: #111827;
  margin: 10px 0;
}

.factory-goods-page .goods-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 900;
  margin-top: 8px;
}

.factory-goods-page .goods-product-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.factory-goods-page .goods-quality-fine {
  border-top-color: #f59e0b;
}

.factory-goods-page .goods-quality-superior {
  border-top-color: #8b5cf6;
}

.factory-goods-page .goods-level-luxury {
  background:
    radial-gradient(circle at top right, rgba(250, 204, 21, 0.18), transparent 30%),
    #ffffff;
}

.factory-goods-page .goods-level-premium {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
    #ffffff;
}

@media (max-width: 640px) {
  .factory-goods-page .goods-product-footer,
  .factory-goods-page .goods-product-meta {
    flex-direction: column;
    gap: 4px;
  }
}
/* ============================
   GOODS REDEMPTION CARD
============================ */

.goods-redemption-card {
  margin: 24px 0;
  padding: 22px;
  border: 1px solid rgba(61, 126, 82, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, #f2fff6 0%, #eef7ff 100%);
  box-shadow: 0 14px 34px rgba(38, 80, 54, 0.08);
}

.goods-redemption-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.goods-section-kicker {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #4f8f63;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.goods-redemption-head h2 {
  margin: 0 0 8px;
  color: #16345c;
}

.goods-redemption-head p {
  margin: 0;
  color: #4b5f73;
  line-height: 1.45;
}

.goods-redemption-status {
  padding: 8px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  white-space: nowrap;
}

.goods-redemption-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.goods-redemption-stat {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(61, 126, 82, 0.12);
}

.goods-redemption-stat span {
  display: block;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 6px;
}

.goods-redemption-stat strong {
  display: block;
  font-size: 1.08rem;
  color: #17365d;
}

.goods-redemption-stat.reward {
  background: linear-gradient(135deg, #fff8df 0%, #ffffff 100%);
  border-color: rgba(217, 166, 47, 0.35);
}

.goods-redemption-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.65);
  color: #536273;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .goods-redemption-head {
    flex-direction: column;
  }

  .goods-redemption-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================
   GOODS SUB NAV TABS
============================ */

.goods-subnav {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
}

.goods-subnav-btn {
  border: 1px solid rgba(54, 105, 76, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #17365d;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.goods-subnav-btn:hover {
  transform: translateY(-1px);
  background: #f1fff5;
  box-shadow: 0 8px 20px rgba(38, 80, 54, 0.08);
}

.goods-subnav-btn.active {
  background: linear-gradient(135deg, #dcfce7 0%, #e6f2ff 100%);
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.12);
}

.goods-tab-panel {
  display: none;
}

.goods-tab-panel.active {
  display: block;
}
/* ============================
   GOODS ACTION ROW CLEANUP
============================ */

.goods-action-row {
  display: grid;
  grid-template-columns: 180px 1fr 180px;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}

.goods-action-row .secondary-btn,
.goods-action-row .primary-button {
  width: 100%;
  min-height: 52px;
  border-radius: 18px;
}

.goods-subnav {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.goods-subnav-btn {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(54, 105, 76, 0.18);
  background: rgba(255, 255, 255, 0.78);
  color: #17365d;
  font-weight: 800;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.goods-subnav-btn:hover {
  transform: translateY(-1px);
  background: #f1fff5;
  box-shadow: 0 8px 20px rgba(38, 80, 54, 0.08);
}

.goods-subnav-btn.active {
  background: linear-gradient(135deg, #dcfce7 0%, #e6f2ff 100%);
  color: #14532d;
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 8px 22px rgba(34, 197, 94, 0.12);
}

@media (max-width: 920px) {
  .goods-action-row {
    grid-template-columns: 1fr;
  }

  .goods-subnav {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================
   GOODS REDEMPTION LEADERBOARD
============================ */

.goods-redemption-leaderboard-card {
  margin: 24px 0;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(61, 126, 82, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #f2fff7 100%);
  box-shadow: 0 14px 34px rgba(38, 80, 54, 0.07);
}

.goods-redemption-leaderboard-head {
  margin-bottom: 16px;
}

.goods-redemption-leaderboard-head h2 {
  margin: 0 0 8px;
  color: #16345c;
}

.goods-redemption-leaderboard-head p {
  margin: 0;
  color: #4b5f73;
  line-height: 1.45;
}

.goods-redemption-leaderboard-list {
  display: grid;
  gap: 12px;
}

.goods-redemption-leaderboard-row {
  display: grid;
  grid-template-columns: 70px 1.5fr repeat(3, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(61, 126, 82, 0.12);
}

.goods-redemption-rank {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #dcfce7 0%, #e6f2ff 100%);
  color: #14532d;
  font-weight: 900;
}

.goods-redemption-player strong {
  display: block;
  color: #17365d;
  font-size: 1rem;
}

.goods-redemption-player span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.86rem;
}

.goods-redemption-leaderboard-stat span {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.goods-redemption-leaderboard-stat strong {
  color: #17365d;
  font-size: 0.98rem;
}

.goods-redemption-leaderboard-stat.reward {
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff8df;
  border: 1px solid rgba(217, 166, 47, 0.28);
}

@media (max-width: 900px) {
  .goods-redemption-leaderboard-row {
    grid-template-columns: 52px 1fr;
  }

  .goods-redemption-leaderboard-stat {
    grid-column: 2;
  }
}
/* ============================
   GOODS CARD — IMAGE DOMINANT CLEAN OVERRIDE
============================ */

.goods-collectible-card {
  padding: 10px;
  border-radius: 22px;
}

.goods-collectible-frame {
  height: 310px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.55), transparent 34%),
    linear-gradient(135deg, #ddffe6 0%, #eaf6ff 100%);
}

/* Image area should dominate */
.goods-card-image-area {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 7rem;
  z-index: 1;
}

/* Top matrix line — no boxes */
.goods-card-topline {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.goods-card-name {
  max-width: 72%;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
  color: #102a4c;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.goods-card-qty {
  font-size: 0.82rem;
  font-weight: 800;
  color: #102a4c;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* Industry small bottom-left, no pill */
.goods-card-industry {
  position: absolute;
  left: 12px;
  bottom: 36px;
  z-index: 3;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #14532d;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* Quality dots small on right side */
.goods-card-quality {
  position: absolute;
  right: 12px;
  top: 48px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 0.9rem;
  line-height: 0.9;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* PV small bottom-left, no dark box */
.goods-card-pv {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 3;
  font-size: 0.82rem;
  font-weight: 800;
  color: #102a4c;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

/* Controls below image should be light */
.goods-card-control-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 2px 0;
  font-size: 0.9rem;
}

.goods-submit-check {
  font-weight: 700;
  color: #17365d;
}

.goods-submit-qty-box span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #47617a;
}

.goods-submit-qty-input {
  width: 52px;
  padding: 5px 7px;
  border-radius: 9px;
  border: 1px solid rgba(54, 105, 76, 0.22);
  font-weight: 700;
}
/* ============================
   GOODS QUALITY COLOR THEMES
============================ */

/* STANDARD = GREEN */
.goods-product-card.goods-quality-standard .goods-collectible-frame {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.45), transparent 34%),
    linear-gradient(135deg, #dff9e5 0%, #bff0ca 100%);
  border: 1px solid rgba(46, 125, 50, 0.28);
}

.goods-product-card.goods-quality-standard {
  box-shadow: 0 10px 24px rgba(46, 125, 50, 0.12);
}

/* FINE = REDDISH / ROSE */
.goods-product-card.goods-quality-fine .goods-collectible-frame {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.45), transparent 34%),
    linear-gradient(135deg, #ffe3e6 0%, #ffc7d1 100%);
  border: 1px solid rgba(211, 47, 47, 0.28);
}

.goods-product-card.goods-quality-fine {
  box-shadow: 0 10px 24px rgba(211, 47, 47, 0.12);
}

/* SUPERIOR = GOLDEN */
.goods-product-card.goods-quality-superior .goods-collectible-frame {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #fff4c9 0%, #ffe08a 100%);
  border: 1px solid rgba(217, 166, 47, 0.35);
}

.goods-product-card.goods-quality-superior {
  box-shadow: 0 10px 24px rgba(217, 166, 47, 0.16);
}

/* matching dot colors */
.goods-quality-dots-standard {
  color: #2e7d32 !important;
}

.goods-quality-dots-fine {
  color: #c62828 !important;
}

.goods-quality-dots-superior {
  color: #c79200 !important;
}
/* ============================
   GOODS QUALITY DOTS — BIGGER & STYLISH
============================ */

.goods-card-quality {
  position: absolute;
  right: 12px;
  top: 52px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.9);
}

.goods-quality-dots-standard,
.goods-quality-dots-fine,
.goods-quality-dots-superior {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 28px;
}

.goods-quality-dots-standard {
  color: #1f9d45 !important;
  text-shadow:
    0 0 4px rgba(31, 157, 69, 0.35),
    0 0 10px rgba(31, 157, 69, 0.22),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.goods-quality-dots-fine {
  color: #d6455d !important;
  text-shadow:
    0 0 4px rgba(214, 69, 93, 0.35),
    0 0 10px rgba(214, 69, 93, 0.22),
    0 1px 2px rgba(255, 255, 255, 0.8);
}

.goods-quality-dots-superior {
  color: #d4a017 !important;
  text-shadow:
    0 0 4px rgba(212, 160, 23, 0.4),
    0 0 12px rgba(212, 160, 23, 0.28),
    0 1px 2px rgba(255, 255, 255, 0.85);
}
/* ============================
   GOODS QUALITY GEMS + RARITY
============================ */

.goods-card-quality {
  position: absolute;
  right: 12px;
  top: 54px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.25rem;
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 1px;
}

.goods-quality-dots-standard,
.goods-quality-dots-fine,
.goods-quality-dots-superior {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 26px;
}

.goods-quality-dots-standard {
  color: #1f9d45 !important;
  text-shadow:
    0 0 5px rgba(31, 157, 69, 0.38),
    0 0 12px rgba(31, 157, 69, 0.24),
    0 1px 2px rgba(255, 255, 255, 0.9);
}

.goods-quality-dots-fine {
  color: #d6455d !important;
  text-shadow:
    0 0 5px rgba(214, 69, 93, 0.38),
    0 0 12px rgba(214, 69, 93, 0.24),
    0 1px 2px rgba(255, 255, 255, 0.9);
}

.goods-quality-dots-superior {
  color: #d4a017 !important;
  text-shadow:
    0 0 6px rgba(212, 160, 23, 0.42),
    0 0 14px rgba(212, 160, 23, 0.3),
    0 1px 2px rgba(255, 255, 255, 0.9);
}

.goods-card-rarity {
  font-size: 0.72rem;
  font-weight: 900;
  color: #102a4c;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(16, 42, 76, 0.12);
  border-radius: 999px;
  padding: 3px 7px;
  margin-left: 6px;
  backdrop-filter: blur(3px);
}
/* ============================
   GOODS STICKY SUBMIT BAR
============================ */

.goods-submit-sticky-bar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(54, 105, 76, 0.18);
  box-shadow: 0 16px 38px rgba(18, 42, 76, 0.14);
  backdrop-filter: blur(8px);
}

.goods-submit-summary {
  display: flex;
  gap: 28px;
  align-items: center;
  color: #47617a;
  font-weight: 700;
}

.goods-submit-summary strong {
  color: #102a4c;
  font-weight: 900;
}

.goods-submit-sticky-btn {
  min-width: 210px;
  min-height: 46px;
  border-radius: 16px;
}

.goods-submit-sticky-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .goods-submit-sticky-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .goods-submit-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .goods-submit-sticky-btn {
    width: 100%;
  }
}
/* ============================
   GOODS REAL PRODUCT IMAGES
============================ */

.goods-card-image-area img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
  margin: auto;
  filter: drop-shadow(0 10px 14px rgba(18, 42, 76, 0.18));
}

.goods-card-image-area.goods-image-missing::after {
  content: "📦";
  font-size: 5.8rem;
}
/* ============================
   GOODS CLAIM RESULT MODAL
============================ */

.goods-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 28, 46, 0.48);
  backdrop-filter: blur(7px);
}

.goods-modal-overlay.hidden {
  display: none;
}

.goods-claim-modal-box {
  width: min(920px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(135deg, #f7fff7 0%, #eef7ff 100%);
  border: 1px solid rgba(61, 126, 82, 0.18);
  box-shadow: 0 28px 80px rgba(12, 28, 46, 0.28);
  padding: 24px;
}

.goods-claim-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.goods-claim-modal-head h2 {
  margin: 0 0 6px;
  color: #102a4c;
}

.goods-claim-modal-head p {
  margin: 0;
  color: #52677c;
}

.goods-modal-close {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: #102a4c;
  font-size: 1.6rem;
  font-weight: 900;
  cursor: pointer;
}

.goods-claim-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.goods-claim-modal-stats div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(61, 126, 82, 0.12);
}

.goods-claim-modal-stats span {
  display: block;
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.goods-claim-modal-stats strong {
  color: #102a4c;
  font-size: 1.25rem;
  font-weight: 950;
}

.goods-claim-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.goods-claim-reward-card {
  border-radius: 20px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(61, 126, 82, 0.12);
  text-align: center;
}

.goods-claim-reward-image {
  height: 118px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.goods-claim-reward-image img {
  max-width: 100%;
  max-height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(18, 42, 76, 0.16));
}

.goods-claim-reward-name {
  font-weight: 900;
  color: #102a4c;
  font-size: 0.92rem;
  line-height: 1.2;
}

.goods-claim-reward-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #52677c;
  font-weight: 800;
}

.goods-claim-modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 680px) {
  .goods-claim-modal-stats {
    grid-template-columns: 1fr;
  }

  .goods-claim-modal-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ============================
   GOODS CLAIM CONFIRM MODAL
============================ */

.goods-confirm-modal-box {
  width: min(560px, 94vw);
  border-radius: 26px;
  background: linear-gradient(135deg, #f7fff7 0%, #eef7ff 100%);
  border: 1px solid rgba(61, 126, 82, 0.18);
  box-shadow: 0 28px 80px rgba(12, 28, 46, 0.28);
  padding: 24px;
}

.goods-confirm-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(61, 126, 82, 0.12);
  color: #52677c;
  line-height: 1.45;
}

.goods-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.goods-confirm-actions .secondary-btn,
.goods-confirm-actions .primary-button {
  min-width: 130px;
  min-height: 44px;
  border-radius: 16px;
}

@media (max-width: 560px) {
  .goods-confirm-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .goods-confirm-actions .secondary-btn,
  .goods-confirm-actions .primary-button {
    width: 100%;
  }
}
/* ===== HOME DROPDOWN FIX ===== */
.home-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 170px;
}

.home-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  border-radius: 10px;
  text-shadow: none !important;
}

.home-dropdown-menu a:hover {
  background: #f3f4f6;
}
.goods-redemption-countdown-card {
  margin: 0 0 22px;
  padding: 20px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(250, 204, 21, 0.22), transparent 35%),
    linear-gradient(135deg, #fff7ed 0%, #eff6ff 55%, #ecfdf5 100%);
  border: 1px solid #facc15;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.goods-redemption-countdown-kicker {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  color: #92400e;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.goods-redemption-countdown-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  color: #0f172a;
}

.goods-redemption-countdown-timer {
  min-width: 220px;
  text-align: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #fde68a;
  color: #111827;
  font-size: 30px;
  font-weight: 950;
  box-shadow: inset 0 0 0 1px rgba(250, 204, 21, 0.20);
}

@media (max-width: 700px) {
  .goods-redemption-countdown-card {
    align-items: stretch;
  }

  .goods-redemption-countdown-timer {
    width: 100%;
    min-width: 0;
    font-size: 24px;
  }
}
.goods-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  max-width: 1040px;
}

@media (max-width: 900px) {
  .goods-summary-grid {
    grid-template-columns: 1fr !important;
    max-width: none;
  }
}
.goods-action-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  align-items: center !important;
}

.goods-action-row .goods-subnav {
  display: contents !important;
}

.goods-action-row button,
.goods-action-row .goods-subnav-btn {
  width: 100% !important;
  min-height: 62px !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  .goods-action-row {
    grid-template-columns: 1fr !important;
  }

  .goods-action-row .goods-subnav {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
/* ============================= */
/* GOODS CARD HOVER — works by image area */
/* ============================= */

.goods-card-image-area {
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.goods-card-image-area img {
  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

/* Target the real card even if wrapper class is different */
.goods-inventory-grid > div:has(.goods-card-image-area),
.goods-inventory-list > div:has(.goods-card-image-area),
.goods-card:has(.goods-card-image-area) {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.goods-inventory-grid > div:has(.goods-card-image-area):hover,
.goods-inventory-list > div:has(.goods-card-image-area):hover,
.goods-card:has(.goods-card-image-area):hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
  border-color: #86efac !important;
  background:
    radial-gradient(circle at top, rgba(220, 252, 231, 0.9), transparent 42%),
    #ffffff;
}

.goods-inventory-grid > div:has(.goods-card-image-area):hover .goods-card-image-area img,
.goods-inventory-list > div:has(.goods-card-image-area):hover .goods-card-image-area img,
.goods-card:has(.goods-card-image-area):hover .goods-card-image-area img {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 16px rgba(15, 23, 42, 0.18));
}

.goods-inventory-grid > div:has(.goods-card-image-area):hover .goods-card-name,
.goods-inventory-list > div:has(.goods-card-image-area):hover .goods-card-name,
.goods-card:has(.goods-card-image-area):hover .goods-card-name {
  color: #047857;
}
/* ============================= */
/* GOODS COMPACT TOP UI */
/* ============================= */

.goods-summary-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  max-width: none !important;
}

.goods-summary-card {
  min-height: 96px !important;
  padding: 18px 22px !important;
  border-radius: 18px !important;
}

.goods-summary-card .summary-label,
.goods-summary-card span {
  font-size: 13px !important;
  letter-spacing: 0.08em !important;
}

.goods-summary-card .summary-value,
.goods-summary-card strong {
  font-size: 28px !important;
  line-height: 1.15 !important;
}

.goods-action-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) !important;
  gap: 12px !important;
  align-items: center !important;
  margin-top: 10px !important;
}

.goods-action-row .goods-subnav {
  display: contents !important;
}

.goods-action-row button,
.goods-action-row .goods-subnav-btn {
  min-height: 48px !important;
  height: 48px !important;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  .goods-summary-grid,
  .goods-action-row {
    grid-template-columns: 1fr !important;
  }

  .goods-action-row .goods-subnav {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
/* ============================= */
/* GOODS TOP SUMMARY COLOR CARDS */
/* ============================= */

.goods-summary-grid .goods-summary-card {
  position: relative;
  overflow: hidden;
  min-height: 110px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
}

.goods-summary-grid .goods-summary-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 36%),
    linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
  border-top: 5px solid #3b82f6 !important;
}

.goods-summary-grid .goods-summary-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.20), transparent 36%),
    linear-gradient(135deg, #ecfdf5 0%, #ffffff 100%) !important;
  border-top: 5px solid #22c55e !important;
}

.goods-summary-grid .goods-summary-card:nth-child(3) {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.22), transparent 36%),
    linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
  border-top: 5px solid #f59e0b !important;
}

.goods-summary-grid .goods-summary-card span {
  color: #64748b !important;
  font-weight: 900 !important;
}

.goods-summary-grid .goods-summary-card strong {
  color: #0f172a !important;
  font-weight: 950 !important;
}
/* ============================= */
/* GOODS PLAYER INFO STRIP */
/* ============================= */

.goods-preview-note,
#goods-preview-note {
  margin-top: 12px !important;
  padding: 14px 18px !important;
  border-radius: 16px !important;
  background:
    linear-gradient(135deg, #ecfdf5 0%, #eff6ff 55%, #fff7ed 100%) !important;
  border: 1px solid #86efac !important;
  color: #14532d !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.5 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06) !important;
}
.goods-next-claim-timer {
  margin-top: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  color: #475569;
}

.goods-next-claim-timer.ready {
  color: #047857;
}

.goods-next-claim-timer.cooldown {
  color: #b45309;
}
/* ============================= */
/* GOODS LEADERBOARD COMPACT FINAL */
/* ============================= */

.goods-redemption-leaderboard-card {
  padding: 18px 22px !important;
}

.goods-redemption-leaderboard-card .goods-redemption-leaderboard-head {
  margin-bottom: 14px !important;
}

.goods-redemption-leaderboard-card .goods-redemption-leaderboard-head h2 {
  font-size: 24px !important;
  margin: 4px 0 8px !important;
}

.goods-redemption-leaderboard-card .goods-redemption-leaderboard-head p {
  font-size: 15px !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

#goods-redemption-leaderboard-list {
  display: grid !important;
  gap: 10px !important;
}

#goods-redemption-leaderboard-list > div {
  min-height: 74px !important;
  padding: 12px 16px !important;
  border-radius: 16px !important;
  display: grid !important;
  grid-template-columns: 70px 1.5fr 1fr 0.8fr 1fr !important;
  align-items: center !important;
  gap: 12px !important;
}

#goods-redemption-leaderboard-list > div * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#goods-redemption-leaderboard-list strong {
  font-size: 17px !important;
  line-height: 1.2 !important;
}

#goods-redemption-leaderboard-list span,
#goods-redemption-leaderboard-list small,
#goods-redemption-leaderboard-list div {
  font-size: 13px;
}

@media (max-width: 900px) {
  #goods-redemption-leaderboard-list > div {
    grid-template-columns: 1fr !important;
  }
}
/* ===================================================== */
/* 🌙 MYDEMPIRE DARK THEME OPTION */
/* Add at very bottom of styles.css */
/* Activated later by adding class: mde-dark-theme to body/html */
/* ===================================================== */

html.mde-dark-theme,
body.mde-dark-theme {
  --bg-main: #0f172a;
  --bg-card: #111827;
  --bg-soft: #1e293b;

  --border-soft: rgba(148, 163, 184, 0.28);
  --border-strong: rgba(148, 163, 184, 0.42);

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;

  --accent-gold: #facc15;
  --accent-gold-soft: rgba(250, 204, 21, 0.14);
  --accent-pill: rgba(148, 163, 184, 0.35);

  --bg: #0f172a;
  --ink: #f8fafc;
  --muted: rgba(226, 232, 240, 0.75);
  --card: #111827;
  --border: rgba(148, 163, 184, 0.28);
  --border2: rgba(148, 163, 184, 0.42);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --shadow2: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* Page background */
html.mde-dark-theme body,
body.mde-dark-theme {
  color: #f8fafc !important;
  background:
    radial-gradient(circle at 12% 14%, rgba(59, 130, 246, 0.18), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(139, 92, 246, 0.16), transparent 22%),
    radial-gradient(circle at 78% 72%, rgba(34, 197, 94, 0.10), transparent 24%),
    linear-gradient(135deg, #020617 0%, #0f172a 45%, #111827 100%) !important;
  background-attachment: fixed !important;
}

/* Main cards and sections */
.mde-dark-theme .card,
.mde-dark-theme .section,
.mde-dark-theme .summary-card,
.mde-dark-theme .shop-card,
.mde-dark-theme .codex-card-block,
.mde-dark-theme .codex-mini-card,
.mde-dark-theme .rat-situation-card,
.mde-dark-theme .listing-list,
.mde-dark-theme .market-tab-panel,
.mde-dark-theme .overview-block,
.mde-dark-theme .empire-path-card,
.mde-dark-theme .inside-pack-mini,
.mde-dark-theme .dashboard-feature-card {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35) !important;
}

/* Navbar */
.mde-dark-theme .site-header {
  background: #020617 !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
}

.mde-dark-theme .site-nav a {
  color: #e5e7eb !important;
}

.mde-dark-theme .site-nav a:hover,
.mde-dark-theme .site-nav a.active {
  color: #facc15 !important;
}

/* Text */
.mde-dark-theme h1,
.mde-dark-theme h2,
.mde-dark-theme h3,
.mde-dark-theme h4,
.mde-dark-theme .page-title,
.mde-dark-theme .section-title,
.mde-dark-theme .hTitle,
.mde-dark-theme .summary-value,
.mde-dark-theme strong {
  color: #f8fafc !important;
}

.mde-dark-theme p,
.mde-dark-theme li,
.mde-dark-theme small,
.mde-dark-theme .page-subtitle,
.mde-dark-theme .section-subtitle,
.mde-dark-theme .hText,
.mde-dark-theme .summary-sub,
.mde-dark-theme .market-header-sub,
.mde-dark-theme .subtitle,
.mde-dark-theme .text-muted {
  color: #cbd5e1 !important;
}

/* Pills, tags, hints */
.mde-dark-theme .pill,
.mde-dark-theme .tag,
.mde-dark-theme .faq-pill,
.mde-dark-theme .hint,
.mde-dark-theme .status,
.mde-dark-theme .status-text {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Inputs */
.mde-dark-theme input,
.mde-dark-theme select,
.mde-dark-theme textarea {
  background: #020617 !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.38) !important;
}

.mde-dark-theme input::placeholder,
.mde-dark-theme textarea::placeholder {
  color: #94a3b8 !important;
}

/* Buttons */
.mde-dark-theme button,
.mde-dark-theme .btn,
.mde-dark-theme .secondary-btn,
.mde-dark-theme .subnav-btn {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
}

.mde-dark-theme .primary-button,
.mde-dark-theme .primary-btn,
.mde-dark-theme .btnPrimary {
  background: linear-gradient(180deg, #22c55e, #15803d) !important;
  color: #ffffff !important;
  border-color: rgba(34, 197, 94, 0.45) !important;
}

.mde-dark-theme .subnav-btn-active,
.mde-dark-theme .tab-btn.active,
.mde-dark-theme .admin-tab-btn.active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #60a5fa !important;
}

/* Tables */
.mde-dark-theme table,
.mde-dark-theme .mde-table,
.mde-dark-theme .shop-table,
.mde-dark-theme .codex-table {
  background: #111827 !important;
  color: #f8fafc !important;
}

.mde-dark-theme th {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
}

.mde-dark-theme td {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

/* Modals and popups */
.mde-dark-theme .pack-reveal-modal-box,
.mde-dark-theme .fulfillment-guide-box,
.mde-dark-theme .fulfillment-claim-box,
.mde-dark-theme .fulfillment-start-box {
  background: linear-gradient(180deg, #111827 0%, #020617 100%) !important;
  color: #f8fafc !important;
  border-color: rgba(148, 163, 184, 0.3) !important;
}

/* Keep warning/success cards readable */
.mde-dark-theme .highlight-gold {
  background: rgba(250, 204, 21, 0.14) !important;
  color: #fde68a !important;
}

/* Theme toggle button style - button added in next step */
.mde-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.mde-theme-toggle:hover {
  background: rgba(250, 204, 21, 0.18);
  color: #facc15;
}
/* Goods leaderboard empty message */
.goods-redemption-leaderboard-list:has(.goods-empty-state) {
  display: block !important;
}

.goods-redemption-leaderboard-list .goods-empty-state {
  display: block !important;
  width: 100% !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  color: #475569 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.5 !important;
  text-align: left !important;
  white-space: normal !important;
}
/* Goods leaderboard no-active message */
.goods-redemption-leaderboard-list .goods-empty-state-wide {
  display: flex !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 16px 18px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
  border: 1px dashed #cbd5e1 !important;
  box-sizing: border-box !important;
}

.goods-redemption-leaderboard-list .goods-empty-state-wide span {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  color: #475569 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}
/* ================================================= */
/* GOODS REDEMPTION EMPTY BOX FINAL FIX */
/* ================================================= */

.goods-redemption-empty-box{
  width:100% !important;
  max-width:100% !important;
  min-height:90px;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  padding:18px 20px !important;
  border:1px dashed #bfdbfe;
  border-radius:18px;
  background:rgba(255,255,255,0.55);
  color:#334155;
  font-size:18px;
  font-weight:800;
  line-height:1.6;
  white-space:normal !important;
  word-break:normal !important;
  overflow-wrap:normal !important;
  box-sizing:border-box !important;
}
/* ================================================= */
/* FINAL MOBILE NAVBAR DRAWER FIX — CLEAN VERSION */
/* ================================================= */

@media (max-width: 768px) {

  html,
  body {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body {
    padding-top: 74px !important;
  }

  .wrap,
  .page,
  .page-main,
  .empire-hub-page {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    overflow-x: hidden !important;
  }

  .appbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 74px !important;
    min-height: 74px !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 999999 !important;
    background: #8E44AD !important;
  }

  .appbar-inner {
    position: relative !important;
    height: 74px !important;
    width: 100% !important;
    max-width: none !important;
    padding: 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .appbar-left {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  .appbar-logo img {
    height: 42px !important;
    max-width: 76px !important;
    object-fit: contain !important;
  }

  .appbar-right {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }

  .notification-bell-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
  }

  .appbar-account-wrap {
    display: block !important;
    max-width: 88px !important;
  }

  .appbar-account-btn {
    height: 38px !important;
    max-width: 88px !important;
    padding: 0 8px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
    font-size: 12px !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: static !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }

  .appbar-nav {
    display: none !important;
    position: fixed !important;
    top: 74px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100vh - 90px) !important;
    overflow-y: auto !important;

    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px !important;

    border-radius: 0 0 20px 20px !important;
    background: linear-gradient(
      180deg,
      rgba(142, 68, 173, 0.98),
      rgba(59, 71, 88, 0.98)
    ) !important;

    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.32) !important;
    z-index: 1000000 !important;
  }

  .appbar-nav.mobile-open {
    display: flex !important;
  }

  .appbar-link {
    width: 100% !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 12px !important;
    border-radius: 14px !important;

    font-size: 15px !important;
    font-weight: 900 !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .soon-pill {
    margin-left: 6px !important;
  }
}
/* ================================================= */
/* TRUE FINAL MOBILE NAV FIX — MUST STAY LAST */
/* ================================================= */

@media (max-width:1100px){

  html,
  body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }

  body{
    padding-top:76px !important;
  }

  .appbar{
    position:fixed !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;
    height:72px !important;
    min-height:72px !important;
    overflow:visible !important;
    z-index:999999 !important;
    background:#8E44AD !important;
  }

  .appbar-inner{
    height:72px !important;
    width:100% !important;
    max-width:none !important;
    padding:0 14px !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:space-between !important;
  }

  .appbar-left{
    width:auto !important;
    flex:1 1 auto !important;
    min-width:0 !important;

    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:10px !important;
  }

  .appbar-logo img{
    height:50px !important;
    max-width:90px !important;
    object-fit:contain !important;
  }

  .mobile-menu-btn{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:44px !important;
    height:44px !important;
    min-width:44px !important;

    margin:0 !important;
    padding:0 !important;
    border-radius:12px !important;
  }

  .appbar #mobileNavMenu,
  nav#mobileNavMenu.appbar-nav{
    display:none !important;

    position:fixed !important;
    top:72px !important;
    left:12px !important;
    right:12px !important;

    width:auto !important;
    min-width:0 !important;
    max-width:none !important;

    padding:12px !important;
    gap:8px !important;

    border-radius:0 0 20px 20px !important;
    background:linear-gradient(
      180deg,
      rgba(142,68,173,0.98),
      rgba(59,71,88,0.98)
    ) !important;

    border:1px solid rgba(255,255,255,0.18) !important;
    box-shadow:0 18px 40px rgba(15,23,42,0.35) !important;
    backdrop-filter:blur(14px) !important;

    z-index:1000000 !important;
  }

  .appbar #mobileNavMenu.show,
  .appbar #mobileNavMenu.mobile-open,
  nav#mobileNavMenu.appbar-nav.show,
  nav#mobileNavMenu.appbar-nav.mobile-open{
    display:flex !important;
    flex-direction:column !important;
  }

  .appbar #mobileNavMenu .appbar-link,
  nav#mobileNavMenu.appbar-nav a.appbar-link{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;

    min-height:42px !important;
    height:auto !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:8px 12px !important;
    margin:0 !important;

    font-size:15px !important;
    line-height:1.2 !important;
    font-weight:900 !important;
    text-align:center !important;
    white-space:nowrap !important;
  }
}
/* ================================================= */
/* MOBILE MENU ITEM OVERLAP FIX — MUST STAY LAST */
/* ================================================= */

@media (max-width:1100px){

  #mobileNavMenu,
  .appbar-nav{
    display:none !important;
  }

  #mobileNavMenu.mobile-open,
  #mobileNavMenu.show,
  .appbar-nav.mobile-open,
  .appbar-nav.show{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }

  #mobileNavMenu > a,
  #mobileNavMenu .appbar-link,
  #mobileNavMenu .appbar-link.auth-only,
  #mobileNavMenu .appbar-link.auth-only.show-auth-link,
  .appbar-nav > a,
  .appbar-nav .appbar-link,
  .appbar-nav .appbar-link.auth-only,
  .appbar-nav .appbar-link.auth-only.show-auth-link{
    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;

    display:flex !important;
    flex:0 0 auto !important;

    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;

    height:44px !important;
    min-height:44px !important;
    max-height:44px !important;

    margin:0 0 8px 0 !important;
    padding:0 14px !important;

    align-items:center !important;
    justify-content:center !important;

    font-size:15px !important;
    line-height:44px !important;
    font-weight:900 !important;
    text-align:center !important;

    transform:none !important;
    float:none !important;
    clear:both !important;
  }

  #mobileNavMenu > a:last-child,
  .appbar-nav > a:last-child{
    margin-bottom:0 !important;
  }

  #mobileNavMenu .appbar-link.active,
  .appbar-nav .appbar-link.active{
    transform:none !important;
  }
}
/* ================================================= */
/* FORCE DASHBOARD AS REAL MOBILE MENU ITEM */
/* ================================================= */

@media (max-width:1100px){

  #mobileNavMenu #dashboardLink,
  #mobileNavMenu a#dashboardLink,
  nav#mobileNavMenu.appbar-nav #dashboardLink{
    display:flex !important;
    visibility:visible !important;
    opacity:1 !important;

    position:relative !important;
    top:auto !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;

    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;

    height:46px !important;
    min-height:46px !important;

    margin:0 !important;
    padding:0 14px !important;

    align-items:center !important;
    justify-content:center !important;

    font-size:15px !important;
    line-height:46px !important;
    font-weight:900 !important;
    text-align:center !important;
    white-space:nowrap !important;

    transform:none !important;
    float:none !important;
    clear:both !important;

    order:1 !important;
  }

  #mobileNavMenu a[href="index.html"],
  #mobileNavMenu a[href="./index.html"],
  #mobileNavMenu a[href="/index.html"]{
    order:2 !important;
  }

  #mobileNavMenu #shopLink{
    order:3 !important;
  }

  #mobileNavMenu #marketplaceLink{
    order:4 !important;
  }

  #mobileNavMenu a[href*="empire-hub"]{
    order:5 !important;
  }

  #mobileNavMenu a[href*="goods"]{
    order:6 !important;
  }

  #mobileNavMenu a[href*="share"]{
    order:7 !important;
  }
}
/* ================================================= */
/* HOME DROPDOWN RESTORE — DESKTOP + MOBILE SAFE */
/* ================================================= */

.home-nav-dropdown{
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
}

.home-nav-dropdown-menu{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  min-width:190px;
  background:#ffffff;
  border:1px solid rgba(148,163,184,0.35);
  border-radius:14px;
  box-shadow:0 14px 30px rgba(15,23,42,0.18);
  padding:8px;
  z-index:1000001;
}

.home-nav-dropdown:hover .home-nav-dropdown-menu{
  display:block;
}

.home-nav-dropdown-menu a{
  display:block;
  padding:9px 12px;
  border-radius:10px;
  color:#111827;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}

.home-nav-dropdown-menu a:hover{
  background:#f3e8ff;
  color:#7e22ce;
}

/* Mobile: show only Home row, not dropdown panel */
@media (max-width:1100px){

  #mobileNavMenu{
    display:none !important;
  }

  #mobileNavMenu.mobile-open,
  #mobileNavMenu.show{
    display:flex !important;
    flex-direction:column !important;
  }

  #mobileNavMenu .home-nav-dropdown{
    width:100% !important;
    display:flex !important;
    order:1 !important;
  }

  #mobileNavMenu .home-nav-dropdown-menu{
    display:none !important;
  }

  #mobileNavMenu .home-nav-dropdown .appbar-link{
    width:100% !important;
  }

  #mobileNavMenu > a:nth-of-type(1){ order:2 !important; } /* Dashboard */
  #mobileNavMenu > a:nth-of-type(2){ order:3 !important; } /* Shop */
  #mobileNavMenu > a:nth-of-type(3){ order:4 !important; } /* Marketplace */
  #mobileNavMenu > a:nth-of-type(4){ order:5 !important; } /* Empire Hub */
  #mobileNavMenu > a:nth-of-type(5){ order:6 !important; } /* Goods */
  #mobileNavMenu > a:nth-of-type(6){ order:7 !important; } /* Share Market */
}
/* ================================================= */
/* MOBILE HOME DROPDOWN TAP FIX */
/* ================================================= */

@media (max-width:1100px){

  #mobileNavMenu .home-nav-dropdown{
    width:100% !important;
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }

  #mobileNavMenu .home-nav-dropdown .appbar-home-link{
    width:100% !important;
  }

  #mobileNavMenu .home-nav-dropdown-menu{
    display:none !important;

    position:static !important;
    width:100% !important;
    min-width:0 !important;

    margin-top:8px !important;
    padding:8px !important;

    background:rgba(255,255,255,0.14) !important;
    border:1px solid rgba(255,255,255,0.18) !important;
    border-radius:14px !important;
    box-shadow:none !important;
  }

  #mobileNavMenu .home-nav-dropdown.home-mobile-open .home-nav-dropdown-menu{
    display:flex !important;
    flex-direction:column !important;
    gap:6px !important;
  }

  #mobileNavMenu .home-nav-dropdown-menu a{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:100% !important;
    min-height:38px !important;

    color:#ffffff !important;
    background:rgba(255,255,255,0.10) !important;
    border-radius:10px !important;

    font-size:14px !important;
    font-weight:900 !important;
    text-decoration:none !important;
  }
}
/* ================================================= */
/* MOBILE HOME DROPDOWN ORDER CLEANUP */
/* ================================================= */

@media (max-width:1100px){

  #mobileNavMenu .home-nav-dropdown .appbar-home-link{
    order:1 !important;
  }

  #mobileNavMenu .home-nav-dropdown-menu{
    order:2 !important;
    margin-top:8px !important;
    margin-bottom:12px !important;
  }
}
.live-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-left:6px;
  padding:2px 7px;
  border-radius:999px;
  background:#16a34a;
  color:#ffffff;
  font-size:10px;
  font-weight:900;
  line-height:1;
  letter-spacing:0.04em;
  vertical-align:middle;
  animation: livePulse 1.4s infinite ease-in-out;
  box-shadow:0 0 0 0 rgba(22,163,74,0.45);
}

@keyframes livePulse{
  0%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(22,163,74,0.45);
  }
  70%{
    transform:scale(1.08);
    box-shadow:0 0 0 8px rgba(22,163,74,0);
  }
  100%{
    transform:scale(1);
    box-shadow:0 0 0 0 rgba(22,163,74,0);
  }
}
