.svc-root {
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.3);
    --nav-border: rgba(0, 0, 0, 0.05);
    --toggle-bg: rgba(0, 0, 0, 0.04);
    --slider-bg: #fff;
    --slider-shadow: rgba(0, 0, 0, 0.1);
    --btn-active-color: #0f172a;
    --btn-color: #64748b;
    --sidebar-bg: rgba(0, 0, 0, 0.015);
    --sidebar-border: rgba(0, 0, 0, 0.05);
    --label-color: #475569;
    --input-bg: #fff;
    --input-border: rgba(0, 0, 0, 0.1);
    --input-text: #0f172a;
    --tooltip-bg: #1e293b;
    --card-bg: #fff;
    --card-border: rgba(0, 0, 0, 0.05);
    --stat-value: #0f172a;
    --text-muted: #64748b;
    --insight-bg: #f8fafc;
    --progress-bg: rgba(0, 0, 0, 0.05);
    --empty-title: #1e293b;

    max-width: 1000px;
    margin: 2rem auto 5rem;
  }

  .theme-dark .svc-root {
    --glass-bg: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.6);
    --nav-bg: rgba(30, 41, 59, 0.3);
    --nav-border: rgba(255, 255, 255, 0.05);
    --toggle-bg: rgba(255, 255, 255, 0.05);
    --slider-bg: #1e293b;
    --slider-shadow: rgba(0, 0, 0, 0.3);
    --btn-active-color: #fff;
    --btn-color: #94a3b8;
    --sidebar-bg: rgba(0, 0, 0, 0.2);
    --sidebar-border: rgba(255, 255, 255, 0.05);
    --label-color: #94a3b8;
    --input-bg: #0f172a;
    --input-border: rgba(255, 255, 255, 0.1);
    --input-text: #fff;
    --tooltip-bg: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --stat-value: #fff;
    --text-muted: #94a3b8;
    --insight-bg: rgba(255, 255, 255, 0.02);
    --progress-bg: rgba(255, 255, 255, 0.05);
    --empty-title: #f1f5f9;
  }

  .svc-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px var(--glass-shadow), inset 0 0 0 1px var(--glass-border);
    overflow: hidden;
  }

  .svc-nav {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
  }

  .svc-toggle {
    position: relative;
    display: flex;
    background: var(--toggle-bg);
    padding: 4px;
    border-radius: 16px;
    width: 340px;
  }

  .svc-toggle-btn {
    flex: 1;
    z-index: 2;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--btn-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.4s ease;
  }

  .svc-toggle-btn.svc-active { color: var(--btn-active-color); }

  .svc-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--slider-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--slider-shadow);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  }

  .svc-toggle.svc-switch .svc-slider { transform: translateX(100%); }

  .svc-nav-icon {
    display: flex;
    align-items: center;
  }

  .svc-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 550px;
  }

  .svc-sidebar {
    padding: 2.5rem;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    display: flex;
    flex-direction: column;
  }

  .svc-section-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: 2rem;
  }

  .svc-inputs {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-bottom: 3rem;
  }

  .svc-input-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .svc-input-box label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--label-color);
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .svc-input-icon {
    color: #6366f1;
    flex-shrink: 0;
  }

  .svc-label-icon {
    display: flex;
    align-items: center;
    color: #6366f1;
    flex-shrink: 0;
  }

  .svc-info-trigger {
    position: relative;
    color: #94a3b8;
    cursor: help;
    display: flex;
    align-items: center;
    transition: color 0.2s;
  }

  .svc-info-trigger:hover { color: #6366f1; }

  .svc-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--tooltip-bg);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4;
    width: 200px;
    text-align: center;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
  }

  .svc-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--tooltip-bg) transparent transparent transparent;
  }

  .svc-info-trigger:hover .svc-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .svc-input-wrap { position: relative; }

  .svc-input-wrap input,
  .svc-input-wrap select {
    width: 100%;
    padding: 14px 18px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    font-size: 1.05rem;
    color: var(--input-text);
    font-weight: 600;
    transition: all 0.3s ease;
    appearance: none;
  }

  .svc-input-wrap input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.1);
  }

  .svc-select-wrap { position: relative; }

  .svc-select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #94a3b8;
  }

  .svc-sidebar-action { margin-top: auto; }

  .svc-btn-primary {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border: none;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 12px 24px -6px rgba(79, 70, 229, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .svc-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -8px rgba(79, 70, 229, 0.5);
    filter: brightness(1.1);
  }

  .svc-sparkle { animation: svc-pulse 2s infinite; }

  .svc-viewport {
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .svc-empty {
    text-align: center;
    max-width: 360px;
  }

  .svc-placeholder {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
  }

  .svc-circle {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 100px;
  }

  .svc-c1 {
    background: rgba(99, 102, 241, 0.05);
    animation: svc-pulse 3s infinite;
  }

  .svc-c2 {
    background: rgba(99, 102, 241, 0.08);
    animation: svc-pulse 3s infinite 1.5s;
    transform: scale(0.8);
  }

  .svc-placeholder-icon {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    color: #6366f1;
  }

  .svc-empty h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--empty-title);
    margin-bottom: 0.75rem;
  }

  .svc-empty p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .svc-results {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .svc-valuation {
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    padding: 3rem;
    border-radius: 28px;
    color: #fff;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.4);
  }

  .svc-roi-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #818cf8;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
  }

  .svc-amount {
    font-size: 4.5rem;
    font-weight: 900;
    letter-spacing: -3px;
    margin-bottom: 0.5rem;
  }

  .svc-range {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
    opacity: 0.8;
  }

  .svc-analytics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .svc-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .svc-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }

  .svc-stat-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: #94a3b8;
    text-transform: uppercase;
  }

  .svc-stat-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--stat-value);
  }

  .svc-stat-desc {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
  }

  .svc-icon-warn { color: #f59e0b; }
  .svc-icon-ok { color: #10b981; }

  .svc-progress {
    height: 8px;
    background: var(--progress-bg);
    border-radius: 100px;
    overflow: hidden;
  }

  .svc-bar {
    height: 100%;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 100px;
  }

  .svc-bar-er { background: linear-gradient(to right, #6366f1, #c084fc); }
  .svc-bar-cpm { background: #10b981; }

  .svc-insight {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--insight-bg);
    padding: 1rem 1.5rem;
    border-radius: 14px;
    border-left: 4px solid #6366f1;
  }

  .svc-insight-icon {
    color: #6366f1;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .svc-insight p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
  }

  .svc-hidden {
    display: none;
  }

  .svc-fadein { animation: svc-fadein 0.4s ease; }

  @keyframes svc-pulse {
    0%, 100% {
      opacity: 1;
      transform: scale(1);
    }

    50% {
      opacity: 0.6;
      transform: scale(1.1);
    }
  }

  @keyframes svc-fadein {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 900px) {
    .svc-grid {
      grid-template-columns: 1fr;
    }

    .svc-sidebar {
      border-right: none;
      border-bottom: 1px solid var(--sidebar-border);
    }
  }

  @media (max-width: 600px) {
    .svc-analytics {
      grid-template-columns: 1fr;
    }

    .svc-amount {
      font-size: 3rem;
    }
  }