:root {
  --bg: #070b15;
  --panel: #0c1120;
  --panel-2: #11182a;
  --border: rgba(255,255,255,.06);
  --text: #ffffff;
  --muted: #b9c2d2;
  --accent: #f6a63a;
  --green: #16a317;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #131b35 0%, #0a1020 100%);
  color: var(--text);
}

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

.top-strip {
  height: 10px;
  background: linear-gradient(90deg, #071122, #0e1832, #071122);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5,10,22,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.nav-shell {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f7b15a, #dc6e2c);
  display: grid;
  place-items: center;
  color: white;
  font-size: 30px;
  font-weight: 900;
  border: 3px solid rgba(255,255,255,.85);
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.logo-text span,
.logo-text strong {
  display: block;
  line-height: 1;
}
.logo-text span { font-size: 19px; letter-spacing: 1px; }
.logo-text strong { font-size: 34px; }

.main-nav {
  display: flex;
  gap: 32px;
  font-size: 18px;
  font-weight: 800;
}
.main-nav a { position: relative; }
.main-nav a:hover::after,
.main-nav a:first-child::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 4px;
  background: var(--accent);
}

.hero {
  min-height: 300px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.store-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 26px 28px 48px;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 26px;
}

.sidebar-card,
.product-row,
.profile-card,
.link-card,
.page-card {
  background: rgba(0,0,0,.55);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.04);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.sidebar-card {
  padding: 30px;
  margin-bottom: 24px;
}
.sidebar-link,
.sidebar-sub-link,
.sidebar-group-title {
  display: block;
  margin-bottom: 24px;
  font-size: 20px;
}
.sidebar-group-title {
  color: #1fbb1f;
  font-weight: 800;
  text-transform: lowercase;
}
.sidebar-sub-link { padding-left: 24px; color: #9ea8ba; }
.modules-card h3 { font-size: 38px; margin: 0 0 12px; }
.modules-card p { color: #a8b2c6; line-height: 1.6; }

.products-area { display: flex; flex-direction: column; gap: 18px; }
.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  min-height: 124px;
}
.product-info { display: flex; align-items: center; gap: 22px; }
.product-thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  background: #111;
}
.product-copy h2 {
  margin: 0 0 8px;
  font-size: 28px;
  color: #d7dbe4;
}
.product-copy p { margin: 0; color: #9aa4b7; font-size: 16px; }
.product-actions {
  display: flex;
  align-items: center;
  gap: 30px;
}
.product-price {
  font-size: 28px;
  color: #6f7585;
  min-width: 120px;
  text-align: right;
}
.basket-btn,
.fivem-login-btn,
.download-btn,
.save-btn {
  border: 0;
  cursor: pointer;
  font-weight: 800;
}
.basket-btn {
  background: var(--green);
  color: #000;
  padding: 18px 34px;
  font-size: 18px;
}

.login-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.66);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}
.login-modal-backdrop.active { display: flex; }
.login-modal {
  width: min(560px, calc(100vw - 32px));
  min-height: 220px;
  background: #4b494a;
  padding: 34px 30px;
  position: relative;
  border-radius: 6px;
}
.login-modal h2 {
  margin: 0 0 28px;
  font-size: 42px;
  color: white;
}
.modal-close {
  position: absolute;
  right: 16px;
  top: 10px;
  background: transparent;
  border: 0;
  color: #c7c7c7;
  font-size: 46px;
  cursor: pointer;
}
.modal-actions { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.fivem-login-btn {
  background: #19b51c;
  color: #000;
  display: inline-block;
  padding: 18px 28px;
  font-size: 18px;
}
.demo-login-link { color: #fff; font-size: 15px; opacity: .9; }

.dashboard-hero {
  min-height: 220px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.dashboard-hero h1 {
  margin: 0;
  font-size: 96px;
  line-height: .92;
  letter-spacing: 2px;
}
.dashboard-hero p {
  margin-top: 10px;
  font-size: 18px;
}
.dashboard-shell {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 28px 52px;
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 28px;
}
.profile-card,
.link-card { padding: 28px; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 14px; }
.profile-avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
}
.profile-head h2 { margin: 0; font-size: 38px; }
.profile-head p { margin: 6px 0 0; font-size: 20px; color: #c6d0e1; }
.status-pill {
  display: inline-block;
  background: #7c5d19;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  margin: 8px 0 22px;
}
.status-pill.linked { background: #166c26; }
.info-box {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 16px;
}
.info-box span { display: block; color: #b5bfd0; margin-bottom: 8px; }
.info-box strong { font-size: 18px; }
.link-card h2 { margin: 8px 0 18px; font-size: 56px; }
.link-card p { margin: 0 0 22px; color: #d0d7e2; font-size: 18px; }
.save-message {
  background: rgba(22,163,23,.18);
  border: 1px solid rgba(22,163,23,.45);
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 20px;
}
.field label {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 800;
}
.field input {
  width: 100%;
  border: 0;
  border-radius: 18px;
  padding: 18px 18px;
  font-size: 18px;
  background: #ececec;
}
.save-btn {
  display: inline-block;
  width: 100%;
  background: linear-gradient(180deg, #f8b54c, #f3a135);
  color: #fff;
  padding: 18px 24px;
  border-radius: 18px;
  font-size: 18px;
  text-align: center;
}

.page-section { max-width: 1300px; margin: 0 auto; padding: 42px 28px; }
.page-card { padding: 32px; }
.download-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.download-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255,255,255,.03);
  border-radius: 14px;
}
.download-row h3 { margin: 0 0 6px; }
.download-row p { margin: 0; color: #bcc6d8; }
.download-btn {
  background: var(--green);
  color: #000;
  padding: 14px 22px;
  font-size: 16px;
}
.inline-btn { width: auto; }
.not-found-card { text-align: center; }

@media (max-width: 1100px) {
  .store-shell,
  .dashboard-shell,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .product-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .product-actions {
    width: 100%;
    justify-content: space-between;
  }

  .dashboard-hero h1 { font-size: 60px; }
  .main-nav { gap: 18px; font-size: 15px; }
}
