* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Space Grotesk', sans-serif;
      min-height: 100vh;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 20px;
    }

    .container {
      width: 100%;
      max-width: 480px;
      background: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(10px);
      border-radius: 24px;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      overflow: hidden;
    }

    .header {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 40px 32px;
      text-align: center;
      color: white;
    }

    .icon-wrapper {
      display: inline-flex;
      padding: 16px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 16px;
      margin-bottom: 16px;
    }

    .icon {
      width: 32px;
      height: 32px;
    }

    .title {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 8px;
      letter-spacing: -0.5px;
    }

    .subtitle {
      font-size: 16px;
      opacity: 0.9;
      font-weight: 400;
    }

    .converter-tabs {
      display: flex;
      padding: 24px 24px 0;
      gap: 12px;
    }

    .tab {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 14px 24px;
      background: transparent;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 15px;
      font-weight: 600;
      color: #6b7280;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .tab-icon {
      width: 20px;
      height: 20px;
    }

    .tab:hover {
      border-color: #667eea;
      background: rgba(102, 126, 234, 0.05);
      color: #667eea;
    }

    .tab.active {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-color: transparent;
      color: white;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    }

    .converter-panel {
      display: none;
      padding: 32px 24px;
      animation: fadeIn 0.4s ease;
    }

    .converter-panel.active {
      display: block;
    }

    @keyframes fadeIn {
      from {
        opacity: 0;
        transform: translateY(10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .input-group {
      margin-bottom: 24px;
    }

    .label {
      display: block;
      font-size: 14px;
      font-weight: 600;
      color: #374151;
      margin-bottom: 8px;
      letter-spacing: 0.3px;
    }

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

    .input {
      width: 100%;
      padding: 16px 70px 16px 20px;
      border: 2px solid #e5e7eb;
      border-radius: 12px;
      font-family: 'Space Grotesk', sans-serif;
      font-size: 18px;
      font-weight: 500;
      color: #111827;
      transition: all 0.3s ease;
      background: white;
    }

    .input:focus {
      outline: none;
      border-color: #667eea;
      box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
      transform: translateY(-1px);
    }

    .input::placeholder {
      color: #d1d5db;
    }

    .unit-badge {
      position: absolute;
      right: 16px;
      padding: 6px 12px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      letter-spacing: 0.5px;
    }

    .swap-button-container {
      display: flex;
      justify-content: center;
      margin: -12px 0;
      position: relative;
      z-index: 10;
    }

    .swap-button {
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border: 4px solid rgba(255, 255, 255, 0.95);
      border-radius: 50%;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    }

    .swap-button svg {
      width: 20px;
      height: 20px;
      color: white;
    }

    .swap-button:hover {
      transform: rotate(180deg) scale(1.1);
      box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }

    .swap-button:active {
      transform: rotate(180deg) scale(0.95);
    }

    .result-card {
      margin-top: 24px;
      padding: 20px;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
      border: 2px solid rgba(102, 126, 234, 0.2);
      border-radius: 16px;
    }

    .result-label {
      font-size: 12px;
      font-weight: 600;
      color: #6b7280;
      text-transform: uppercase;
      letter-spacing: 1px;
      margin-bottom: 8px;
    }

    .result-value {
      font-size: 18px;
      font-weight: 700;
      color: #667eea;
      letter-spacing: -0.3px;
    }

    .footer {
      padding: 24px 32px;
      border-top: 2px solid #f3f4f6;
      text-align: center;
    }

    .footer-text {
      font-size: 13px;
      color: #9ca3af;
      font-weight: 500;
    }

    @media (max-width: 480px) {
      .container {
        border-radius: 16px;
      }

      .header {
        padding: 32px 24px;
      }

      .title {
        font-size: 28px;
      }

      .converter-tabs {
        padding: 20px 16px 0;
      }

      .tab {
        padding: 12px 16px;
        font-size: 14px;
      }

      .converter-panel {
        padding: 28px 16px;
      }

      .input {
        font-size: 16px;
      }
    }
