:root {
  --ice-blue: #1f8dd6;
  --dark-blue: #0f4c81;
  --light-ice: #ebf8ff;
  --text-color: #2c3e50;
  --bg-light: #f4f7f9;
  --white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --success-green: #2ecc71;
}

/* Base Styles */
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Header */
header {
  background-color: var(--dark-blue);
  border-bottom: 3px solid var(--ice-blue);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 20px;
  min-height: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 1px;
}

.logo a {
  color: var(--white);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--ice-blue);
}

.logo img {
  max-height: 75px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
}

.header-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.header-actions button {
  width: 130px;
  min-width: 130px;
  height: 50px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.header-actions .hdr-lnk-pri {
  background-color: #4f8fce;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(31, 141, 214, 0.22);
}

.header-actions .hdr-lnk-pri:hover {
  background-color: #3f82bf;
  color: var(--white);
  transform: translateY(-2px);
}

.header-actions .hdr-lnk-sec {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  box-sizing: border-box;
}

.header-actions .hdr-lnk-sec:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Buttons */
.button-block {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.button-block .button {
  background-color: #4f8fce;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(31, 141, 214, 0.22);
}
.button-block .button:hover {
  background-color: #3f82bf;
  color: var(--white);
  transform: translateY(-2px);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  min-width: 128px;
}

.button-primary {
  background-color: #4f8fce;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(31, 141, 214, 0.22);
}

.button-primary:hover {
  background-color: #3f82bf;
  color: var(--white);
  transform: translateY(-2px);
}

.button-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.button-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

/* Sections Configuration */
.section {
  max-width: 1200px;
  margin: 20px auto 30px;
  background: var(--white);
  border-radius: 12px;
  padding: 35px;
  box-shadow: var(--shadow);
  box-sizing: border-box;
}

/* Typography */
h1,
h2,
h3 {
  color: var(--dark-blue);
  font-weight: 700;
  margin-top: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--light-ice);
  padding-bottom: 15px;
}

h2 {
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 20px;
  border-left: 4px solid var(--ice-blue);
  padding-left: 15px;
}

h3 {
  font-size: 19px;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--ice-blue);
}

p {
  margin-bottom: 20px;
  text-align: left;
  font-size: 16px;
  color: #4a5568;
}

/* Content Navigation Frame Box */
.table-of-contents-box {
  background-color: var(--white);
  border: 2px solid var(--ice-blue);
  border-radius: 12px;
  padding: 28px 34px;
  margin: 0 auto 34px;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.toc-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  text-align: center;
}

.table-of-contents-box ul {
  display: block;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.table-of-contents-box li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
  line-height: 1.4;
  text-align: left;
}

.table-of-contents-box li:last-child {
  margin-bottom: 0;
}

.table-of-contents-box li::before {
  content: "•";
  color: var(--ice-blue);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

.table-of-contents-box a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}

.table-of-contents-box a:hover {
  color: var(--ice-blue);
  transform: translateX(3px);
}

.intro-cta {
  margin: 20px 0 30px;
  text-align: center;
}

.intro-cta .button {
  min-width: 320px;
}

/* Custom Title Formatting Label */
.custom-title-label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-top: 25px;
  margin-bottom: 12px;
}

/* Author Block */
.author-block {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background-color: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
  font-size: 14px;
}

.author-avatar {
  background: var(--dark-blue);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Lists */
ul,
ol {
  margin-bottom: 25px;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
  font-size: 15px;
  color: #4a5568;
}

/* Animated Cards Architecture */
.animated-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin: 30px 0;
}

.animated-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.animated-card p {
  text-align: left;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 24px;
}

.promo-card {
  display: block;
  height: auto;
  min-height: 0;
  padding: 20px 24px;
}

.promo-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--dark-blue);
}

.promo-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.promo-value {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
}

.promo-card p {
  margin-bottom: 0;
}

.games-grid {
  align-items: stretch;
}

.game-card {
  display: flex;
  flex-direction: column;
  height: auto;
}

.game-card p {
  margin-bottom: 18px;
}

.game-card .custom-title-label {
  margin-top: 18px;
  min-height: 0;
  display: block;
}

.game-card .game-list-items {
  margin-top: 10px;
}

.animated-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(31, 141, 214, 0.15);
  border-color: var(--ice-blue);
}

.card-heading {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.card-highlight {
  background-color: var(--light-ice);
  color: var(--dark-blue);
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 15px;
}

.game-list-items {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
}

.game-list-items li {
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
  font-weight: 500;
  color: var(--text-color);
}

.game-list-items li:last-child {
  border-bottom: none;
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
  margin: 25px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--white);
}

th,
td {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  text-align: left;
}

th {
  background-color: var(--dark-blue);
  color: var(--white);
  font-weight: 600;
}

tr:nth-child(even) {
  background-color: var(--bg-light);
}

