@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Source+Sans+Pro:wght@400;600;700&display=swap');

:root {
  --bg: #080b12;
  --bg-card: rgba(18, 25, 39, 0.88);
  --bg-elevated: rgba(27, 38, 59, 0.85);
  --border: rgba(116, 186, 226, 0.22);
  --border-gold: rgba(255, 173, 65, 0.45);
  --accent-blue: #309fde;
  --accent-sky: #74bae2;
  --amber: #e39227;
  --amber-bright: #ffad41;
  --text: #eef2f8;
  --muted: #9eb0c9;
  --green: #3ddc84;
  --red: #ff5d6c;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at top, #132238 0%, #080b12 58%);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--accent-sky); text-decoration: none; transition: .25s; }
a:hover { color: var(--amber-bright); }

/* Floating Glassmorphic Navbar (play-aqua.net style) */
.topbar {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 1001;
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(33, 62, 98, 0.82), rgba(20, 38, 62, 0.88));
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.topbar-inner {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  border: 1.5px solid var(--amber-bright);
  box-shadow: 0 0 12px rgba(255, 173, 65, 0.35);
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--accent-sky);
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav button {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 13px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav button.active {
  color: #fff;
  background: rgba(48, 159, 222, 0.26);
  border-color: rgba(116, 186, 226, 0.45);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cta-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cta-pill:hover {
  background: rgba(48, 159, 222, 0.28);
  border-color: var(--accent-sky);
}

.cta-pill.gold {
  background: rgba(227, 146, 39, 0.86);
  border-color: var(--amber-bright);
}

.cta-pill.gold:hover {
  background: rgba(227, 146, 39, 1);
  transform: translateY(-1px);
}

/* Full-bleed Hero Section (play-aqua.net play_section style) */
.play_section {
  position: relative;
  width: 100%;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #090d16;
  padding-top: 84px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.62;
  filter: saturate(1.1);
}

.play_section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8, 11, 18, 0.45) 0%, rgba(12, 18, 30, 0.65) 55%, #080b12 100%),
              linear-gradient(90deg, rgba(8, 11, 18, 0.25) 0%, rgba(8, 11, 18, 0.86) 65%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  justify-content: flex-end;
}

.hero-box {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(20, 38, 62, 0.78);
  border: 1px solid rgba(116, 186, 226, 0.35);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-sky);
  margin-bottom: 16px;
}

.hero-box h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.1rem, 4.4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  background: linear-gradient(#f5efe2, #d3e5ec);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
  margin-bottom: 16px;
}

.hero-box p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 1.05rem;
  color: #d6dfed;
  margin-bottom: 28px;
}

.play-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  height: 66px;
  background: rgba(227, 146, 39, 0.88);
  border: 1px solid var(--amber-bright);
  border-radius: 8px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(227, 146, 39, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.play-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.16);
  transition: width 0.45s ease;
}

.play-btn:hover::before { width: 100%; }
.play-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(227, 146, 39, 0.5); }

