:root {
    --wa-bg: transparent;
    --wa-card: #141722;
    --wa-card-alt: #10131a;
    --wa-border: rgba(255, 255, 255, 0.08);
    --wa-text: #e9edf5;
    --wa-muted: #9aa0a6;
    --wa-accent: #4effff;
    --wa-warning: #fbbf24; 
    --wa-success: #27ae60;
    --wa-danger: #e74c3c;
    --wa-ring: rgba(78, 255, 255, 0.25);
    --wa-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --wa-radius: 16px;
  }
  .wa-bot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--wa-text);
  }
  .wa-bot-wrapper * {
    box-sizing: border-box;
  }
  .wa-bot-app {
    width: 100%;
    max-width: 540px;
    background: linear-gradient(180deg, var(--wa-card), var(--wa-card-alt));
    border: 1px solid var(--wa-border);
    border-radius: var(--wa-radius);
    box-shadow: var(--wa-shadow);
    display: flex;
    flex-direction: column;
  }
  .wa-bot-header {
    padding: 24px 24px 16px;
    text-align: center;
  }
  .wa-bot-header h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--wa-text);
    letter-spacing: 0.3px;
  }
  .wa-bot-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--wa-muted);
  }
  .wa-bot-content {
    padding: 0 24px 24px;
    flex: 1;
  }
  .wa-bot-alert {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
  }
  .wa-bot-alert-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wa-warning);
    margin-bottom: 8px;
  }
  .wa-bot-alert-title svg {
    width: 18px;
    height: 18px;
  }
  .wa-bot-alert p {
    margin: 0;
    color: #fef3c7;
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .wa-bot-alert p strong {
    color: var(--wa-warning);
  }
  .wa-bot-rules {
    background: rgba(78, 255, 255, 0.04);
    border: 1px solid rgba(78, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 24px;
  }
  .wa-bot-rules-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--wa-accent);
    margin-bottom: 12px;
  }
  .wa-bot-rules-title svg {
    width: 18px;
    height: 18px;
  }
  .wa-bot-rules ul {
    margin: 0;
    padding-left: 20px;
    color: #bfc5d1;
    font-size: 0.85rem;
    line-height: 1.6;
  }
  .wa-bot-rules li {
    margin-bottom: 8px;
  }
  .wa-bot-rules li:last-child {
    margin-bottom: 0;
  }
  .wa-bot-rules strong {
    color: var(--wa-text);
    display: block;
    margin-bottom: 2px;
  }
  .wa-bot-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
  }
  .wa-bot-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--wa-muted);
    margin-left: 4px;
  }
  .wa-bot-input {
    appearance: none;
    width: 100%;
    background: #0f1117;
    border: 1px solid var(--wa-border);
    border-radius: 12px;
    padding: 14px 16px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--wa-text);
    transition: border-color 0.2s, box-shadow 0.2s;
  }
  .wa-bot-input::placeholder {
    color: #4a4f5c;
  }
  .wa-bot-input:focus {
    outline: none;
    border-color: var(--wa-accent);
    box-shadow: 0 0 0 4px var(--wa-ring);
  }
  .wa-bot-btn {
    width: 100%;
    appearance: none;
    background: var(--wa-accent);
    color: #000;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-family: inherit;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, filter 0.2s, opacity 0.2s;
  }
  .wa-bot-btn:hover {
    filter: brightness(1.1);
  }
  .wa-bot-btn:active {
    transform: scale(0.98);
  }
  .wa-bot-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  .wa-bot-footer-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--wa-muted);
    margin-top: 16px;
  }
  .wa-bot-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  .wa-bot-modal.open {
    display: flex;
  }
  .wa-bot-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
  }
  .wa-bot-modal-content {
    position: relative;
    z-index: 1;
    background: var(--wa-card);
    border: 1px solid var(--wa-border);
    border-radius: var(--wa-radius);
    padding: 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--wa-text);
  }
  @keyframes modalPop {
    from { opacity: 0; transform: scale(0.9) translateY(15px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
  }
  .wa-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
  }
  .wa-bot-modal.success .wa-modal-icon {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
  }
  .wa-bot-modal.error .wa-modal-icon {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
  }
  .wa-modal-title {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 700;
  }
  .wa-modal-desc {
    margin: 0;
    color: var(--wa-muted);
    font-size: 0.9rem;
    line-height: 1.5;
  }
  .wa-waitlist-display {
    display: none;
    margin: 20px 0;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(78, 255, 255, 0.15);
  }
  .wa-bot-modal.success .wa-waitlist-display {
    display: block;
  }
  .wa-waitlist-label {
    font-size: 0.8rem;
    color: var(--wa-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
  }
  .wa-waitlist-number {
    font-size: 3.5rem; 
    font-weight: 700;
    line-height: 1;
    color: var(--wa-accent);
    text-shadow: 0 0 20px rgba(78, 255, 255, 0.4);
  }
  .wa-modal-close {
    margin-top: 20px;
    background: #1f2332;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
  }
  .wa-modal-close:hover {
    background: #2a2f42;
  }
  .wa-spinner {
    width: 18px;
    height: 18px;
    border: 3px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
  }
  @keyframes spin { 
    to { transform: rotate(360deg); } 
  }
  @media (max-width: 600px) {
    .wa-bot-wrapper { padding: 0; align-items: flex-start; }
    .wa-bot-app { border-radius: 0; border: none; min-height: 100vh; justify-content: center; }
  }