/* ==========================================================================
   BLOCKHAVEN - Clean & Authentic Modern Minecraft Portal Design System
   ========================================================================== */

@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

:root {
  --bg-dark: #0b0e14;
  --bg-surface: #111722;
  --bg-card: #161e2b;
  --bg-card-hover: #1c2637;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --accent-gold: #f1c40f;
  --accent-gold-hover: #f39c12;
  --accent-green: #2ecc71;
  --accent-green-hover: #27ae60;
  --accent-purple: #8e44ad;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);

  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body.dark-theme {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  display: block;
}

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

.hidden {
  display: none !important;
}

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

/* Clean Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.title-highlight {
  color: var(--accent-gold);
}

/* Section Header Utility */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  width: 100%;
  margin-top: 2px;
}

.see-all-link {
  color: var(--accent-gold);
  font-weight: 700;
  font-size: 0.88rem;
  transition: opacity 0.2s ease;
}

.see-all-link:hover {
  opacity: 0.85;
}

/* ==========================================================================
   TOP NAVBAR & SUB-MENU DROPDOWN
   ========================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: 68px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo-crown-img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.logo-text .highlight {
  color: var(--accent-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-sub);
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gold);
  border-radius: 2px;
}

/* Sub-menu Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-trigger i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-trigger i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -10px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  min-width: 170px;
  padding: 8px 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-sub);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent-gold);
}

.dropdown-item i {
  font-size: 0.85rem;
  width: 16px;
  text-align: center;
  color: var(--text-muted);
}

.dropdown-item:hover i {
  color: var(--accent-gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.play-now-btn {
  background: var(--accent-gold);
  color: #0b0e14;
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.play-now-btn:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

/* Icon-only Shopping Cart Button with Badge */
.cart-icon-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.cart-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gold);
  color: #0b0e14;
  font-weight: 900;
  font-size: 0.68rem;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.login-btn, .user-link {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.86rem;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.login-btn:hover, .user-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  position: relative;
  min-height: 440px;
  padding: 60px 0 70px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  z-index: 1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 14, 20, 0.6) 0%, rgba(11, 14, 20, 0.9) 75%, var(--bg-dark) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

.hero-content {
  max-width: 600px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-sub);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.hero-tags {
  font-size: 1rem;
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 24px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 28px;
}

.btn-primary {
  background: var(--accent-gold);
  color: #0b0e14;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-gold-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero-server-status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--accent-green);
  border-radius: 50%;
}

.ip-copy-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.88rem;
  color: var(--text-sub);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.ip-copy-box:hover {
  border-color: var(--accent-gold);
  color: #ffffff;
}

.hero-promo-card {
  background: rgba(22, 30, 43, 0.85);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  max-width: 300px;
}

.hero-promo-card h3 {
  font-size: 1.05rem;
  color: var(--accent-gold);
  margin-bottom: 4px;
}

.hero-promo-card p {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.4;
}

/* ==========================================================================
   6 MAIN FEATURE CARDS
   ========================================================================== */
.features-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: -20px;
  margin-bottom: 36px;
  position: relative;
  z-index: 10;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(241, 196, 15, 0.3);
  background: var(--bg-card-hover);
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.feature-img-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-gold);
}

/* ==========================================================================
   MAIN 2-COLUMN LAYOUT
   ========================================================================== */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  margin-bottom: 70px;
}

.main-col-left {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.main-col-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-block {
  width: 100%;
}

/* ==========================================================================
   UPCOMING EVENTS SECTION
   ========================================================================== */
.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.event-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.event-img-wrap {
  position: relative;
  height: 130px;
  overflow: hidden;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-date {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 4px;
}

.event-content {
  padding: 14px;
}

.event-content h3 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.event-content p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.3;
}

.event-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.event-tag.tournament {
  background: rgba(142, 68, 173, 0.15);
  border-color: rgba(142, 68, 173, 0.3);
  color: #dcdde1;
}

/* ==========================================================================
   BATTLEPASS SECTION
   ========================================================================== */
.battlepass-banner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 200px;
  margin-bottom: 20px;
}

.bp-banner-content {
  padding: 28px;
  max-width: 50%;
  z-index: 2;
}

.bp-season-tag {
  color: var(--accent-gold);
  font-weight: 800;
  font-size: 0.82rem;
  margin-bottom: 2px;
  display: block;
}

.bp-banner-content h2 {
  font-size: 2rem;
  margin-bottom: 4px;
}

.bp-subtitle {
  color: var(--text-sub);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.btn-gold {
  background: var(--accent-gold);
  color: #0b0e14;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-gold:hover {
  background: var(--accent-gold-hover);
}

.bp-banner-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
}

.bp-banner-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0) 100%);
}

.bp-interactive-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.fn-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.fn-kicker {
  font-size: 0.78rem;
  color: var(--accent-gold);
  font-weight: 700;
}

.fn-title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 800;
}

.fn-head-right {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1rem;
}

.fn-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.fn-bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 8px;
}

.fn-profil {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.fn-nick {
  font-weight: 800;
  color: var(--accent-gold);
}

.fn-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
}

.fn-tilewrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fn-tile {
  width: 100%;
  height: 100px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6px;
}

.fn-tile.ready {
  border-color: var(--accent-gold);
  background: rgba(241, 196, 15, 0.08);
}

.fn-tile.claimed {
  border-color: var(--accent-green);
  opacity: 0.75;
}

.fn-tile-num {
  position: absolute;
  top: 4px;
  left: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
}

.fn-tile-ico {
  font-size: 1.5rem;
  margin-bottom: 2px;
}

.fn-tile-reward {
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  color: var(--text-sub);
}

.fn-tile-under {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.fn-claim {
  background: var(--accent-gold);
  color: #0b0e14;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
}

.fn-under.claimed {
  color: var(--accent-green);
}

/* ==========================================================================
   PRODUCTS / SHOP & MARKET GRIDS
   ========================================================================== */
.filters, .market-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 7px 16px;
  border-radius: var(--radius-md);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: rgba(241, 196, 15, 0.12);
  border-color: var(--accent-gold);
  color: #ffffff;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15);
}

.card.best {
  border-color: rgba(241, 196, 15, 0.4);
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent-gold);
  color: #0b0e14;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card .icon {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--accent-gold);
}

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.card .desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 14px;
  flex-grow: 1;
}