.hero-sub-links {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Main Content Layout */
.container {
  max-width: 1200px;
  margin: -24px auto 0;
  padding: 0 20px 64px;
  position: relative;
  z-index: 3;
}

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

@media (max-width: 960px) {
  .grid { grid-template-columns: 1fr; }
  .hero-inner { justify-content: center; }
  .nav-cta { display: none; }
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.card h2 {
  font-size: 1.12rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(116, 186, 226, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
}
.status-row:last-child { border-bottom: none; }

.badge {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}
.badge-on { background: rgba(61, 220, 132, 0.16); color: var(--green); border: 1px solid rgba(61, 220, 132, 0.45); }
.badge-off { background: rgba(255, 93, 108, 0.16); color: var(--red); border: 1px solid rgba(255, 93, 108, 0.45); }

.rates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.rate-box {
  background: var(--bg-elevated);
  border: 1px solid rgba(116, 186, 226, 0.18);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.rate-box:hover { transform: translateY(-2px); border-color: var(--amber-bright); }
.rate-val { font-size: 1.4rem; font-weight: 800; color: var(--amber-bright); }
.rate-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }

.news-item {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.news-item:last-child { border-bottom: none; }
.news-date { font-size: 0.76rem; font-weight: 600; color: var(--accent-sky); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px; }
.news-title { font-weight: 700; color: #fff; font-size: 1.04rem; margin-bottom: 4px; }
.news-body { font-family: 'Source Sans Pro', sans-serif; color: var(--muted); font-size: 0.96rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-gold { background: rgba(227, 146, 39, 0.9); border-color: var(--amber-bright); color: #fff; }
.btn-gold:hover { background: var(--amber); transform: translateY(-1px); }
.btn-dark { background: var(--bg-elevated); color: var(--text); border-color: var(--border); }
.btn-dark:hover { border-color: var(--accent-sky); }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 0.82rem; color: var(--muted); margin-bottom: 5px; }
.form-group input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(116, 186, 226, 0.2);
  background: rgba(8, 11, 18, 0.85);
  color: var(--text);
  font-size: 0.92rem;
}
.form-group input:focus { outline: none; border-color: var(--accent-sky); }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; font-size: 0.88rem; }
.alert-ok { background: rgba(61, 220, 132, 0.14); border: 1px solid rgba(61, 220, 132, 0.4); color: var(--green); }
.alert-err { background: rgba(255, 93, 108, 0.14); border: 1px solid rgba(255, 93, 108, 0.4); color: var(--red); }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
}
.tab-btn.active { background: var(--accent-blue); color: #fff; border-color: var(--accent-sky); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
th { color: var(--accent-sky); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; }
tr:hover td { background: rgba(116, 186, 226, 0.05); }

code {
  background: rgba(48, 159, 222, 0.16);
  color: var(--accent-sky);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.85em;
}

.footer {
  text-align: center;
  padding: 26px 20px;
  color: var(--muted);
  font-size: 0.82rem;
  border-top: 1px solid rgba(116, 186, 226, 0.12);
  background: rgba(8, 11, 18, 0.9);
}

/* Boutique Ogrines Cards (style screenshot utilisateur) */
.ogrine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.ogrine-card {
  background: linear-gradient(180deg, #171929 0%, #10121e 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.ogrine-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 193, 74, 0.55);
}

.ogrine-card.highlight {
  border: 1.5px solid #f0b146;
  box-shadow: 0 0 22px rgba(240, 177, 70, 0.18);
}

.ogrine-ribbon {
  background: linear-gradient(90deg, #e05e1b 0%, #f09d2c 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ogrine-body {
  padding: 16px 15px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ogrine-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.ogrine-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #c8cde0;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.ogrine-badge {
  background: rgba(45, 212, 147, 0.15);
  border: 1px solid rgba(45, 212, 147, 0.4);
  color: #4be3a5;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.ogrine-points {
  font-size: 1.85rem;
  font-weight: 800;
  color: #f6c453;
  line-height: 1.1;
}

.ogrine-points span {
  font-size: 0.86rem;
  font-weight: 500;
  color: #b7bdd4;
  margin-left: 4px;
}

.ogrine-breakdown {
  font-size: 0.78rem;
  margin-top: 6px;
  color: #9ba3bd;
  min-height: 40px;
}

.ogrine-breakdown .green { color: #4be3a5; font-weight: 600; }
.ogrine-breakdown .extra-gold { color: #f6c453; font-weight: 600; margin-top: 2px; }
.ogrine-breakdown .extra-purple { color: #b78cff; font-weight: 600; margin-top: 2px; }

.ogrine-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 14px 0 12px;
}

.ogrine-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.ogrine-price span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #9ba3bd;
  margin-left: 3px;
}

.ogrine-pay-btn {
  margin-top: auto;
  width: 100%;
  padding: 11px 10px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffd773 0%, #e5a93b 100%);
  color: #191306;
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(240, 177, 70, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ogrine-pay-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(240, 177, 70, 0.55);
}
