:root {
  --bg:#0b1020;
  --card:#121830;
  --accent:#11c5a1;
  --soft:#a6b0cf;
  --text:#e6eefc;
  --muted:#8aa0c5;
  --font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  --font-size: 1rem;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family);
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

button {
  font-family: var(--font-family);
  font-size: var(--font-size);
}

a {
  color: var(--accent);
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px;
}

.header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

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

.brand h1 {
  font-size: 22px;
  margin: 0;
}

.langs {
  justify-content: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.langs button {
  border: 1px solid transparent;
  background: transparent;
  padding: 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  opacity: 0.85;
  transition: all 0.2s;
}

.langs button.active, .langs button:hover {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 197, 161, 0.15);
}

.langs img {
  width: 24px;
  height: 18px;
  border-radius: 3px;
}

.langs span {
  font-size: 12px;
  color: var(--soft);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
  margin: 18px 0 8px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero h2 {
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 10px;
}

.hero p {
  font-size: 16px;
  color: var(--soft);
  margin: 0 0 16px;
}

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

.btn {
  padding: 12px 16px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #1a2242;
  color: #fff;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(90deg, #12d3a5, #0bb39c);
}

.hero-widget {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.widget-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 6px;
}

.chart {
  position: relative;
  flex: 1;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.chart svg {
  width: 100%;
  height: 100%;
}

.chart path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: dash 4s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: 0;
  }
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0;
}

.tab {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 14px 12px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--soft);
}

.tab.active {
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(17, 197, 161, 0.15);
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  margin: 10px 0;
}

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

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

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

.plan {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: #121a36;
}

.plan h4 {
  margin: 0 0 6px;
}

.plan .price {
  font-size: 22px;
  font-weight: 700;
}

.rules {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.rules thead th {
  font-size: 12px;
  color: var(--muted);
  text-align: left;
  padding: 6px 10px;
}

.rules tbody td {
  background: #0f1733;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rules tbody td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.rules tbody td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px 0;
  color: var(--muted);
  font-size: 13px;
}

.badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  padding: 6px 12px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cfe8ff;
  background: rgba(255, 255, 255, 0.03);
}

.notice {
  font-size: 12px;
  color: #97a7ca;
  margin-top: 8px;
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

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

  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}
/* v4.3 inline brand logo (same row as flags) */
#brand-inline-logo {
  height: 40px;
  /* keep the three words readable */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 16px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

@media (max-width: 900px) {
  #brand-inline-logo {
    height: 36px;
  }
}
@media (max-width: 680px) {
  #brand-inline-logo {
    height: 32px;
  }
}
/* v4.4 top-left PropexOne logo */
#brand-top-logo {
  height: 220px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 18px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  image-rendering: -webkit-optimize-contrast;
  margin-left: 12px;
  margin-top: 6px;
}

@media (max-width: 900px) {
  #brand-top-logo {
    height: 220px;
  }
}
@media (max-width: 680px) {
  #brand-top-logo {
    height: 220px;
  }
}
/* v4.5 enlarged top-left logo (64px) */
#brand-top-logo {
  height: 220px;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-right: 20px;
  margin-top: 2px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
  image-rendering: -webkit-optimize-contrast;
}

@media (max-width: 900px) {
  #brand-top-logo {
    height: 220px;
  }
}
@media (max-width: 680px) {
  #brand-top-logo {
    height: 220px;
  }
}