@font-face {
  font-family: "GameArabic";
  src: local("Tahoma");
}

:root {
  --dark: #06111d;
  --dark2: #0b1724;
  --gold: #ffd76a;
  --gold2: #b87a18;
  --gold3: #ffb72f;
  --green: #20f060;
  --green2: #067a2d;
  --red: #ff4f64;
  --line: rgba(255, 206, 92, 0.55);
  --white: #ffffff;
  --muted: rgba(255,255,255,.66);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "GameArabic", Tahoma, Arial, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 197, 64, .14), transparent 28%),
    radial-gradient(circle at 70% 35%, rgba(34, 246, 104, .08), transparent 25%),
    linear-gradient(180deg, #03070d, #071625 48%, #03070d);
  overflow-x: hidden;
}

button,
input {
  font-family: inherit;
}

a {
  color: inherit;
}

.game-page {
  min-height: 100vh;
  position: relative;
}

.topbar {
  height: 112px;
  padding: 14px 46px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, rgba(2, 7, 12, .96), rgba(4, 13, 22, .76));
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 210, 96, .42);
  box-shadow: 0 16px 34px rgba(0,0,0,.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
  text-decoration: none;
}

.brand-ornament {
  width: 54px;
  height: 54px;
  border: 2px solid var(--gold);
  transform: rotate(45deg);
  border-radius: 12px;
  box-shadow: 0 0 24px rgba(255, 215, 106, .38);
  position: relative;
}

.brand-ornament::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 8px;
  background: radial-gradient(circle, #14ff8b, #0b5c2b 55%, #06111d);
  border: 1px solid var(--gold);
}

.brand h1 {
  margin: 0;
  font-size: clamp(24px, 2.6vw, 42px);
  line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(255, 198, 44, .55);
}

.brand span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.desktop-nav a {
  text-decoration: none;
  color: rgba(255,255,255,.78);
  font-weight: 700;
  font-size: 17px;
  padding: 12px 4px;
  position: relative;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  color: var(--gold);
}

.desktop-nav a.active::after {
  content: "";
  position: absolute;
  right: 12%;
  left: 12%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold);
}

.player-box {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  direction: rtl;
}

.avatar {
  width: 74px;
  height: 74px;
  filter: drop-shadow(0 0 14px rgba(255, 205, 73, .35));
}

.player-info strong,
.player-info span {
  display: block;
}

.player-info strong {
  font-size: 18px;
}

.player-info span {
  color: var(--gold);
  font-weight: 800;
  margin-top: 3px;
}

.level-badge {
  min-width: 34px;
  height: 34px;
  border-radius: 0 0 12px 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(#2e1b04, #0b111a);
  color: var(--gold);
  border: 2px solid var(--gold2);
  font-size: 18px;
  font-weight: 900;
}

.resource-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.resource-pill {
  height: 48px;
  padding: 0 12px;
  min-width: 130px;
  display: flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
  background: rgba(3, 10, 17, .80);
  border: 1px solid rgba(255, 208, 81, .45);
  border-radius: 999px;
  box-shadow: inset 0 0 18px rgba(255, 199, 47, .05);
}

.resource-pill img {
  width: 30px;
  height: 30px;
}

.resource-pill strong {
  font-size: 18px;
}

.resource-pill small {
  color: rgba(255,255,255,.76);
}

.logout-btn {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 208, 81, .38);
  background: rgba(3, 10, 17, .70);
  border-radius: 16px;
}

.logout-btn img {
  width: 31px;
}

.hero {
  min-height: 100vh;
  padding: 150px 32px 40px;
  position: relative;
  background:
    linear-gradient(180deg, rgba(3,7,13,.28), rgba(3,7,13,.55) 48%, rgba(3,7,13,.96)),
    url("../images/baghdad-bg.png");
  background-size: cover;
  background-position: center top;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center 46%, rgba(255, 196, 40, .08), transparent 34%),
    linear-gradient(90deg, rgba(0,0,0,.5), transparent 28%, transparent 72%, rgba(0,0,0,.5));
  z-index: -1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 214, 102, .50) 1px, transparent 1.5px);
  background-size: 90px 90px;
  opacity: .13;
  mix-blend-mode: screen;
}

.hero-content,
.page-section {
  max-width: 1500px;
  margin: 0 auto;
}

