#wecode-form.wecode-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    background: #111;
    color: #fff;
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
  }
  
  @media (max-width: 768px) {
    #wecode-form.wecode-grid { grid-template-columns: 1fr; }
  }
  
  .wecode-card {
    background: #1b1b1b;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: .8rem;
  }
  
  .wecode-card.full-width {
    grid-column: span 2;
    background: #222;
    text-align: center;
    margin-bottom: 4rem;
  }
  
  @media (max-width: 768px) {
    .wecode-card.full-width { grid-column: span 1; }
  }
  
  .wecode-option {
    display: block;
    cursor: pointer;
    background: #222;
    border-radius: 8px;
    transition: background .2s;
  }
  .wecode-option span{
    padding: 10px 20px;
    display: block;
  }
  .wecode-option:hover { background: #333; }
  
  .wecode-option input { display: none; }
  
  .wecode-option input:checked + span {
    background: #7b3fe4;
    color: #fff;
    border-radius: 6px;

  }
  .wecode-card button {
    background-color: #7b3fe4;
    border: none;
    color: #fff;
    padding: .9rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
  }
  .wecode-btn {
    background-color: #7b3fe4;
    border: none;
    color: #fff;
    padding: .9rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 1rem;
    font-weight: 600;
  }
  
  .wecode-card input[type="email"], .wecode-card input[type="text"] {
    width: 100%;
    padding: .8rem 1rem;
    border: 2px solid #333;
    margin:0 auto;
    border-radius: 8px;
    background: #1b1b1b;
    color: #fff;
    transition: border-color .3s;
  }

  .wecode-card .wecode-btn{
    width: 100%;
    margin:0 auto;
  }
  
  .wecode-card input[type="email"]:focus, .wecode-card input[type="text"]:focus {
    border-color: #7b3fe4;
    outline: none;
  }
  
  #wecode-result {
    text-align: center;
    margin-top: 2rem;
    color: #fff;
  }
  
  .wecode-loader {
    width: 40px;
    height: 40px;
    border: 4px solid #444;
    border-top-color: #7b3fe4;
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    100% { transform: rotate(360deg); }
  }
  
  .fade-in { animation: fadeIn .6s ease-in-out; }
  @keyframes fadeIn { from {opacity:0;} to {opacity:1;} }
  

  /* === ADMIN MODAL === */
.wecode-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.6);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  .wecode-modal.active { display: flex !important; }
  .wecode-modal-content {
    background: #fff;
    padding: 24px 28px;
    max-width: 600px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: fadeInModal .25s ease;
  }
  .wecode-close {
    position: absolute;
    top: 10px;
    right: 14px;
    cursor: pointer;
    color: #555;
    font-size: 22px;
    line-height: 1;
    transition: color 0.2s ease;
  }
  .wecode-close:hover { color: #000; }
  @keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  

  .wecode-export {
    margin-top: 20px;
    display: inline-block;
    background: #2271b1;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  
  .wecode-export:hover {
    background: #1b5c91;
  }