* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  background: #f8faff;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    sans-serif;
}

img,
video,
iframe {
  max-width: 100%;
}

.finance-card {
  background: #ffffff;
  max-width: 480px;
  width: 100%;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2px 1.8rem;
  position: relative;
  overflow-x: hidden;
}

@media (min-width: 481px) {
  .finance-card {
    border-left: 2px solid #1a5cff;
    border-right: 2px solid #1a5cff;
    border-radius: 4px;
    box-shadow: 0 16px 48px rgba(26, 92, 255, 0.07);
  }
}

@media (max-width: 480px) {
  .finance-card {
    padding: 2px 1.2rem;
  }
}

@media (max-width: 400px) {
  .finance-card {
    padding: 2px 1rem;
  }
}

@media (max-width: 380px) {
  .finance-card {
    padding: 2px 0.9rem;
  }
}

.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

.highlight-blue {
  color: #1a5cff;
  position: relative;
}

h1,
h2,
h3,
h4,
p,
li {
  overflow-wrap: break-word;
}

.highlight-blue::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(26, 92, 255, 0.15);
  border-radius: 4px;
}

.subhead {
  color: #2e405b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, #e3ecfa, transparent);
  margin: 0.8rem 0 1.2rem;
}

.footnote {
  margin-top: 0.8rem;
  font-size: 0.7rem;
  color: #8a9fb8;
  text-align: center;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.footnote i {
  color: #1a5cff;
  font-size: 0.65rem;
}

.back-link,
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #1a5cff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
  width: fit-content;
}

.back-link:hover,
.back-btn:hover {
  color: #0f4ad6;
}

.back-btn {
  font-weight: 600;
  padding: 0.5rem 0;
  margin-bottom: 0.5rem;
  transition: all 0.2s ease;
}

.back-btn:hover {
  transform: translateX(-4px);
}

.back-btn i {
  font-size: 0.8rem;
}

.ads-container {
  width: calc(100% + 3.6rem);
  margin: 5px -1.8rem;
  background: #f6faff;
  padding: 8px 0 12px;
  border-top: 1px solid #e8eef9;
  border-bottom: 1px solid #e8eef9;
  overflow: hidden;
}

@media (max-width: 480px) {
  .ads-container {
    width: calc(100% + 2.4rem);
    margin-left: -1.2rem;
    margin-right: -1.2rem;
  }
}

@media (max-width: 400px) {
  .ads-container {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

@media (max-width: 380px) {
  .ads-container {
    width: calc(100% + 1.8rem);
    margin-left: -0.9rem;
    margin-right: -0.9rem;
  }
}

.ad-label {
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
  color: #8a9fb8;
  margin-bottom: 8px;
}

.ad-unit-wrapper {
  width: 100%;
  max-width: 100%;
  min-height: 250px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gpt-ad-slot {
  display: block;
  width: 100%;
  max-width: min(336px, 100%);
  min-width: 0;
  min-height: 250px;
  margin: 0 auto;
  text-align: center;
  line-height: 0;
  overflow: hidden;
}

.gpt-ad-slot > div,
.gpt-ad-slot iframe {
  margin: 0 auto;
  max-width: 100%;
}

@media (max-width: 480px) {
  .gpt-ad-slot {
    max-width: 100%;
  }
}

@media (min-width: 321px) and (max-width: 375px) {
  .ad-unit-wrapper,
  .gpt-ad-slot {
    min-height: 280px;
  }
}

@media (max-width: 320px) {
  .ad-label {
    margin-bottom: 5px;
  }

  .ad-unit-wrapper,
  .gpt-ad-slot {
    min-height: 280px;
  }
}
