/* General Reset */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
body { font-family: 'Poppins', sans-serif; background-color: #f8fafc; color: #1e293b; padding-bottom: 50px; overflow-x: hidden; }

/* Hero & Particles */
.hero {
    background: linear-gradient(135deg, #4c1d95 0%, #db2777 100%);
    padding: 60px 20px; text-align: center; color: white; position: relative; overflow: hidden;
}
.logo-icon {
    background: linear-gradient(to bottom, #fde68a, #f59e0b);
    width: 60px; height: 60px; margin: 0 auto 15px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 30px;
}
.hero h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -1px; }
.subtitle { opacity: 0.9; font-size: 0.95rem; margin-bottom: 15px; }

.badge-row { display: flex; justify-content: center; gap: 10px; }
.badge { background: rgba(0,0,0,0.2); padding: 6px 14px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; border: 1px solid rgba(255,255,255,0.2); }
.b-green { color: #4ade80; }
.b-yellow { color: #facc15; }

.particle {
    position: absolute; background: rgba(255,255,255,0.4);
    border-radius: 50%; pointer-events: none; animation: floatUp linear infinite;
}
@keyframes floatUp {
    from { transform: translateY(0) scale(1); opacity: 0; }
    20% { opacity: 1; }
    to { transform: translateY(-150px) scale(0.5); opacity: 0; }
}

/* Search Bar */
.search-wrap { max-width: 500px; margin: -28px auto 30px; padding: 0 15px; position: relative; z-index: 10; }
.search-box { background: white; padding: 14px 20px; border-radius: 15px; display: flex; align-items: center; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.search-box input { border: none; outline: none; width: 100%; margin-left: 12px; font-family: inherit; font-size: 1rem; }

/* Cards */
.container { max-width: 600px; margin: 0 auto; padding: 0 15px; }
.brand-card {
    background: white; border-radius: 20px; padding: 18px; margin-bottom: 15px;
    display: flex; justify-content: space-between; align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.brand-left { display: flex; align-items: center; gap: 15px; }
.brand-circle { width: 55px; height: 55px; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 1.3rem; }
.brand-info h3 { font-size: 1.05rem; font-weight: 700; }
.brand-info p { font-size: 0.9rem; color: #db2777; font-weight: 700; }
.btn-get { background: #4c1d95; color: white; border: none; padding: 10px 20px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* Modal & Code Display */
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(15,23,42,0.95); z-index: 1000; align-items: center; justify-content: center; }
.modal-content { background: white; padding: 30px; border-radius: 28px; width: 90%; max-width: 400px; text-align: center; }

.code-display {
    background: #0f172a; color: #f8fafc; padding: 15px 5px; border: 2px solid #334155;
    border-radius: 12px; font-family: 'Courier New', monospace; font-size: 1.25rem;
    font-weight: 800; margin: 15px 0; letter-spacing: 2px;
    /* Forces everything on one line */
    white-space: nowrap; overflow: hidden; display: block;
}

.hidden-part { color: #db2777; text-shadow: 0 0 8px rgba(219, 39, 119, 0.4); }

.spinner { border: 4px solid #f1f5f9; border-top: 4px solid #db2777; border-radius: 50%; width: 40px; height: 40px; animation: spin 1s linear infinite; margin: 20px auto; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Captcha & Text */
.captcha-container { margin-top: 15px; min-height: 80px; background: #f1f5f9; border-radius: 12px; padding: 10px; }
.res-label { font-size: 0.75rem; font-weight: 700; color: #64748b; }
.res-sub { font-size: 0.85rem; color: #475569; margin: 10px 0; line-height: 1.4; }
.hidden { display: none; }

/* Small Device Fix */
@media (max-width: 370px) {
    .code-display { font-size: 1.1rem; letter-spacing: 1px; }
}