.balance-card {
  width: min(780px, 94vw);
  margin: 0 auto;
  padding: 28px 38px 24px;
  text-align: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(8, 21, 33, .94), rgba(2, 9, 16, .96));
  border: 2px solid var(--line);
  border-radius: 22px;
  box-shadow:
    0 0 42px rgba(0,0,0,.7),
    inset 0 0 44px rgba(255, 202, 65, .06),
    0 0 28px rgba(255, 205, 73, .13);
}

.balance-card::before,
.balance-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 130px;
  border: 2px solid rgba(255, 205, 73, .65);
  filter: drop-shadow(0 0 12px rgba(255, 205, 73, .25));
}

.balance-card::before {
  right: -22px;
  border-left: 0;
  transform: translateY(-50%);
  border-radius: 0 16px 16px 0;
}

.balance-card::after {
  left: -22px;
  border-right: 0;
  transform: translateY(-50%);
  border-radius: 16px 0 0 16px;
}

.balance-card h2 {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: clamp(22px, 2vw, 34px);
}

.balance-number {
  direction: ltr;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 18px;
  color: var(--gold);
  text-shadow: 0 0 22px rgba(255, 215, 106, .72), 0 4px 0 rgba(62, 31, 0, .6);
}

.balance-number span {
  font-size: clamp(76px, 10vw, 148px);
  font-weight: 900;
  line-height: 1;
}

.balance-number small {
  font-size: clamp(36px, 4vw, 62px);
  font-weight: 900;
}

.income-pill {
  width: min(520px, 100%);
  margin: 16px auto 0;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 205, 73, .48);
  background: rgba(2, 9, 16, .82);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.income-pill b,
.trend {
  color: var(--green);
  text-shadow: 0 0 12px rgba(32, 240, 96, .65);
}

.trend {
  font-size: 22px;
  transform: rotate(45deg);
}

.income-pill i {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 2px solid var(--gold2);
  font-style: normal;
  margin-right: 10px;
}

.offline-note {
  margin-top: 14px;
  color: rgba(255,255,255,.70);
  font-size: 15px;
}

.offline-note strong {
  color: var(--green);
}

.collect-btn {
  width: min(560px, 92vw);
  min-height: 108px;
  border: 3px solid var(--gold);
  border-radius: 36px;
  margin: 24px auto 34px;
  display: grid;
  place-items: center;
  position: relative;
  cursor: pointer;
  color: #fff;
  background:
    radial-gradient(circle at 50% 0%, rgba(170, 255, 157, .65), transparent 32%),
    linear-gradient(180deg, #21e95c, #0d922d 52%, #045f24);
  box-shadow:
    0 0 38px rgba(31, 255, 92, .68),
    0 0 100px rgba(31, 255, 92, .24),
    inset 0 0 24px rgba(255,255,255,.22);
  overflow: hidden;
  animation: pulse 1.9s infinite;
}

.collect-btn strong {
  font-size: clamp(34px, 4vw, 62px);
  text-shadow: 0 4px 0 rgba(0,0,0,.32), 0 0 16px rgba(255,255,255,.35);
  z-index: 2;
}

.coin-circle {
  position: absolute;
  top: 15px;
  right: 34px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid var(--gold);
  background: rgba(3, 13, 9, .52);
  box-shadow: 0 0 18px rgba(255, 215, 106, .34);
}

.coin-circle img {
  width: 38px;
}

.collect-btn em {
  position: absolute;
  inset: -60px;
  background: linear-gradient(120deg, transparent 32%, rgba(255,255,255,.38), transparent 68%);
  transform: translateX(90%);
  animation: shine 2.7s infinite;
}

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

@keyframes shine {
  0% { transform: translateX(110%) rotate(8deg); }
  55%, 100% { transform: translateX(-110%) rotate(8deg); }
}

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

.game-card,
.market-card,
.features-panel,
.leaderboard-card,
.profile-card,
.transactions-card,
.auth-card {
  background:
    linear-gradient(135deg, rgba(6, 17, 29, .96), rgba(4, 11, 19, .92));
  border: 1px solid rgba(255, 199, 66, .52);
  box-shadow:
    inset 0 0 34px rgba(255, 204, 63, .04),
    0 20px 38px rgba(0,0,0,.35);
}

.game-card {
  min-height: 160px;
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 92px 1fr 24px;
  align-items: center;
  gap: 18px;
  position: relative;
  border-radius: 17px;
  overflow: hidden;
}

.game-card::before,
.features-panel::before,
.market-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 199, 66, .12);
  border-radius: inherit;
  pointer-events: none;
}

