/* =====================================================
   LEGALSTHAL — GST CALCULATOR
   Corporate Design System
   ===================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/RecklessCondensedS-TRIAL-Book.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/midnight-sans-rd-12-medium-trial.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('../assets/fonts/midnight-sans-rd-12-semibold-trial.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  
  src: url('../assets/fonts/RobotoMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  
  src: url('../assets/fonts/RobotoMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ─── DESIGN TOKENS ─── */
:root {
  --primary:        #255E8E;
  --primary-dark:   #1d4d77;
  --primary-light:  #EBF3FA;
  --primary-mid:    #3a7ab5;
  --accent:         #F28C28;
  --accent-dark:    #d97916;
  --accent-light:   #FEF3E2;
  --success:        #16A34A;
  --success-light:  #DCFCE7;
  --danger:         #DC2626;
  --danger-light:   #FEE2E2;

  --bg-page:        #F1F5F9;
  --bg-card:        #FFFFFF;
  --bg-section:     #F8FAFC;

  --text-main:      #0F172A;
  --text-body:      #334155;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  --border:         #E2E8F0;
  --border-focus:   #255E8E;
  --shadow-sm:      0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:      0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.05);
  --shadow-lg:      0 10px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.07);
  --shadow-xl:      0 20px 60px rgba(15, 23, 42, 0.16);

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      16px;
  --radius-xl:      20px;

  --font:           'Inter', "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
  --font-mono:      'Inter', "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;

  --transition:     all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3, h4, h5, h6, .brand-name, .section-title, .panel-title, .modal-title, .result-title {
  font-family: 'Inter', "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

.breakdown-value, .result-badge, .form-input, .minput {
  font-family: var(--font-mono) !important;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 16px 60px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 480px) {
  body {
    padding: 12px 10px 48px;
  }
}

/* ─── PAGE WRAPPER ─── */
.page-wrapper {
  width: 100%;
  max-width: 660px;
  min-width: 0;
}

@media (max-width: 480px) {
  .page-wrapper {
    max-width: 100%;
    padding: 0;
  }
}

/* ─── CALCULATOR CARD ─── */
.calc-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  animation: cardIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── CARD HEADER ─── */
.card-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--accent);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.70);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.header-badge {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

/* ─── CARD BODY ─── */
.card-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ─── SECTION TITLE ─── */
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ─── FORM GROUPS ─── */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 8px;
  letter-spacing: 0.1px;
}

.label-icon {
  color: var(--primary);
  font-size: 13px;
  width: 14px;
  text-align: center;
}

/* ─── AMOUNT INPUT ─── */
.input-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  transition: var(--transition);
  overflow: hidden;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 94, 142, 0.12);
}

.input-prefix {
  padding: 0 14px;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  height: 48px;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--border);
  user-select: none;
  transition: var(--transition);
}

.input-wrapper:focus-within .input-prefix {
  border-right-color: var(--primary);
}

.form-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 16px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
  height: 48px;
  font-family: var(--font);
  background: transparent;
  min-width: 0;
}

.form-input::placeholder {
  color: var(--text-light);
  font-weight: 400;
}

/* Error state */
.form-group.has-error .input-wrapper {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.field-error {
  display: block;
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 16px;
  font-weight: 500;
}

/* ─── SELECT / DROPDOWN ─── */
.select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
  font-family: var(--font);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 94, 142, 0.12);
}

.form-select:hover {
  border-color: var(--primary-mid);
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
  transition: var(--transition);
}

.select-wrapper:focus-within .select-arrow {
  color: var(--primary);
  transform: translateY(-50%) rotate(180deg);
}

/* ─── RADIO PILLS ─── */
.radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.radio-pill {
  flex: 1;
  min-width: 130px;
  cursor: pointer;
}

.radio-pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pill-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-section);
  transition: var(--transition);
  text-align: center;
  user-select: none;
}

.radio-pill:hover .pill-content {
  border-color: var(--primary-mid);
  color: var(--primary);
  background: var(--primary-light);
}

.radio-pill input[type="radio"]:checked + .pill-content {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 94, 142, 0.30);
}

.radio-pill input[type="radio"]:focus-visible + .pill-content {
  outline: 3px solid rgba(37, 94, 142, 0.35);
  outline-offset: 2px;
}

.calc-type-hint {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.5;
}

.calc-type-hint i {
  color: var(--primary);
  margin-top: 2px;
  font-size: 12px;
  flex-shrink: 0;
}

/* ─── CALCULATE BUTTON ─── */
.btn-calculate {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  letter-spacing: 0.2px;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.btn-calculate::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.5s ease;
}

.btn-calculate:hover::after {
  left: 140%;
}

.btn-calculate:hover {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
  box-shadow: 0 6px 20px rgba(37, 94, 142, 0.40);
  transform: translateY(-1px);
}

.btn-calculate:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 94, 142, 0.25);
}

/* ─── DIVIDER ─── */
.result-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1.5px dashed var(--border);
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
  display: none;
}

.result-section.visible {
  display: block;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── RESULT HEADER ─── */
.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.result-title-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.result-icon {
  font-size: 24px;
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.result-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.result-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.result-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  border: 1px solid rgba(37,94,142,0.18);
}

/* ─── BREAKDOWN GRID ─── */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}

.breakdown-item {
  background: var(--bg-section);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}

