/* ============================= */
/* 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: 6px;
  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;
}

.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;
    }

    .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;
    }
#pack-reveal-stage .empty {
  width: 100%;
  text-align: center;
  padding: 40px 16px;
  color: #64748b;
  background: transparent;
  border: none;
  box-shadow: none;
}
    @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;
}

.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;
}
/* ===== 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 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-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{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 24px;
}

.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:980px;
  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;
}
