.apc-root {
  --apc-accent: #6366f1;
  --apc-accent-glow: rgba(99, 102, 241, 0.35);
  --apc-success: #22c55e;
  --apc-warn: #f59e0b;
  --apc-danger: #ef4444;
  --apc-surface: var(--bg-surface);
  --apc-page: var(--bg-page);
  --apc-text: var(--text-main);
  --apc-muted: var(--text-muted);
  --apc-base: var(--text-base);
  --apc-border: var(--border-color);

  width: 100%;
  padding: 1rem 0;
}

.apc-card {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  background: var(--apc-surface);
  border: 1px solid var(--apc-border);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -4px rgba(0, 0, 0, 0.08);
}

.apc-stage {
  position: relative;
  padding: 2rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--apc-border);
  overflow: hidden;
}

.apc-stage-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--apc-accent-glow) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.6s ease;
}

.apc-carousel {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.apc-appliance {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  border: 1.5px solid var(--apc-border);
  background: transparent;
  color: var(--apc-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.apc-appliance:hover {
  border-color: var(--apc-accent);
  color: var(--apc-text);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -8px var(--apc-accent-glow);
}

.apc-appliance.apc-active {
  background: var(--apc-accent);
  border-color: var(--apc-accent);
  color: #fff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 12px 32px -8px var(--apc-accent-glow);
}

.apc-appliance svg {
  width: 32px;
  height: 32px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.apc-appliance.apc-active svg {
  transform: scale(1.1);
}

.apc-hero-num {
  text-align: center;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.apc-hero-label {
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--apc-muted);
  margin: 0 0 0.375rem;
}

.apc-hero-value {
  font-size: clamp(3rem, 9vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin: 0;
  color: var(--apc-base);
  letter-spacing: -0.03em;
}

.apc-hero-unit {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 400;
  color: var(--apc-muted);
}

.apc-currency-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.apc-currency-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--apc-muted);
}

.apc-currency-btns {
  display: flex;
  gap: 0.3rem;
}

.apc-currency-btn {
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--apc-border);
  background: var(--apc-page);
  color: var(--apc-muted);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.apc-currency-btn:hover {
  border-color: var(--apc-accent);
  color: var(--apc-text);
}

.apc-currency-btn.apc-currency-active {
  background: var(--apc-accent);
  border-color: var(--apc-accent);
  color: #fff;
}

.apc-body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.apc-section-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--apc-accent);
  margin: 0;
}

.apc-pill-track {
  display: flex;
  background: var(--apc-page);
  border: 1px solid var(--apc-border);
  border-radius: 14px;
  padding: 0.3rem;
  position: relative;
}

.apc-pill-btn {
  flex: 1;
  padding: 0.55rem 0.25rem;
  border-radius: 11px;
  border: none;
  background: transparent;
  color: var(--apc-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.25s;
  position: relative;
  z-index: 1;
}

.apc-pill-btn:hover {
  color: var(--apc-text);
}

.apc-pill-indicator {
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  height: calc(100% - 0.6rem);
  border-radius: 11px;
  background: var(--apc-accent);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.apc-pill-btn.apc-active {
  color: #fff;
}

.apc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.apc-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.apc-field-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--apc-muted);
}

.apc-field-input {
  width: 100%;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--apc-text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--apc-border);
  padding: 0.2rem 0;
  outline: none;
  transition: border-color 0.2s;
}

.apc-field-input:focus {
  border-color: var(--apc-accent);
}

.apc-field-unit {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--apc-muted);
}

.apc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  user-select: none;
}

.apc-toggle input {
  display: none;
}

.apc-toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--apc-border);
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}

.apc-toggle input:checked + .apc-toggle-track {
  background: var(--apc-success);
}

.apc-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.apc-toggle input:checked + .apc-toggle-track::after {
  transform: translateX(20px);
}

.apc-toggle-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--apc-text);
}

.apc-clock {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--apc-page);
  border: 1px solid var(--apc-border);
  border-radius: 20px;
  padding: 1rem 1.25rem;
}

.apc-clock-dial {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 2px solid var(--apc-border);
  position: relative;
  flex-shrink: 0;
  background: var(--apc-surface);
}