.icon-ring,
.market-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #192638, #050b12);
  border: 2px solid var(--gold2);
  box-shadow: inset 0 0 20px rgba(255, 215, 106, .08), 0 0 16px rgba(255, 215, 106, .15);
}

.icon-ring img,
.market-icon img {
  width: 54px;
  height: 54px;
}

.game-card h3 {
  margin: 0 0 8px;
  font-size: 27px;
}

.game-card strong {
  color: var(--green);
  font-size: 24px;
}

.game-card p {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.arrow {
  color: var(--gold3);
  font-size: 46px;
  line-height: 1;
  text-decoration: none;
}

.features-panel {
  position: relative;
  margin: 28px auto 0;
  padding: 26px 34px 34px;
  border-radius: 17px;
}

.features-panel h2 {
  margin: 0 0 24px;
  text-align: center;
  color: var(--gold);
  font-size: 29px;
}

.features-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.feature {
  text-align: center;
  padding: 8px 18px;
  border-left: 1px solid rgba(255, 199, 66, .28);
}

.feature:last-child {
  border-left: none;
}

.feature span {
  display: block;
  color: var(--gold);
  font-size: 24px;
  font-weight: 900;
}

.feature p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
}

.page-section {
  padding: 150px 26px 70px;
}

.page-heading {
  text-align: center;
  margin: 0 auto 28px;
}

.page-heading h2 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(32px, 4vw, 54px);
  text-shadow: 0 0 18px rgba(255, 198, 44, .34);
}

.page-heading p {
  color: var(--muted);
  font-size: 18px;
}

.market-grid {
  display: grid;
  gap: 18px;
}

.market-card {
  position: relative;
  border-radius: 19px;
  padding: 22px;
  display: grid;
  grid-template-columns: 100px 1fr 230px;
  align-items: center;
  gap: 22px;
}

.market-info h3 {
  margin: 0 0 8px;
  font-size: 26px;
}

.market-info p {
  margin: 0 0 14px;
  color: var(--muted);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats-row span {
  background: rgba(3,10,17,.62);
  border: 1px solid rgba(255,255,255,.08);
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--muted);
}

.stats-row b {
  color: var(--green);
}

.market-actions {
  display: flex;
  justify-content: flex-end;
}

.green-btn,
.gold-btn,
.disabled-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(0,0,0,.25);
}

.green-btn {
  background: linear-gradient(180deg, #22e95e, #087d32);
  border: 1px solid rgba(255,255,255,.18);
}

.gold-btn {
  background: linear-gradient(180deg, #ffd76a, #b77613);
  color: #211302;
}

.disabled-btn {
  cursor: not-allowed;
  background: #263442;
  color: rgba(255,255,255,.55);
}

.full {
  width: 100%;
}

.leaderboard-card {
  border-radius: 20px;
  padding: 18px;
  overflow-x: auto;
}

.leader-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.leader-table th,
.leader-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: right;
}

.leader-table th {
  color: var(--gold);
  font-size: 16px;
}

.leader-table td {
  color: rgba(255,255,255,.82);
}

.me-row {
  background: rgba(32, 240, 96, .08);
}

.profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 22px;
}

.profile-card,
.transactions-card {
  border-radius: 20px;
  padding: 24px;
}

.profile-card {
  text-align: center;
}

.profile-card img {
  width: 130px;
  filter: drop-shadow(0 0 18px rgba(255, 215, 106, .25));
}

.profile-card h3 {
  font-size: 28px;
  margin: 14px 0 4px;
}

.profile-card p {
  color: var(--gold);
  margin: 0 0 20px;
}

.profile-stats {
  display: grid;
  gap: 12px;
}

.profile-stats span,
.tx-item {
  padding: 13px;
  border-radius: 14px;
  background: rgba(3,10,17,.58);
  border: 1px solid rgba(255,255,255,.08);
}

.profile-stats span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}

.profile-stats b,
.tx-item span {
  color: var(--green);
}

.transactions-card h3 {
  margin-top: 0;
  color: var(--gold);
}