/* Expert Note */
.expert-note {
  background-color: var(--light-ice);
  border-left: 5px solid var(--ice-blue);
  padding: 20px;
  margin: 30px 0;
  border-radius: 0 8px 8px 0;
}

/* Deposit Form Layout */
.ice-deposit-box {
  border: 2px solid var(--ice-blue);
  border-radius: 10px;
  padding: 30px;
  background-color: var(--white);
  margin: 20px 0;
}

.ice-simulator-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-blue);
  margin-top: 0;
  margin-bottom: 20px;
}

.ice-form-group {
  margin-bottom: 20px;
}

.ice-form-group label {
  display: block;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 8px;
  font-size: 15px;
}

.ice-form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  background-color: var(--white);
  color: var(--text-color);
  outline: none;
  transition: border-color 0.2s;
}

.ice-form-control:focus {
  border-color: var(--ice-blue);
}

.ice-limit-info {
  font-size: 13px;
  color: #718096;
  margin-top: 6px;
  font-style: italic;
}

.ice-submit-btn {
  width: 100%;
  background-color: var(--ice-blue);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ice-submit-btn:hover {
  background-color: var(--dark-blue);
}

/* App Buttons Layout */
.mobile-install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
  margin: 25px 0 34px;
}

.mobile-install-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.mobile-install-card ul {
  margin-bottom: 20px;
}

.mobile-install-card .btn-app {
  margin-top: auto;
}

.mobile-install-grid + p {
  clear: both;
  margin-top: 20px;
}

.btn-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 220px;
  padding: 14px;
  text-align: center;
  font-weight: bold;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
  box-sizing: border-box;
}

.btn-android {
  background-color: #a4c639;
}
.btn-android:hover {
  background-color: #8db023;
}
.btn-ios {
  background-color: #111111;
}
.btn-ios:hover {
  background-color: #333333;
}

/* Reviews Section */
.reviews-container {
  display: grid;
  gap: 20px;
  margin-top: 25px;
}

.review-card {
  border-left: 4px solid var(--ice-blue);
  background: var(--bg-light);
  padding: 20px;
  border-radius: 0 8px 8px 0;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
}

.stars {
  color: #f1c40f;
}

/* FAQ pure CSS accordion */
.faq-container {
  margin-top: 25px;
}

.faq-item {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 12px;
  background: var(--white);
  overflow: hidden;
  position: relative;
}

.faq-question {
  padding: 18px 20px;
  font-weight: 700;
  color: var(--dark-blue);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  background-color: var(--white);
  color: #4a5568;
  font-size: 15px;
}

.toggle {
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.toggle:checked ~ .faq-answer {
  max-height: 100%;
  height: auto;
  padding: 0 20px 18px 20px;
  border-top: 1px solid var(--border-color);
}

.toggle:checked ~ .faq-question .icon {
  transform: rotate(180deg);
}

/* Footer Styles */
footer {
  background-color: #0b1116;
  color: #718096;
  padding: 50px 20px 20px 20px;
  border-top: 4px solid var(--dark-blue);
  font-size: 13px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  color: #a0aec0;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ice-blue);
}

.footer-payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pay-badge {
  background-color: #1a232d;
  color: #e2e8f0;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  border: 1px solid #2d3748;
}

.footer-divider {
  border: 0;
  border-top: 1px solid #1a232d;
  margin: 25px 0;
}

.footer-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.trust-badge-item {
  background: #111921;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: #cbd5e0;
  border: 1px dashed #2d3748;
}

.badge-18 {
  background: #e53e3e;
  color: var(--white);
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 50%;
}

.footer-warning {
  color: #e53e3e;
  font-weight: 600;
  margin-bottom: 20px;
  font-size: 12px;
}

.footer-legal-text {
  text-align: justify;
  font-size: 11px;
  color: #4a5568;
  line-height: 1.6;
}

.footer-copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #4a5568;
  border-top: 1px solid #1a232d;
  padding-top: 15px;
}

/* Responsive */
@media (max-width: 1220px) {
  .section {
    margin-left: 20px;
    margin-right: 20px;
    width: calc(100% - 40px);
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }
  .header-actions {
    width: 100%;
    justify-content: center;
  }
  .header-actions a {
    width: 140px;
    min-width: 140px;
  }
  h1 {
    font-size: 26px;
  }
  h2 {
    font-size: 20px;
  }
  .section {
    padding: 20px;
    margin-left: 10px;
    margin-right: 10px;
    width: calc(100% - 20px);
  }
  .animated-grid {
    grid-template-columns: 1fr;
  }
  .promo-card {
    padding: 18px 18px;
  }
  .promo-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .table-of-contents-box {
    padding: 22px 18px;
    max-width: 100%;
  }
  .table-of-contents-box li {
    text-align: left;
  }
  .intro-cta .button {
    width: 100%;
    min-width: 0;
  }
  .mobile-install-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .header-actions {
    flex-direction: column;
  }
  .header-actions a {
    width: 100%;
  }
}
