:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #3d7a52;
  --accent2: #07324d;
  --shadow: 0 10px 25px rgba(2, 6, 23, 0.08);
  --r: 16px;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.section.padding-bottom {
  padding-bottom: 16px;
}

.section:first-child {
  border-top: none;
}

.section h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
  color: rgb(16, 51, 72);
}

.grid {
  display: grid;
  gap: 12px;
}

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

@media (max-width: 720px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
}

.field {
  display: grid;
  gap: 6px;
}

label {
  font-size: 16px;
  color: var(--muted);
  font-weight: 400;
}

select,
input[type="text"],
input[type="email"],
input[type="number"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(187, 187, 187, 0.15);
  font-size: 14px;
  box-sizing: border-box;
  color: rgb(16, 51, 72);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}

.radio-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.radio {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background: #fff;
}

.radio:hover {
  border-color: #cbd5e1;
}

.radio input {
  margin-top: 3px;
}

.radio .t {
  font-weight: 600;
}

.radio .d {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.toggle-list {
  display: grid;
  gap: 10px;
}

.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.toggle .txt {
  display: grid;
  gap: 2px;
}

.toggle .txt b {
  font-size: 14px;
}

.toggle .txt span {
  font-size: 13px;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  color: var(--muted);
}

.pill strong {
  color: var(--text);
}

.btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  appearance: none;
  background: #fff;
  color: #103348;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.15s ease;
  border: 1px solid #103348;
  height: 40px;
  font-size: 14px;
}

button:hover {
  background: #103348;
  color: #FFF;
}

button.primary {
  border-color: #2DB26B;
  background: #2DB26B;
  color: #FFF;
}

button.primary:hover {
  background: #368A59;
  border-color: #368A59;
}

.note {
  font-size: 12px;
  color: var(--muted);
  padding-top: 16px;
  min-height: 16px;
}

.note.error {
  color: #dc2626;
}

.note.success {
  color: #16a34a;
}

.hidden {
  display: none !important;
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: #3d7a52;
  cursor: pointer;
}

.kpi {
  display: grid;
  gap: 12px;
}

.kpi .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.kpi .row .l {
  color: var(--muted);
  font-size: 13px;
}

.kpi .row .v {
  font-weight: 700;
  font-size: 16px;
}

.big {
  background: rgba(187, 187, 187, 0.15);
  border: 1px solid rgba(187, 187, 187, 0.15);
  border-radius: 10px;
  padding: 16px;
  display: grid;
  gap: 8px;
  color: var(--sep);
}

.big .price {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent2);
  letter-spacing: -0.02em;
}

.big .pts {
  font-size: 14px;
  color: var(--muted);
}

.big .usd {
  font-size: 14px;
  color: var(--muted);
}

/* ====== TOOLTIP SYSTEM ====== */
.tooltip-wrapper {
  position: relative;
  display: inline-block;
  margin-left: 5px;
  opacity: 0.5;
  overflow: visible;
}

.tooltip-wrapper:hover {
  opacity: 1;
}

.tooltip-icon {
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: rgb(71, 85, 105);
  font-size: 10px;
  font-weight: bold;
  cursor: help;
  user-select: none;
  position: relative;
  display: inline-block;
  line-height: 20px;
  text-align: center;
  border: 1px solid rgb(71, 85, 105);
}

.tooltip-box {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: #1a1f3a;
  color: white;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  white-space: normal;
  width: 280px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
  pointer-events: none;
  max-height: 90vh;
  overflow-y: auto;
}

.tooltip-title {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 10px;
}

.tooltip-content {
  font-size: 13px;
  line-height: 1.5;
}

/* Responsive tooltips for mobile */
@media (max-width: 768px) {
  .tooltip-box {
    width: 240px;
    font-size: 13px;
    padding: 12px;
    position: absolute;
  }
  
  .tooltip-title {
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .tooltip-content {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .tooltip-box {
    width: 200px;
    font-size: 12px;
    padding: 10px;
  }

  .tooltip-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .tooltip-content {
    font-size: 11px;
    line-height: 1.4;
  }
}

/* ====== FORM COMPONENTS ====== */
.label-container {
  display: flex;
  align-items: center;
}

.label-container-toggle {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.toggle-label {
  margin: 0;
}

.title-container {
  display: flex;
  align-items: center;
  gap: 0px;
}

.help-text {
  font-size: 12px;
  color: var(--muted);
}