@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,600;9..40,800&display=swap');

:root {
    --accent: #00e5a0;
    --danger: #ff4d6d;
    --bg: #000;
    --card: #0d0d0d;
    --border: #1e1e1e;
    --text: #fff;
    --muted: #555;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body { overflow-x: hidden; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    padding-bottom: 100px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    padding: 24px 20px 16px;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-size: 1.1rem; font-weight: 800; letter-spacing: 2px; }
.logo span { color: var(--accent); }

.page-title { font-size: 2rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.5px; margin-bottom: 8px; }
.page-title span { color: var(--accent); }
.page-sub { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 28px; }

/* SEARCH */
.search-wrap { position: relative; margin-bottom: 32px; }
.search-wrap input {
    width: 100%;
    padding: 16px 54px 16px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: 'DM Sans', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: var(--muted); }
.search-wrap button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent);
    border: none;
    border-radius: 10px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: opacity 0.2s;
}
.search-wrap button:hover { opacity: 0.85; }

/* RESULT */
.result-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; margin-bottom: 28px; }
.result-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.result-user { font-weight: 800; font-size: 1rem; }
.result-badge { font-size: 0.7rem; font-weight: 800; padding: 5px 10px; border-radius: 8px; border: 1px solid; text-transform: uppercase; letter-spacing: 0.5px; }
.result-msg { font-size: 0.82rem; color: #aaa; line-height: 1.5; margin-bottom: 14px; }
.result-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-res { padding: 12px; border-radius: 10px; font-size: 0.8rem; font-weight: 800; text-align: center; border: 1px solid; cursor: pointer; transition: opacity 0.2s; display: flex; align-items: center; justify-content: center; gap: 6px; text-transform: uppercase; }
.btn-res:hover { opacity: 0.8; }
.btn-res-green { background: rgba(0,229,160,0.08); color: var(--accent); border-color: rgba(0,229,160,0.25); }
.btn-res-red { background: rgba(255,77,109,0.08); color: var(--danger); border-color: rgba(255,77,109,0.25); }

/* ACTION CARDS */
.action-list { display: flex; flex-direction: column; gap: 12px; }
.action-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; cursor: pointer; transition: border-color 0.2s; text-decoration: none; color: inherit; }
.action-card:hover { border-color: #333; }
.action-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.icon-green { background: rgba(0,229,160,0.1); color: var(--accent); }
.icon-blue  { background: rgba(77,163,255,0.1); color: #4da3ff; }
.icon-red   { background: rgba(255,77,109,0.1); color: var(--danger); }
.icon-gold  { background: rgba(255,204,0,0.1);  color: #ffcc00; }
.action-text h3 { font-size: 0.9rem; font-weight: 800; margin-bottom: 2px; }
.action-text p { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.action-arrow { margin-left: auto; color: #2a2a2a; font-size: 1rem; flex-shrink: 0; }

/* FORMS */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
input, select, textarea { width: 100%; padding: 14px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: #fff; font-size: 0.95rem; font-family: 'DM Sans', sans-serif; outline: none; transition: border-color 0.2s; appearance: none; -webkit-appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 100px; }

/* BUTTONS */
.btn-main { width: 100%; padding: 16px; background: var(--accent); color: #000; font-weight: 800; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; border: none; border-radius: 12px; cursor: pointer; transition: opacity 0.2s, transform 0.15s; font-family: 'DM Sans', sans-serif; }
.btn-main:hover { opacity: 0.9; }
.btn-main:active { transform: scale(0.98); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--border); color: #fff; }

/* CARD */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin-bottom: 16px; }
.card-title { font-size: 1rem; font-weight: 800; margin-bottom: 6px; }
.card-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 20px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* TOGGLE */
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 0.85rem; font-weight: 700; margin-bottom: 3px; }
.toggle-desc { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.toggle { position: relative; width: 44px; height: 26px; flex-shrink: 0; }
.toggle input { display: none; }
.toggle-slider { position: absolute; inset: 0; background: #222; border-radius: 999px; cursor: pointer; transition: background 0.2s; }
.toggle-slider::after { content: ''; position: absolute; width: 20px; height: 20px; background: #fff; border-radius: 50%; top: 3px; left: 3px; transition: transform 0.2s; }
.toggle input:checked + .toggle-slider { background: var(--accent); }
.toggle input:checked + .toggle-slider::after { transform: translateX(18px); }

/* SUCCESS */
.success-box { background: rgba(0,229,160,0.06); border: 1px solid rgba(0,229,160,0.2); border-radius: 14px; padding: 24px; text-align: center; margin-bottom: 20px; }

/* NAV */
.nav-bot-public { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(5,5,5,0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid #111; display: flex; justify-content: space-around; align-items: center; padding: 10px 0; padding-bottom: env(safe-area-inset-bottom, 14px); z-index: 9999; }
.nav-item-pub { flex: 1; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; color: #333; transition: color 0.2s; }
.nav-item-pub i { font-size: 1.3rem; }
.nav-item-pub.home.active   { color: #4da3ff; }
.nav-item-pub.check.active  { color: var(--accent); }
.nav-item-pub.bunker.active { color: #ffcc00; }
.nav-item-pub.report.active { color: var(--danger); }
.nav-item-pub.comunidad i { color: #a855f7; opacity: 0.7; }
.nav-item-pub.comunidad.active { color: #a855f7; }
.nav-item-pub.comunidad.active i { opacity: 1; }

/* COOKIE BANNER */
#cookie_banner {
    position: fixed;
    bottom: 70px;
    left: 12px;
    right: 12px;
    background: #0d0d0d;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 16px;
    z-index: 10000;
    display: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
#cookie_banner p { font-size: 0.75rem; color: #aaa; line-height: 1.5; margin-bottom: 12px; }
#cookie_banner .cookie-btns { display: flex; gap: 8px; }
#cookie_banner button { flex: 1; padding: 10px; border-radius: 10px; font-size: 0.75rem; font-weight: 800; cursor: pointer; border: 1px solid #2a2a2a; }
#cookie_banner .btn-accept { background: var(--accent); color: #000; border: none; }
#cookie_banner .btn-reject { background: transparent; color: #999; }

/* FOOTER LEGAL */
.footer-legal { max-width: 480px; margin: 0 auto; padding: 20px 20px 100px; text-align: center; }
.footer-legal a { font-size: 0.68rem; color: #444; font-weight: 700; margin: 0 8px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