.card .price {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.add-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px;
  border-radius: var(--radius-md);
  width: 100%;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.add-btn:hover {
  background: var(--accent-gold);
  border-color: transparent;
  color: #0b0e14;
}

/* ==========================================================================
   LATEST NEWS SECTION
   ========================================================================== */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.news-item:hover {
  background: var(--bg-card-hover);
}

.news-thumb {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.news-info h4 {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RIGHT SIDEBAR WIDGETS
   ========================================================================== */
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.sidebar-title {
  font-size: 1rem;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.online-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.count-big {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2.6rem;
  color: #ffffff;
  line-height: 1;
}

.count-max {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 700;
}

.progress-bar-wrap {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 7px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-green);
  border-radius: 7px;
}

.avatars-row {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.avatar-head {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0b0e14;
}

.online-subtext {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.btn-green-play {
  background: var(--accent-green);
  color: #0b0e14;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px;
  border-radius: var(--radius-md);
  width: 100%;
  transition: background 0.2s ease;
  margin-bottom: 16px;
}

.btn-green-play:hover {
  background: var(--accent-green-hover);
}

.players-mini-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-top: 8px;
}

.player-card {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.online-dot {
  width: 7px;
  height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
}

.player-avatar {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.player-card .nick {
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
}

.player-card .meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.badge-rank {
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 800;
  font-size: 0.65rem;
}

.promo-sidebar-card {
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.promo-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.promo-sidebar-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 23, 34, 0.3) 0%, rgba(17, 23, 34, 0.95) 80%);
}

.promo-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.promo-content h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.promo-content p {
  font-size: 0.8rem;
  color: var(--text-sub);
  line-height: 1.35;
  margin-bottom: 14px;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: var(--radius-md);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.18);
}

.social-row {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  transition: background 0.2s ease;
}

.social-btn:hover { background: rgba(255, 255, 255, 0.15); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #080a0e;
  border-top: 1px solid var(--border-color);
  padding: 36px 0;
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-slogan {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-sub);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.footer-links .sep {
  color: var(--text-muted);
  opacity: 0.4;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-ip {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--accent-gold);
  font-weight: 700;
  cursor: pointer;
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   MODALS (CART, CHECKOUT, AUTH, TOAST)
   ========================================================================== */
.cart-overlay, .checkout-overlay, .auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-overlay.open, .checkout-overlay.open, .auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  right: -400px;
  top: 0;
  bottom: 0;
  width: 380px;
  background: var(--bg-surface);
  border-left: 1px solid var(--border-color);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: right 0.25s ease;
}

.cart-overlay.open .cart-panel {
  right: 0;
}

.cart-header, .checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.close-btn {
  font-size: 1.6rem;
  color: var(--text-muted);
}

.close-btn:hover {
  color: #ffffff;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.cart-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-icon { font-size: 1.2rem; color: var(--accent-gold); }
.c-name { flex-grow: 1; font-size: 0.85rem; font-weight: 700; }
.qty-controls { display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.04); border-radius: 4px; padding: 2px 4px; }
.qty-btn { color: #ffffff; font-weight: 800; padding: 0 4px; }
.c-price { font-weight: 800; color: var(--accent-gold); font-size: 0.85rem; }
.remove-btn { color: var(--text-muted); font-size: 0.85rem; }

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.checkout-btn {
  background: var(--accent-gold);
  color: #0b0e14;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 12px;
  border-radius: var(--radius-md);
  width: 100%;
  transition: background 0.2s ease;
}

.checkout-btn:hover {
  background: var(--accent-gold-hover);
}

.checkout-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}

/* Checkout & Auth Modals */
.checkout-modal, .auth-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 28px;
}

.steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}

.step.active {
  color: var(--accent-gold);
}

.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-sub);
}

.field input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: #ffffff;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  outline: none;
}

.field input:focus {
  border-color: var(--accent-gold);
}

.order-summary {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-weight: 700;
}

.pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.pay-method input { display: none; }

.pay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.pay-method input:checked + .pay-card {
  border-color: var(--accent-gold);
  background: rgba(241, 196, 15, 0.08);
}

.pay-logo {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.pay-logo.pp span { color: #0079C1; }
.pay-logo.blik { color: #EA2027; }

.btn-row {
  display: flex;
  gap: 10px;
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  padding: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-sub);
  font-weight: 700;
  font-size: 0.85rem;
}

.auth-tab.active {
  background: rgba(241, 196, 15, 0.12);
  border-color: var(--accent-gold);
  color: #ffffff;
}

.err {
  color: #e74c3c;
  font-size: 0.82rem;
  margin-bottom: 10px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid var(--accent-gold);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: var(--shadow-md);
  z-index: 300;
  transform: translateY(80px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .features-row { grid-template-columns: repeat(3, 1fr); }
  .main-layout { grid-template-columns: 1fr; }
  .main-col-right { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.1rem; }
  .features-row { grid-template-columns: repeat(2, 1fr); }
  .events-grid { grid-template-columns: 1fr; }
  .main-col-right { grid-template-columns: 1fr; }
  .bp-banner-content { max-width: 100%; }
  .bp-banner-img { display: none; }
}

/* Quests Widget Styles */
.quests-widget-card {
  border: 1px solid rgba(241, 196, 15, 0.3);
  background: linear-gradient(180deg, rgba(241, 196, 15, 0.05) 0%, rgba(17, 23, 34, 0.95) 100%);
  margin-bottom: 20px;
}

.quests-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.npc-badge {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 0.6rem;
  background: rgba(241, 196, 15, 0.2);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 3px 6px;
  border-radius: 4px;
}

.quests-widget-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.quests-widget-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.quest-widget-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.2s ease;
}

.quest-widget-item.completed {
  border-color: var(--accent-green);
  background: rgba(46, 204, 113, 0.06);
}

.quest-widget-item.claimed {
  opacity: 0.6;
}

.q-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.q-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.q-title i {
  color: var(--accent-gold);
}

.q-count {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-gold);
  font-family: monospace;
}

.q-progress-wrap {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  overflow: hidden;
}

.q-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-green) 100%);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.q-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.q-reward {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.q-claim-btn {
  background: var(--accent-green);
  color: #0b0e14;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.q-claim-btn:hover {
  background: var(--accent-green-hover);
}

.q-claim-btn.disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  cursor: default;
}

.q-claim-btn.claimed-badge {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
  cursor: default;
}

.quests-npc-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.quests-npc-hint code {
  color: var(--accent-gold);
  font-family: monospace;
}

/* Spawn & 3 Starter Chests Section */
.spawn-starter-section {
  margin: 40px auto;
}

.spawn-banner {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.08) 0%, rgba(46, 204, 113, 0.08) 100%);
  border: 2px solid rgba(241, 196, 15, 0.3);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.spawn-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(241, 196, 15, 0.15);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 0.7rem;
  padding: 6px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.spawn-banner h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 10px;
}

.spawn-banner p {
  font-size: 0.95rem;
  color: var(--text-sub);
  max-width: 700px;
  margin: 0 auto 28px;
}

.starter-chests-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 800px) {
  .starter-chests-grid { grid-template-columns: 1fr; }
}

.chest-card {
  background: rgba(17, 23, 34, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.chest-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-gold);
}

.chest-card .chest-icon {
  font-size: 2rem;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.chest-num {
  font-family: 'Press Start 2P', monospace, sans-serif;
  font-size: 0.62rem;
  color: var(--accent-green);
  margin-bottom: 6px;
}

.chest-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.chest-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin: 0;
}

.spawn-cmd-hint {
  display: inline-block;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--accent-gold);
}

.spawn-cmd-hint code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: #ffffff;
  font-family: monospace;
}

/* Medieval City Showcase Styles */
.city-showcase {
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px dashed rgba(241, 196, 15, 0.25);
  text-align: left;
}

.city-showcase-header {
  text-align: center;
  margin-bottom: 24px;
}

.city-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e67e22;
  background: rgba(230, 126, 34, 0.12);
  border: 1px solid rgba(230, 126, 34, 0.35);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.city-showcase-header h3 {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 6px;
}

.city-showcase-header p {
  color: var(--text-sub);
  font-size: 0.95rem;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

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

.city-card {
  background: rgba(13, 18, 27, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.city-card:hover {
  transform: translateY(-3px);
  border-color: rgba(241, 196, 15, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.city-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.15) 0%, rgba(230, 126, 34, 0.2) 100%);
  border: 1px solid rgba(241, 196, 15, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.city-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.city-card p {
  font-size: 0.86rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin: 0;
}

.city-card code {
  background: rgba(46, 204, 113, 0.15);
  color: var(--accent-green);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.82rem;
}

/* ==========================================================================
   MINEBANK PAGE STYLES (GTA V Maze Bank / Minecraft Pixel Style)
   ========================================================================== */
/* ==========================================================================
   MINEBANK ONLINE - PIXEL-ART MINECRAFT BANKING PORTAL
   ========================================================================== */

.bank-portal-body {
  background-color: #0b0f16;
  background-image: 
    radial-gradient(#151e2b 15%, transparent 16%), 
    radial-gradient(#151e2b 15%, transparent 16%);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  color: #e0e6ed;
}

/* Pasek bezpieczeństwa na samej górze */
.bank-sec-strip {
  background: #06090e;
  border-bottom: 2px solid #1c2636;
  padding: 6px 0;
  font-size: 0.72rem;
  color: #7b8a9e;
}

.bank-sec-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sec-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pixel-led-pulse {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 1px;
  box-shadow: 0 0 8px #00ff88;
  animation: ledBlink 1.6s infinite;
}

@keyframes ledBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.sec-center {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.text-emerald { color: #00ff88 !important; }
.text-aqua { color: #00e5ff !important; }

/* Sub-Navbar Banku */
.bank-subnav-bar {
  background: #0c121b;
  border-bottom: 3px solid;
  border-color: #1a2536 #06080d #06080d #1a2536;
  padding: 12px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  position: sticky;
  top: 70px;
  z-index: 90;
}

.bank-subnav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.bank-brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bank-pixel-logo {
  width: 44px;
  height: 44px;
  background: #111a26;
  border: 3px solid;
  border-color: #00ff88 #044b2a #044b2a #00ff88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #00ff88;
  box-shadow: inset 0 0 10px rgba(0, 255, 136, 0.2);
}

.bank-brand-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.05rem;
  color: #ffffff;
  display: block;
}

.bank-brand-title strong {
  color: #00ff88;
}

.bank-brand-title small {
  font-size: 0.55rem;
  color: #f1c40f;
  margin-left: 6px;
  letter-spacing: 0;
}

.bank-brand-sub {
  font-size: 0.68rem;
  color: #6a7d95;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 2px;
}

.bank-pills-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #141c28;
  border: 2px solid;
  border-color: #2b394f #090e15 #090e15 #2b394f;
  color: #9ab0c9;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.bank-pill:hover {
  color: #ffffff;
  background: #1d293b;
  border-color: #00ff88;
  transform: translateY(-1px);
}

.bank-pill.active {
  background: #00ff88;
  color: #06150e;
  border-color: #ffffff #026637 #026637 #ffffff;
  font-weight: 800;
  box-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
}

/* Główny kontener portalu */
.bank-portal-main {
  padding: 30px 0 60px;
}

/* Karty pikselowe z efektem wypukłości w stylu Minecraft */
.bank-pixel-card {
  background: #0f1622;
  border: 3px solid;
  border-color: #273449 #080c13 #080c13 #273449;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), inset 1px 1px 0 rgba(255, 255, 255, 0.05);
  padding: 22px;
  position: relative;
}

.notice-pixel-card {
  border-color: #e74c3c #581610 #581610 #e74c3c;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  background: rgba(231, 76, 60, 0.08);
}

.notice-pixel-card .notice-icon {
  font-size: 2.2rem;
}

.notice-pixel-card .notice-text h3 {
  font-size: 0.95rem;
  color: #e74c3c;
  margin-bottom: 4px;
}

.notice-pixel-card .notice-text p {
  font-size: 0.85rem;
  color: #b0bec5;
  margin: 0;
}

/* Nagłówki sekcji pikselowych */
.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #1c2636;
  padding-bottom: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 8px;
}

.pixel-font {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  margin: 0;
}

.pixel-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.62rem;
  padding: 4px 8px;
  border: 2px solid;
  border-radius: 2px;
}

.green-tag {
  background: rgba(0, 255, 136, 0.15);
  color: #00ff88;
  border-color: #00ff88;
}

.gold-tag {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
  border-color: #f1c40f;
}

.aqua-tag {
  background: rgba(0, 229, 255, 0.15);
  color: #00e5ff;
  border-color: #00e5ff;
}

/* Układ siatki portalu */
.bank-portal-grid {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.dashboard-top-row {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.dashboard-middle-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

@media (max-width: 980px) {
  .dashboard-top-row,
  .dashboard-middle-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   WIRTUALNA KARTA DEBETOWA MINECARD 3D
   ========================================================================== */
.minecard-3d-wrapper {
  perspective: 900px;
  padding: 10px 0 16px 0;
  display: flex;
  justify-content: center;
}

.minecard-3d {
  width: 100%;
  max-width: 320px;
  height: 195px;
  background: linear-gradient(135deg, #093822 0%, #0d5433 45%, #051e12 100%);
  border: 3px solid;
  border-color: #00ff88 #02381f #02381f #00ff88;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 0 20px rgba(0, 255, 136, 0.25);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.minecard-3d:hover {
  transform: translateY(-4px) rotateX(4deg) rotateY(-2deg);
  box-shadow: 0 20px 45px rgba(0, 255, 136, 0.35);
}

.card-glass-shine {
  position: absolute;
  top: -60%;
  left: -60%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  pointer-events: none;
}

.card-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-network-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
  text-shadow: 1px 1px 0 #000;
}

.card-contactless {
  font-size: 1.1rem;
  color: #00ff88;
  transform: rotate(90deg);
}

/* Złoty chip na karcie */
.card-chip-box {
  margin: 6px 0;
}

.pixel-chip {
  width: 40px;
  height: 28px;
  background: linear-gradient(135deg, #f1c40f, #d4af37);
  border: 2px solid #8c6d12;
  border-radius: 3px;
  position: relative;
  box-shadow: inset 1px 1px 0 rgba(255,255,255,0.4);
}

.pixel-chip::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(0,0,0,0.35);
}

.card-number-row {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 2px 2px 0 #000;
}

.card-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-lbl {
  font-size: 0.55rem;
  color: #a3e4d7;
  display: block;
  letter-spacing: 1px;
}

.card-holder-name, .card-expiry {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
}

.card-emblem {
  font-size: 1.3rem;
  filter: drop-shadow(0 0 6px #00ff88);
}

.minecard-actions-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.pixel-mini-btn {
  background: #141c28;
  border: 2px solid;
  border-color: #2c3a50 #0a0e14 #0a0e14 #2c3a50;
  color: #a0b2c6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pixel-mini-btn:hover {
  background: #1d293c;
  color: #ffffff;
  border-color: #00ff88;
}

/* ==========================================================================
   PULPIT FINANSOWY (BALANCE & STATS)
   ========================================================================== */
.account-ident-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #121a24;
  border: 2px solid #1c2738;
  padding: 10px 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.acc-user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pixel-avatar-box {
  width: 36px;
  height: 36px;
  background: #090e15;
  border: 2px solid #00ff88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.acc-owner-lbl {
  font-size: 0.7rem;
  color: #6a7d95;
  display: block;
}

.acc-owner-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.pixel-code {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: #f1c40f;
  background: #080c12;
  padding: 4px 8px;
  border: 1px solid #3c4f68;
  letter-spacing: 1px;
}

.pixel-balance-display {
  background: linear-gradient(135deg, #091a13 0%, #102d21 100%);
  border: 3px solid;
  border-color: #00ff88 #044b2a #044b2a #00ff88;
  padding: 18px 24px;
  margin-bottom: 18px;
  box-shadow: inset 0 0 16px rgba(0, 255, 136, 0.15);
}

.balance-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  color: #a3e4d7;
  letter-spacing: 0.5px;
}

.wallet-type-tag {
  color: #f1c40f;
  font-family: monospace;
}

.balance-big-digits {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.balance-coin-icon {
  font-size: 2.2rem;
  filter: drop-shadow(0 0 12px rgba(241, 196, 15, 0.6));
}

.pixel-digits {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.3rem;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #000;
}

.currency-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #f1c40f;
}

.financial-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 650px) {
  .financial-stats-grid { grid-template-columns: 1fr; }
}

.stat-cell {
  background: #111822;
  border: 2px solid #1e2a3b;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-cell.inflow { border-left: 4px solid #00ff88; }
.stat-cell.outflow { border-left: 4px solid #e74c3c; }
.stat-cell.npc { border-left: 4px solid #f1c40f; }

.stat-cell .stat-icon {
  font-size: 1.3rem;
  color: #7b8a9e;
}

.stat-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: #6a7d95;
  display: block;
}

.stat-amount {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.72rem;
  display: block;
  margin-top: 3px;
}

.quick-bank-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.quick-act-btn {
  background: #131c28;
  border: 2px solid;
  border-color: #2b394f #090e15 #090e15 #2b394f;
  color: #e0e6ed;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.quick-act-btn:hover {
  background: #1d293c;
  border-color: #00ff88;
  transform: translateY(-2px);
}

/* ==========================================================================
   STUDIO PRZELEWÓW (TRANSFER STUDIO)
   ========================================================================== */
.pixel-bank-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.pixel-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #9ab0c9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-acc-preview {
  background: #090e15;
  border: 2px solid #1c2738;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #b0bec5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.source-acc-preview strong {
  color: #00ff88;
}

.pixel-input {
  background: #080c12;
  border: 2px solid;
  border-color: #04070a #2c3d54 #2c3d54 #04070a; /* Inset bevel */
  color: #ffffff;
  padding: 12px 14px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.pixel-input:focus {
  border-color: #00ff88;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.quick-recipients-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.qr-label {
  font-size: 0.7rem;
  color: #6a7d95;
}

.qr-chip {
  background: #141d2a;
  border: 1px solid #27374d;
  color: #9ab0c9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.qr-chip:hover {
  background: #00ff88;
  color: #06150e;
  border-color: #00ff88;
}

.amount-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.amount-main-input {
  width: 100%;
  padding-right: 50px;
}

.amount-addon {
  position: absolute;
  right: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.78rem;
  color: #f1c40f;
  pointer-events: none;
}

.quick-amounts-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.qa-btn {
  background: #141d2a;
  border: 1px solid #27374d;
  color: #9ab0c9;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qa-btn:hover {
  background: #27374d;
  color: #ffffff;
}

.qa-btn.pct {
  color: #00ff88;
  border-color: rgba(0, 255, 136, 0.3);
}

.qa-btn.pct.max {
  color: #f1c40f;
  border-color: rgba(241, 196, 15, 0.4);
  font-weight: 800;
}

.transfer-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0;
}

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

.radio-card {
  background: #0d141e;
  border: 2px solid #1c2738;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radio-card input {
  margin-top: 3px;
  accent-color: #00ff88;
}

.rc-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.rc-desc {
  font-size: 0.72rem;
  color: #6a7d95;
  margin-top: 2px;
}

/* Główny przycisk pikselowy */
.pixel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.75rem;
  padding: 14px 20px;
  border: 3px solid;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.pixel-btn:active {
  transform: translateY(2px);
}

.emerald-btn {
  background: #00ff88;
  color: #05160e;
  border-color: #ffffff #026637 #026637 #ffffff;
  box-shadow: 0 4px 14px rgba(0, 255, 136, 0.4);
}

.emerald-btn:hover {
  background: #1aff96;
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.6);
}

.ghost-btn {
  background: #16202d;
  color: #ffffff;
  border-color: #314258 #090e15 #090e15 #314258;
}

.send-btn {
  width: 100%;
  padding: 16px;
  font-size: 0.82rem;
  margin-top: 6px;
}

/* ==========================================================================
   KANTOR MINERAŁÓW (ORE EXCHANGE & CALCULATOR)
   ========================================================================== */
.fx-desc {
  font-size: 0.82rem;
  color: #8c9eb5;
  line-height: 1.45;
  margin-bottom: 16px;
}

.ore-rates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

@media (max-width: 500px) {
  .ore-rates-grid { grid-template-columns: 1fr; }
}

.ore-rate-item {
  background: #111824;
  border: 2px solid;
  border-color: #243247 #0a0f16 #0a0f16 #243247;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ore-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.diamond-bg { background: #005b66; color: #00e5ff; }
.emerald-bg { background: #044b2a; color: #00ff88; }
.gold-bg { background: #665000; color: #f1c40f; }
.netherite-bg { background: #3d1c1c; color: #e74c3c; }

.ore-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.ore-val {
  font-size: 0.78rem;
  font-family: monospace;
  font-weight: 800;
  display: block;
}

.ore-calculator-card {
  background: #0a0f16;
  border: 2px solid #1a2536;
  padding: 14px;
}

.ore-calculator-card h4 {
  font-size: 0.72rem;
  color: #f1c40f;
  margin-bottom: 10px;
}

.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.calc-field label {
  font-size: 0.72rem;
  color: #6a7d95;
  display: block;
  margin-bottom: 4px;
}

.pixel-select {
  width: 100%;
  background: #101722;
  border: 2px solid #233144;
  color: #ffffff;
  padding: 8px;
  font-size: 0.8rem;
  outline: none;
}

.calc-result-box {
  background: #141c28;
  border: 2px solid #00ff88;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.calc-result-box strong {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
}

/* ==========================================================================
   HISTORIA TRANSAKCJI I WYCIĄGI
   ========================================================================== */
.history-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-sub-info {
  font-size: 0.72rem;
  color: #6a7d95;
}

.history-controls-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.history-filter-tabs {
  display: flex;
  gap: 4px;
  background: #090e15;
  padding: 4px;
  border: 1px solid #1c2738;
}

.history-tab {
  background: transparent;
  border: none;
  color: #8c9eb5;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-tab:hover {
  color: #ffffff;
}

.history-tab.active {
  background: #00ff88;
  color: #05160e;
  font-weight: 800;
}

.history-search-bar {
  position: relative;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.history-search-bar i {
  position: absolute;
  left: 14px;
  color: #6a7d95;
  font-size: 0.9rem;
}

.tx-search {
  width: 100%;
  padding-left: 38px;
  font-size: 0.85rem;
}

.pixel-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
  padding-right: 4px;
}

.history-item {
  background: #101723;
  border: 2px solid;
  border-color: #212c3d #080d14 #080d14 #212c3d;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.history-item:hover {
  background: #172130;
  border-color: #00ff88;
  transform: translateX(3px);
}

.history-item.incoming {
  border-left: 4px solid #00ff88;
}

.history-item.outgoing {
  border-left: 4px solid #e74c3c;
}

.tx-icon-badge {
  width: 38px;
  height: 38px;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.tx-icon-badge.in {
  background: rgba(0, 255, 136, 0.15);
  border-color: #00ff88;
  color: #00ff88;
}

.tx-icon-badge.out {
  background: rgba(231, 76, 60, 0.15);
  border-color: #e74c3c;
  color: #e74c3c;
}

.tx-icon-badge.npc {
  background: rgba(241, 196, 15, 0.2);
  border-color: #f1c40f;
  color: #f1c40f;
}

.tx-details {
  flex-grow: 1;
}

.tx-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tx-npc-crown {
  color: #f1c40f;
  font-size: 0.85rem;
}

.tx-meta {
  font-size: 0.74rem;
  color: #6a7d95;
  display: flex;
  gap: 12px;
  margin-top: 3px;
  flex-wrap: wrap;
}

.tx-code {
  font-family: monospace;
  color: #9ab0c9;
}

.tx-amount {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.tx-amount.in { color: #00ff88; }
.tx-amount.out { color: #e74c3c; }

/* ==========================================================================
   ODDZIAŁY I BANKOMATY
   ========================================================================== */
.bank-atm-showcase {
  margin-top: 30px;
}

.atm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.atm-card {
  background: #0f1622;
  border: 2px solid #1c2738;
  padding: 16px;
  border-radius: 4px;
}

.atm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.atm-head h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.atm-card p {
  font-size: 0.8rem;
  color: #7b8a9e;
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   MODAL: POTWIERDZENIE PRZELEWU (BANK RECEIPT CERTIFICATE)
   ========================================================================== */
.receipt-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 13, 0.88);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.receipt-modal-overlay.hidden {
  display: none;
}

.receipt-certificate-card {
  background: #fbf6ec;
  color: #1e140d;
  width: 100%;
  max-width: 540px;
  border: 6px solid #1a2332;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  padding: 30px;
  position: relative;
  background-image: radial-gradient(#eadbc5 12%, transparent 13%);
  background-size: 24px 24px;
}

.receipt-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #1a2332;
  color: #ffffff;
  border: none;
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.receipt-header {
  text-align: center;
  border-bottom: 2px solid #8c6d12;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.receipt-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #0b2e1f;
  margin-bottom: 4px;
}

.receipt-logo strong {
  color: #00994d;
}

.receipt-stamp {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: #8c6d12;
  letter-spacing: 1px;
}

.receipt-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed #cfbeaa;
  padding-bottom: 6px;
}

.receipt-row span {
  color: #634832;
}

.receipt-row strong {
  font-weight: 800;
  color: #1e140d;
}

.receipt-amount-row {
  background: rgba(0, 153, 77, 0.1);
  border: 2px solid #00994d;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
}

.receipt-amount-row strong {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.1rem;
  color: #00994d;
}

.receipt-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

}

@media (max-width: 850px) {
  .bank-features-grid { grid-template-columns: 1fr; }
}

.feature-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.feature-box .f-icon {
  font-size: 2.2rem;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.feature-box h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.feature-box p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================================================
   KSIĘGA MISJI NPC (INTERAKTYWNY QUEST BOOK RPG)
   ========================================================================== */

/* Przycisk otwarcia w pasku bocznym */
.btn-open-questbook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  margin: 12px 0 16px 0;
  background: linear-gradient(135deg, #d35400, #f39c12);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 215, 0, 0.4);
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-open-questbook:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #e67e22, #f1c40f);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-open-questbook i {
  font-size: 1.1rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Overlay & Kontener Księgi */
.questbook-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 6, 4, 0.82);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.questbook-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.questbook-container {
  position: relative;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: bookOpenZoom 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bookOpenZoom {
  0% { transform: scale(0.88) translateY(30px); opacity: 0; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Górna belka: Zakładki NPC i zamknięcie */
.questbook-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: -4px;
  z-index: 10;
}

.questbook-npc-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.questbook-npc-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 8px 18px;
  background: #2b180d;
  color: #cbbba6;
  font-family: var(--font-title);
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px 8px 0 0;
  border: 1px solid #5a351d;
  border-bottom: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.4);
}

.questbook-npc-tab:hover {
  background: #422514;
  color: #fff;
}

.questbook-npc-tab.active {
  background: #532d18;
  color: #f1c40f;
  border-color: #8c532b;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5), inset 0 2px 0 #f39c12;
  transform: translateY(-2px);
}

.questbook-close-btn {
  background: #2b180d;
  border: 1px solid #5a351d;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: #cbbba6;
  font-size: 1.6rem;
  width: 44px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.questbook-close-btn:hover {
  background: #8b0000;
  color: #ffffff;
  border-color: #c0392b;
}

/* Skórzana oprawa księgi */
.questbook-leather-frame {
  position: relative;
  background: #271409 linear-gradient(135deg, #381e0f 0%, #201007 50%, #150904 100%);
  border: 4px solid #542f18;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px #110702, inset 0 2px 8px rgba(255, 255, 255, 0.08);
}

/* Złote narożniki księgi */
.book-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid #d4af37;
  pointer-events: none;
  z-index: 5;
}
.book-corner.top-left { top: 6px; left: 6px; border-right: none; border-bottom: none; border-top-left-radius: 6px; }
.book-corner.top-right { top: 6px; right: 6px; border-left: none; border-bottom: none; border-top-right-radius: 6px; }
.book-corner.bottom-left { bottom: 6px; left: 6px; border-right: none; border-top: none; border-bottom-left-radius: 6px; }
.book-corner.bottom-right { bottom: 6px; right: 6px; border-left: none; border-top: none; border-bottom-right-radius: 6px; }

/* Czerwona wstążka zakładowa */
.book-ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 38px;
  background: linear-gradient(to bottom, #b71c1c, #880e4f);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
  z-index: 6;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

/* Kontener obydwu stron */
.questbook-pages-wrapper {
  display: flex;
  background: #fbf2dc;
  border-radius: 6px;
  box-shadow: inset 0 0 30px rgba(92, 59, 31, 0.25), 0 4px 12px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  min-height: 540px;
}

/* Strona księgi (Pergamin) */
.questbook-page {
  flex: 1;
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  background-color: #f7edd4;
  background-image: radial-gradient(#eadbb7 15%, transparent 16%), radial-gradient(#eadbb7 15%, transparent 16%);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  color: #2b180d;
}

.questbook-page.left-page {
  border-right: 1px solid rgba(139, 90, 43, 0.25);
  box-shadow: inset -15px 0 25px -10px rgba(0, 0, 0, 0.12);
}

.questbook-page.right-page {
  box-shadow: inset 15px 0 25px -10px rgba(0, 0, 0, 0.12);
}

/* Środkowy grzbiet księgi */
.questbook-spine {
  width: 14px;
  background: linear-gradient(to right, rgba(0,0,0,0.22), rgba(0,0,0,0.04), rgba(0,0,0,0.22));
  box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 3;
}

/* Nagłówek strony */
.page-header {
  text-align: center;
  margin-bottom: 14px;
}

.page-ornament {
  font-size: 0.75rem;
  letter-spacing: 4px;
  color: #8c5828;
  display: block;
  margin-bottom: 4px;
}

.book-npc-name {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 800;
  color: #4a2711;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
  margin: 0;
}

.book-npc-subtitle {
  font-size: 0.8rem;
  color: #795548;
  font-style: italic;
  margin: 2px 0 8px 0;
}

.page-separator {
  height: 2px;
  background: linear-gradient(to right, transparent, #8c5828, transparent);
  margin: 6px auto;
  width: 85%;
}

/* Dymek dialogowy NPC */
.book-npc-dialog-box {
  background: rgba(255, 255, 255, 0.55);
  border-left: 3px solid #8c5828;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-style: italic;
  color: #4e342e;
  line-height: 1.4;
  margin-bottom: 14px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dialog-quote-icon {
  color: #bcaaa4;
  margin-right: 6px;
  font-size: 0.75rem;
}

/* Lista misji w księdze */
.book-quest-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 12px;
}

.book-quest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #d7ccc8;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.book-quest-item:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: #8c5828;
  transform: translateX(4px);
  box-shadow: 0 3px 8px rgba(92, 59, 31, 0.15);
}

.book-quest-item.selected {
  background: #fff8e1;
  border-color: #d4af37;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3), inset 3px 0 0 #f39c12;
}

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

.bqi-icon {
  width: 32px;
  height: 32px;
  background: #efebe9;
  border: 1px solid #bcaaa4;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: #5d4037;
}

.bqi-info h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #3e2723;
  margin: 0;
}

.bqi-info p {
  font-size: 0.75rem;
  color: #6d4c41;
  margin: 2px 0 0 0;
}

.bqi-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.bqi-badge.claimed {
  background: #e0e0e0;
  color: #616161;
  border: 1px solid #bdbdbd;
}

.bqi-badge.ready {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  animation: badgePulse 1.8s infinite;
}

.bqi-badge.progress {
  background: #fff3e0;
  color: #e65100;
  border: 1px solid #ffcc80;
}

@keyframes badgePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Paginacja księgi */
.book-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(140, 88, 40, 0.25);
  padding-top: 10px;
  margin-top: auto;
}

.book-page-btn {
  background: #e0cfb3;
  border: 1px solid #b89f78;
  color: #4a2711;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.book-page-btn:hover:not(:disabled) {
  background: #d4bf9c;
  color: #000;
}

.book-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-page-indicator {
  font-size: 0.78rem;
  font-weight: 700;
  color: #795548;
}

/* ==========================================================================
   PRAWA STRONA KSIĘGI (SZCZEGÓŁY MISJI I SLOTY NAGRÓD)
   ========================================================================== */
.quest-details-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.qd-header {
  margin-bottom: 12px;
}

.qd-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.qd-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8c5828;
}

.qd-status-stamp {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px dashed currentColor;
}

.qd-status-stamp.ready { color: #27ae60; background: rgba(39, 174, 96, 0.1); }
.qd-status-stamp.in-progress { color: #d35400; background: rgba(211, 84, 0, 0.1); }
.qd-status-stamp.claimed { color: #7f8c8d; background: rgba(127, 140, 141, 0.1); }

.qd-title {
  font-family: var(--font-title);
  font-size: 1.35rem;
  font-weight: 800;
  color: #3e2723;
  margin: 2px 0 2px 0;
}

.qd-subtitle {
  font-size: 0.82rem;
  color: #6d4c41;
  margin: 0;
}

/* Sekcja opisu fabularnego */
.qd-section {
  margin-bottom: 14px;
}

.qd-section-title {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5d4037;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qd-story-box {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid #d7ccc8;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #3e2723;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Sekcja celów ("Co trzeba zrobić") */
.qd-objective-card {
  background: #ffffff;
  border: 1px solid #c7b299;
  border-radius: 6px;
  padding: 10px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.qd-objective-desc {
  font-size: 0.84rem;
  font-weight: 700;
  color: #271409;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qd-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  font-weight: 700;
  color: #5d4037;
  margin-bottom: 5px;
}

.qd-progress-bar-wrap {
  width: 100%;
  height: 10px;
  background: #e0d2bc;
  border: 1px solid #bfa888;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.qd-progress-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #e67e22, #27ae60);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   MINECRAFT REWARD SLOTS (IKONKI NAGRÓD W GRZE)
   ========================================================================== */
.qd-rewards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.mc-reward-slot {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #373737;
  border: 2px solid;
  border-color: #1e1e1e #5e5e5e #5e5e5e #1e1e1e; /* Minecraft beveled slot style */
  padding: 6px 8px;
  border-radius: 4px;
  position: relative;
  transition: transform 0.15s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
}

.mc-reward-slot:hover {
  transform: translateY(-2px);
  border-color: #d4af37;
}

.mc-slot-icon-box {
  width: 36px;
  height: 36px;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #373737 #ffffff #ffffff #373737;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.mc-slot-icon-box i {
  font-size: 1.15rem;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.6));
}

.mc-slot-amount {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-family: 'Minecraft', monospace, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000;
}

.mc-slot-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mc-slot-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #f1c40f;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.mc-slot-sub {
  font-size: 0.68rem;
  color: #bdc3c7;
}

/* Przycisk akcji odbioru */
.qd-action-footer {
  margin-top: auto;
  padding-top: 10px;
}

.btn-claim-quest {
  width: 100%;
  padding: 13px 18px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 2px solid #a3e4d7;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: claimPulse 2s infinite;
}

@keyframes claimPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 6px 24px rgba(46, 204, 113, 0.75); }
}

.btn-claim-quest:hover {
  background: linear-gradient(135deg, #2ecc71, #58d68d);
  transform: translateY(-2px);
}

.btn-claim-quest.claimed-badge {
  background: #bdbdbd;
  color: #424242;
  border-color: #9e9e9e;
  box-shadow: none;
  cursor: default;
  animation: none;
}

.btn-claim-quest.disabled {
  background: #cfd8dc;
  color: #546e7a;
  border-color: #b0bec5;
  box-shadow: none;
  cursor: not-allowed;
  animation: none;
}

/* Responsywność dla małych ekranów */
@media (max-width: 820px) {
  .questbook-pages-wrapper {
    flex-direction: column;
    max-height: 80vh;
    overflow-y: auto;
  }
  .questbook-spine {
    display: none;
  }
  .questbook-page.left-page {
    border-right: none;
    border-bottom: 2px solid #8c5828;
  }
}
/* MineBank uses the shared BlockHaven palette and component shapes. */
body.bank-portal-body { background: var(--bg-dark); color: var(--text-main); }
.bank-portal-body .bank-sec-strip { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); }
.bank-portal-body .bank-subnav-bar { background: var(--bg-surface); border-bottom: 1px solid var(--border-color); position: static; padding: 24px 0; }
.bank-portal-body .bank-brand-title { font-family: var(--font-title); font-size: 1.7rem; }
.bank-portal-body .bank-brand-title strong { color: var(--accent-gold); }
.bank-portal-body .bank-brand-sub { color: var(--text-muted); }
.bank-portal-body .bank-pixel-logo { background: rgba(241,196,15,.1); color: var(--accent-gold); border: 1px solid rgba(241,196,15,.25); border-radius: var(--radius-md); box-shadow: none; }
.bank-portal-body .bank-portal-main { padding: 32px 20px 60px; }
.bank-portal-body .bank-pixel-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; min-width: 0; }
.bank-portal-body .pixel-font { font-family: var(--font-title) !important; font-size: 1.1rem; letter-spacing: 0; line-height: 1.4; }
.bank-portal-body :is(.pixel-tag, .pixel-btn, .card-network-logo, .card-number-row, .pixel-code, .pixel-digits, .currency-label, .stat-amount, .amount-addon, .tx-amount, .receipt-logo, .receipt-stamp) { font-family: var(--font-title); text-shadow: none; }
.bank-portal-body .box-header { border-bottom: 1px solid var(--border-color); }
.bank-portal-body :is(.bank-pill, .pixel-mini-btn, .quick-act-btn, .pixel-input, .pixel-btn, .qa-btn, .qr-chip) { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: none; font-family: var(--font-body); }
.bank-portal-body :is(.bank-pill, .pixel-mini-btn, .quick-act-btn, .ghost-btn) { background: var(--bg-surface); color: var(--text-sub); }
.bank-portal-body :is(.bank-pill.active, .emerald-btn) { background: var(--accent-gold); color: var(--bg-dark); border-color: var(--accent-gold); font-weight: 800; }
.bank-portal-body .emerald-btn:hover { background: var(--accent-gold-hover); box-shadow: none; }
.bank-portal-body :is(.bank-pill, .pixel-mini-btn, .quick-act-btn):hover { border-color: var(--accent-gold); transform: none; }
.bank-portal-body :is(.pixel-input, .account-ident-bar, .source-acc-preview, .stat-cell, .radio-card, .ore-rate-item, .atm-card) { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.bank-portal-body .pixel-input { font-family: var(--font-body); width: 100%; min-width: 0; }
.bank-portal-body :is(button, a, input, select):focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 3px; }
.bank-portal-body .pixel-input:focus { border-color: var(--accent-gold); box-shadow: none; }
.bank-portal-body .pixel-balance-display { background: var(--bg-surface); border: 1px solid rgba(241,196,15,.3); border-radius: var(--radius-md); box-shadow: none; }
.bank-portal-body .pixel-digits { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; overflow-wrap: anywhere; min-width: 0; }
.bank-portal-body .balance-big-digits { flex-wrap: wrap; }
.bank-portal-body .balance-title-row { gap: 8px; flex-wrap: wrap; color: var(--text-sub); }
.bank-portal-body .balance-coin-icon { filter: none; }
.bank-portal-body .stat-amount { font-size: 1rem; overflow-wrap: anywhere; }
.bank-portal-body .minecard-3d { background: linear-gradient(135deg, #273449, #111722); border: 1px solid rgba(241,196,15,.4); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.bank-portal-body .minecard-3d:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bank-portal-body .card-contactless { color: var(--accent-gold); }
.bank-portal-body .pixel-tag { border-width: 1px; border-radius: 20px; font-size: .7rem; }
.bank-portal-body .green-tag { background: rgba(46,204,113,.1); border-color: rgba(46,204,113,.3); color: var(--accent-green); }
.bank-portal-body .notice-pixel-card { background: var(--bg-card); flex-wrap: wrap; }
.bank-portal-body .notice-text { flex: 1 1 260px; }
.bank-portal-body .notice-text h3 { color: var(--text-main); font-size: 1.25rem; }
.bank-portal-body .notice-icon i { color: var(--accent-gold); }
.bank-portal-body :is(.stat-title, .acc-owner-lbl, .qr-label, .rc-desc, .tx-meta, .atm-card p) { color: var(--text-muted); }
.bank-portal-body :is(.text-emerald, .tx-amount.in) { color: var(--accent-green); }
.bank-portal-body :is(.pixel-avatar-box, .pixel-code, .ore-icon-box, .tx-icon-badge) { border-radius: var(--radius-sm); border-width: 1px; }
.bank-portal-body [id] { scroll-margin-top: 90px; }
.home-bank-card .home-bank-icon { width: 48px; height: 48px; display: grid; place-items: center; background: rgba(241,196,15,.1); color: var(--accent-gold); border-radius: var(--radius-md); font-size: 1.4rem; margin-bottom: 18px; }
.home-bank-card p { color: var(--text-muted); font-size: .9rem; line-height: 1.7; margin: 12px 0 20px; }
.home-bank-card .btn-primary { display: flex; justify-content: center; gap: 10px; }
.home-bank-hint { display: block; color: var(--text-muted); margin-top: 14px; font-size: .8rem; text-align: center; }
@media (max-width: 650px) {
  .bank-portal-body .bank-pixel-card { padding: 18px; }
  .bank-portal-body .bank-subnav-inner { align-items: flex-start; }
  .bank-portal-body .bank-pills-nav { width: 100%; }
  .bank-portal-body .bank-pill { flex: 1 1 auto; justify-content: center; }
  .bank-portal-body .bank-brand-title small { display: block; margin: 6px 0 0; }
  .bank-portal-body .notice-pixel-card .pixel-btn { width: 100%; }
  .bank-portal-body .financial-stats-grid { grid-template-columns: 1fr; }
  .bank-portal-body .dashboard-top-row, .bank-portal-body .dashboard-middle-row { grid-template-columns: minmax(0, 1fr); }
}

/* Shared public-site footer */
.bh-footer {
  margin-top: 64px;
  padding: 0 0 28px;
  background: #080c12;
  border-top: 1px solid var(--border-color);
}
.bh-footer-invite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
}
.bh-footer-eyebrow { display: block; color: var(--accent-gold); font-size: .68rem; font-weight: 800; letter-spacing: 2px; margin-bottom: 12px; }
.bh-footer-invite h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.5px; }
.bh-footer-invite h2 span { color: var(--accent-gold); }
.bh-footer-invite p { margin-top: 10px; color: var(--text-muted); font-size: .88rem; line-height: 1.7; }
.bh-footer-copy { display: flex; align-items: center; gap: 18px; padding: 18px 22px; color: var(--text-main); background: var(--bg-card); border: 1px solid rgba(241,196,15,.3); border-radius: var(--radius-md); text-align: left; flex-shrink: 0; transition: background .2s, border-color .2s; }
.bh-footer-copy > i { color: var(--accent-gold); font-size: 1.2rem; }
.bh-footer-copy small { display: block; font-size: .6rem; letter-spacing: 1.3px; color: var(--text-muted); margin-bottom: 5px; }
.bh-footer-copy strong { font-family: var(--font-title); font-size: 1.3rem; font-weight: 600; }
.bh-footer-copy:hover { background: var(--bg-card-hover); border-color: var(--accent-gold); }
.bh-footer-grid { display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.1fr; gap: 48px; padding: 46px 0; }
.bh-footer-grid > * { min-width: 0; }
.bh-footer-brand > p { max-width: 300px; color: var(--text-muted); font-size: .85rem; line-height: 1.85; margin: 18px 0; }
.bh-footer-signature { display: flex; align-items: center; gap: 8px; font-size: .73rem; color: var(--text-sub); }
.bh-footer-signature > span { width: 5px; height: 5px; background: var(--accent-gold); border-radius: 50%; flex-shrink: 0; }
.bh-footer h3 { font-family: var(--font-title); font-size: 1rem; font-weight: 600; margin-bottom: 15px; }
.bh-footer-nav { display: flex; flex-direction: column; align-items: flex-start; }
.bh-footer-nav a { color: var(--text-muted); font-size: .84rem; padding: 7px 0; }
.bh-footer-support p { color: var(--text-muted); font-size: .84rem; line-height: 1.8; }
.bh-footer-community { display: inline-flex; align-items: center; gap: 12px; color: var(--accent-gold); font-size: .85rem; font-weight: 700; padding: 14px 0; }
.bh-footer-community i { font-size: .7rem; }
.bh-footer-email { display: block; color: var(--text-sub); font-size: .8rem; overflow-wrap: anywhere; padding: 5px 0; }
.bh-footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--border-color); color: var(--text-muted); font-size: .73rem; line-height: 1.8; }
.bh-footer-disclaimer { font-size: .68rem; margin-top: 4px; }
.bh-footer-top { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; padding: 10px 0; }
.bh-footer a { transition: color .2s; }
.bh-footer a:hover { color: var(--accent-gold); }
.bh-footer :is(a, button):focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 5px; border-radius: var(--radius-sm); }
@media (max-width: 980px) {
  .bh-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
  .bh-footer-invite { align-items: flex-start; flex-direction: column; gap: 24px; }
}
@media (max-width: 540px) {
  .bh-footer { margin-top: 40px; }
  .bh-footer-invite { padding: 30px 0; }
  .bh-footer-copy { width: 100%; gap: 12px; padding: 16px; }
  .bh-footer-copy > i:last-child { margin-left: auto; }
  .bh-footer-copy strong { font-size: 1.2rem; }
  .bh-footer-grid { gap: 30px 20px; padding: 32px 0; }
  .bh-footer-brand, .bh-footer-support { grid-column: 1 / -1; }
  .bh-footer-brand > p { max-width: none; }
  .bh-footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
}
