body.magic-calculator-page {
  --radius: 14px;
  --magic-gap: 10px;
  --primary: #e6007a;
  background: #ffcc99 !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-style: normal !important;
  padding: 0 var(--magic-gap) !important;
  overflow-x: hidden;
}

body.magic-calculator-page .logo {
  width: 100%;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: var(--radius);
}

.magic-page {
  width: 100%;
  margin: 0;
  padding: 0;
}

.magic-box {
  background: #fc9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 29, 29, 0.7);
  margin-bottom: 10px;
  padding: 14px 12px;
  text-align: center;
}

.magic-box.magic-hero-box {
  margin-top: 10px;
}

.magic-hero-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--primary);
}

.magic-hero-sub {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: #222;
  line-height: 1.55;
}

.magic-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}

.magic-cal-icon {
  font-size: 18px;
  line-height: 1;
}

.magic-date-text {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
}

.magic-date-hint {
  margin: 0;
  font-size: 11px;
  color: #222;
  font-weight: 500;
}

.magic-tool-box {
  text-align: left;
}

.magic-tool-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.magic-tool-icon {
  font-size: 20px;
  line-height: 1;
}

.magic-tool-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: #c2410c;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.magic-tool-text {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 500;
  color: #222;
  line-height: 1.5;
}

.magic-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.magic-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 29, 29, 0.25);
  border-radius: 999px;
  background: #fff8f1;
  padding: 12px 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  outline: none;
  text-align: center;
}

.magic-input::placeholder {
  color: #888;
}

.magic-radio-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.magic-radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
}

.magic-radio-label input {
  accent-color: #6d28d9;
}

.magic-btn {
  width: 100%;
  border: 0;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 12px 14px;
  cursor: pointer;
  color: #fff;
  line-height: 1.2;
}

.magic-btn-navy {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
}

.magic-btn-orange {
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.25);
}

.magic-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.magic-result {
  margin-top: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #fff7cc;
  border: 1px solid #f5d565;
  text-align: left;
}

.magic-result[hidden] {
  display: none !important;
}

.magic-result-label {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #666;
}

.magic-result-value {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
  line-height: 1.5;
  word-break: break-word;
}

.magic-result-note {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 500;
  color: #444;
  line-height: 1.45;
}

.magic-guide-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.magic-guide-box {
  text-align: left;
}

.magic-guide-box p {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.55;
  color: #222;
  font-weight: 500;
}

.magic-guide-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

.magic-guide-list li {
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: #222;
  font-weight: 500;
}

.magic-faq-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  text-align: left;
}

.magic-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.magic-faq-item {
  border: 1px solid rgba(255, 29, 29, 0.25);
  border-radius: 10px;
  background: #fff8f1;
  overflow: hidden;
}

.magic-faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-align: left;
  cursor: pointer;
  line-height: 1.4;
}

.magic-faq-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #4f8cff 0%, #2563eb 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.28s ease;
}

.magic-faq-item.is-open .magic-faq-icon {
  transform: rotate(45deg);
}

.magic-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease 0.04s;
}

.magic-faq-answer-inner {
  overflow: hidden;
  min-height: 0;
}

.magic-faq-answer-inner p {
  margin: 0;
  padding: 0 12px 12px;
  font-size: 11px;
  line-height: 1.55;
  color: #333;
  font-weight: 500;
}

.magic-faq-item.is-open .magic-faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.magic-footer {
  margin: 10px 0 100px;
}

.magic-footer-zone-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.magic-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}

.magic-footer-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 29, 29, 0.7);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
}

.magic-footer-zone-sub {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
}

body.magic-calculator-page .magic-refresh-btn,
body.magic-calculator-page .vip-zone-btn {
  position: fixed;
  bottom: 12px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid rgba(255, 29, 29, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

body.magic-calculator-page .magic-refresh-btn {
  right: 12px;
  left: auto;
  background: #fff8f1;
  color: #111;
}

body.magic-calculator-page .vip-zone-btn {
  left: 12px;
  right: auto;
  transform: none;
  background: #ff0016;
  color: #fff;
  border-color: #ff0016;
}

@media screen and (max-width: 480px) {
  .magic-hero-title {
    font-size: 18px;
  }
}
