* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, Poppins, Arial, sans-serif;
}

body {
  background: #070707;
  color: #fff;
}

.client-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, #050505, #151515, #2b2b2b);
}

.client-gate.hidden {
  display: none;
}

.client-gate-box {
  width: min(100%, 460px);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  padding: 28px;
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
}

.gate-brand {
  color: #aaa;
  letter-spacing: 4px;
  font-size: 12px;
  margin-bottom: 10px;
}

.client-gate-box h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.gate-sub {
  color: #bdbdbd;
  margin-bottom: 18px;
  line-height: 1.5;
}

.client-gate-box input {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #101010;
  color: #fff;
  outline: none;
  font-size: 14px;
  margin-bottom: 12px;
}

.client-gate-box input:focus {
  border-color: #fff;
}

.client-gate-box form {
  display: grid;
}

.client-gate-box button {
  width: 100%;
  margin-top: 6px;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
}

.calculator-locked .main-layout {
  pointer-events: none;
  user-select: none;
  opacity: 0.35;
  filter: blur(2px);
}

.calculator-page {
  min-height: 100vh;
  padding: 45px 18px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255,255,255,0.08), transparent 25%),
    linear-gradient(135deg, #050505, #151515, #2b2b2b);
}

.top-area {
  max-width: 1250px;
  margin: 0 auto 35px;
}

.top-area p {
  color: #aaa;
  letter-spacing: 5px;
  font-size: 13px;
  margin-bottom: 12px;
}

.top-area h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 14px;
}

.top-area span {
  color: #d0d0d0;
  font-size: 17px;
}

.main-layout {
  max-width: 1250px;
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: start;
}

.left-panel {
  display: grid;
  gap: 20px;
}

.right-panel {
  position: sticky;
  top: 24px;
  align-self: start;
  max-height: calc(100vh - 48px);
  z-index: 20;
}

.quote-box {
  background: #f3f3f3;
  color: #111;
  border-radius: 32px;
  padding: 28px;
  box-shadow: 0 35px 90px rgba(0,0,0,0.55);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.35);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.095);
}

.card-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.service-card h2 {
  font-size: 22px;
  margin-bottom: 8px;
}

.service-card p {
  color: #bdbdbd;
  line-height: 1.5;
}

.counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.counter-row span {
  color: #eeeeee;
}

.counter {
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 18px;
  overflow: hidden;
}

.counter button {
  width: 42px;
  height: 38px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 22px;
  cursor: pointer;
  font-weight: 700;
}

.counter b {
  width: 50px;
  text-align: center;
  font-size: 16px;
}

.switch {
  position: relative;
  width: 62px;
  height: 34px;
  flex-shrink: 0;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #333;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s;
}

.switch span:before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + span {
  background: #fff;
}

.switch input:checked + span:before {
  transform: translateX(28px);
  background: #111;
}

.check-line,
.seo-plan {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(0,0,0,0.26);
  border: 1px solid rgba(255,255,255,0.12);
  margin-top: 12px;
  cursor: pointer;
}

.check-line input,
.seo-plan input {
  width: 19px;
  height: 19px;
  accent-color: #fff;
}

.seo-plan small {
  display: block;
  color: #b7b7b7;
  margin-top: 5px;
  line-height: 1.4;
}

.custom-box {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  margin-top: 12px;
}

.custom-box input {
  padding: 15px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.16);
  background: #101010;
  color: #fff;
  outline: none;
}

.custom-box button {
  padding: 15px 22px;
  border: none;
  border-radius: 15px;
  background: #fff;
  color: #111;
  font-weight: 800;
  cursor: pointer;
}

.quote-label {
  font-weight: 800;
  color: #555;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.quote-box h3 {
  font-size: 44px;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.quote-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.quote-header .quote-label {
  margin-bottom: 4px;
}

.edit-details-link {
  border: none;
  background: none;
  padding: 0;
  color: #666;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.edit-details-link:hover {
  color: #111;
}

.services-label {
  font-size: 13px;
  font-weight: 800;
  color: #444;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.download-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #fff;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.2s ease;
}

.download-btn:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.bar {
  flex-shrink: 0;
  height: 12px;
  width: 100%;
  background: #ddd;
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 22px;
}

#barFill {
  height: 100%;
  width: 0%;
  background: #111;
  border-radius: 50px;
  transition: 0.4s ease;
}

.summary-list {
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  padding-right: 4px;
}

.summary-list::-webkit-scrollbar {
  width: 6px;
}

.summary-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 13px;
  border-radius: 16px;
  animation: pop 0.25s ease;
}

.summary-item span {
  font-size: 13px;
  line-height: 1.4;
}

.summary-item b {
  white-space: nowrap;
}

.empty {
  color: #777;
  font-size: 14px;
}

.reset-btn,
.whatsapp-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 15px;
  border-radius: 16px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.reset-btn {
  background: #e4e4e4;
  color: #111;
  flex-shrink: 0;
  margin-top: 14px;
}

.whatsapp-btn {
  background: #111;
  color: #fff;
  flex-shrink: 0;
}

.note {
  color: #666;
  font-size: 12px;
  margin-top: 14px;
  line-height: 1.5;
  flex-shrink: 0;
}

.toggle-details {
  width: 100%;
  margin-top: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  padding: 14px 16px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  transition: 0.3s ease;
}

.toggle-details:hover {
  background: rgba(255,255,255,0.08);
}

.service-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease,
    margin-top 0.3s ease,
    padding-top 0.3s ease;
}

.service-details.active {
  max-height: 3200px;
  opacity: 1;
  margin-top: 18px;
  padding-top: 16px;
}

.seo-tier {
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-tier:last-child {
  margin-bottom: 0;
}

.seo-tier h4 {
  margin-top: 0;
  color: #f0f0f0;
}

.service-card:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.095);
}

.toggle-details::after {
  content: "";
  float: right;
  opacity: 0.6;
}

.service-details h4 {
  font-size: 16px;
  margin: 16px 0 10px;
  color: #fff;
}

.service-details ul {
  list-style: none;
  display: grid;
  gap: 9px;
}

.service-details li {
  color: #bfbfbf;
  font-size: 14px;
  line-height: 1.45;
  position: relative;
  padding-left: 18px;
}

.service-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #fff;
}

.seo-plan:has(input:disabled) {
  opacity: 0.45;
  cursor: not-allowed;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media(max-width: 950px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .right-panel {
    position: relative;
    top: 0;
    max-height: none;
  }

  .quote-box {
    max-height: none;
    overflow: visible;
  }

  .summary-list {
    overflow-y: visible;
    flex: none;
  }
}

@media(max-width: 560px) {
  .calculator-page {
    padding: 35px 14px;
  }

  .service-card,
  .quote-box {
    border-radius: 22px;
    padding: 18px;
  }

  .card-title {
    flex-direction: column;
  }

  .custom-box {
    grid-template-columns: 1fr;
  }

  .check-line,
  .seo-plan {
    grid-template-columns: auto 1fr;
  }

  .check-line b,
  .seo-plan b {
    grid-column: 2;
  }

  .quote-box h3 {
    font-size: 38px;
  }
}
.base-price {
  display: block;
  margin-top: 8px;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.price-switch-box {
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:7px;
  flex-shrink:0;
}