
  .card-form {
  /* width: 100%;  */
    max-width: 440px;
    padding: 30px;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    margin: 0 auto;
  }
  
  
  
  
  .card-display {
      
      
      
         background-color: #d9a8a8;
    background-image: repeating-linear-gradient( -45deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 4px ), linear-gradient(135deg, #ffb0bd, #bf7380 40%, #a05362), radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2), transparent 60%);
    background-blend-mode: overlay, normal, screen;
    
    
    
    
    color: #fff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    height: 210px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  
  
  
  
  
  
.card-number {
    font-size: clamp(1rem, 4vw, 1.6rem); 
    letter-spacing: 2.5px;
    font-family: monospace;
    cursor: text;
    outline: none;
    display: flex;
    transition: box-shadow 0.3s;
}
  
  
  
  
  
  .card-number.focused {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
    padding: 15px;
    border-radius: 10px;
    background-color: #cdd1db4a;
  }
  
  
  
  
    .card-number span {
    
    color: #fffbe6;
    text-shadow: 1px 1px 1px rgb(0 0 0 / 70%), -1px -1px 0 rgb(255 255 255 / 30%), 0 2px 2px rgb(0 0 0 / 30%);
    background: linear-gradient(to bottom, #fffbd5, #eac400);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    min-width: 20px;
        font-family: 'Courier New', monospace;
  
    }
  
  
  /*
  .card-number span {
    transition: all 0.3s ease;
    min-width: 20px;
  }
  
  
  */
  
  
  
  
  
  
  
  
  
  .animate-in {
    animation: fadeIn 0.3s;
  }
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .card-brand {
    position: absolute;
    top: 20px;
    right: 25px;
    font-weight: 700;
    font-size: 1.1rem;
  }
  .card-bank {
    position: absolute;
    bottom: 50px;
    left: 25px;
    font-size: 0.95rem;
    opacity: 0.9;
  }
  .card-privacy {
    position: absolute;
    bottom: 15px;
    right: 20px;
    font-size: 1.3rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
  }
  .card-privacy i {
    margin-right: 5px;
  }
  .card-privacy .tooltip {
    visibility: hidden;
    background-color: #fff;
    color: #000;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    bottom: 30px;
    right: 0;
    font-size: 0.75rem;
    width: 200px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 1;
    transition: opacity 0.3s;
    opacity: 0;
  }
  .card-privacy:hover .tooltip {
    visibility: visible;
    opacity: 1;
  }
 
  .validation-message {
    margin-top: 15px;
    padding: 10px;
    background: #f8d7da;
    border-radius: 5px;
    color: #721c24;
    font-weight: 600;
    display: none;
    text-align: center;
  }
  .bin-checker__button {
    width: 100%;
    padding: 12px;
    background: #ff0a0a9c;
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 15px;
    display: flex;
    justify-content: space-around;
    align-items: center;
  }
  .bin-checker__button:hover {
    background: #ff0a0abf;
  }
  #hiddenInput {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }
  
  
  
  
  
  @media screen and (max-width: 550px) {
  .card-number span {
     min-width: 15px;
  }
  
  
  .card-form {
      
      padding: 15px;
  }
  
}


@media screen and (max-width: 360px) {
  .card-number span {
    min-width: 8px;
  }
}






@media screen and (max-width: 275px) {
  .card-number {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.7;
  
  }
  
  
    .card-number span {
    min-width: 4px;
  }
  
  
  
  .card-display {
  min-height: 250px;
  }
  
}



