:root {
  --background: #17130d;
  --background-transparent: rgba(23, 19, 13, .86);
  --footer: #0e0b07;
  --panel: #282015;
  --panel-light: #342819;
  --border: #4a3820;
  --main: #f2b928;
  --accent: #ffe067;
  --text: #e5d4a7;
  --muted: #a99063;
  --white: #fffdf5;
  --green: #55bf68;
  --red: #d44a47;
  --shadow: 0 18px 45px rgba(0,0,0,.28);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--background); font-family: Poppins, system-ui, sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.background-art { position: absolute; inset: 0 0 auto; height: 850px; z-index: -2; overflow: hidden; background: linear-gradient(180deg, rgba(23,19,13,.56), var(--background-transparent) 55%, var(--background)), url('assets/background.jpg') center top / cover; filter: saturate(.72) sepia(.26); }
.background-art::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 78% 10%, rgba(242,185,40,.18), transparent 34%), linear-gradient(90deg,rgba(23,19,13,.7),transparent 55%,rgba(23,19,13,.55)); }
.page-shell { width: min(1200px, calc(100% - 32px)); margin: auto; }

.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: var(--radius); cursor: pointer; color: var(--white); font-size: 12px; font-weight: 800; text-decoration: none; transition: .18s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.button-header { border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.1); }
.button-primary { color: #261a06; background: linear-gradient(135deg,var(--accent),var(--main)); box-shadow: 0 10px 24px rgba(242,185,40,.18); }
.button-secondary { background: var(--panel-light); border: 1px solid var(--border); }
.button-block { width: 100%; }

.topbar { min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(255,255,255,.05); }
.topbar-actions { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.currency-picker { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 5px 7px 5px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.1); }
.currency-picker span { font-size: 9px; font-weight: 700; text-transform: uppercase; }
.currency-picker select { width: auto; min-height: 32px; padding: 0 26px 0 10px; border: 0; border-radius: 999px; color: var(--white); font-size: 11px; font-weight: 800; background-color: rgba(0,0,0,.2); }
.profile-card { height: 72px; min-width: 220px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 10px 68px 10px 18px; border: 0; border-radius: var(--radius); cursor: pointer; color: #2a1a02; text-align: left; background: linear-gradient(135deg,#d8940e,var(--accent)); box-shadow: var(--shadow); }
.profile-copy b,.profile-copy small { display: block; }
.profile-copy b { font-size: 15px; }
.profile-copy small { opacity: .8; font-size: 11px; }
.profile-card img { position: absolute; right: 10px; bottom: -38px; width: 52px; height: 110px; object-fit: contain; }

.atom-header { min-height: 292px; display: grid; grid-template-columns: 395px 1fr; align-items: center; gap: 24px; padding: 24px 0 30px; }
.brand { display: grid; place-items: center; }
.brand img { width: min(360px,98%); max-height: 258px; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(0,0,0,.42)); transition: .2s ease; }
.brand:hover img { transform: scale(1.025) rotate(-1deg); }
.header-statistics { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.server-card { display: flex; align-items: center; gap: 15px; padding: 0; border: 0; cursor: pointer; color: var(--text); text-align: left; background: none; }
.server-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: #291c05; font-size: 22px; background: linear-gradient(135deg,var(--accent),var(--main)); box-shadow: 0 10px 24px rgba(242,185,40,.2); }
.server-card b,.server-card small { display: block; }
.server-card b { color: var(--white); font-size: 18px; }
.server-card small { font-size: 12px; }
.highlight { color: var(--main); font-weight: 900; }
.discord-stat { min-width: 64px; display: grid; justify-items: center; gap: 9px; }
.discord-button { width: 44px; height: 46px; position: relative; display: grid; place-items: center; border-radius: 7px 7px 2px 2px; text-decoration: none; background: linear-gradient(145deg,var(--accent),var(--main)); box-shadow: 0 10px 24px rgba(242,185,40,.2); transition: .18s ease; }
.discord-button::after { content: ''; position: absolute; margin-top: 51px; border: 6px solid transparent; border-top-color: var(--main); transform: translateX(12px); }
.discord-button:hover { transform: translateY(-2px); filter: brightness(1.08); }
.discord-button img { width: 24px; height: 24px; }
.discord-members { min-width: 62px; padding: 3px 9px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--white); font-size: 11px; font-weight: 900; line-height: 1; text-align: center; background: rgba(255,255,255,.12); }
.announcement { min-height: 88px; display: flex; align-items: center; gap: 16px; padding: 15px 18px; border: 2px solid var(--main); border-radius: var(--radius); background: rgba(40,32,21,.85); box-shadow: var(--shadow); }
.announcement-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #2a1c02; font-size: 22px; background: var(--main); }
.announcement b,.announcement strong { display: block; }
.announcement b { color: var(--accent); font-size: 13px; }
.announcement strong { color: var(--white); font-size: 14px; }

.mobile-menu-button { display: none; width: 100%; min-height: 52px; margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--white); font-weight: 800; background: var(--panel); }
.store-body { display: grid; grid-template-columns: 384px 1fr; gap: 16px; align-items: start; padding: 8px 0 46px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(40,32,21,.97); box-shadow: var(--shadow); }
.navigation-panel { padding: 18px; }
.section-title { margin: 0 0 15px 12px; color: var(--main); font-size: 13px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; }
.navigation { display: grid; gap: 8px; }
.nav-item { width: 100%; min-height: 67px; display: flex; align-items: center; gap: 15px; padding: 9px 14px; border: 1px solid transparent; border-radius: 6px; color: var(--white); cursor: pointer; font-size: 15px; font-weight: 700; text-align: left; text-decoration: none; background: rgba(255,255,255,.035); transition: .16s ease; }
.nav-item:hover,.nav-item.active { padding-left: 19px; color: var(--accent); border-color: var(--border); background: var(--panel-light); }
.nav-item img { width: 43px; height: 43px; object-fit: contain; }
.nav-item i { width: 28px; height: 28px; margin-left: auto; display: grid; place-items: center; border-radius: 5px; color: var(--main); font-style: normal; background: rgba(255,255,255,.06); transition: transform .2s; }
.nav-item[aria-expanded="true"] i { transform: rotate(180deg); }
.nav-submenu { display: none; grid-template-columns: 1fr; gap: 1px; margin-top: -8px; padding: 7px 18px 13px 72px; border: 1px solid transparent; border-radius: 0 0 6px 6px; background: rgba(255,255,255,.035); }
.nav-submenu.open { display: grid; }
.nav-submenu a { padding: 7px 0; border-radius: 4px; color: var(--white); font-size: 13px; font-weight: 700; text-align: left; text-decoration: none; }
.nav-submenu a:hover,.nav-submenu a.active { padding-left: 8px; color: var(--accent); }
.sidebar-modules { display: grid; gap: 10px; margin-top: 12px; }
.customer-payments-module { overflow: hidden; }
.customer-payments-module h2 { margin: 0; padding: 12px 16px 0; color: var(--main); font-size: 18px; line-height: 22px; font-weight: 900; text-align: center; text-transform: uppercase; }
.top-customer-row { min-height: 99px; display: flex; align-items: center; gap: 14px; padding: 0 18px 0 16px; }
.top-customer-skin { width: 60px; height: 96px; align-self: flex-end; flex: 0 0 60px; object-fit: fill; object-position: center bottom; image-rendering: pixelated; filter: drop-shadow(0 8px 8px rgba(0,0,0,.28)); }
.top-customer-skin.placeholder { object-fit: contain; image-rendering: auto; }
.top-customer-copy b,.top-customer-copy span { display: block; }
.top-customer-copy b { color: var(--white); font-size: 15px; }
.top-customer-copy span { color: var(--main); font-size: 11px; }
.recent-payments-row { min-height: 75px; display: grid; place-items: center; align-content: center; gap: 7px; padding: 8px 14px; border-top: 1px solid var(--border); background: rgba(255,255,255,.025); }
.recent-payments-row > b { color: var(--main); font-size: 13px; text-transform: uppercase; }
.recent-heads { display: flex; justify-content: center; gap: 6px; }
.recent-heads img { width: 25px; height: 25px; border: 2px solid var(--border); border-radius: 5px; image-rendering: pixelated; background: var(--panel-light); transition: transform .15s ease; }
.recent-heads img:hover { transform: translateY(-3px) scale(1.08); }
.compact-module,.goal-module { min-height: 103px; display: flex; align-items: center; gap: 13px; padding: 15px; }
.module-icon { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; font-size: 22px; background: linear-gradient(145deg,var(--main),#9d6610); }
.compact-module small,.compact-module b,.compact-module span,.goal-module small,.goal-module b,.goal-module span { display: block; }
.compact-module small,.goal-module small { color: var(--main); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.compact-module b,.goal-module b { color: var(--white); font-size: 13px; }
.compact-module span,.goal-module span { color: var(--muted); font-size: 10px; }
.goal-ring { --p: calc(var(--progress) * 1%); width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-items: center; position: relative; border-radius: 50%; background: conic-gradient(var(--main) var(--p),rgba(255,255,255,.07) 0); }
.goal-ring::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--panel); }
.goal-ring span { position: relative; z-index: 1; color: var(--white); font-size: 11px; font-weight: 900; }

.store-content { min-width: 0; }
.content-panel { overflow: hidden; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(40,32,21,.97); box-shadow: var(--shadow); animation: view-in .24s ease; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }
.content-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 4px 0 17px; border-bottom: 1px solid var(--border); }
.eyebrow { display: block; color: var(--main); font-size: 10px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.content-heading h1 { margin: 2px 0 0; color: var(--white); font-size: 25px; }
.content-heading .goal-module { min-height: auto; padding: 0; border: 0; box-shadow: none; background: none; }
.welcome-copy { padding: 24px 12px 5px; text-align: center; }
.welcome-copy h2 { margin: 0 0 13px; color: var(--white); font-size: 18px; }
.welcome-copy p { max-width: 720px; margin: 0 auto 13px; color: var(--text); font-size: 12px; line-height: 1.8; }
.welcome-copy em { color: var(--accent); font-weight: 700; }
.divider { width: 72%; height: 1px; margin: 23px auto; background: linear-gradient(90deg,transparent,var(--border),transparent); }
.subheading { margin: 0 0 14px; color: var(--main); font-size: 17px; font-weight: 900; text-align: center; text-transform: uppercase; }
.package-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.package-card { overflow: hidden; position: relative; border: 1px solid var(--border); border-radius: 7px; background: var(--panel-light); transition: .18s ease; }
.package-card:hover { transform: translateY(-4px); border-color: var(--main); box-shadow: 0 14px 30px rgba(0,0,0,.24); }
.package-image { min-height: 148px; display: grid; place-items: center; position: relative; background: radial-gradient(circle at 50% 38%,rgba(255,224,103,.18),transparent 48%),linear-gradient(150deg,rgba(242,185,40,.09),transparent 65%); }
.package-emoji { font-size: 58px; filter: drop-shadow(0 9px 8px rgba(0,0,0,.32)); }
.package-badge { position: absolute; top: 10px; right: 10px; padding: 5px 8px; border-radius: 999px; color: #261901; font-size: 8px; font-weight: 900; background: var(--main); }
.package-data { padding: 0 13px 13px; text-align: center; }
.package-data h3 { margin: 0 0 5px; color: var(--white); font-size: 15px; }
.package-data p { min-height: 34px; margin: 0 0 9px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.price { display: block; margin-bottom: 10px; color: var(--accent); font-size: 15px; font-weight: 900; }
.card-actions { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.card-actions .button { min-height: 38px; padding: 0 12px; font-size: 10px; }
.card-actions .details-button { width: 39px; padding: 0; }
.payment-methods { text-align: center; }
.payment-methods img { width: min(640px,100%); height: auto; border: 0; border-radius: 0; box-shadow: none; }
.payment-methods span { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; }
.astral-home { padding-top: 22px; }
.astral-home > h2 { color: #f0c96e; }
.astral-home > p { max-width: 760px; font-size: 13px; line-height: 1.8; }
.astral-home > p em { color: var(--accent); text-decoration: underline; }
.astral-divider { width: 66%; margin: 25px auto 9px; border-top: 2px dashed #9f7740; }
.payment-wall { width: min(590px,100%); margin: 0 auto; padding: 5px; display: grid; grid-template-columns: repeat(8,1fr); gap: 4px; border: 2px solid #d68b1d; border-radius: 8px; background: #0d0a06; box-shadow: 0 0 0 4px rgba(242,185,40,.06); }
.payment-brand { min-height: 45px; margin: 0 !important; padding: 4px; display: grid !important; place-items: center; border-radius: 3px; color: #f8f2e6 !important; font-size: 9px !important; font-weight: 900; line-height: 1.1; text-transform: none; background: #1c1812; }
.brand-0,.brand-4 { color: #62a5ff !important; }
.brand-1,.brand-6 { color: #ffca28 !important; }
.brand-2,.brand-7 { color: #ff5454 !important; }
.brand-3 { color: #56a9ff !important; }
.brand-5 { color: #65d17a !important; }
.payment-times { margin-top: 28px; }
.payment-times p { margin-bottom: 12px; color: #ddb96e; font-size: 12px; }

.category-description { margin: 15px 0 18px; padding: 14px; border-left: 3px solid var(--main); border-radius: 0 6px 6px 0; color: var(--text); font-size: 11px; background: rgba(255,255,255,.025); }
.category-banner { min-height: 52px; margin-bottom: 8px; padding: 0 17px; display: flex; align-items: center; gap: 10px; border-radius: 7px; color: #2a1a02; font-size: 17px; font-weight: 900; background: linear-gradient(135deg,var(--accent),var(--main)); }
.rank-list { display: grid; gap: 8px; padding: 7px 0 0; }
.rank-row { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.025); border-radius: 7px; background: var(--panel-light); }
.rank-copy b,.rank-copy span { display: block; }
.rank-copy b { color: var(--white); font-size: 14px; }
.rank-copy span { color: var(--accent); font-size: 10px; }
.rank-copy del { margin-right: 4px; color: var(--red); }
.rank-actions { display: flex; gap: 8px; }
.rank-info,.rank-buy { min-height: 44px; border: 0; border-radius: 7px; color: var(--white); font-weight: 800; text-decoration: none; cursor: pointer; }
.rank-info { width: 62px; display: grid; place-items: center; background: #d74d49; }
.rank-buy { min-width: 98px; padding: 0 15px; background: var(--green); }
.rank-buy:hover,.rank-info:hover { filter: brightness(1.1); transform: translateY(-1px); }
.crate-list { display: grid; gap: 12px; margin-top: 8px; }
.crate-group > h2 { margin: 0 0 7px; color: var(--white); font-size: 17px; }
.crate-row { min-height: 178px; display: grid; grid-template-columns: 1.2fr repeat(3,1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 7px; background: rgba(255,255,255,.022); }
.crate-visual { display: grid; place-items: center; padding: 9px; }
.crate-visual img { width: 100%; height: 156px; object-fit: contain; filter: drop-shadow(0 12px 12px rgba(0,0,0,.32)); }
.crate-option { display: grid; place-content: center; gap: 5px; border: 0; border-left: 8px solid var(--panel); color: var(--white); cursor: pointer; background: var(--panel-light); transition: .18s ease; }
.crate-option:hover { color: #281a02; background: var(--main); }
.crate-option b { font-size: 24px; }
.crate-option span { color: var(--accent); font-size: 10px; }
.crate-option strong { color: var(--main); font-size: 10px; }
.crate-option:hover span,.crate-option:hover strong { color: #281a02; }
.package-detail { display: grid; grid-template-columns: 250px 1fr; gap: 24px; padding-top: 20px; }
.package-detail-visual { min-height: 260px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: radial-gradient(circle,rgba(255,224,103,.2),transparent 58%),var(--panel-light); }
.package-detail-visual span { font-size: 100px; }
.package-detail-visual img { width: 100%; max-height: 250px; object-fit: contain; filter: drop-shadow(0 13px 13px rgba(0,0,0,.3)); }
.package-detail-copy h2 { margin: 0 0 8px; color: var(--white); }
.package-detail-copy p,.cms-content p,.cms-content li { color: var(--text); font-size: 12px; line-height: 1.8; }
.package-options { display: grid; gap: 9px; margin: 18px 0; }
label { display: grid; gap: 6px; color: var(--white); font-size: 11px; font-weight: 700; }
input,select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--border); border-radius: 6px; outline: none; color: var(--white); background: #1d170f; }
input:focus,select:focus { border-color: var(--main); box-shadow: 0 0 0 3px rgba(242,185,40,.12); }
.checkout-layout { display: grid; grid-template-columns: 1fr 280px; gap: 16px; margin-top: 18px; }
.checkout-list { display: grid; gap: 9px; }
.checkout-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-light); }
.checkout-item .item-emoji { font-size: 32px; }
.checkout-item div { flex: 1; }
.checkout-item b,.checkout-item small { display: block; }
.checkout-item small { color: var(--muted); }
.checkout-summary { padding: 15px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-light); }
.checkout-summary h3 { margin-top: 0; color: var(--white); }
.checkout-summary .button:disabled { cursor: wait; opacity: .7; }
.checkout-status { min-height: 28px; margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; text-align: center; }
.summary-row { display: flex; justify-content: space-between; margin: 8px 0; font-size: 11px; }
.summary-row.total { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border); color: var(--accent); font-size: 15px; font-weight: 900; }
.empty-view { padding: 60px 20px; text-align: center; }
.empty-view span { font-size: 56px; }
.empty-view h2 { color: var(--white); }

.site-footer { padding: 40px max(24px,calc((100% - 1200px)/2)) 22px; color: #8e7953; background: var(--footer); border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 45px; }
.footer-column img { width: 170px; height: 85px; object-fit: contain; object-position: left center; }
.footer-column h3 { margin: 0 0 11px; color: var(--white); font-size: 14px; }
.footer-column p,.footer-column a { display: block; margin: 0 0 7px; color: #8e7953; font-size: 11px; line-height: 1.7; text-decoration: none; }
.footer-column a:hover { color: var(--main); }
.footer-discord { color: var(--main) !important; font-weight: 800; }
.footer-bottom { margin-top: 30px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.06); font-size: 10px; }
.footer-bottom span b,.footer-bottom span small { display: block; }
.footer-bottom a { color: var(--main); text-decoration: none; }

.player-basket { width: min(430px,100%); position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; padding: 22px; border-left: 1px solid var(--border); background: #181209; box-shadow: -18px 0 45px rgba(0,0,0,.4); transform: translateX(105%); transition: transform .25s ease; }
.player-basket.shown { transform: translateX(0); }
.focus-mode { position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.66); backdrop-filter: blur(3px); }
.basket-heading { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.basket-heading h2 { margin: 3px 0 0; color: var(--white); font-size: 20px; }
.icon-button,.modal-close { width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer; color: var(--white); font-size: 24px; background: rgba(255,255,255,.06); }
.basket-items { display: grid; gap: 8px; padding: 15px 0; overflow: auto; }
.basket-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel); }
.basket-item-emoji { font-size: 28px; }
.basket-item b,.basket-item small { display: block; }
.basket-item b { color: var(--white); font-size: 12px; }
.basket-item small { color: var(--main); font-size: 10px; }
.remove-item { border: 0; color: var(--red); cursor: pointer; background: none; }
.basket-empty { flex: 1; display: grid; place-content: center; justify-items: center; text-align: center; }
.basket-empty-icon { font-size: 55px; opacity: .6; }
.basket-empty strong { margin-top: 12px; color: var(--white); }
.basket-empty p { color: var(--muted); font-size: 11px; }
.basket-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
.basket-total { display: flex; justify-content: space-between; margin-bottom: 13px; }
.basket-total strong { color: var(--accent); }

.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.75); backdrop-filter: blur(6px); }
.modal-card { width: min(430px,100%); position: relative; padding: 28px; border: 1px solid var(--border); border-radius: 10px; text-align: center; background: var(--panel); box-shadow: 0 25px 70px rgba(0,0,0,.52); animation: modal-in .2s ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(.96); } }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-logo { width: 120px; height: 95px; object-fit: contain; }
.modal-emoji { display: block; margin-bottom: 12px; font-size: 55px; }
.modal-card h2 { margin: 3px 0 6px; color: var(--white); }
.modal-card p { color: var(--muted); font-size: 11px; }
.modal-card form { display: grid; gap: 14px; margin-top: 18px; text-align: left; }
.package-modal { align-items: center; }
.package-modal-card { width: min(620px,100%); max-height: min(760px,calc(100vh - 28px)); display: flex; flex-direction: column; overflow: hidden; padding: 0; text-align: left; border-color: rgba(242,185,40,.42); background: #241b11; }
.package-modal-header { min-height: 60px; display: flex; align-items: center; padding: 14px 62px 14px 20px; border-bottom: 1px solid var(--border); background: var(--panel-light); }
.package-modal-header h2 { margin: 0; color: var(--accent); font-size: 18px; }
.package-modal-card .modal-close { top: 10px; right: 12px; }
.package-modal-content { overflow-y: auto; padding: 22px 24px 26px; }
.package-modal-visual { min-height: 118px; display: grid; place-items: center; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 7px; font-size: 76px; background: radial-gradient(circle,rgba(242,185,40,.2),transparent 62%),rgba(255,255,255,.025); }
.package-modal-content p { margin: 0 0 18px; color: var(--text); font-size: 12px; line-height: 1.75; }
.package-modal-content h3 { margin: 0 0 8px; color: var(--white); font-size: 14px; }
.package-modal-content ul { margin: 0; padding-left: 22px; color: #f2c96a; font-size: 12px; line-height: 1.85; }
.package-modal-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--border); background: var(--panel-light); }
.package-modal-footer strong { color: var(--accent); font-size: 15px; }
.package-modal-footer .button { min-width: 185px; }
.toast { min-width: 260px; position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 13px 18px; border: 1px solid var(--main); border-radius: 7px; color: var(--white); font-size: 11px; font-weight: 700; text-align: center; background: var(--panel); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%,20px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

@media (max-width: 900px) {
  .page-shell { width: min(680px,calc(100% - 20px)); }
  .topbar { min-height: 82px; }
  .desktop-only { display: none !important; }
  .profile-card { min-width: 185px; height: 62px; }
  .atom-header { grid-template-columns: 1fr; gap: 4px; padding: 18px 0 25px; }
  .brand img { width: 285px; height: 196px; }
  .header-statistics { justify-content: center; }
  .discord-stat { display: none; }
  .mobile-menu-button { display: block; }
  .store-body { grid-template-columns: 1fr; }
  .store-sidebar { display: none; }
  .store-sidebar.open { display: block; }
  .navigation { grid-template-columns: repeat(2,1fr); }
  .nav-submenu { grid-column: 1/-1; padding: 8px 20px 13px 72px; }
  .sidebar-modules { grid-template-columns: 1fr; }
  .compact-module,.goal-module { min-height: 130px; flex-direction: column; justify-content: center; text-align: center; }
  .package-grid { grid-template-columns: repeat(2,1fr); }
  .package-detail,.checkout-layout { grid-template-columns: 1fr; }
  .package-detail-visual { min-height: 220px; }
  .crate-row { grid-template-columns: 1fr repeat(3,1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 560px) {
  .topbar-actions { width: 100%; }
  .profile-card { width: auto; min-width: 0; flex: 1; }
  .currency-picker { padding: 5px; }
  .currency-picker > span { display: none; }
  .back-button { width: 44px; padding: 0; }
  .announcement strong { font-size: 11px; }
  .announcement b { font-size: 10px; }
  .navigation { grid-template-columns: 1fr; }
  .sidebar-modules { grid-template-columns: 1fr; }
  .compact-module,.goal-module { min-height: 95px; flex-direction: row; justify-content: flex-start; text-align: left; }
  .content-heading { align-items: flex-start; }
  .content-heading .goal-module { display: none; }
  .content-heading h1 { font-size: 21px; }
  .package-grid { grid-template-columns: 1fr; }
  .package-card { display: grid; grid-template-columns: 118px 1fr; }
  .package-image { min-height: 155px; }
  .package-emoji { font-size: 45px; }
  .package-data { padding: 15px 10px 10px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
  .payment-wall { grid-template-columns: repeat(4,1fr); }
  .rank-row { align-items: flex-start; flex-direction: column; }
  .rank-actions { width: 100%; }
  .rank-buy { flex: 1; }
  .crate-row { grid-template-columns: repeat(3,1fr); }
  .crate-visual { grid-column: 1/-1; }
  .crate-option { min-height: 110px; border-left: 3px solid var(--panel); border-top: 6px solid var(--panel); }
}