.tx-list {
  display: grid;
  gap: 12px;
}

.tx-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

.tx-item p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.tx-item small {
  color: rgba(255,255,255,.55);
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  background:
    linear-gradient(180deg, rgba(3,7,13,.28), rgba(3,7,13,.92)),
    url("../images/baghdad-bg.png");
  background-size: cover;
  background-position: center;
}

.auth-card {
  width: min(460px, 100%);
  border-radius: 24px;
  padding: 30px;
}

.auth-card h1 {
  margin: 0 0 10px;
  text-align: center;
  color: var(--gold);
  font-size: 38px;
}

.auth-card p {
  text-align: center;
  color: var(--muted);
  margin-bottom: 22px;
}

.auth-card label {
  display: block;
  color: var(--gold);
  margin: 12px 0 7px;
  font-weight: 800;
}

.auth-card input {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 215, 106, .30);
  background: rgba(3,10,17,.76);
  color: #fff;
  padding: 0 14px;
  outline: none;
  font-size: 16px;
}

.auth-card input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px rgba(255, 215, 106, .16);
}

.auth-links,
.demo-note {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
}

.auth-links a {
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  margin-right: 7px;
}

.demo-note b {
  color: var(--gold);
}

.alert {
  padding: 12px;
  border-radius: 14px;
  margin-bottom: 16px;
  text-align: center;
  font-weight: 800;
}

.alert.error {
  background: rgba(255, 79, 100, .13);
  color: #ffb6bf;
  border: 1px solid rgba(255, 79, 100, .35);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 500;
  min-width: 260px;
  max-width: 90vw;
  padding: 15px 18px;
  border-radius: 16px;
  background: rgba(4, 13, 22, .96);
  border: 1px solid rgba(255, 215, 106, .45);
  color: #fff;
  box-shadow: 0 18px 34px rgba(0,0,0,.45);
  transform: translateY(120%);
  opacity: 0;
  transition: .25s ease;
}

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

.toast.success {
  border-color: rgba(32, 240, 96, .55);
}

.toast.error {
  border-color: rgba(255, 79, 100, .55);
}

.mobile-bottom-nav {
  display: none;
}

.floating-profit {
  position: fixed;
  z-index: 100;
  transform: translateX(-50%);
  color: var(--green);
  font-weight: 900;
  font-size: 24px;
  text-shadow: 0 0 14px rgba(32, 240, 96, .8);
  animation: floatProfit .9s ease-out forwards;
  pointer-events: none;
}

@keyframes floatProfit {
  from {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -80px) scale(1.2);
  }
}

