/* --- THE PAWS OF MAYHEM MASTER STYLE --- */

:root {
    --matte-black: #0a0a0a;
    --chrome-silver: #c0c0c0;
    --blood-red: #8b0000;
    --dark-grey: #151515;
    --gold-accent: #eab308;
    --theme-accent: var(--blood-red);
    --texture-main: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--matte-black);
    background-image: radial-gradient(circle at 50% -20%, rgba(139, 0, 0, 0.22), transparent 60%), var(--texture-main);
    color: var(--chrome-silver);
    font-family: 'Oswald', sans-serif;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 160px rgba(0, 0, 0, 0.95);
    pointer-events: none;
    z-index: 999;
}

a {
    color: inherit;
}

.site-header,
header {
    min-height: 320px;
    padding: 40px 20px;
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.9), rgba(12, 12, 12, 0.84));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-bottom: 5px solid var(--theme-accent);
}

header img {
    width: 230px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 16px rgba(139, 0, 0, 0.6));
    transition: transform 0.3s ease, filter 0.3s ease;
}

header img:hover {
    filter: drop-shadow(0 0 24px rgba(139, 0, 0, 0.85));
    transform: scale(1.03);
}

h1 {
    font-family: 'Pirata One', cursive;
    font-size: clamp(2.2rem, 7.5vw, 4.2rem);
    margin: 12px 0 0;
    color: #fff;
    text-shadow: 3px 3px 15px #000;
    letter-spacing: 4px;
}

.header-subtitle {
    font-size: 1.05rem;
    letter-spacing: 3px;
    color: var(--theme-accent);
    font-weight: 700;
    margin-top: 8px;
}

nav {
    background: linear-gradient(180deg, #111 0%, #0a0a0a 100%);
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 998;
    border-bottom: 2px solid var(--theme-accent);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.7);
}

/* hamburger button — hidden on desktop */
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 16px 0;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--chrome-silver);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s, width 0.25s;
}
.nav-hamburger span:nth-child(1) { width: 26px; }
.nav-hamburger span:nth-child(2) { width: 20px; }
.nav-hamburger span:nth-child(3) { width: 26px; }

/* X animation when open */
.nav-toggle-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 26px; }
.nav-toggle-active span:nth-child(2) { opacity: 0; width: 0; }
.nav-toggle-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 26px; }

/* nav link wrapper — row on desktop */
.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 0;
}

/* vertical pipe divider */
.nav-divider {
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #333;
    margin: 0 4px;
    vertical-align: middle;
    align-self: center;
}

/* individual links */
.nav-link,
nav a {
    position: relative;
    color: var(--chrome-silver);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 13px;
    display: inline-block;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 2px;
}

/* animated underline on hover */
.nav-link::after,
nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 13px;
    right: 13px;
    height: 1px;
    background: var(--theme-accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.nav-link:hover,
nav a:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.nav-link:hover::after,
nav a:hover::after {
    transform: scaleX(1);
}

/* Prospecting — same style, slightly bolder to stand out */
.nav-link[href="prospect"] {
    font-weight: 600;
    letter-spacing: 2px;
}

/* keep cta class working if used anywhere else */
.nav-link-cta {
    color: var(--theme-accent) !important;
    font-weight: 600 !important;
}

/* ===== NAV SECTIONS (COLLAPSIBLE DROPDOWNS) ===== */

/* Section container — inline on desktop */
.nav-section {
    display: inline-block;
    position: relative;
    vertical-align: middle;
}

/* Section toggle button — appears like a nav link */
.nav-section-toggle {
    position: relative;
    color: var(--chrome-silver);
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: 'Oswald', sans-serif;
    font-weight: 400;
    font-size: 0.76rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
    border-radius: 2px;
}

/* Caret icon */
.nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.2s ease;
    vertical-align: -2px;
}

.nav-section-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,0.04);
}

.nav-section-toggle.nav-toggle-active .nav-caret {
    transform: rotate(180deg);
}

/* Dropdown menu — hidden by default, positioned below toggle on desktop */
.nav-section-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid #1a1a1a;
    border-radius: 3px;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    min-width: 200px;
    margin-top: 2px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.nav-section-menu.nav-open {
    display: flex;
}

/* Sub-links inside dropdown */
.nav-sublink {
    border-radius: 0;
    padding: 8px 16px;
    font-size: 0.73rem;
    border-bottom: 1px solid #0d0d0d;
}

.nav-sublink:hover {
    background: rgba(139, 0, 0, 0.1);
}

