/* ==========================================================
   HAWSI MODDER SIGNATURE SYSTEM
   Black + Yellow neon + Green glow + Red accents + Smoke
   ========================================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
    background: #050505;
    color: #e9e9e9;
    font-family: 'Segoe UI','Roboto',system-ui,sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
:root {
    --yellow:#FFD400; --yellow-soft:#ffd40044;
    --green:#00FF94;  --green-soft:#00ff9444;
    --red:#FF3B3B;    --red-soft:#ff3b3b55;
    --glass-bg:rgba(255,255,255,0.03);
    --glass-border:rgba(255,255,255,0.08);
}

/* ============== SMOKE BG ============== */
.smoke {
    position: fixed; inset: 0;
    background:
      radial-gradient(900px 600px at 10% 20%, rgba(255,212,0,0.07), transparent 60%),
      radial-gradient(800px 700px at 90% 80%, rgba(0,255,148,0.06), transparent 60%),
      radial-gradient(700px 700px at 50% 50%, rgba(255,59,59,0.05), transparent 60%);
    filter: blur(30px);
    z-index: 0;
    animation: drift 22s ease-in-out infinite alternate;
    pointer-events: none;
}
.smoke2 {
    background:
      radial-gradient(700px 500px at 80% 20%, rgba(255,212,0,0.05), transparent 60%),
      radial-gradient(600px 600px at 20% 80%, rgba(0,255,148,0.05), transparent 60%);
    animation-duration: 35s;
    animation-direction: alternate-reverse;
    opacity: .8;
}
@keyframes drift {
    0%   { transform: translate(-3%,-2%) scale(1); }
    50%  { transform: translate(2%, 3%) scale(1.05); }
    100% { transform: translate(-2%,2%) scale(1); }
}

/* ============== GLASS ============== */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04);
}

