/* R4Craft Store — acelasi stil ca r4craft.net | bump ?v=N in index.html la modificari */
:root {
  --bg: #0a1f2b; --panel: #123240; --panel-2: #0e2733;
  --aqua: #44D1DB; --aqua-light: #84F7FF;
  --btn: #2f9aa3; --btn-alt: #5865F2; --danger: #c2464b; --gold: #e8c53a;
  --text: #e6f4f7; --muted: #9fc0c9; --line-dark: #06121a;
  --sh: 2px 2px 0 rgba(0,0,0,.55);
  --bevel: inset -3px -3px 0 rgba(0,0,0,.32), inset 3px 3px 0 rgba(255,255,255,.28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
img, svg, .b { image-rendering: pixelated; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--btn) #081a24; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text);
  font-size: 17px; line-height: 1.55; min-height: 100vh;
  background:
    radial-gradient(1100px 480px at 50% -120px, rgba(132,247,255,.12), transparent 70%) fixed,
    linear-gradient(#103042 0%, #0b2331 42%, #061722 100%);
  background-color: var(--bg);
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.aqua { color: var(--aqua-light); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.logo, .h2, .tag, .brand { text-shadow: var(--sh); }
/* font pixelat doar pentru titluri; textul ramane lizibil */
.logo { font-family: "Press Start 2P", ui-monospace, monospace; font-size: clamp(1.9rem, 8.5vw, 4rem); line-height: 1.15; letter-spacing: 0; }
.brand, .h2, .pkg h3, .drawer-head h2, .modal-head h2 { font-family: "Pixelify Sans", ui-monospace, monospace; }
::selection { background: var(--aqua); color: #06121a; }
::-webkit-scrollbar { width: 16px; height: 16px; }
::-webkit-scrollbar-track { background: #081a24; border-left: 2px solid var(--line-dark); }
::-webkit-scrollbar-thumb { background: var(--btn); border: 2px solid var(--line-dark); box-shadow: inset -3px -3px 0 rgba(0,0,0,.35), inset 3px 3px 0 rgba(255,255,255,.3); }
::-webkit-scrollbar-thumb:hover { background: var(--aqua); }
:focus-visible { outline: 3px solid var(--aqua-light); outline-offset: 2px; }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1100px; margin: 0 auto; padding: 16px clamp(14px, 4vw, 28px); }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.5rem; letter-spacing: 1px; }
.brand small { font-size: .8rem; color: var(--aqua); letter-spacing: 2px; }
.brand-block { width: 22px; height: 22px; background: var(--aqua); border: 2px solid var(--line-dark); box-shadow: inset -3px -3px 0 rgba(0,0,0,.35), inset 3px 3px 0 rgba(255,255,255,.4); }
.nav-links { display: flex; align-items: center; gap: 18px; font-size: 1.05rem; }
.nav-links a:not(.mc-btn) { color: var(--muted); }
.nav-links a:not(.mc-btn):hover { color: var(--aqua-light); }

/* ---------- butoane & panouri (GUI Minecraft) ---------- */
.mc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font-weight: 600; color: #fff; font-size: 1.05rem; letter-spacing: .5px;
  background: var(--btn); border: 2px solid var(--line-dark); border-radius: 0;
  padding: 12px 22px; box-shadow: var(--bevel); transition: filter .1s;
}
.mc-btn:hover { filter: brightness(1.12); }
.mc-btn:active { transform: translateY(2px); box-shadow: inset 3px 3px 0 rgba(0,0,0,.32), inset -3px -3px 0 rgba(255,255,255,.18); }
.mc-btn:disabled { filter: grayscale(.8) brightness(.8); cursor: not-allowed; transform: none; }
.mc-btn-sm { padding: 8px 14px; font-size: .95rem; }
.mc-btn-lg { padding: 15px 34px; font-size: 1.2rem; }
.mc-btn-alt { background: var(--btn-alt); }
.mc-btn-ghost { background: var(--panel-2); }
.mc-btn-danger { background: var(--danger); }
.mc-btn-block { width: 100%; }
.cart-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; font-size: .85rem; color: #06121a; background: var(--aqua-light); border: 2px solid var(--line-dark); text-shadow: none; }

.panel { background: var(--panel); border: 2px solid var(--line-dark); box-shadow: inset -4px -4px 0 rgba(0,0,0,.38), inset 4px 4px 0 rgba(255,255,255,.09); padding: 20px; }
.input {
  font-family: inherit; font-size: 1.1rem; color: #fff; background: var(--panel-2);
  border: 2px solid var(--line-dark); box-shadow: inset 2px 2px 0 rgba(0,0,0,.3);
  padding: 10px 14px; min-width: 0;
}
.input::placeholder { color: #6f98a3; }

main { max-width: 1100px; margin: 0 auto; padding: 0 clamp(14px, 4vw, 28px); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: clamp(28px, 5vw, 56px) 0 36px; }
.tag { font-family: "Press Start 2P", monospace; font-size: .62rem; line-height: 1.6; color: var(--aqua); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.logo { font-weight: 700; font-size: clamp(2.8rem, 11vw, 5.6rem); line-height: .95; letter-spacing: 2px; }
.tagline { color: var(--muted); margin-top: 14px; font-size: 1.15rem; }

/* ---------- login jucator ---------- */
.account { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 28px auto 0; max-width: 680px; padding: 16px 18px; }
.account-label { color: var(--aqua); font-size: .95rem; text-transform: uppercase; letter-spacing: 1px; }
.account form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; flex: 1; }
.account .input { flex: 1 1 200px; }
.edition { display: inline-flex; border: 2px solid var(--line-dark); }
.edition button { cursor: pointer; font-size: .95rem; padding: 8px 12px; color: var(--muted); background: var(--panel-2); border: 0; }
.edition button[aria-pressed="true"] { color: #06121a; background: var(--aqua); font-weight: 600; }
.player { display: flex; align-items: center; gap: 14px; }
.player img { width: 48px; height: 48px; border: 2px solid var(--line-dark); background: var(--panel-2); }
.player strong { font-size: 1.3rem; }

/* ---------- categorii ---------- */
.section { padding: 24px 0 56px; }
.h2 { text-align: center; font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.6rem); letter-spacing: 1px; margin-bottom: 26px; }
.h2::after { content: ""; display: block; width: 70px; height: 5px; margin: 14px auto 0; background: var(--aqua); box-shadow: inset -2px -2px 0 rgba(0,0,0,.3); }
.tabs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.tabs .mc-btn { background: var(--panel-2); color: var(--muted); }
.tabs .mc-btn:hover { color: #fff; }
.cats { display: flex; flex-direction: column; gap: 48px; }
.cat { scroll-margin-top: 16px; }
.cat-title { font-family: "Pixelify Sans", ui-monospace, monospace; font-size: clamp(1.5rem, 5vw, 2rem); text-align: center; margin-bottom: 18px; text-shadow: var(--sh); }
.cat-title::after { content: ""; display: block; width: 46px; height: 4px; margin: 10px auto 0; background: var(--aqua); }
.cat-desc { text-align: center; color: var(--muted); margin: -10px auto 24px; max-width: 700px; }

/* ---------- pachete ---------- */
.grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.grid > * { flex: 0 1 260px; }
.grid > .state { flex-basis: 100%; }
.pkg { display: flex; flex-direction: column; gap: 12px; text-align: center; position: relative; }
.pkg-img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--panel-2); border: 2px solid var(--line-dark); padding: 12px; }
.pkg-ph { display: grid; place-items: center; }
.pkg-ph span { width: 64px; height: 64px; background: var(--aqua); border: 2px solid var(--line-dark); box-shadow: inset -6px -6px 0 rgba(0,0,0,.3), inset 6px 6px 0 rgba(255,255,255,.35); }
.pkg h3 { font-size: 1.4rem; line-height: 1.2; }
.price { font-size: 1.5rem; font-weight: 700; color: var(--aqua-light); }
.price s { font-size: 1rem; color: var(--muted); margin-right: 6px; text-shadow: none; }
.pkg-actions { display: flex; gap: 8px; margin-top: auto; }
.pkg-actions .mc-btn { flex: 1; padding: 10px 8px; font-size: .98rem; }
.ribbon { position: absolute; top: 12px; left: 12px; font-size: .8rem; font-weight: 700; color: #06121a; background: var(--gold); border: 2px solid var(--line-dark); padding: 2px 8px; }
.state { text-align: center; color: var(--muted); padding: 40px 10px; }
.skeleton { min-height: 340px; opacity: .5; animation: pulse 1.2s steps(3) infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- info ---------- */
.info { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.info .panel h3 { font-size: 1.25rem; margin-bottom: 6px; color: var(--aqua-light); }
.info .panel p { color: var(--muted); font-size: 1rem; }

/* ---------- cos (drawer) ---------- */
.overlay { position: fixed; inset: 0; background: rgba(3,12,18,.7); z-index: 40; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); z-index: 50;
  display: flex; flex-direction: column; background: var(--panel); border-left: 2px solid var(--line-dark);
  box-shadow: inset 4px 0 0 rgba(255,255,255,.07); transform: translateX(105%); transition: transform .18s steps(4);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 2px solid var(--line-dark); }
.drawer-head h2 { font-size: 1.5rem; }
.x-btn { cursor: pointer; width: 38px; height: 38px; font-size: 1.2rem; color: #fff; background: var(--panel-2); border: 2px solid var(--line-dark); box-shadow: var(--bevel); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.drawer-foot { padding: 16px 18px; border-top: 2px solid var(--line-dark); background: var(--panel-2); display: flex; flex-direction: column; gap: 12px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; padding: 12px; background: var(--panel-2); border: 2px solid var(--line-dark); }
.line-name { font-weight: 600; }
.line-price { color: var(--aqua-light); font-weight: 600; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 0; }
.qty button { cursor: pointer; width: 32px; height: 32px; color: #fff; background: var(--btn); border: 2px solid var(--line-dark); box-shadow: var(--bevel); font-size: 1rem; }
.qty span { min-width: 36px; text-align: center; }
.link-btn { cursor: pointer; background: none; border: 0; color: #ff8d8d; font-size: .95rem; justify-self: end; }
.link-btn:hover { text-decoration: underline; }
.coupon { display: flex; gap: 8px; }
.coupon .input { flex: 1; font-size: 1rem; padding: 8px 12px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; gap: 8px; align-items: center; font-size: .9rem; padding: 2px 10px; color: #06121a; background: var(--aqua); border: 2px solid var(--line-dark); }
.chip button { cursor: pointer; background: none; border: 0; font-weight: 700; }
.totals { display: flex; justify-content: space-between; font-size: 1.3rem; font-weight: 700; }
.totals .muted { font-size: .9rem; font-weight: 400; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(3,12,18,.75); }
.modal-box { width: min(640px, 100%); max-height: 88vh; overflow-y: auto; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { font-size: 1.8rem; line-height: 1.1; }
.desc { color: var(--muted); font-size: 1.02rem; }
.desc img { max-width: 100%; height: auto; }
.desc a { color: var(--aqua-light); text-decoration: underline; }
.desc ul, .desc ol { padding-left: 22px; margin: 8px 0; }
.desc p { margin: 8px 0; }
.desc h1, .desc h2, .desc h3, .desc h4 { color: var(--text); margin: 12px 0 6px; font-size: 1.15rem; }
.desc table { border-collapse: collapse; width: 100%; }
.desc td, .desc th { border: 2px solid var(--line-dark); padding: 4px 8px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---------- toast & banner ---------- */
.toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 70; padding: 12px 18px; max-width: calc(100% - 32px); text-align: center; }
.toast.err { background: #4a1e24; }
.banner { text-align: center; margin: 0 auto 10px; max-width: 700px; }
.banner.demo { background: #3b3413; font-size: .95rem; color: #f3e3a0; }

/* ---------- acvariu (identic cu r4craft.net) ---------- */
.water-fx { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.creature { position: absolute; top: 0; left: 0; height: auto; will-change: transform; }
.b { position: absolute; bottom: -24px; left: var(--x); width: var(--s); height: auto; opacity: .55; animation: rise var(--d) linear infinite; animation-delay: var(--delay); }
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: .7; }
  50% { transform: translateY(-52vh) translateX(10px); }
  90% { opacity: .55; }
  100% { transform: translateY(-106vh) translateX(-8px); opacity: 0; }
}

.footer { text-align: center; padding: 40px 16px; margin-top: 30px; color: var(--muted); border-top: 2px solid var(--line-dark); background: rgba(0,0,0,.2); }
.footer .small { font-size: .85rem; opacity: .7; margin-top: 6px; }

.footer { text-align: left; padding: 22px 16px; }
.foot-row { max-width: 1100px; margin: 0 auto; padding: 0 clamp(0px, 2vw, 12px); display: flex; align-items: center; gap: 18px 24px; }
.foot-logo { flex: none; display: grid; place-items: center; min-width: 76px; color: var(--text); }
.foot-logo img { display: block; filter: brightness(0) invert(1); }
.foot-logo-txt { font-weight: 700; font-size: 1.25rem; letter-spacing: -.5px; }
.foot-text { flex: 1; min-width: 0; }
.foot-copy { color: var(--text); }
.footer .small { margin-top: 2px; opacity: .8; font-size: .85rem; max-width: none; }
.foot-links { display: flex; gap: 6px 20px; flex-wrap: wrap; justify-content: flex-end; flex: none; }
.foot-links a, .footer a { color: var(--aqua-light); }
.foot-links a:hover, .footer a:hover { text-decoration: underline; }
.legal { max-width: 760px; padding-bottom: 40px; }
.legal .h2 { margin-top: 20px; }
.legal .panel { margin-bottom: 18px; }
.legal h2 { font-family: "Pixelify Sans", ui-monospace, monospace; font-size: 1.5rem; margin-bottom: 8px; color: var(--aqua-light); }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }
.legal a { color: var(--aqua-light); text-decoration: underline; }
.legal b { color: var(--text); }

@media (max-width: 860px) {
  .foot-row { flex-wrap: wrap; }
  .foot-text { flex-basis: calc(100% - 110px); }
  .foot-links { justify-content: flex-start; flex-basis: 100%; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-links a:not(.mc-btn) { display: none; }
  .brand small { display: none; }
  .account { flex-direction: column; align-items: stretch; }
  .player { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .b, .skeleton { animation: none; }
  .drawer { transition: none; }
}