.container {
    max-width: 1200px;
    margin: 56px auto;
    padding: 0 20px;
    clear: both;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'Pirata One', cursive;
    font-size: 2.6rem;
    text-align: center;
    color: #fff;
    border-bottom: 3px solid var(--theme-accent);
    display: table;
    margin: 0 auto 34px;
    padding: 0 18px 5px;
    letter-spacing: 2px;
}

.section-title-lg {
    font-size: clamp(2.2rem, 5.4vw, 3.4rem);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
}

.legend-card,
.card {
    background: linear-gradient(180deg, rgba(24, 24, 24, 0.96), rgba(14, 14, 14, 0.98));
    padding: 20px;
    border: 1px solid #2f2f2f;
    border-bottom: 4px solid var(--theme-accent);
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.legend-card:hover,
.card:hover {
    transform: translateY(-6px);
    border-color: var(--theme-accent);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.62);
}

.thumb-frame,
.card-img-container {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: #000;
    margin-bottom: 14px;
    border: 1px solid #252525;
}

.thumb-frame img,
.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    transition: transform 0.35s ease, filter 0.35s ease;
}

.legend-card:hover img,
.card:hover img {
    transform: scale(1.03);
    filter: grayscale(0.1);
}

.rank-tag {
    display: inline-block;
    margin: 6px 0 10px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--theme-accent);
}

.btn {
    background: #000;
    color: #fff;
    border: 1px solid var(--theme-accent);
    padding: 12px 24px;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
    cursor: pointer;
    letter-spacing: 1px;
}

.btn:hover {
    background: var(--theme-accent);
    color: #fff;
    box-shadow: 0 0 16px rgba(139, 0, 0, 0.5);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.05rem;
}

.hero {
    text-align: center;
    padding: 110px 20px;
    border-bottom: 4px solid var(--theme-accent);
    background: linear-gradient(160deg, rgba(0, 0, 0, 0.86), rgba(10, 10, 10, 0.92));
}

.hero-home {
    background: radial-gradient(circle at center, rgba(139, 0, 0, 0.23), rgba(0, 0, 0, 0) 58%),
        linear-gradient(160deg, rgba(0, 0, 0, 0.92), rgba(15, 15, 15, 0.95));
}

.hero-title {
    font-family: 'Pirata One', cursive;
    font-size: clamp(2.8rem, 10vw, 6rem);
    color: #fff;
    text-shadow: 4px 4px #000;
    margin: 0;
    letter-spacing: 4px;
}

.hero-tagline {
    color: var(--theme-accent);
    font-size: clamp(0.95rem, 2.6vw, 1.5rem);
    letter-spacing: 5px;
    font-weight: 700;
    margin-top: 10px;
}

.hero-cta-wrap {
    margin-top: 36px;
}

.intro-section {
    max-width: 1120px;
    text-align: center;
}

