.sc-root {
    --sc-primary: #10b981;
    --sc-primary-dark: #059669;
    --sc-bg-glass: rgba(255, 255, 255, 0.7);
    --sc-border-glass: rgba(255, 255, 255, 0.4);
    --sc-shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);

    max-width: 62rem;
    margin: 2rem auto;
    padding: 1rem;
  }

  .theme-dark .sc-root {
    --sc-bg-glass: rgba(15, 23, 42, 0.6);
    --sc-border-glass: rgba(255, 255, 255, 0.1);
    --sc-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  }

  .sc-card {
    background: var(--sc-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--sc-border-glass);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--sc-shadow-glass);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: sc-fade-in 0.5s ease-out forwards;
  }

  .sc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.15);
  }

  .sc-input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  @media (max-width: 768px) {
    .sc-input-grid {
      grid-template-columns: 1fr;
    }
  }

  .sc-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .sc-input-group label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .theme-dark .sc-input-group label {
    color: #94a3b8;
  }

  .sc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
  }

  .sc-input-wrap input,
  .sc-input-wrap select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    border: 2px solid #e2e8f0;
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
  }

  .theme-dark .sc-input-wrap input,
  .theme-dark .sc-input-wrap select {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
  }

  .sc-input-wrap input:focus,
  .sc-input-wrap select:focus {
    border-color: var(--sc-primary);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
  }

  .sc-unit {
    position: absolute;
    right: 1.25rem;
    font-weight: 700;
    color: #94a3b8;
    pointer-events: none;
  }

  .sc-input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
  }

  .sc-results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px dashed #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .theme-dark .sc-results {
    border-top-color: #334155;
  }

  .sc-total-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 1.5rem 2rem;
    border-radius: 1.25rem;
    border: 1px solid #e2e8f0;
  }

  .theme-dark .sc-total-header {
    background: #0f172a;
    border-color: #1e293b;
  }

  .sc-total-label {
    font-size: 1.125rem;
    font-weight: 800;
    color: #334155;
  }

  .theme-dark .sc-total-label {
    color: #f1f5f9;
  }

  .sc-total-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--sc-primary-dark);
  }

  .theme-dark .sc-total-value {
    color: var(--sc-primary);
  }

  .sc-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
  }

  .sc-breakdown-item {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .theme-dark .sc-breakdown-item {
    background: rgba(30, 41, 59, 0.4);
    border-color: rgba(255, 255, 255, 0.05);
  }

  .sc-breakdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
  }

  .sc-breakdown-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
  }

  .theme-dark .sc-breakdown-value {
    color: #f1f5f9;
  }

  .sc-info-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 1rem;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .theme-dark .sc-info-alert {
    background: rgba(30, 58, 138, 0.1);
    border-color: rgba(30, 58, 138, 0.3);
  }

  .sc-info-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.125rem;
  }

  .sc-info-alert p {
    font-size: 0.875rem;
    color: #1e40af;
    line-height: 1.5;
    margin: 0;
  }

  .theme-dark .sc-info-alert p {
    color: #93c5fd;
  }

  .sc-action-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1rem;
  }

  .sc-btn-copy {
    background: var(--sc-primary);
    color: #fff;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .sc-btn-copy svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
  }

  .sc-btn-copy:hover {
    background: var(--sc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
  }

  .sc-pulse {
    animation: sc-pulse-anim 0.5s ease-out;
  }

  @keyframes sc-pulse-anim {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }

  @keyframes sc-fade-in {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }