* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0d0d1a;
    font-family: sans-serif;
}

.main-body {
    background: #0d0d1a;
    min-height: 100vh;
    width: 100%;
}

/* ─────────────────────────────────────────
   ICON STRIP
   ───────────────────────────────────────── */
.image {
    display: flex;
    width: 100%;
}

.tile {
    flex: 1;
    height: 85px;
    background: var(--bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.07em;
}

.tile i {
    font-size: 22px;
}

/* ─────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #12122a;
    border-bottom: 0.5px solid #2a2a4a;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #e94560;
    font-size: 18px;
}

.app-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-demo {
    font-size: 11px;
    color: #a0a8c8;
    background: none;
    border: 0.5px solid #3a3a6a;
    border-radius: 6px;
    padding: 5px 10px;
    cursor: pointer;
    text-decoration: none;
    font-family: sans-serif;
}

.btn-login {
    font-size: 11px;
    color: #fff;
    background: #e94560;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    cursor: pointer;
    font-weight: 700;
    font-family: sans-serif;
}

/* ─────────────────────────────────────────
   PROFILE
   ───────────────────────────────────────── */
.profile-container {
    position: relative;
}

.profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #e94560;
}

.profile-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 250px;
    background: #12122a;
    border: 1px solid #2a2a4a;
    border-radius: 10px;
    display: none;
    overflow: hidden;
    z-index: 1000;
}

.profile-info {
    padding: 15px;
}

.profile-name {
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
}

.profile-email {
    color: #a0a8c8;
    font-size: 12px;
    word-break: break-word;
}

.logout-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #e94560;
    color: white;
    cursor: pointer;
    font-weight: bold;
}

.logout-btn:hover {
    opacity: 0.9;
}

/* ─────────────────────────────────────────
   SECTION HEADER
   ───────────────────────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 8px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.section-badge {
    font-size: 10px;
    color: #8890b0;
    background: #1e1e3a;
    border-radius: 20px;
    padding: 3px 10px;
}

/* ─────────────────────────────────────────
   CARDS GRID
   ───────────────────────────────────────── */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 14px 100px;
}

/* ─────────────────────────────────────────
   DISASTER CARD
   ───────────────────────────────────────── */