@media (max-width: 1200px) {
  .topbar {
    padding: 12px 18px;
    gap: 16px;
  }

  .desktop-nav,
  .brand span {
    display: none;
  }

  .resource-group {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }

  .market-card {
    grid-template-columns: 90px 1fr;
  }

  .market-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .market-actions button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .topbar {
    height: 92px;
    padding: 10px 12px;
  }

  .brand {
    display: none;
  }

  .player-box {
    min-width: 0;
    gap: 8px;
    margin-left: auto;
  }

  .avatar {
    width: 58px;
    height: 58px;
  }

  .player-info strong {
    font-size: 14px;
  }

  .player-info span {
    font-size: 12px;
  }

  .level-badge {
    min-width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .logout-btn {
    width: 44px;
    height: 44px;
  }

  .hero,
  .page-section {
    padding: 116px 14px 118px;
  }

  .balance-card {
    padding: 24px 18px 18px;
    border-radius: 18px;
  }

  .balance-card::before,
  .balance-card::after {
    display: none;
  }

  .balance-number {
    gap: 10px;
  }

  .balance-number span {
    font-size: 74px;
  }

  .balance-number small {
    font-size: 30px;
  }

  .income-pill {
    font-size: 14px;
    gap: 7px;
    flex-wrap: wrap;
  }

  .offline-note span {
    display: block;
    margin-top: 5px;
  }

  .collect-btn {
    min-height: 96px;
    border-radius: 32px;
  }

  .collect-btn strong {
    font-size: 34px;
  }

  .coin-circle {
    width: 42px;
    height: 42px;
    top: 10px;
    right: 22px;
  }

  .coin-circle img {
    width: 30px;
  }

  .game-card {
    min-height: 130px;
    grid-template-columns: 76px 1fr 22px;
    padding: 18px;
  }

  .icon-ring,
  .market-icon {
    width: 70px;
    height: 70px;
  }

  .icon-ring img,
  .market-icon img {
    width: 44px;
  }

  .game-card h3 {
    font-size: 22px;
  }

  .game-card strong {
    font-size: 19px;
  }

  .features-panel {
    display: none;
  }

  .market-card {
    grid-template-columns: 70px 1fr;
    padding: 16px;
  }

  .market-info h3 {
    font-size: 22px;
  }

  .stats-row span {
    width: 100%;
    border-radius: 12px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .tx-item {
    grid-template-columns: 1fr;
  }

  .mobile-bottom-nav {
    position: fixed;
    right: 12px;
    left: 12px;
    bottom: 14px;
    height: 78px;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(4, 12, 20, .96);
    border: 1px solid rgba(255, 199, 66, .58);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.55);
    backdrop-filter: blur(16px);
    overflow: hidden;
  }

  .mobile-bottom-nav a {
    text-decoration: none;
    display: grid;
    place-items: center;
    gap: 2px;
    color: rgba(255,255,255,.65);
    font-weight: 800;
    font-size: 13px;
    padding: 8px 0;
  }

  .mobile-bottom-nav a.active {
    color: var(--gold);
    background: radial-gradient(circle at 50% 100%, rgba(255, 204, 52, .20), transparent 60%);
  }

  .mobile-bottom-nav img {
    width: 30px;
    height: 30px;
    opacity: .82;
  }

  .mobile-bottom-nav a.active img {
    filter: drop-shadow(0 0 12px rgba(255, 215, 106, .55));
    opacity: 1;
  }

  .toast {
    right: 12px;
    bottom: 105px;
  }
}


.daily-reward-panel {
  margin: 0 auto 32px;
  max-width: 980px;
  padding: 22px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(6, 17, 29, .96), rgba(4, 11, 19, .92));
  border: 1px solid rgba(255, 199, 66, .52);
  box-shadow:
    inset 0 0 34px rgba(255, 204, 63, .04),
    0 20px 38px rgba(0,0,0,.35);
}

.daily-reward-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.daily-reward-head h2 {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 28px;
}

.daily-reward-head p {
  margin: 0;
  color: var(--muted);
}

.daily-reward-head strong {
  color: var(--green);
}

.daily-reward-btn {
  border: 0;
  border-radius: 16px;
  padding: 14px 22px;
  color: #111;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd76a, #b77613);
  box-shadow: 0 12px 26px rgba(255, 215, 106, .18);
}

.daily-reward-btn:disabled {
  cursor: not-allowed;
  color: rgba(255,255,255,.64);
  background: #263442;
  box-shadow: none;
}

.daily-reward-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.daily-day {
  min-height: 86px;
  padding: 13px 8px;
  border-radius: 16px;
  text-align: center;
  background: rgba(3, 10, 17, .62);
  border: 1px solid rgba(255,255,255,.08);
  display: grid;
  place-items: center;
}