/* ============== TOPBAR ============== */
.topbar {
    position: sticky; top: 12px; z-index: 30;
    margin: 12px; padding: 12px 18px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.brand { display: flex; flex-direction: column; line-height: 1.05; }
.title-glow {
    font-weight: 900; font-size: 20px; letter-spacing: 2px;
    color: var(--yellow);
    text-shadow: 0 0 4px var(--yellow), 0 0 10px rgba(255,212,0,.55), 0 0 22px rgba(255,212,0,.35);
    animation: pulseY 2.6s ease-in-out infinite alternate;
}
.title-sub {
    color: var(--green); font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 6px rgba(0,255,148,.55);
    margin-top: 2px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; }
.user-badge {
    color: var(--green); border: 1px solid var(--green-soft);
    padding: 4px 10px; border-radius: 999px; font-size: 12px;
    text-shadow: 0 0 6px var(--green-soft);
}

/* ============== HERO ============== */
.container {
    position: relative; z-index: 1;
    padding: 18px 14px 110px;
    max-width: 1100px; margin: 0 auto;
    text-align: center;
}
.hero { margin: 18px 0 22px; }
.neon-title-big {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 900; color: var(--yellow); letter-spacing: 3px;
    text-shadow: 0 0 6px var(--yellow), 0 0 22px rgba(255,212,0,.6), 0 0 38px rgba(255,212,0,.35);
    animation: pulseY 2.4s ease-in-out infinite alternate;
}
.neon-title-mid {
    font-size: 22px; color: var(--yellow); font-weight: 800; letter-spacing: 2px;
    text-shadow: 0 0 6px var(--yellow), 0 0 18px rgba(255,212,0,.5);
    text-align: center; margin-bottom: 14px;
}
.hero-sub { color: #aaa; font-size: 13px; margin-top: 6px; }
.hero-sub span { color: var(--green); text-shadow: 0 0 6px var(--green-soft); }

@keyframes pulseY {
    0%   { text-shadow: 0 0 4px var(--yellow), 0 0 10px rgba(255,212,0,.45); }
    100% { text-shadow: 0 0 8px var(--yellow), 0 0 26px rgba(255,212,0,.75), 0 0 44px rgba(255,212,0,.45); }
}

/* ============== SEARCH ============== */
.search-wrap { padding: 6px; margin: 0 auto 22px; max-width: 600px; }
.search-wrap input {
    width: 100%; padding: 14px 18px;
    background: transparent; color: #fff;
    border: 0; outline: 0;
    font-size: 15px; letter-spacing: .5px;
    border-radius: 12px;
}
.search-wrap input::placeholder { color: #888; }

/* ============== GRID ============== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px; text-align: left;
}
.sig-card {
    padding: 16px; cursor: pointer;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    border: 1px solid var(--glass-border);
    position: relative; overflow: hidden;
}
.sig-card:hover {
    transform: translateY(-3px);
    border-color: var(--yellow-soft);
    box-shadow: 0 8px 32px rgba(0,0,0,.6),
                0 0 0 1px var(--yellow-soft),
                0 0 24px rgba(255,212,0,.18);
}
.sig-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,255,148,0.05), transparent 40%);
    pointer-events: none;
}
.card-name {
    font-weight: 800; font-size: 18px;
    color: var(--yellow); margin-bottom: 6px; letter-spacing: .5px;
    text-shadow: 0 0 6px rgba(255,212,0,.4);
}
.card-hash {
    font-family: 'Courier New',monospace; font-size: 12px;
    color: var(--green); margin-bottom: 4px;
    text-shadow: 0 0 4px var(--green-soft);
}
.card-mini { font-family: 'Courier New',monospace; font-size: 11px; color: #999; }
.card-date { margin-top: 8px; font-size: 11px; color: #666; }
.empty {
    grid-column: 1/-1; padding: 60px 20px;
    text-align: center; color: #777; font-size: 14px;
    border: 1px dashed #333; border-radius: 18px;
}

/* ============== FAB ============== */
.fab {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--yellow); color: #000;
    font-size: 32px; font-weight: 900; border: 0;
    cursor: pointer; z-index: 50;
    box-shadow: 0 0 0 4px rgba(255,212,0,.15),
                0 0 18px var(--yellow),
                0 0 38px rgba(255,212,0,.55);
    transition: transform .15s;
    animation: fabPulse 2.2s ease-in-out infinite;
}
.fab:hover  { transform: translateX(-50%) scale(1.08); }
.fab:active { transform: translateX(-50%) scale(.95); }
@keyframes fabPulse {
    0%,100% { box-shadow: 0 0 0 3px rgba(255,212,0,.18), 0 0 16px var(--yellow), 0 0 34px rgba(255,212,0,.5); }
    50%     { box-shadow: 0 0 0 6px rgba(255,212,0,.10), 0 0 22px var(--yellow), 0 0 50px rgba(255,212,0,.65); }
}

/* ============== MODAL ============== */
.modal-bg {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(6px);
    z-index: 100; display: none;
    align-items: center; justify-content: center;
    padding: 18px;
    animation: fadeIn .2s ease-out;
}
.modal-bg.show { display: flex; }
.modal {
    width: 100%; max-width: 460px;
    padding: 26px 22px 20px; text-align: center;
    animation: pop .25s cubic-bezier(.18,.89,.32,1.28);
    border: 1px solid var(--yellow-soft);
    box-shadow: 0 0 38px rgba(255,212,0,.18), 0 12px 50px rgba(0,0,0,.7);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop {
    from { opacity: 0; transform: scale(.9); }
    to   { opacity: 1; transform: scale(1); }
}

/* ============== FIELDS ============== */
.field { margin-bottom: 12px; }
.field input {
    width: 100%; padding: 13px 14px;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px; color: #fff;
    font-size: 14px; outline: 0;
    transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: #777; transition: opacity .2s; }
.field input:focus {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px rgba(255,212,0,.10), 0 0 18px rgba(255,212,0,.4);
}
.field input:focus::placeholder { opacity: .4; }

/* ============== BUTTONS ============== */
.btn-neon, .btn-red, .btn-ghost {
    border: 0; padding: 12px 22px; border-radius: 12px;
    font-weight: 800; letter-spacing: 1.5px; font-size: 13px;
    cursor: pointer;
    transition: transform .12s, box-shadow .18s, background .18s;
    text-decoration: none; display: inline-block;
}
.btn-neon { background: var(--yellow); color: #000; box-shadow: 0 0 14px rgba(255,212,0,.5); }
.btn-neon:hover  { transform: translateY(-1px); box-shadow: 0 0 22px var(--yellow); }
.btn-neon:active { transform: translateY(0); }

.btn-red {
    background: transparent; color: var(--red);
    border: 1px solid var(--red-soft);
    box-shadow: 0 0 10px var(--red-soft);
}
.btn-red:hover { background: rgba(255,59,59,.10); box-shadow: 0 0 18px rgba(255,59,59,.55); }

.btn-ghost {
    background: transparent; color: #ddd;
    border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

.modal-actions {
    display: flex; gap: 10px;
    justify-content: center; flex-wrap: wrap;
    margin-top: 14px;
}

/* ============== ALERTS ============== */
.alert-red {
    background: rgba(255,59,59,.10);
    border: 1px solid var(--red-soft);
    color: var(--red);
    padding: 10px 12px; border-radius: 10px;
    margin-bottom: 12px; font-size: 13px;
    text-shadow: 0 0 6px rgba(255,59,59,.4);
}

/* ============== LOGIN ============== */
.login-body {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.login-wrap { position: relative; z-index: 2; width: 100%; display: flex; justify-content: center; }
.login-card {
    width: 100%; max-width: 380px;
    padding: 38px 28px 26px; text-align: center;
    border: 1px solid var(--yellow-soft);
    box-shadow: 0 0 38px rgba(255,212,0,.18), 0 12px 50px rgba(0,0,0,.7);
}
.neon-title {
    font-size: 30px; font-weight: 900;
    color: var(--green); letter-spacing: 4px; line-height: 1.05;
    text-shadow: 0 0 4px var(--green), 0 0 16px rgba(0,255,148,.6), 0 0 30px rgba(0,255,148,.4);
    animation: pulseG 2.4s ease-in-out infinite alternate;
}
.neon-title .yellow { color: var(--yellow); text-shadow: 0 0 6px var(--yellow), 0 0 22px rgba(255,212,0,.55); }
@keyframes pulseG {
    0%   { text-shadow: 0 0 4px var(--green), 0 0 12px rgba(0,255,148,.4); }
    100% { text-shadow: 0 0 6px var(--green), 0 0 28px rgba(0,255,148,.7), 0 0 46px rgba(0,255,148,.4); }
}
.sub {
    color: #aaa; font-size: 12px;
    letter-spacing: 3px; text-transform: uppercase;
    margin: 8px 0 24px;
}
.footer-mini {
    margin-top: 18px; color: #555; font-size: 10px;
    letter-spacing: 2px; text-transform: uppercase;
}

/* ============== MOBILE ============== */
@media (max-width: 600px) {
    .topbar { padding: 10px 12px; }
    .title-glow { font-size: 16px; }
    .grid { grid-template-columns: 1fr; }
    .container { padding: 14px 10px 100px; }
}