.breakdown-item.highlight {
  background: var(--accent-light);
  border-color: rgba(242, 140, 40, 0.30);
}

.breakdown-item.total {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-color: var(--primary-dark);
  border-width: 2px;
}

.breakdown-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.breakdown-item.total .breakdown-label {
  color: rgba(255,255,255,0.75);
}

.breakdown-label i {
  font-size: 11px;
  width: 12px;
  text-align: center;
}

.breakdown-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1;
}

.breakdown-value.accent {
  color: var(--accent-dark);
}

.breakdown-value.total-value {
  color: #fff;
  font-size: 26px;
}

/* ─── ACTION BUTTONS ─── */
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.btn-action {
  flex: 1;
  min-width: 110px;
  height: 46px;
  padding: 0 20px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-action:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-action.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-action.accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(242, 140, 40, 0.40);
  transform: translateY(-1px);
}

.btn-action:active {
  transform: translateY(0);
}

/* ─── LEAD BANNER ─── */
.lead-banner {
  background: linear-gradient(135deg, #EBF3FA 0%, #DBEAFE 100%);
  border: 1.5px solid rgba(37, 94, 142, 0.20);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.lead-icon-wrap {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.lead-content {
  flex: 1;
  min-width: 180px;
}

.lead-question {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 3px;
}

.lead-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.btn-expert {
  height: 44px;
  padding: 0 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-expert:hover {
  background: var(--accent-dark);
  box-shadow: 0 4px 16px rgba(242, 140, 40, 0.42);
  transform: translateY(-1px);
}

.btn-expert:active {
  transform: translateY(0);
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.60);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  position: relative;
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--danger-light);
  border-color: var(--danger);
  color: var(--danger);
}

.modal-header {
  text-align: center;
  margin-bottom: 28px;
}

.modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  margin: 0 auto 16px;
  box-shadow: 0 6px 20px rgba(37, 94, 142, 0.35);
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── MODAL FORM ─── */
.mform-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mform-group {
  margin-bottom: 16px;
}

.mform-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 6px;
}

.req {
  color: var(--danger);
}

.mform-input,
.mform-select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 400;
  color: var(--text-main);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
  outline: none;
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.mform-input:focus,
.mform-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 94, 142, 0.12);
}

.mform-input.error,
.mform-select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

.mfield-error {
  display: block;
  font-size: 12px;
  color: var(--danger);
  margin-top: 4px;
  min-height: 14px;
  font-weight: 500;
}

.btn-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  margin-top: 4px;
}

.btn-submit:hover {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary) 100%);
  box-shadow: 0 6px 20px rgba(37, 94, 142, 0.38);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ─── MODAL SUCCESS ─── */
.modal-success {
  display: none;
  text-align: center;
  padding: 20px 0;
  animation: slideUp 0.35s ease both;
}

.modal-success.visible {
  display: block;
}

.success-icon {
  font-size: 64px;
  color: var(--success);
  margin-bottom: 16px;
  animation: bounceIn 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes bounceIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

.modal-success h4 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.modal-success p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.btn-close-success {
  height: 44px;
  padding: 0 32px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-close-success:hover {
  background: #15803D;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.40);
  transform: translateY(-1px);
}

/* ─── TOAST NOTIFICATION ─── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text-main);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.30s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.30s ease;
  opacity: 0;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  color: #4ADE80;
  font-size: 16px;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 480px) {
  body {
    padding: 16px 12px 48px;
  }

  .card-header {
    padding: 18px 18px;
  }

  .card-body {
    padding: 24px 18px;
  }

  .section-title {
    font-size: 20px;
  }

  .breakdown-grid {
    grid-template-columns: 1fr;
  }

  .breakdown-item.total {
    grid-column: 1;
  }

  .breakdown-value.total-value {
    font-size: 22px;
  }

  .action-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn-action {
    min-width: unset;
    width: 100%;
    height: 46px;
    border-radius: 50px;
    font-size: 14px;
    justify-content: center;
    margin-bottom: 0;
  }

  .mform-row {
    grid-template-columns: 1fr;
  }

  .lead-banner {
    flex-direction: column;
    text-align: center;
  }

  .lead-content {
    min-width: unset;
  }

  .btn-expert {
    width: 100%;
    justify-content: center;
  }

  .header-badge {
    font-size: 11px;
    padding: 5px 10px;
  }

  .brand-name {
    font-size: 16px;
  }

  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .result-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .result-badge {
    align-self: flex-start;
  }

  .toast {
    font-size: 13px;
    padding: 10px 18px;
    max-width: 90vw;
    white-space: normal;
    text-align: center;
  }

  .modal-card {
    padding: 24px 18px;
  }
}

@media (max-width: 360px) {
  .radio-group {
    flex-direction: column;
  }

  .radio-pill {
    min-width: unset;
  }
}

/* Tools Page Theme Toggle Button */
.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  margin-left: 12px;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.05);
}

.theme-toggle-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(20deg);
}

html[data-theme="light"] .theme-toggle-btn .sun-icon {
  display: none;
}
html[data-theme="light"] .theme-toggle-btn .moon-icon {
  display: block;
}
html:not([data-theme="light"]) .theme-toggle-btn .sun-icon {
  display: block;
}
html:not([data-theme="light"]) .theme-toggle-btn .moon-icon {
  display: none;
}