.intro-copy {
    font-family: 'Special Elite', monospace;
    color: #9a9a9a;
    line-height: 2;
    font-size: 1.1rem;
    margin: 0 auto 54px;
    max-width: 850px;
    text-transform: none;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.mission-card {
    background: #0d0d0d;
    padding: 34px;
    border: 1px solid #252525;
    border-top: 4px solid var(--theme-accent);
    box-shadow: 0 15px 34px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.mission-card h3 {
    font-family: 'Pirata One', cursive;
    color: #fff;
    font-size: 1.9rem;
    margin: 0 0 10px;
    position: relative;
    z-index: 1;
}

.mission-card p {
    color: #7f7f7f;
    font-size: 0.97rem;
    margin: 0;
    position: relative;
    z-index: 1;
    text-transform: none;
}

.mission-card-intel {
    border-top-color: #0ea25f;
}

.mission-watermark {
    font-family: 'Pirata One', cursive;
    color: rgba(255, 255, 255, 0.03);
    font-size: 7rem;
    position: absolute;
    bottom: -16px;
    right: -8px;
    z-index: 0;
    line-height: 1;
}

.metric-main {
    color: var(--theme-accent);
    font-size: 1.3rem;
}

.metric-live {
    color: #0ea25f;
    font-size: 1.2rem;
}

.no-fee-banner {
    display: inline-block;
    border: 1px solid #303030;
    border-left: 4px solid var(--theme-accent);
    padding: 10px 16px;
    font-family: 'Special Elite', monospace;
    letter-spacing: 1px;
    color: #ddd;
    background: rgba(0, 0, 0, 0.5);
}

.faq-section {
    margin-top: 60px;
}

.faq-item {
    border: 1px solid #232323;
    background: #0d0d0d;
    padding: 20px;
    margin-bottom: 16px;
}

.faq-item h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.15rem;
}

.faq-item p {
    margin: 0;
    text-transform: none;
    color: #949494;
}

.footer-stats {
    background: #050505;
    border-top: 1px solid #222;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 0;
}

.f-stat-value {
    font-family: 'Pirata One', cursive;
    color: var(--theme-accent);
    font-size: 2.4rem;
    line-height: 1;
}

.f-stat-label {
    font-family: 'Oswald', sans-serif;
    color: #888;
    font-size: 0.7rem;
    letter-spacing: 1px;
}

.f-stat-dim {
    color: #5b5b5b;
}

.f-stat-label-dim {
    color: #565656;
}

.site-footer,
footer {
    text-align: center;
    padding: 42px 20px;
    background: #000;
    color: #444;
    border-top: 1px solid #222;
}

.site-footer-meta {
    font-family: 'Oswald', sans-serif;
    color: #5a5a5a;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.site-footer-links {
    font-family: 'Special Elite', monospace;
    font-size: 0.88rem;
}

.site-footer-links a {
    color: var(--theme-accent);
    text-decoration: none;
    margin: 0 3px;
}

.site-footer-links a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .container {
        margin: 42px auto;
    }

    .section-title {
        font-size: 2.1rem;
    }

    .hero {
        padding: 80px 16px;
    }

    .mission-card {
        padding: 24px;
    }

    .mission-status-bar,
    .mission-upcoming-grid {
        grid-template-columns: 1fr;
    }

    /* Engagement layouts — switch to single column */
    .wp-layout,
    .id-card-layout,
    .claim-layout {
        grid-template-columns: 1fr;
    }

    #poster-canvas,
    #id-card-canvas {
        width: 100%;
        max-width: 480px;
    }

    .rank-result-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .rank-timeline {
        flex-wrap: wrap;
    }

    .rank-step {
        flex: 0 0 33%;
        border-right: none;
        border-bottom: 1px solid #1a1a1a;
    }

    .crime-record-card {
        margin: 0 0 30px;
    }

    .cr-subject-block {
        flex-direction: column;
    }

    .cr-mugshot-box {
        width: 100%;
        height: 120px;
    }

    .daily-feed-row {
        flex-wrap: wrap;
    }

    .df-name {
        min-width: 100%;
        margin-bottom: 2px;
    }
}