.daily-day span {
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

.daily-day strong {
  color: var(--gold);
  font-size: 15px;
}

.daily-day.next {
  border-color: rgba(32, 240, 96, .65);
  box-shadow: 0 0 22px rgba(32, 240, 96, .16);
}

.daily-day.claimed {
  border-color: rgba(255, 215, 106, .68);
  background: rgba(255, 215, 106, .08);
}

@media (max-width: 720px) {
  .daily-reward-head {
    display: grid;
  }

  .daily-reward-btn {
    width: 100%;
  }

  .daily-reward-days {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ===== V4 DAILY TASKS PANEL ===== */
.daily-tasks-panel {
    width: min(1100px, 94vw) !important;
    max-width: 1100px !important;
    margin: 0 auto 28px auto !important;
    padding: 22px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(8,21,33,.98), rgba(3,10,17,.96)) !important;
    border: 1px solid rgba(255,215,106,.42) !important;
    box-shadow: 0 22px 44px rgba(0,0,0,.40), inset 0 0 32px rgba(255,215,106,.05) !important;
    position: relative !important;
    z-index: 5 !important;
}

.daily-tasks-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 18px !important;
}

.daily-tasks-head h2 {
    margin: 0 0 7px 0 !important;
    color: #ffd76a !important;
    font-size: 30px !important;
    font-weight: 900 !important;
}

.daily-tasks-head p {
    margin: 0 !important;
    color: rgba(255,255,255,.72) !important;
}

.daily-tasks-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

.daily-task-card {
    display: grid !important;
    grid-template-columns: 1fr 130px !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 16px !important;
    border-radius: 18px !important;
    background: rgba(3,10,17,.72) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

.daily-task-card.completed {
    border-color: rgba(32,240,96,.42) !important;
}

.daily-task-card.claimed {
    opacity: .72 !important;
    border-color: rgba(255,215,106,.30) !important;
}

.task-info h3 {
    margin: 0 0 6px !important;
    color: #fff !important;
    font-size: 18px !important;
}

.task-info p {
    margin: 0 0 11px !important;
    color: rgba(255,255,255,.64) !important;
    font-size: 13px !important;
}

.task-progress-text {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
}

.task-progress-text span {
    color: #20f060 !important;
}

.task-progress-text strong {
    color: #ffd76a !important;
}

.task-progress-bar {
    height: 9px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    overflow: hidden !important;
}

.task-progress-bar span {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #0fa24a, #20f060) !important;
    box-shadow: 0 0 14px rgba(32,240,96,.32) !important;
}

.task-claim-btn {
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 15px !important;
    padding: 10px 16px !important;
    color: #111 !important;
    background: linear-gradient(180deg, #ffd76a, #c58a1b) !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.task-claim-btn:disabled {
    color: rgba(255,255,255,.62) !important;
    background: #2b3846 !important;
    cursor: not-allowed !important;
}

@media(max-width: 900px) {
    .daily-tasks-grid {
        grid-template-columns: 1fr !important;
    }

    .daily-task-card {
        grid-template-columns: 1fr !important;
    }
}


/* ===== V6 RANKS, ACHIEVEMENTS, MARKET EVENTS ===== */
.rank-goal-panel,
.market-events-panel,
.achievements-panel {
    width: min(1100px, 94vw) !important;
    max-width: 1100px !important;
    margin: 0 auto 28px auto !important;
    padding: 22px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, rgba(8,21,33,.98), rgba(3,10,17,.96)) !important;
    border: 1px solid rgba(255,215,106,.42) !important;
    box-shadow: 0 22px 44px rgba(0,0,0,.40), inset 0 0 32px rgba(255,215,106,.05) !important;
    position: relative !important;
    z-index: 5 !important;
}

.rank-goal-panel {
    display: grid !important;
    grid-template-columns: 330px 1fr !important;
    gap: 18px !important;
}

.rank-current {
    padding: 20px !important;
    border-radius: 20px !important;
    background: radial-gradient(circle at top, rgba(255,215,106,.12), rgba(255,255,255,.03)) !important;
    border: 1px solid rgba(255,215,106,.20) !important;
}

.rank-current span,
.rank-next-head span {
    display: block !important;
    color: rgba(255,255,255,.65) !important;
    margin-bottom: 8px !important;
}

.rank-current h2 {
    margin: 0 0 12px !important;
    color: #ffd76a !important;
    font-size: 30px !important;
    font-weight: 900 !important;
}

.rank-current p {
    margin: 0 !important;
    color: rgba(255,255,255,.72) !important;
}

.rank-current strong {
    color: #20f060 !important;
}

.rank-next {
    padding: 20px !important;
    border-radius: 20px !important;
    background: rgba(3,10,17,.58) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

.rank-next-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 14px !important;
}

.rank-next-head h3 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 24px !important;
}

.rank-next-head > strong {
    color: #20f060 !important;
    font-size: 30px !important;
}

.rank-main-progress,
.achievement-bar {
    height: 11px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.08) !important;
    overflow: hidden !important;
}

.rank-main-progress span,
.achievement-bar span {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
    background: linear-gradient(90deg, #0fa24a, #20f060) !important;
    box-shadow: 0 0 16px rgba(32,240,96,.35) !important;
}

.rank-requirements {
    margin-top: 15px !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
}

.rank-requirements div {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.03) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

.rank-requirements div.done {
    border-color: rgba(32,240,96,.45) !important;
}

.rank-requirements b {
    display: block !important;
    color: #ffd76a !important;
    margin-bottom: 5px !important;
}

.rank-requirements span {
    color: rgba(255,255,255,.70) !important;
    font-size: 13px !important;
}

.market-events-head,
.achievements-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    margin-bottom: 16px !important;
}

