  .container {
      max-width: 1200px;
      margin: 20px auto;
      background: rgba(255, 255, 255, 0.95);
      border-radius: 20px;
      box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
      overflow: hidden;
  }

  .header {
      background: linear-gradient(135deg, #1e5a64, #2d3748);
      color: white;
      text-align: center;
      padding: 40px 20px;
  }

  .header h1 {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 30px;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  .form-warranty {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
  }

  .search-section {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 20px;
      flex-wrap: wrap;
      /* margin-bottom: 30px; */
  }

  .radio-group {
      display: flex;
      gap: 30px;
      margin-bottom: 20px;
  }

  .radio-item {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      font-size: 1.5rem;
  }

  .radio-item input[type="radio"] {
      width: 20px;
      height: 20px;
      accent-color: #f56500;
  }

  .search-form {
      display: flex;
      gap: 15px;
      align-items: center;
      flex-wrap: wrap;
  }

  .search-input {
      padding: 15px 20px;
      border: 2px solid rgba(255, 255, 255, 0.3);
      border-radius: 50px;
      background: rgba(255, 255, 255, 0.2);
      color: white;
      font-size: 1.1rem;
      min-width: 300px;
      backdrop-filter: blur(10px);
  }

  .search-input::placeholder {
      color: rgba(255, 255, 255, 0.8);
  }

  .search-input:focus {
      outline: none;
      border-color: #f56500;
      background: rgba(255, 255, 255, 0.3);
  }

  .search-btn {
      padding: 15px 30px;
      background: linear-gradient(135deg, #f56500, #ff8c42);
      color: white;
      border: none;
      border-radius: 50px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 15px rgba(245, 101, 0, 0.3);
  }

  .search-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 20px rgba(245, 101, 0, 0.4);
  }

  .hotline {
      font-size: 1.7rem;
      margin-top: 20px;
      opacity: 0.9;
  }

  .content {
      padding: 40px;
  }

  .results-section {
      margin-top: 30px;
  }

  .result-item {
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      margin-bottom: 15px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
      overflow: hidden;
      transition: all 0.3s ease;
  }

  .result-item:hover {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .result-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px;
      background: linear-gradient(135deg, #f8fafc, #e2e8f0);
      cursor: pointer;
      transition: background 0.3s ease;
  }

  .result-header:hover {
      background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
  }

  .result-info {
      flex: 1;
  }

  .warranty-name {
      font-size: 2.3rem;
      font-weight: 600;
      color: #2d3748;
      margin-bottom: 8px;
  }

  .warranty-details {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      /* gap: 10px; */
      font-size: 1.3rem;
      color: #4a5568;
  }

  .warranty-details span {
      display: flex;
      align-items: center;
      gap: 5px;
  }

  .warranty-details .label {
      font-weight: 600;
      color: #2d3748;
  }

  .status-badge {
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      text-transform: uppercase;
  }

  .products-title p {
      font-size: 1.2rem;
  }

  .status-active {
      background: #c6f6d5;
      color: #22543d;
  }

  .status-inactive {
      background: #fed7d7;
      color: #742a2a;
  }

  .expand-btn {
      background: none;
      border: none;
      font-size: 1.5rem;
      color: #667eea;
      cursor: pointer;
      padding: 5px;
      border-radius: 50%;
      transition: all 0.3s ease;
      width: 35px;
      height: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .expand-btn:hover {
      background: rgba(102, 126, 234, 0.1);
      transform: scale(1.1);
  }

  .result-products {
      padding: 0 20px 20px;
      display: block;
  }

  .products-title {
      font-size: 1.6rem;
      font-weight: 600;
      color: #2d3748;
      margin: 15px 0;
      padding-bottom: 10px;
      border-bottom: 2px solid #e2e8f0;
  }

  .product-list {
      display: grid;
      gap: 12px;
  }

  .product-item {
      background: #f8fafc;
      padding: 15px;
      border-radius: 8px;
      border-left: 4px solid #667eea;
      transition: all 0.3s ease;
  }

  .product-item:hover {
      background: #e2e8f0;
      transform: translateX(5px);
  }

  .product-name {
      font-weight: 600;
      color: #2d3748;
      margin-bottom: 5px;
  }

  .product-details {
      font-size: 1.2rem;
      color: #4a5568;
  }

  @media (max-width: 768px) {
      .header h1 {
          font-size: 2rem;
      }

      .search-input {
          min-width: 250px;
          width: 100%;
      }

      .search-form {
          flex-direction: column;
          width: 100%;
      }

      .radio-group {
          justify-content: center;
      }

      .warranty-details {
          grid-template-columns: 1fr;
      }

      .result-header {
          flex-direction: column;
          gap: 15px;
          align-items: flex-start;
      }
  }
       .scanner-container {
        background: white;
        border-radius: 10px;
        padding: 30px;
        /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
        text-align: center;
    }
    .scan-btn {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 15px 30px;
        font-size: 18px;
        border-radius: 8px;
        cursor: pointer;
        margin: 10px;
        transition: all 0.3s ease;
        display: inline-flex;
        align-items: center;
        gap: 10px;
    }

    .scan-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .scan-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
        transform: none;
    }

    .camera-icon {
        width: 24px;
        height: 24px;
    }

    #video {
        width: 100%;
        max-width: 400px;
        height: 300px;
        border: 2px solid #ddd;
        border-radius: 8px;
        margin: 20px auto;
        background: #000;
    }

    .result-box {
        background: #e8f5e8;
        border: 2px solid #4caf50;
        border-radius: 8px;
        padding: 15px;
        margin: 20px 0;
        display: none;
    }

    .result-box.show {
        display: block;
    }

    .result-text {
        font-size: 16px;
        color: #2e7d32;
        word-break: break-all;
    }

     .controls {
        margin: 20px 0;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .status {
        color: #666;
        font-style: italic;
        margin: 10px 0;
    }

    .error {
        background: #ffebee;
        border: 2px solid #f44336;
        color: #c62828;
        padding: 15px;
        border-radius: 8px;
        margin: 20px 0;
        display: none;
    }

    .error.show {
        display: block;
    }

    .upload input[type="file"] {
        display: block;
        margin-top: 10px;
    }