@media (max-width: 640px) {
    /* ---- HAMBURGER ON ---- */
    .nav-hamburger {
        display: flex;
    }

    nav {
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0 0 12px;
        overflow: hidden;
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-link,
    nav a {
        padding: 14px 10px;
        font-size: 0.85rem;
        letter-spacing: 2px;
        border-bottom: 1px solid #181818;
        border-left: 3px solid transparent;
        transition: border-color 0.2s, color 0.2s, background 0.2s;
        border-radius: 0;
    }

    .nav-link:hover,
    nav a:hover {
        border-left-color: var(--theme-accent);
        background: rgba(139, 0, 0, 0.07);
        color: #fff;
    }

    /* kill the underline pseudo on mobile — use border-left instead */
    .nav-link::after,
    nav a::after {
        display: none;
    }

    .nav-link[href="prospect"] {
        border-left-color: rgba(139,0,0,0.3);
    }

    .nav-link-cta {
        margin: 10px 0 0;
        text-align: left;
    }

    .nav-divider {
        display: none;
    }

    /* Nav sections on mobile — vertical layout */
    .nav-section {
        display: block;
        position: relative;
        margin: 0;
    }

    .nav-section-toggle {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 14px 10px;
        font-size: 0.85rem;
        letter-spacing: 2px;
        border-bottom: 1px solid #181818;
        border-left: 3px solid transparent;
        border-radius: 0;
        background: transparent;
    }

    .nav-section-toggle:hover,
    .nav-section-toggle.nav-toggle-active {
        border-left-color: var(--theme-accent);
        background: rgba(139, 0, 0, 0.07);
        color: #fff;
    }

    .nav-caret {
        border-left-width: 3px;
        border-right-width: 3px;
        border-top-width: 4px;
    }

    .nav-section-menu {
        display: none;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        min-width: auto;
        margin: 0;
    }

    .nav-section-menu.nav-open {
        display: flex;
    }

    .nav-sublink {
        padding: 10px 10px 10px 24px;
        font-size: 0.8rem;
        letter-spacing: 1.8px;
        border-left: 3px solid transparent;
        display: block;
    }

    .nav-sublink:hover {
        border-left-color: var(--theme-accent);
        background: rgba(139, 0, 0, 0.07);
    }

    /* ---- HEADER ---- */
    .site-header,
    header {
        min-height: 200px;
        padding: 28px 16px;
    }

    header img { width: 150px; }

    h1 {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
    }

    .header-subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    /* ---- HERO ---- */
    .hero {
        padding: 60px 16px 50px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        letter-spacing: 2px;
    }

    .hero-tagline {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .hero-cta-wrap { margin-top: 20px; }

    .btn-lg,
    .btn-xl,
    .btn-block {
        width: 100%;
        display: block;
        text-align: center;
    }

    /* ---- GRID/CARD ---- */
    .grid {
        grid-template-columns: 1fr;
    }

    .thumb-frame,
    .card-img-container {
        height: 240px;
    }

    /* ---- INTRO / COPY ---- */
    .intro-copy {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-title-lg {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    /* ---- MISSION GRID ---- */
    .mission-grid {
        grid-template-columns: 1fr;
    }

    .mission-status-chip strong {
        font-size: 0.92rem;
    }

    .mission-op-card-featured {
        padding: 24px 18px;
    }

    .mission-upcoming-wrap {
        margin-bottom: 28px;
    }

    /* ---- FORMS ---- */
    .location-grid {
        grid-template-columns: 1fr;
    }

    .crime-lookup-row {
        flex-direction: column;
    }

    .crime-lookup-input {
        border-right: 1px solid #444;
        border-bottom: none;
    }

    .crime-lookup-btn {
        padding: 16px;
        width: 100%;
    }

    /* ---- PDF CANVASES ---- */
    #poster-canvas,
    #id-card-canvas {
        width: 100%;
        transform-origin: top left;
    }

    .wp-preview-panel,
    .id-form-panel {
        padding: 20px;
    }

    /* ---- CLAIM TERRITORY TABLE ---- */
    .claims-table th:nth-child(4),
    .claims-table td:nth-child(4) {
        display: none;
    }

    /* ---- DAILY FEED ---- */
    .daily-feed-section {
        padding: 0 12px;
    }

    /* ---- BARK OF WEEK ---- */
    .bark-week-card {
        flex-direction: column;
        gap: 16px;
    }

    .bark-week-photo {
        width: 70px;
        height: 70px;
    }

    /* ---- FOOTER STATS ---- */
    .footer-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* ---- RANK TIMELINE ---- */
    .rank-step {
        flex: 0 0 50%;
    }

    /* ---- CRIME RECORD ---- */
    .crime-record-card {
        font-size: 0.9rem;
    }

    .cr-name {
        font-size: 1.4rem;
    }

    /* ---- MUGSHOT GRID ---- */
    .mugshot-grid {
        grid-template-columns: 1fr 1fr !important;
        padding: 16px !important;
        gap: 12px !important;
    }

    .mugshot-img {
        height: 180px !important;
    }

    /* ---- ADMIN GRIDS ---- */
    .admin-grid {
        grid-template-columns: 1fr 1fr;
    }

    .intel-box {
        height: 280px;
    }
}

@media (max-width: 400px) {
    .mugshot-grid {
        grid-template-columns: 1fr !important;
    }

    .footer-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ================================================================
   ENGAGEMENT FEATURES
   Missions, Crime Record, Rank, ID Card, Territory Claim, Feed
   ================================================================ */

/* --- SHARED LOOKUP FORM --- */
.crime-lookup-form { max-width: 700px; margin: 0 auto 50px; }
.crime-lookup-row  { display: flex; gap: 0; }
.crime-lookup-input {
    flex: 1; padding: 18px; background: #000; color: #fff;
    border: 1px solid #444; border-right: none;
    font-family: 'Special Elite', monospace; font-size: 1rem;
}
.crime-lookup-btn { padding: 18px 28px; white-space: nowrap; }

/* --- MISSION BOARD --- */
.mission-board-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px; margin-bottom: 50px;
}
.mission-status-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 auto 28px;
    max-width: 980px;
}
.mission-status-chip {
    background: linear-gradient(180deg, rgba(18,18,18,0.95), rgba(8,8,8,0.98));
    border: 1px solid #242424;
    border-top: 3px solid #2d572d;
    padding: 16px 18px;
    text-align: center;
}
.mission-status-label {
    display: block;
    color: #5d5d5d;
    font-size: 0.65rem;
    letter-spacing: 3px;
    margin-bottom: 6px;
}
.mission-status-chip strong {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 2px;
}
.mission-op-card {
    background: linear-gradient(180deg, rgba(20,20,20,0.98), rgba(10,10,10,0.99));
    border: 1px solid #2a2a2a; border-top: 4px solid var(--blood-red);
    padding: 30px 25px; position: relative;
}
.mission-op-card-featured {
    max-width: 860px;
    margin: 0 auto;
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
}
.mission-op-number  { position: absolute; top: 14px; right: 18px; font-family: 'Pirata One', cursive; font-size: 2rem; color: #222; }
.mission-op-codename { font-size: 0.7rem; color: var(--blood-red); letter-spacing: 3px; margin-bottom: 10px; }
.mission-op-title   { font-family: 'Pirata One', cursive; color: #fff; font-size: 1.6rem; margin: 0 0 14px; line-height: 1.2; }
.mission-op-desc    { font-family: 'Special Elite', monospace; color: #888; text-transform: none; font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; }
.mission-op-reward  { font-size: 0.8rem; color: #fff; margin-bottom: 20px; padding: 10px 14px; border: 1px solid #333; background: #0a0a0a; }
.mission-reward-label { color: var(--blood-red); margin-right: 8px; letter-spacing: 1px; }
.mission-accept-btn { display: block; width: 100%; text-align: center; }
.mission-upcoming-wrap {
    max-width: 980px;
    margin: -8px auto 40px;
}
.mission-upcoming-head {
    color: #5f5f5f;
    font-size: 0.72rem;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-align: center;
}
.mission-upcoming-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.mission-upcoming-card {
    background: #0b0b0b;
    border: 1px solid #1f1f1f;
    padding: 16px;
}
.mission-upcoming-date {
    color: #4d8d4d;
    font-size: 0.65rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.mission-upcoming-code {
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 6px;
}
.mission-upcoming-title {
    color: #7f7f7f;
    font-family: 'Special Elite', monospace;
    font-size: 0.78rem;
    text-transform: none;
}
.mission-footer-note { text-align: center; color: #555; font-family: 'Special Elite', monospace; text-transform: none; font-size: 0.9rem; padding: 30px; border-top: 1px solid #1a1a1a; }

/* --- CRIME RECORD --- */
.crime-record-card { max-width: 800px; margin: 0 auto 30px; background: #000; border: 2px solid #333; }
.cr-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 2px solid #333; position: relative; background: #050505; }
.cr-watermark { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: 'Pirata One', cursive; font-size: 5rem; color: rgba(255,255,255,0.03); user-select: none; pointer-events: none; }
.cr-header-left { display: flex; align-items: center; gap: 14px; }
.cr-logo { width: 44px; filter: brightness(0) invert(1); }
.cr-club-name { font-family: 'Pirata One', cursive; font-size: 1.4rem; color: #fff; line-height: 1; }
.cr-doc-title { font-size: 0.65rem; letter-spacing: 3px; color: #555; margin-top: 2px; }
.cr-case { font-size: 0.7rem; letter-spacing: 2px; color: #555; text-align: right; margin-bottom: 6px; }
.cr-status { font-size: 1.1rem; font-weight: 700; letter-spacing: 3px; text-align: right; }
.cr-status-wanted { color: #c00; }
.cr-status-bolo    { color: #e6b800; }
.cr-status-busted  { color: #fff; }
.cr-status-at-large { color: #c00; }
.cr-body { padding: 24px; }
.cr-subject-block { display: flex; gap: 24px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #1a1a1a; }
.cr-mugshot-box { flex-shrink: 0; width: 120px; height: 140px; border: 2px solid #222; background: #080808; display: flex; align-items: center; justify-content: center; }
.cr-mugshot-silhouette { text-align: center; }
.cr-mugshot-silhouette svg { opacity: 0.3; }
.cr-mug-label { font-size: 0.55rem; letter-spacing: 2px; color: #333; margin-top: 4px; }
.cr-subject-data { flex: 1; }
.cr-field { display: flex; flex-direction: column; margin-bottom: 12px; }
.cr-label { font-size: 0.6rem; letter-spacing: 3px; color: #444; margin-bottom: 2px; }
.cr-value { font-size: 1rem; color: #ccc; }
.cr-name  { font-family: 'Pirata One', cursive; font-size: 1.8rem; color: #fff; line-height: 1; }
.cr-threat-low      { color: #888; }
.cr-threat-moderate { color: #e6b800; }
.cr-threat-high     { color: #ff6600; }
.cr-threat-extreme  { color: #c00; }
.cr-charges-block { background: #050505; border: 1px solid #1a1a1a; padding: 18px; }
.cr-charges-title { font-size: 0.65rem; letter-spacing: 4px; color: #444; margin-bottom: 14px; border-bottom: 1px solid #1a1a1a; padding-bottom: 8px; }
.cr-charge-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid #0d0d0d; align-items: baseline; }
.cr-charge-row:last-child { border-bottom: none; }
.cr-charge-num  { font-size: 0.65rem; letter-spacing: 2px; color: var(--blood-red); white-space: nowrap; flex-shrink: 0; }
.cr-charge-text { font-family: 'Special Elite', monospace; color: #aaa; text-transform: none; font-size: 0.9rem; }
.cr-footer { border-top: 2px solid #1a1a1a; padding: 12px 24px; background: #030303; }
.cr-barcode { font-size: 0.7rem; letter-spacing: 4px; color: #222; margin-bottom: 4px; overflow: hidden; white-space: nowrap; }
.cr-footer-note { font-size: 0.55rem; letter-spacing: 1px; color: #333; }
.crime-share-bar { max-width: 800px; margin: 0 auto 60px; display: flex; gap: 16px; align-items: center; padding: 16px 0; }
.crime-share-btn { white-space: nowrap; flex-shrink: 0; }
.crime-share-url { font-family: 'Special Elite', monospace; font-size: 0.8rem; color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- RANK TRACKER --- */
.rank-result-card { max-width: 700px; margin: 0 auto 40px; background: #050505; border: 1px solid #222; display: flex; gap: 30px; padding: 30px; align-items: center; }
.rank-photo-wrap  { flex-shrink: 0; width: 150px; height: 180px; overflow: hidden; border: 2px solid #222; }
.rank-photo       { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); }
.rank-result-content { flex: 1; text-align: center; }
.rank-badge-icon  { display: inline-block; width: 60px; height: 60px; line-height: 60px; border: 3px solid; font-size: 1.8rem; text-align: center; margin-bottom: 14px; }
.rank-result-name { font-family: 'Pirata One', cursive; font-size: 2.2rem; color: #fff; line-height: 1; margin-bottom: 8px; }
.rank-result-label { font-size: 1rem; letter-spacing: 3px; margin-bottom: 12px; }
.rank-result-desc  { font-family: 'Special Elite', monospace; color: #666; text-transform: none; font-size: 0.9rem; }
.rank-timeline { max-width: 700px; margin: 0 auto 50px; display: flex; }
.rank-step { flex: 1; padding: 12px 8px; text-align: center; border: 1px solid #1a1a1a; border-right: none; background: #050505; position: relative; }
.rank-step:last-child { border-right: 1px solid #1a1a1a; }
.rank-step-achieved { background: #0a0a0a; border-color: #333; }
.rank-step-current  { background: #0f0f0f; border-width: 2px; z-index: 1; }
.rank-step-icon  { font-size: 1.2rem; margin-bottom: 4px; }
.rank-step-label { font-size: 0.55rem; letter-spacing: 1px; color: #444; text-transform: uppercase; }
.rank-step-current .rank-step-label { color: inherit; }
.rank-step-arrow { font-size: 0.55rem; letter-spacing: 1px; color: inherit; margin-top: 4px; }
.rank-hierarchy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.rank-hier-card  { background: #050505; border: 1px solid #1a1a1a; border-top: 3px solid; padding: 20px; text-align: center; }
.rank-hier-icon  { font-size: 1.6rem; margin-bottom: 8px; }
.rank-hier-label { font-size: 0.75rem; letter-spacing: 2px; color: #fff; margin-bottom: 8px; }
.rank-hier-desc  { font-family: 'Special Elite', monospace; color: #555; text-transform: none; font-size: 0.8rem; margin: 0; }

/* --- ID CARD --- */
.id-card-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1100px; margin: 40px auto; padding: 0 20px; align-items: start; }
@media (max-width: 900px) { .id-card-layout { grid-template-columns: 1fr; } }
.id-form-panel { background: rgba(20,20,20,0.95); border: 1px solid #333; border-top: 4px solid var(--blood-red); padding: 35px; }
.id-form-panel label { display: block; color: #fff; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; margin-bottom: 8px; font-size: 0.85rem; }
.id-form-panel input,
.id-form-panel select { width: 100%; padding: 14px; background: #000; color: #fff; border: 1px solid #444; font-family: 'Special Elite', monospace; font-size: 1rem; box-sizing: border-box; margin-bottom: 20px; }
.id-form-panel select { appearance: none; border-left: 4px solid var(--blood-red); cursor: pointer; }
.id-upload-label { display: block; border: 2px dashed #555; padding: 24px; text-align: center; cursor: pointer; color: #888; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; transition: border-color 0.2s, color 0.2s; }
.id-upload-label:hover { border-color: var(--blood-red); color: #fff; }
.id-upload-label input { display: none; }
#id-thumb-preview { width: 100%; max-height: 160px; object-fit: cover; display: none; margin-bottom: 20px; border: 2px solid #444; }
.btn-generate-id { display: block; width: 100%; background: var(--blood-red); color: #fff; border: none; padding: 18px; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; }
.btn-generate-id:hover    { background: #a00; }
.btn-generate-id:disabled { background: #333; color: #666; cursor: not-allowed; }
#id-card-canvas { width: 540px; max-width: 100%; margin: 0 auto; display: block; }
.id-card-inner  { background: #000; border: 2px solid #333; }
.id-card-stripe { height: 6px; background: linear-gradient(90deg, var(--blood-red), #300); }
.id-card-body   { display: flex; gap: 0; padding: 20px; }
.id-card-photo-col { flex-shrink: 0; width: 120px; }
.id-card-photo-box { width: 120px; height: 150px; border: 2px solid #333; background: #111; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.id-card-photo-box img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); }
.id-card-photo-placeholder-txt { color: #333; font-size: 0.6rem; letter-spacing: 2px; text-align: center; }
.id-card-info-col   { flex: 1; padding-left: 20px; }
.id-card-logo-col   { display: flex; align-items: flex-start; justify-content: flex-end; flex-shrink: 0; width: 60px; }
.id-card-logo-col img { width: 50px; filter: brightness(0) invert(1); opacity: 0.6; }
.id-card-club-name  { font-family: 'Pirata One', cursive; font-size: 1rem; color: var(--blood-red); letter-spacing: 3px; margin-bottom: 4px; }
.id-card-member-name { font-family: 'Pirata One', cursive; font-size: 1.8rem; color: #fff; line-height: 1; margin-bottom: 8px; min-height: 2.2rem; }
.id-card-rank       { font-size: 0.75rem; color: var(--blood-red); letter-spacing: 2px; margin-bottom: 12px; }
.id-card-field      { display: flex; justify-content: space-between; font-size: 0.7rem; color: #555; padding: 4px 0; border-bottom: 1px solid #0d0d0d; }
.id-card-field:last-of-type { border-bottom: none; }
.id-card-field-label { letter-spacing: 1px; }
.id-card-field-val   { color: #aaa; }
.id-card-footer { background: #050505; border-top: 1px solid #1a1a1a; padding: 8px 20px; display: flex; justify-content: space-between; align-items: center; }
.id-card-footer-text { font-size: 0.6rem; letter-spacing: 2px; color: #333; }
.id-card-barcode    { font-size: 0.6rem; letter-spacing: 3px; color: #222; overflow: hidden; white-space: nowrap; max-width: 200px; }
.id-card-standing   { font-size: 0.65rem; letter-spacing: 3px; color: #0a8a0a; border: 1px solid #0a4a0a; padding: 2px 8px; }

/* --- TERRITORY CLAIM --- */
.claim-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; max-width: 1100px; margin: 40px auto; padding: 0 20px; align-items: start; }
@media (max-width: 800px) { .claim-layout { grid-template-columns: 1fr; } }
.claim-form-panel { background: rgba(20,20,20,0.95); border: 1px solid #333; border-top: 4px solid var(--blood-red); padding: 35px; }
.claim-form-panel label { display: block; color: #fff; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; font-weight: bold; margin-bottom: 8px; font-size: 0.85rem; }
.claim-form-panel input { width: 100%; padding: 14px; background: #000; color: #fff; border: 1px solid #444; font-family: 'Special Elite', monospace; font-size: 1rem; box-sizing: border-box; margin-bottom: 20px; }
.claims-list-title { font-family: 'Pirata One', cursive; color: #fff; font-size: 1.6rem; letter-spacing: 2px; margin-bottom: 6px; }
.claims-count { font-size: 0.7rem; color: #555; letter-spacing: 2px; margin-bottom: 24px; }
.claims-table { width: 100%; border-collapse: collapse; font-family: 'Special Elite', monospace; font-size: 0.85rem; }
.claims-table th { font-family: 'Oswald', sans-serif; font-size: 0.65rem; letter-spacing: 3px; color: #555; padding: 8px 12px; text-align: left; border-bottom: 1px solid #1a1a1a; }
.claims-table td { padding: 10px 12px; border-bottom: 1px solid #0d0d0d; color: #aaa; text-transform: none; }
.claims-table td:first-child { color: #fff; font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.claims-table tr:hover td { background: #050505; }
.claim-success { background: #001800; border: 1px solid #0a4a0a; color: #0f0; padding: 16px; margin-bottom: 20px; font-family: 'Special Elite', monospace; text-transform: none; }
.claim-error   { background: #180000; border: 1px solid #4a0000; color: var(--blood-red); padding: 16px; margin-bottom: 20px; font-family: 'Special Elite', monospace; text-transform: none; }

/* --- DAILY CRIME FEED (homepage) --- */
.daily-feed-section { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.daily-feed-header  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #1a1a1a; }
.daily-feed-title   { font-family: 'Pirata One', cursive; font-size: 1.6rem; color: #fff; letter-spacing: 2px; }
.daily-feed-date    { font-size: 0.65rem; letter-spacing: 3px; color: #444; }
.daily-feed-row     { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid #0d0d0d; align-items: baseline; }
.daily-feed-row:last-of-type { border-bottom: none; }
.df-name   { font-family: 'Oswald', sans-serif; font-size: 0.85rem; letter-spacing: 1px; color: #fff; min-width: 160px; flex-shrink: 0; }
.df-charge { font-family: 'Special Elite', monospace; color: #666; text-transform: none; font-size: 0.85rem; flex: 1; }
.df-status { font-size: 0.65rem; letter-spacing: 2px; padding: 2px 8px; border: 1px solid; white-space: nowrap; flex-shrink: 0; }
.df-status-wanted { color: #c00; border-color: #600; }
.df-status-bolo   { color: #e6b800; border-color: #6a5500; }
.df-status-busted { color: #888; border-color: #333; }
.daily-feed-footer { margin-top: 14px; font-size: 0.7rem; text-align: right; color: #333; letter-spacing: 2px; }

/* --- BARK OF THE WEEK (homepage) --- */
.bark-week-section { max-width: 900px; margin: 60px auto; padding: 0 20px; }
.bark-week-card    { background: #050505; border: 1px solid #222; border-left: 5px solid var(--blood-red); display: flex; gap: 30px; padding: 30px; align-items: center; }
.bark-week-photo   { flex-shrink: 0; width: 90px; height: 90px; border-radius: 50%; overflow: hidden; border: 3px solid var(--blood-red); }
.bark-week-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3); }
.bark-week-label { font-size: 0.65rem; letter-spacing: 4px; color: var(--blood-red); margin-bottom: 8px; }
.bark-week-quote { font-family: 'Special Elite', monospace; font-size: 1.2rem; color: #fff; text-transform: none; line-height: 1.4; margin-bottom: 10px; font-style: italic; }
.bark-week-name  { font-size: 0.8rem; letter-spacing: 3px; color: #666; }

/* --- LOYALTY BADGE (homepage) --- */
.loyalty-badge-banner { max-width: 900px; margin: 20px auto 0; padding: 0 20px; }
.loyalty-badge        { background: #050505; border: 1px solid #1a3a1a; border-left: 4px solid #2a6a2a; padding: 12px 20px; display: flex; align-items: center; gap: 14px; }
.loyalty-badge-icon   { font-size: 1.4rem; flex-shrink: 0; }
.loyalty-badge-text   { font-family: 'Special Elite', monospace; text-transform: none; font-size: 0.85rem; color: #6a9a6a; }
.loyalty-badge-rank   { font-size: 0.65rem; letter-spacing: 3px; color: #2a8a2a; margin-left: auto; white-space: nowrap; }

/* --- ADMIN: Bark of Week + Missions panels --- */
.bark-admin-form input,
.bark-admin-form textarea,
.missions-admin-form input,
.missions-admin-form textarea {
    width: 100%; padding: 10px; background: #000; color: #fff;
    border: 1px solid #333; font-family: 'Special Elite', monospace;
    font-size: 0.85rem; margin-bottom: 10px; box-sizing: border-box;
}
.missions-admin-form textarea { resize: vertical; min-height: 60px; }
.mission-admin-set       { border: 1px solid #1a1a1a; padding: 15px; margin-bottom: 15px; background: #050505; }
.mission-admin-set-label { font-family: 'Oswald', sans-serif; font-size: 0.7rem; color: var(--blood-red); letter-spacing: 3px; margin-bottom: 10px; }