.market-events-head h2,
.achievements-head h2 {
    margin: 0 0 6px !important;
    color: #ffd76a !important;
    font-size: 30px !important;
    font-weight: 900 !important;
}

.market-events-head p,
.achievements-head p {
    margin: 0 !important;
    color: rgba(255,255,255,.72) !important;
}

.achievements-head a {
    color: #20f060 !important;
    text-decoration: none !important;
    font-weight: 900 !important;
}

.market-events-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 14px !important;
}

.market-event-card,
.achievement-card {
    padding: 16px !important;
    border-radius: 18px !important;
    background: rgba(3,10,17,.72) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
}

.market-event-card strong {
    display: block !important;
    color: #ffd76a !important;
    font-size: 20px !important;
    margin-bottom: 8px !important;
}

.market-event-card p {
    color: rgba(255,255,255,.72) !important;
    margin: 0 0 10px !important;
}

.market-event-card span {
    color: #20f060 !important;
    font-weight: 900 !important;
}

.achievements-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 14px !important;
}

.achievements-grid.all {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
}

.achievement-card {
    display: grid !important;
    grid-template-columns: 1fr 115px !important;
    align-items: center !important;
    gap: 14px !important;
}

.achievement-card.completed {
    border-color: rgba(32,240,96,.42) !important;
}

.achievement-card.claimed {
    opacity: .72 !important;
}

.achievement-card h3 {
    margin: 0 0 7px !important;
    color: #fff !important;
    font-size: 18px !important;
}

.achievement-card p {
    margin: 0 0 11px !important;
    color: rgba(255,255,255,.64) !important;
    font-size: 13px !important;
}

.achievement-progress-text {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin-bottom: 8px !important;
    font-weight: 800 !important;
}

.achievement-progress-text span {
    color: #20f060 !important;
}

.achievement-progress-text strong {
    color: #ffd76a !important;
}

.achievement-claim-btn {
    min-height: 46px !important;
    border: 0 !important;
    border-radius: 15px !important;
    padding: 10px 16px !important;
    color: #111 !important;
    background: linear-gradient(180deg, #ffd76a, #c58a1b) !important;
    font-weight: 900 !important;
    cursor: pointer !important;
}

.achievement-claim-btn:disabled {
    color: rgba(255,255,255,.62) !important;
    background: #2b3846 !important;
    cursor: not-allowed !important;
}

@media(max-width: 900px) {
    .rank-goal-panel {
        grid-template-columns: 1fr !important;
    }

    .rank-requirements,
    .market-events-list,
    .achievements-grid,
    .achievements-grid.all {
        grid-template-columns: 1fr !important;
    }

    .achievement-card {
        grid-template-columns: 1fr !important;
    }
}


/* ===== V9 IN-GAME NOTIFICATIONS ===== */
.notification-widget {
    position: relative;
    z-index: 1000;
}

.notification-bell {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 215, 106, .32);
    border-radius: 15px;
    background: linear-gradient(180deg, rgba(8,21,33,.96), rgba(3,10,17,.94));
    color: #ffd76a;
    font-size: 21px;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(0,0,0,.24);
    position: relative;
}

.notification-bell:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(0,0,0,.32), 0 0 18px rgba(255,215,106,.12);
}

.notification-bell span {
    position: absolute;
    top: -7px;
    left: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff5f73;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: grid;
    place-items: center;
    border: 2px solid #081521;
}

.notification-dropdown {
    position: absolute;
    top: 58px;
    left: 0;
    width: min(390px, 92vw);
    max-height: 480px;
    overflow: auto;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(8,21,33,.98), rgba(3,10,17,.98));
    border: 1px solid rgba(255,215,106,.28);
    box-shadow: 0 24px 50px rgba(0,0,0,.46);
    padding: 12px;
    display: none;
}

.notification-dropdown.show {
    display: block;
    animation: notificationDrop .18s ease-out;
}

@keyframes notificationDrop {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    margin-bottom: 8px;
}

.notification-head strong {
    color: #ffd76a;
    font-size: 18px;
}

.notification-head small {
    color: rgba(255,255,255,.58);
}