.apc-clock-dial::before {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1px dashed var(--apc-border);
  opacity: 0.5;
}

.apc-clock-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2.5px;
  height: 28px;
  background: var(--apc-accent);
  border-radius: 3px;
  transform-origin: bottom center;
  transform: translate(-50%, -100%) rotate(0deg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.apc-clock-center {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apc-accent);
  transform: translate(-50%, -50%);
}

.apc-clock-hours {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex: 1;
}

.apc-hour-chip {
  min-width: 38px;
  padding: 0.3rem 0.4rem;
  border-radius: 10px;
  border: 1px solid var(--apc-border);
  background: var(--apc-surface);
  color: var(--apc-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.apc-hour-chip:hover {
  border-color: var(--apc-accent);
  color: var(--apc-text);
}

.apc-hour-chip.apc-active {
  background: var(--apc-accent);
  border-color: var(--apc-accent);
  color: #fff;
  box-shadow: 0 4px 12px -3px var(--apc-accent-glow);
}

.apc-hour-chip.apc-peak {
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--apc-danger);
}

.apc-hour-chip.apc-peak:hover {
  border-color: var(--apc-danger);
  background: rgba(239, 68, 68, 0.06);
}

.apc-hour-chip.apc-peak.apc-active {
  background: var(--apc-danger);
  border-color: var(--apc-danger);
  color: #fff;
  box-shadow: 0 4px 12px -3px rgba(239, 68, 68, 0.35);
}

.apc-receipt {
  background: var(--apc-page);
  border: 1px solid var(--apc-border);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  position: relative;
  margin-top: 0.5rem;
}

.apc-receipt::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0.75rem;
  right: 0.75rem;
  height: 14px;
  background:
    linear-gradient(135deg, var(--apc-surface) 7px, transparent 0),
    linear-gradient(225deg, var(--apc-surface) 7px, transparent 0);
  background-size: 14px 14px;
  background-position: top left, top right;
  background-repeat: repeat-x;
}

.apc-receipt-title {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--apc-muted);
  margin: 0 0 1rem;
  text-align: center;
}

.apc-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--apc-border);
  font-size: 0.85rem;
}

.apc-receipt-row:last-of-type {
  border-bottom: none;
}

.apc-receipt-name {
  font-weight: 600;
  color: var(--apc-text);
}

.apc-receipt-price {
  font-weight: 800;
  color: var(--apc-base);
  font-size: 0.9rem;
}

.apc-receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.625rem;
  padding-top: 0.75rem;
  border-top: 2px solid var(--apc-border);
}

.apc-receipt-total-name {
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--apc-text);
}

.apc-receipt-total-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--apc-accent);
}

.apc-receipt-year {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--apc-muted);
  margin-top: 0.625rem;
}

.apc-tip {
  padding: 1.25rem 1.5rem 1.5rem;
}

.apc-tip-card {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 20px;
  padding: 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.apc-tip-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.08);
  filter: blur(20px);
}

.apc-tip-title {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--apc-success);
  margin: 0 0 0.5rem;
  position: relative;
  z-index: 1;
}

.apc-tip-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--apc-text);
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}

.apc-tip-badge {
  display: inline-block;
  margin-top: 0.625rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--apc-success);
  padding: 0.35rem 0.875rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  position: relative;
  z-index: 1;
}

@media (max-width: 520px) {
  .apc-card {
    border-radius: 22px;
  }

  .apc-stage {
    padding: 1.5rem 1rem 1rem;
  }

  .apc-carousel {
    gap: 0.5rem;
  }

  .apc-appliance {
    padding: 0.75rem 1rem;
    font-size: 0.65rem;
  }

  .apc-appliance svg {
    width: 26px;
    height: 26px;
  }

  .apc-body {
    padding: 1rem;
    gap: 1rem;
  }

  .apc-fields {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  .apc-clock {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
  }

  .apc-clock-hours {
    width: 100%;
    justify-content: center;
  }

  .apc-receipt {
    padding: 1rem;
  }

  .apc-tip {
    padding: 1rem;
  }
}