.dcard {
    background: #12122a;
    border: 0.5px solid #2a2a4a;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Image slot */
.cimg-slot {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0d0d1a;
    border-bottom: 0.5px solid #1a1a38;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Real image from backend */
.cimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder until image arrives */
.cimg-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cimg-placeholder i {
    font-size: 24px;
    color: #1e1e3a;
}

/* Card body */
.cbody {
    padding: 10px 10px 9px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Type tag */
.ctag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 20px;
    width: fit-content;
}

.ctag.Unverified {  color: red; }
.ctag.Verified {  color: green; }

/* Caption */
.ccap {
    font-size: 11px;
    color: #8890b8;
    line-height: 1.45;
}

/* ─────────────────────────────────────────
   ACTION BAR
   ───────────────────────────────────────── */
.cacts {
    display: flex;
    align-items: center;
    gap: 4px;
    border-top: 0.5px solid #1a1a38;
    padding-top: 8px;
}

.sp { flex: 1; }

/* ─────────────────────────────────────────
   LIKE / DISLIKE — particle burst animation
   ───────────────────────────────────────── */
.abtn {
    position: relative;
    background: none;
    border: none;
    color: #404878;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.abtn i {
    font-size: 17px;
    position: relative;
    z-index: 2;
    transition: color 0.2s, transform 0.15s;
}

.abtn:hover i { transform: scale(1.15); }

.burst-wrap {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.b {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
}

.b1 { --angle: 0deg;   }
.b2 { --angle: 60deg;  }
.b3 { --angle: 120deg; }
.b4 { --angle: 180deg; }
.b5 { --angle: 240deg; }
.b6 { --angle: 300deg; }

@keyframes burst-out {
    0%   { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(0)    scale(1); opacity: 1; }
    70%  { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(14px) scale(1); opacity: 1; }
    100% { transform: translate(-50%,-50%) rotate(var(--angle)) translateX(18px) scale(0); opacity: 0; }
}

@keyframes icon-bounce {
    0%   { transform: scale(1);    }
    35%  { transform: scale(1.4);  }
    60%  { transform: scale(0.88); }
    80%  { transform: scale(1.1);  }
    100% { transform: scale(1);    }
}

@keyframes icon-shake {
    0%   { transform: scale(1)    rotate(0deg);   }
    20%  { transform: scale(1.35) rotate(-12deg); }
    45%  { transform: scale(1.3)  rotate(10deg);  }
    65%  { transform: scale(1.0)  rotate(-5deg);  }
    85%  { transform: scale(1.05) rotate(3deg);   }
    100% { transform: scale(1)    rotate(0deg);   }
}

/* Like active */
.abtn.lk-on { color: #22c55e; }
.abtn.lk-on i { animation: icon-bounce 0.38s ease forwards; color: #22c55e; }
.abtn.lk-on .b { background: #22c55e; animation: burst-out 0.42s ease-out forwards; }
.abtn.lk-on .b2 { animation-delay: 0.03s; }
.abtn.lk-on .b3 { animation-delay: 0.06s; }
.abtn.lk-on .b4 { animation-delay: 0.02s; }
.abtn.lk-on .b5 { animation-delay: 0.05s; }
.abtn.lk-on .b6 { animation-delay: 0.04s; }

/* Dislike active */
.abtn.dk-on { color: #f59e0b; }
.abtn.dk-on i { animation: icon-shake 0.42s ease forwards; color: #f59e0b; }
.abtn.dk-on .b { background: #f59e0b; animation: burst-out 0.42s ease-out forwards; }
.abtn.dk-on .b2 { animation-delay: 0.03s; }
.abtn.dk-on .b3 { animation-delay: 0.06s; }
.abtn.dk-on .b4 { animation-delay: 0.02s; }
.abtn.dk-on .b5 { animation-delay: 0.05s; }
.abtn.dk-on .b6 { animation-delay: 0.04s; }

/* ─────────────────────────────────────────
   REPORT PILL
   ───────────────────────────────────────── */
.rpt-btn {
    background: #2a0a10;
    border-color: #e94560;
    color: #e94560;
    /*background: none;*/
    border: 0.5px solid #2a2a4a;
    /*color: #8890b8;*/
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 9px;
    border-radius: 20px;
    cursor: pointer;
    font-family: sans-serif;
    white-space: nowrap;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.rpt-btn:hover { border-color: #e94560; color: #e94560; }

@keyframes rpt-snap {
    0%   { transform: scale(0.85); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1);    opacity: 1; }
}

.rpt-btn.reported {
    background: #2a0a10;
    /*border-color: #e94560;*/
    color: #e94560;
    animation: rpt-snap 0.22s ease forwards;
}

/* ─────────────────────────────────────────
   THREE-DOT MENU
   ───────────────────────────────────────── */
.tdwrap { position: relative; }

.tdbtn {
    background: none;
    border: none;
    color: #2a3060;
    padding: 4px 3px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.15s, background 0.15s;
}

.tdbtn i { font-size: 17px; }
.tdbtn:hover { background: #1a1a38; color: #8890b8; }

.ddrop {
    display: none;
    position: absolute;
    right: 0;
    bottom: 32px;
    background: #1a1a38;
    border: 0.5px solid #2a2a4a;
    border-radius: 8px;
    overflow: hidden;
    z-index: 100;
    min-width: 96px;
}

.ddrop.open { display: block; }

.ddrop button {
    width: 100%;
    background: none;
    border: none;
    color: #e94560;
    font-size: 11px;
    font-weight: 700;
    padding: 9px 12px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: sans-serif;
    letter-spacing: 0.02em;
}

.ddrop button:hover { background: #2a1020; }
.ddrop button i     { font-size: 14px; }

/* ─────────────────────────────────────────
   CAMERA FAB
   ───────────────────────────────────────── */
.camera-fab {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 24px;
}

.fab {
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #e94560;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    z-index: 50;
}

.fab i { font-size: 26px; color: #fff; }

/* ─────────────────────────────────────────
   FORM STYLES (login/signup pages)
   ───────────────────────────────────────── */
.form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.form input  { padding: 10px 20px; font-size: 16px; }
.form button { padding: 10px 30px; font-size: 16px; cursor: pointer; }

.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #ffffff;
    border: 1px solid #dfdfdf;
    border-radius: 4px;
    color: #333333;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.google-btn img   { width: 30px; margin-right: 10px; }
.google-btn:hover { background-color: #f1f1f1; }

/* ─────────────────────────────────────────
   DISLIKE REASON POPUP
   ───────────────────────────────────────── */
.dislike-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: overlay-fade 0.2s ease;
}
 
@keyframes overlay-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
 
.dislike-box {
    background: #12122a;
    border: 0.5px solid #2a2a4a;
    border-radius: 14px;
    width: 280px;
    max-width: 90vw;
    padding: 18px;
    animation: box-pop 0.25s ease;
}
 
@keyframes box-pop {
    0%   { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1);   opacity: 1; }
}
 
.dislike-title {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.4;
}
 
.dislike-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}
 
.dislike-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #1a1a38;
    cursor: pointer;
    transition: background 0.15s;
}
 
.dislike-option:hover {
    background: #20203f;
}
 
.dislike-option input[type="radio"] {
    accent-color: #f59e0b;
    width: 15px;
    height: 15px;
    cursor: pointer;
}
 
.dislike-option span {
    color: #c5cae9;
    font-size: 12px;
}
 
.dislike-actions {
    display: flex;
    gap: 8px;
}
 
.dislike-cancel,
.dislike-submit {
    flex: 1;
    padding: 9px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: sans-serif;
}
 
.dislike-cancel {
    background: #1e1e3a;
    color: #8890b8;
}
 
.dislike-cancel:hover {
    background: #25254a;
}
 
.dislike-submit {
    background: #f59e0b;
    color: #1a1a2e;
}
 
.dislike-submit:hover {
    background: #fbbf4f;
}

.loc-btn {
    background: none;
    border: none;
    color: #404878;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.loc-btn i {
    font-size: 18px;
    transition: transform 0.15s;
}

.loc-btn:hover {
    color: #ea4335;
}

.loc-btn:hover i {
    transform: scale(1.2);
}

.loc-btn.active i {
    color: #ea4335;
}