.notification-empty {
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,.62);
}

.notification-item {
    display: grid;
    grid-template-columns: 13px 1fr;
    gap: 11px;
    padding: 13px;
    border-radius: 16px;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.025);
    margin-bottom: 8px;
}

.notification-item:hover {
    background: rgba(255,215,106,.07);
    border-color: rgba(255,215,106,.20);
}

.notification-item > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 6px;
    background: rgba(255,255,255,.20);
}

.notification-item.unread > span {
    background: #20f060;
    box-shadow: 0 0 12px rgba(32,240,96,.8);
}

.notification-item strong {
    display: block;
    color: #fff;
    margin-bottom: 5px;
    font-size: 15px;
}

.notification-item p {
    margin: 0;
    color: rgba(255,255,255,.62);
    line-height: 1.6;
    font-size: 13px;
}

.notification-item.success {
    border-color: rgba(32,240,96,.10);
}

.notification-item.warning {
    border-color: rgba(255,215,106,.15);
}

.notification-item.event {
    border-color: rgba(89,166,255,.16);
}

@media (max-width: 720px) {
    .notification-dropdown {
        position: fixed;
        top: 80px;
        left: 14px;
        right: 14px;
        width: auto;
    }
}


/* ===== V9.3 NOTIFICATION FULL REPAIR ===== */
.topbar {
    overflow: visible !important;
}

.notification-widget {
    position: relative !important;
    z-index: 999999 !important;
    display: block !important;
    flex: 0 0 auto !important;
}

.notification-bell {
    width: 46px !important;
    height: 46px !important;
    border: 1px solid rgba(255, 215, 106, .45) !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(8,21,33,.98), rgba(3,10,17,.96)) !important;
    color: #ffd76a !important;
    font-size: 21px !important;
    cursor: pointer !important;
    display: grid !important;
    place-items: center !important;
    position: relative !important;
    box-shadow: 0 12px 24px rgba(0,0,0,.24) !important;
}

.notification-bell span {
    position: absolute !important;
    top: -7px !important;
    left: -7px !important;
    min-width: 21px !important;
    height: 21px !important;
    padding: 0 6px !important;
    border-radius: 999px !important;
    background: #ff5f73 !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    display: grid !important;
    place-items: center !important;
    border: 2px solid #081521 !important;
}

.notification-dropdown {
    position: absolute !important;
    top: 58px !important;
    left: 0 !important;
    width: min(410px, 92vw) !important;
    max-height: 480px !important;
    overflow: auto !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(8,21,33,.99), rgba(3,10,17,.99)) !important;
    border: 1px solid rgba(255,215,106,.34) !important;
    box-shadow: 0 24px 50px rgba(0,0,0,.55) !important;
    padding: 12px !important;
    display: none !important;
    z-index: 1000000 !important;
}

.notification-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.notification-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 12px 14px !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    margin-bottom: 8px !important;
}

.notification-head strong {
    color: #ffd76a !important;
    font-size: 18px !important;
}

.notification-head small {
    color: rgba(255,255,255,.58) !important;
}

.notification-empty {
    padding: 20px !important;
    text-align: center !important;
    color: rgba(255,255,255,.62) !important;
}

.notification-item {
    display: grid !important;
    grid-template-columns: 13px 1fr !important;
    gap: 11px !important;
    padding: 13px !important;
    border-radius: 16px !important;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.07) !important;
    background: rgba(255,255,255,.03) !important;
    margin-bottom: 8px !important;
}

.notification-item:hover {
    background: rgba(255,215,106,.08) !important;
    border-color: rgba(255,215,106,.22) !important;
}

.notification-item > span {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    margin-top: 6px !important;
    background: rgba(255,255,255,.20) !important;
}

.notification-item.unread > span {
    background: #20f060 !important;
    box-shadow: 0 0 12px rgba(32,240,96,.8) !important;
}

.notification-item strong {
    display: block !important;
    color: #fff !important;
    margin-bottom: 5px !important;
    font-size: 15px !important;
}

.notification-item p {
    margin: 0 !important;
    color: rgba(255,255,255,.65) !important;
    line-height: 1.6 !important;
    font-size: 13px !important;
}

@media (max-width: 720px) {
    .notification-dropdown {
        position: fixed !important;
        top: 78px !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
    }
}
