/* =====================================================
   SWAPNEAR - COMPLETE MAIN STYLESHEET
   Bootstrap-based custom styling
===================================================== */


/* =====================================================
   ROOT
===================================================== */

:root {
    --sn-primary: #198754;
    --sn-primary-dark: #146c43;
    --sn-primary-light: #e8f8ee;

    --sn-text: #16243b;
    --sn-text-dark: #1f2d24;
    --sn-muted: #6b7280;

    --sn-bg: #f5f7f6;
    --sn-white: #ffffff;
    --sn-border: #e0e7e2;

    --sn-radius-sm: 8px;
    --sn-radius-md: 14px;
    --sn-radius-lg: 20px;
}


/* =====================================================
   PASSWORD FIELDS
   Edge/IE inject their own eye icon into password inputs
   once they have text — it overlaps our custom show/hide
   toggle button, so turn it off everywhere.
===================================================== */

input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}


/* =====================================================
   GENERAL
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;

    color: var(--sn-text);

    background: var(--sn-white);
}


/* =====================================================
   GUEST NAVBAR
===================================================== */

.navbar {
    min-height: 68px;

    position: sticky;
    top: 0;

    z-index: 1050;

    background: #ffffff !important;

    border-bottom:
        1px solid rgba(0, 0, 0, 0.05);
}

.navbar .navbar-brand {
    color: var(--sn-primary) !important;

    font-weight: 800;
}

.navbar .nav-link {
    position: relative;

    padding: 10px 18px !important;

    color: #555555 !important;

    font-size: 15px;
    font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--sn-primary) !important;
}

.navbar .nav-link.active {
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: "";

    position: absolute;

    left: 18px;
    right: 18px;
    bottom: 2px;

    height: 2px;

    background: var(--sn-primary);

    border-radius: 10px;
}

.navbar .btn-success {
    background: var(--sn-primary) !important;

    border-color: var(--sn-primary) !important;
}

.navbar .btn-success:hover {
    background: var(--sn-primary-dark) !important;

    border-color: var(--sn-primary-dark) !important;
}

.navbar .btn-link:hover {
    color: var(--sn-primary) !important;
}


/* =====================================================
   LANDING PAGE HERO
===================================================== */

.hero {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;

    padding: 15px 0 35px;

    background: #ffffff;
}

.hero .row {
    min-height: 580px;

    align-items: center;
}

.hero h1 {
    color: var(--sn-text);

    line-height: 1.1;
}

.hero p {
    max-width: 600px;

    line-height: 1.7;
}

.hero-card {
    padding: 20px;
}

.hero-card img {
    width: 100%;
    max-height: 500px;

    object-fit: cover;
}


/* =====================================================
   NEARBY ITEMS
===================================================== */

#nearby-items {
    scroll-margin-top: 70px;
}

.nearby-items-section {
    min-height: calc(100vh - 76px);

    display: flex;
    align-items: center;

    padding: 70px 0 120px;

    background: #f7f9f8;
}

.nearby-items-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 30px;
}

.nearby-items-header h2 {
    margin: 12px 0 5px;

    color: var(--sn-text);

    font-size: 30px;
    font-weight: 800;
}

.nearby-items-header p {
    margin: 0;

    color: var(--sn-muted);

    font-size: 14px;
}

.browse-more-link {
    color: var(--sn-primary);

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.browse-more-link:hover {
    color: var(--sn-primary-dark);
}


/* =====================================================
   ITEMS SLIDER
===================================================== */

.items-slider-wrapper {
    position: relative;

    display: flex;
    align-items: center;
}

.items-slider {
    width: 100%;

    display: flex;

    gap: 20px;

    overflow-x: auto;

    scroll-behavior: smooth;

    scrollbar-width: none;

    padding: 5px 3px 15px;
}

.items-slider::-webkit-scrollbar {
    display: none;
}

.home-item-card {
    flex: 0 0 calc(25% - 15px);

    min-width: 240px;

    background: #ffffff;

    border: 1px solid #e4eae6;

    border-radius: 16px;

    overflow: hidden;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.03);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.home-item-card:hover {
    transform: translateY(-4px);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08);
}

.home-item-image {
    position: relative;

    height: 180px;

    overflow: hidden;

    background: #eef2ef;
}

.home-item-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.home-item-type {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 700;
}

.home-item-type.exchange {
    background: var(--sn-primary-light);

    color: var(--sn-primary);
}

.home-item-type.resale {
    background: #fff3cd;

    color: #8a6500;
}

.home-item-body {
    padding: 16px;
}

.home-item-body h5 {
    margin: 0 0 7px;

    color: var(--sn-text);

    font-size: 16px;
    font-weight: 700;
}

.home-item-body p {
    min-height: 38px;

    margin: 0 0 10px;

    color: var(--sn-muted);

    font-size: 12px;

    line-height: 1.5;
}

.home-item-body small {
    color: var(--sn-primary);

    font-size: 11px;
    font-weight: 600;
}


/* =====================================================
   SLIDER BUTTONS
===================================================== */

.items-slider-arrow {
    position: absolute;

    z-index: 5;

    width: 42px;
    height: 42px;

    border: 1px solid #dce3df;

    border-radius: 50%;

    background: #ffffff;

    color: var(--sn-primary);

    font-size: 24px;

    cursor: pointer;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.items-slider-arrow:hover {
    background: var(--sn-primary);

    border-color: var(--sn-primary);

    color: #ffffff;
}

.items-slider-prev {
    left: -20px;
}

.items-slider-next {
    right: -20px;
}


/* =====================================================
   ABOUT SECTION
===================================================== */

#about {
    scroll-margin-top: 70px;
}

.about-section {
    padding: 70px 0;

    background: #ffffff;
}

.about-badge {
    display: inline-block;

    padding: 7px 14px;

    background: var(--sn-primary-light);

    color: var(--sn-primary);

    border-radius: 30px;

    font-size: 11px;
    font-weight: 700;
}

.about-title {
    margin: 18px 0 20px;

    color: var(--sn-text);

    font-size: 40px;
    font-weight: 800;

    line-height: 1.2;
}

.about-text {
    max-width: 560px;

    margin-bottom: 15px;

    color: var(--sn-muted);

    font-size: 14px;

    line-height: 1.8;
}

.about-features {
    margin-top: 28px;
}

.about-feature {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    margin-bottom: 20px;
}

.about-feature-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--sn-primary-light);

    color: var(--sn-primary);
}

.about-feature h5 {
    margin: 0 0 4px;

    color: var(--sn-text);

    font-size: 14px;
    font-weight: 700;
}

.about-feature p {
    margin: 0;

    color: var(--sn-muted);

    font-size: 12px;

    line-height: 1.5;
}

.about-visual {
    position: relative;

    padding: 15px;
}

.about-image {
    width: 100%;
    height: 450px;

    object-fit: cover;

    border-radius: 28px;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.10);
}

.about-stat-card {
    position: absolute;

    left: 0;
    bottom: 40px;

    display: flex;
    flex-direction: column;

    padding: 18px 22px;

    background: #ffffff;

    border-radius: 16px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}

.about-stat-card strong {
    color: var(--sn-primary);
}

.about-stat-card span {
    margin-top: 3px;

    color: var(--sn-muted);

    font-size: 11px;
}


/* =====================================================
   LOGIN
===================================================== */

.login-password-wrapper {
    position: relative;

    width: 100%;
}

.login-password-wrapper input {
    padding-right: 50px !important;
}

.login-password-toggle {
    position: absolute;

    top: 50%;
    right: 12px;

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #6b7280;

    cursor: pointer;
}

.login-password-toggle:hover {
    color: var(--sn-primary);
}


/* =====================================================
   REGISTER PAGE
===================================================== */

.register-page {
    min-height: 100vh;

    background: #f7f9fc;

    color: #17243a;
}

.register-header {
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    background: #ffffff;

    border-bottom:
        1px solid #e5e7eb;
}

.register-logo {
    color: var(--sn-primary);

    font-size: 18px;
    font-weight: 800;

    text-decoration: none;
}

.register-login {
    color: #303936;

    font-size: 13px;
}

.register-login a {
    margin-left: 7px;

    color: var(--sn-primary);

    font-weight: 700;

    text-decoration: none;
}


/* =====================================================
   REGISTER LAYOUT
===================================================== */

.register-container {
    display: grid;

    grid-template-columns: 44% 56%;

    max-width: 1250px;

    margin: 0 auto;

    padding: 20px 35px 45px;

    align-items: start;
}

.register-intro {
    max-width: 520px;

    padding: 35px 45px 40px 20px;
}

.register-intro h1 {
    margin: 0;

    color: #102039;

    font-size: 34px;
    font-weight: 800;

    line-height: 1.12;
}

.register-intro h1 span {
    display: block;

    color: var(--sn-primary);
}

.register-intro > p {
    max-width: 430px;

    margin-top: 18px;
    margin-bottom: 22px;

    color: #39453f;

    font-size: 15px;

    line-height: 1.55;
}


/* =====================================================
   REGISTER INFORMATION
===================================================== */

.register-info-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;

    max-width: 430px;
}

.register-info-card {
    min-height: 88px;

    padding: 14px;

    background: #edf3ff;

    border: 1px solid #dce5f5;

    border-radius: 9px;
}

.info-icon {
    margin-bottom: 5px;

    color: var(--sn-primary);

    font-size: 19px;
}

.register-info-card strong {
    display: block;

    color: var(--sn-text);

    font-size: 11px;
}

.register-info-card small {
    display: block;

    color: #4f5d68;

    font-size: 9px;
}


/* =====================================================
   REGISTER FORM
===================================================== */

.register-form-wrapper {
    padding: 10px 15px 0;
}

.register-form-card {
    width: 100%;

    padding: 27px 31px;

    background: #ffffff;

    border: 1px solid #dce1df;

    border-radius: 8px;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.03);
}

.register-form-heading {
    margin-bottom: 20px;
}

.register-form-heading h2 {
    margin: 0 0 4px;

    color: var(--sn-text);

    font-size: 18px;
    font-weight: 800;
}

.register-form-heading p {
    margin: 0;

    color: #3f4844;

    font-size: 12px;
}

.register-form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-bottom: 18px;
}

.register-field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.register-field label {
    margin: 0;

    color: var(--sn-text);

    font-size: 10px;
    font-weight: 700;
}

.register-field input,
.register-field select,
.manual-location select {
    width: 100%;
    height: 36px;

    padding: 0 11px;

    border: 1px solid #bdcbbf;

    border-radius: 6px;

    background: #fbfcff;

    color: #26352f;

    font-size: 11px;

    outline: none;
}

.register-field input:focus,
.register-field select:focus,
.manual-location select:focus {
    border-color: var(--sn-primary);

    box-shadow:
        0 0 0 2px rgba(25, 135, 84, 0.10);
}


/* =====================================================
   REGISTER PASSWORD
===================================================== */

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 42px !important;
}

.password-toggle {
    position: absolute;

    top: 50%;
    right: 10px;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    color: #6b7280;

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--sn-primary);
}


/* =====================================================
   LOCATION
===================================================== */

.location-heading {
    display: flex;
    align-items: center;

    gap: 9px;

    margin-bottom: 14px;
}

.location-heading-icon {
    width: 29px;
    height: 29px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #d9f8e5;

    color: var(--sn-primary);
}

.location-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;

    margin-bottom: 20px;
}

.detect-location-btn {
    width: 100%;
    height: 76px;

    border:
        2px solid var(--sn-primary);

    border-radius: 7px;

    background: #effbf3;

    color: var(--sn-primary);

    cursor: pointer;
}

.detect-location-btn:hover {
    background: #e1f8e9;
}

.detect-location-btn:disabled {
    opacity: .7;
    cursor: progress;
}

.detect-location-status {
    grid-column: 1 / -1;
    min-height: 16px;
    margin-top: -6px;
    color: #146c43;
    font-size: 12px;
    font-weight: 600;
}

.manual-location {
    display: flex;
    flex-direction: column;

    gap: 9px;
}

.location-select-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 10px;
}


/* =====================================================
   REGISTER BUTTON
===================================================== */

.create-account-btn {
    width: 100%;
    height: 50px;

    border: none;

    border-radius: 7px;

    background: var(--sn-primary);

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}

.create-account-btn:hover {
    background: var(--sn-primary-dark);
}


/* =====================================================
   MEMBER DASHBOARD
===================================================== */

.dashboard-body {
    margin: 0;

    min-height: 100vh;

    background: #f5f2eb;

    color: var(--sn-text-dark);
}

.dashboard-wrapper {
    min-height: 100vh;
}


/* =====================================================
   DASHBOARD SIDEBAR
===================================================== */

.dashboard-sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: 312px;
    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #0f2419;

    color: #f4f7f4;

    border-right:
        1px solid rgba(255, 255, 255, 0.04);

    z-index: 1000;

    overflow-y: auto;
}


/* =====================================================
   DASHBOARD BRAND
===================================================== */

.dashboard-brand {
    display: flex;
    align-items: center;

    min-height: 104px;

    padding: 26px 20px;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.07);
}

.dashboard-brand a {
    color: #f5f1e8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 27px;
    font-weight: 700;

    letter-spacing: -0.3px;

    text-decoration: none;
}


/* =====================================================
   DASHBOARD USER
===================================================== */

.dashboard-user {
    display: flex;
    align-items: center;

    gap: 12px;

    margin: 18px 14px 24px;

    padding: 14px 15px;

    background: #193a27;

    border:
        1px solid rgba(90, 155, 105, 0.22);

    border-radius: 11px;
}

.dashboard-avatar {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: #216b45;

    color: #e1f0e5;

    font-size: 17px;
    font-weight: 600;
}

.dashboard-user-info {
    display: flex;
    flex-direction: column;

    min-width: 0;
}

.dashboard-user-info strong {
    color: #f2f3e8;

    font-size: 15px;
    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

.dashboard-user-info span {
    margin-top: 3px;

    color: #9aad9f;

    font-size: 13px;
}


/* =====================================================
   DASHBOARD MENU
===================================================== */

.dashboard-menu {
    display: flex;
    flex-direction: column;

    gap: 5px;

    padding: 0 9px;

    flex: 1;
}

.dashboard-menu-link {
    display: flex;
    align-items: center;

    gap: 16px;

    min-height: 53px;

    padding: 0 16px;

    border-radius: 10px;

    color: #aebbb2;

    font-size: 16px;
    font-weight: 500;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dashboard-menu-link i {
    width: 20px;

    text-align: center;

    color: #91a79a;

    font-size: 19px;
}

.dashboard-menu-link:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;
}

.dashboard-menu-link:hover i {
    color: #d7e4da;
}

.dashboard-menu-link.active {
    background: #358a52;

    color: #ffffff;

    font-weight: 600;
}

.dashboard-menu-link.active i {
    color: #ffffff;
}


/* =====================================================
   SIDEBAR BOTTOM
===================================================== */

.dashboard-sidebar-bottom {
    margin-top: auto;

    padding: 18px 9px;

    border-top:
        1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-logout {
    display: flex;
    align-items: center;

    gap: 16px;

    width: 100%;
    min-height: 52px;

    padding: 0 16px;

    border: none;

    border-radius: 10px;

    background: transparent;

    color: #aebbb2;

    font-size: 16px;
    font-weight: 500;

    text-align: left;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.dashboard-logout i {
    width: 20px;

    text-align: center;

    font-size: 19px;
}

.dashboard-logout:hover {
    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;
}


/* =====================================================
   DASHBOARD MAIN

   IMPORTANT:
   Sidebar = 312px
   Main content starts AFTER sidebar
===================================================== */

.dashboard-main {
    width: calc(100% - 312px);

    min-height: 100vh;

    margin-left: 312px;

    background: #f5f2eb;

    overflow-x: hidden;
}


/* =====================================================
   DASHBOARD TOPBAR
===================================================== */

.dashboard-topbar {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 30px;

    background: #ffffff;

    border-bottom:
        1px solid #e3e0d8;
}

.dashboard-topbar h1 {
    margin: 0;

    color: var(--sn-text-dark);

    font-size: 24px;
    font-weight: 700;
}

.dashboard-topbar p {
    margin: 4px 0 0;

    color: #7b857d;

    font-size: 13px;
}

.dashboard-topbar-actions {
    display: flex;
    align-items: center;

    gap: 14px;
}

.dashboard-notification {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid #e1e7e3;

    border-radius: 50%;

    background: #ffffff;

    color: #526056;

    cursor: pointer;
}

.dashboard-notification:hover {
    background: #eef5f0;

    color: var(--sn-primary);
}

.dashboard-profile-button {
    display: flex;
    align-items: center;

    gap: 9px;

    color: #26352c;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.dashboard-small-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #216b45;

    color: #ffffff;

    font-weight: 700;
}


/* =====================================================
   DASHBOARD CONTENT
===================================================== */

.dashboard-content {
    width: 100%;

    padding: 30px;
}

.member-dashboard {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


/* =====================================================
   DASHBOARD HEADER
===================================================== */

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 28px;
}

.dashboard-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: var(--sn-primary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}

.dashboard-header h1 {
    margin: 0 0 8px;

    color: var(--sn-text);

    font-size: 30px;
    font-weight: 800;
}

.dashboard-header p {
    margin: 0;

    color: #6f786f;

    font-size: 14px;
}

.create-listing-btn {
    display: inline-flex;
    align-items: center;

    gap: 9px;

    padding: 12px 18px;

    border-radius: 10px;

    background: var(--sn-primary);

    color: #ffffff;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease;
}

.create-listing-btn:hover {
    background: var(--sn-primary-dark);

    color: #ffffff;
}


/* =====================================================
   DASHBOARD STATISTICS
===================================================== */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 24px;
}

.member-stat-card {
    min-height: 145px;

    padding: 20px;

    background: #ffffff;

    border:
        1px solid var(--sn-border);

    border-radius: 14px;

    box-shadow:
        0 3px 12px rgba(20, 40, 25, 0.03);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.member-stat-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 10px 25px rgba(20, 40, 25, 0.08);
}

.stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.stat-label {
    color: #7a847c;

    font-size: 12px;
    font-weight: 600;
}

.member-stat-card h2 {
    margin: 8px 0 0;

    color: var(--sn-text-dark);

    font-size: 32px;
    font-weight: 800;
}

.member-stat-card > p {
    margin: 14px 0 0;

    color: #89928b;

    font-size: 12px;
}

.stat-symbol {
    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--sn-primary-light);

    color: var(--sn-primary);

    font-size: 20px;
}


/* =====================================================
   DASHBOARD GRID
===================================================== */

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 2fr)
        minmax(280px, 1fr);

    gap: 24px;
}

.dashboard-main-column,
.dashboard-side-column {
    display: flex;
    flex-direction: column;

    gap: 24px;

    min-width: 0;
}


/* =====================================================
   DASHBOARD CARDS
===================================================== */

.member-dashboard-card {
    background: #ffffff;

    border:
        1px solid var(--sn-border);

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 3px 12px rgba(20, 40, 25, 0.03);
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    padding: 22px 24px 18px;

    border-bottom:
        1px solid #edf0ed;
}

.card-heading h3 {
    margin: 0;

    color: #203027;

    font-size: 18px;
    font-weight: 700;
}

.card-heading p {
    margin: 5px 0 0;

    color: #7a847c;

    font-size: 13px;
}

.card-heading a {
    color: var(--sn-primary);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}


/* =====================================================
   EMPTY STATES
===================================================== */

.nearby-empty-state {
    min-height: 270px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.empty-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 15px;

    border-radius: 50%;

    background: var(--sn-primary-light);

    color: var(--sn-primary);

    font-size: 24px;
}

.nearby-empty-state h4 {
    margin: 0 0 7px;

    color: #25342a;

    font-size: 17px;
    font-weight: 700;
}

.nearby-empty-state p {
    max-width: 400px;

    margin: 0;

    color: #7b857d;

    font-size: 13px;

    line-height: 1.6;
}

.outline-dashboard-btn {
    display: inline-flex;

    margin-top: 18px;

    padding: 10px 17px;

    border:
        1px solid var(--sn-primary);

    border-radius: 8px;

    color: var(--sn-primary);

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
}

.outline-dashboard-btn:hover {
    background: var(--sn-primary);

    color: #ffffff;
}


/* =====================================================
   SMART MATCH
===================================================== */

.match-empty-state {
    min-height: 150px;

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 24px;
}

.match-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--sn-primary-light);

    color: var(--sn-primary);
}

.match-empty-state h4 {
    margin: 0 0 5px;

    color: #25342a;

    font-size: 15px;
}

.match-empty-state p {
    margin: 0;

    color: #7b857d;

    font-size: 12px;
}


/* =====================================================
   ACTIVITY
===================================================== */

.activity-list {
    padding: 8px 24px 18px;
}

.activity-row {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 17px 0;

    border-bottom:
        1px solid #edf0ed;
}

.activity-row:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background: var(--sn-primary-light);

    color: var(--sn-primary);
}

.activity-row strong {
    display: block;

    color: #29382e;

    font-size: 13px;
}

.activity-row p {
    margin: 4px 0 0;

    color: #7a847c;

    font-size: 12px;
}


/* =====================================================
   QUICK ACTIONS
===================================================== */

.quick-actions {
    padding: 8px 16px 16px;
}

.quick-action-item {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 14px 10px;

    border-bottom:
        1px solid #edf0ed;

    color: #26352c;

    text-decoration: none;
}

.quick-action-item:hover {
    background: #f7faf7;
}

.quick-action-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    background: var(--sn-primary-light);

    color: var(--sn-primary);
}


/* =====================================================
   ACCOUNT INFORMATION
===================================================== */

.account-info {
    padding: 8px 24px;
}

.account-info-row {
    padding: 15px 0;

    border-bottom:
        1px solid #edf0ed;
}

.account-info-row:last-child {
    border-bottom: none;
}

.account-info-row span {
    display: block;

    margin-bottom: 5px;

    color: #8a938b;

    font-size: 10px;
    font-weight: 700;
}

.account-info-row strong {
    display: block;

    color: #2a382f;

    font-size: 13px;
}

.profile-btn {
    display: block;

    margin: 16px 24px 24px;

    padding: 10px;

    border:
        1px solid var(--sn-primary);

    border-radius: 8px;

    color: var(--sn-primary);

    font-size: 13px;
    font-weight: 600;

    text-align: center;

    text-decoration: none;
}

.profile-btn:hover {
    background: var(--sn-primary);

    color: #ffffff;
}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1200px) {

    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 991px) {

    .register-container {
        grid-template-columns: 1fr;
    }

    .dashboard-sidebar {
        width: 250px;
    }

    .dashboard-main {
        width: calc(100% - 250px);

        margin-left: 250px;
    }

    .dashboard-content {
        padding: 24px;
    }

    .home-item-card {
        flex: 0 0 calc(50% - 10px);
    }
}


@media (max-width: 767px) {

    .navbar .nav-link {
        padding: 10px 0 !important;
    }

    .register-container {
        padding: 20px;
    }

    .register-form-row,
    .location-section,
    .register-info-row,
    .location-select-row {
        grid-template-columns: 1fr;
    }

    .dashboard-wrapper {
        display: block;
    }

    .dashboard-sidebar {
        position: relative;

        width: 100%;
        height: auto;

        min-height: auto;

        overflow: visible;
    }

    .dashboard-main {
        width: 100%;

        margin-left: 0;
    }

    .dashboard-menu {
        flex-direction: row;

        overflow-x: auto;

        padding-bottom: 10px;
    }

    .dashboard-menu-link {
        flex-shrink: 0;
    }

    .dashboard-sidebar-bottom {
        display: none;
    }

    .dashboard-topbar {
        padding: 15px 18px;
    }

    .dashboard-content {
        padding: 18px;
    }

    .dashboard-profile-button span {
        display: none;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .nearby-items-header {
        flex-direction: column;

        align-items: flex-start;
    }

    .about-title {
        font-size: 32px;
    }

    .about-image {
        height: 350px;
    }

    .card-heading {
        padding-left: 18px;

        padding-right: 18px;
    }
}


@media (max-width: 575px) {

    .hero h1 {
        font-size: 32px;
    }

    .home-item-card {
        flex: 0 0 85%;
    }

    .items-slider-prev {
        left: 5px;
    }

    .items-slider-next {
        right: 5px;
    }

    .dashboard-topbar h1 {
        font-size: 19px;
    }

    .dashboard-header h1 {
        font-size: 25px;
    }

    .card-heading,
    .activity-list,
    .account-info {
        padding-left: 18px;

        padding-right: 18px;
    }

    .dashboard-user {
        margin-left: 10px;

        margin-right: 10px;
    }

    
}

/* =========================================================
   POST LISTING PAGE
========================================================= */

.post-listing-page {
    max-width: 1400px;
    margin: 0 auto;
}


/* PAGE HEADER */

.post-listing-header {
    margin-bottom: 30px;
}

.back-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #6b7280;
    text-decoration: none;

    font-size: 14px;
    margin-bottom: 14px;

    transition: 0.2s ease;
}

.back-dashboard-link:hover {
    color: #198754;
}

.post-listing-header h2 {
    margin: 0 0 8px;

    font-size: 28px;
    font-weight: 700;

    color: #1f2937;
}

.post-listing-header p {
    margin: 0;

    color: #6b7280;
}


/* =========================================================
   PAGE GRID
========================================================= */

.post-listing-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        340px;

    gap: 24px;

    align-items: start;
}


/* =========================================================
   FORM CARDS
========================================================= */

.listing-form-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 16px;

    padding: 28px;

    margin-bottom: 24px;

    box-shadow:
        0 4px 20px
        rgba(0, 0, 0, 0.04);
}

.listing-form-card h3 {
    margin: 0 0 8px;

    font-size: 18px;
    font-weight: 700;

    color: #1f2937;
}

.listing-form-description {
    color: #6b7280;

    font-size: 14px;

    margin-bottom: 22px;
}

.listing-location-summary {
    display: flex;
    gap: 10px;
    padding: 13px 15px;
    border: 1px solid #cfe0d4;
    border-radius: 10px;
    background: #f4fbf6;
    font-size: 13.5px;
    color: #35513f;
}
.listing-location-summary i { color: #198754; font-size: 16px; flex: 0 0 auto; }
.listing-location-summary strong { color: #14432b; }
.listing-location-summary a { color: #146c43; font-weight: 600; }

.listing-location-summary.is-missing {
    border-color: #e7cfa6;
    background: #fdf7ec;
    color: #6b4f1d;
}
.listing-location-summary.is-missing i { color: #b5820f; }


/* =========================================================
   FORM CONTROLS
========================================================= */

.post-listing-form .form-label {
    font-weight: 600;

    color: #374151;

    margin-bottom: 8px;
}

.post-listing-form .form-control,
.post-listing-form .form-select {
    min-height: 48px;

    border: 1px solid #d1d5db;

    border-radius: 10px;

    padding-left: 14px;
    padding-right: 14px;

    box-shadow: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.post-listing-form textarea.form-control {
    min-height: 150px;

    padding-top: 12px;

    resize: vertical;
}

.post-listing-form .form-control:focus,
.post-listing-form .form-select:focus {
    border-color: #198754;

    box-shadow:
        0 0 0 3px
        rgba(25, 135, 84, 0.12);
}


/* =========================================================
   LISTING TYPE
========================================================= */

.listing-type-option {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    width: 100%;
    min-height: 105px;

    padding: 18px;

    border: 1px solid #e5e7eb;

    border-radius: 14px;

    background: #ffffff;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.listing-type-option:hover {
    border-color: #198754;

    background: #f0fdf4;

    transform: translateY(-2px);
}

.listing-type-option input {
    margin-top: 4px;

    accent-color: #198754;
}

.listing-type-option span {
    display: flex;

    flex-direction: column;

    gap: 5px;
}

.listing-type-option strong {
    color: #1f2937;

    font-size: 15px;
}

.listing-type-option small {
    color: #6b7280;

    font-size: 13px;
}


/* SELECTED LISTING TYPE */

.listing-type-option:has(
    input:checked
) {
    border-color: #198754;

    background: #ecfdf5;

    box-shadow:
        0 0 0 2px
        rgba(25, 135, 84, 0.1);
}


/* =========================================================
   PREFERENCE CATEGORY CHIPS (onboarding + profile)
========================================================= */

.pref-category-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.pref-category-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.pref-category-chip input { position: absolute; opacity: 0; width: 0; height: 0; }

.pref-category-chip:hover { border-color: #198754; background: #f0fdf4; }

.pref-category-chip:has(input:checked) {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

/* =========================================================
   ONBOARDING PREFERENCES — step-wizard modal
========================================================= */

.onboarding-modal-backdrop {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    background: linear-gradient(135deg, #0f2419, #146c43 55%, #198754);
}

.onboarding-modal {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 36px 32px 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 70px rgba(15, 23, 42, .35);
}

.onboarding-skip-form {
    position: absolute;
    top: 18px;
    right: 20px;
    margin: 0;
}

.onboarding-modal-skip {
    border: none;
    background: none;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.onboarding-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #198754;
    font-size: 15px;
    font-weight: 800;
}

.onboarding-intro {
    margin: 8px 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1ee;
    color: #6b7280;
    font-size: 14px;
}

.onboarding-modal-skip:hover {
    color: #198754;
    text-decoration: underline;
}

.onboarding-step { display: none; min-height: 220px; }
.onboarding-step.is-active { display: block; }

.onboarding-step h3 {
    margin: 6px 0 6px;
    color: #1f2937;
    font-size: 20px;
    font-weight: 800;
}

.onboarding-step > p {
    margin: 0 0 20px;
    color: #6b7280;
}

.onboarding-stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.onboarding-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 22px;
}

.onboarding-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #d1d5db;
    transition: background .2s ease, width .2s ease;
}

.onboarding-dot.is-active {
    width: 22px;
    background: #198754;
}

.onboarding-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.onboarding-nav .onboarding-next,
.onboarding-nav .onboarding-submit {
    margin-left: auto;
}

.onboarding-back.is-hidden {
    visibility: hidden;
}

@media (max-width: 600px) {
    .onboarding-modal { padding: 30px 20px 22px; }
}


/* =========================================================
   PRICE
========================================================= */

.post-listing-form .input-group-text {
    border-radius: 10px 0 0 10px;

    background: #f9fafb;

    border-color: #d1d5db;

    font-weight: 600;
}

.post-listing-form .input-group .form-control {
    border-radius: 0 10px 10px 0;
}


/* =========================================================
   IMAGE UPLOAD
========================================================= */

/* =========================================================
   LISTING IMAGE UPLOAD
========================================================= */

.listing-image-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 280px;

    position: relative;
    overflow: hidden;

    padding: 0;

    border: 2px dashed #cbd5e1;
    border-radius: 16px;

    background: #f8fafc;

    cursor: pointer;
}


/* PLACEHOLDER */

#imageUploadPlaceholder, .image-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    text-align: center;
}


/* IMAGE PREVIEW — HIDDEN BY DEFAULT */

.image-preview-grid {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 8px;
}

.items-slider-arrow:disabled {
    opacity: .38;
    cursor: not-allowed;
    box-shadow: none;
}

.items-slider-arrow:disabled:hover {
    border-color: #dce3df;
    color: var(--sn-primary);
    background: #ffffff;
}

/* =====================================================
   COURIER DASHBOARD
===================================================== */

.delivery-hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 30px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #146c43, #198754 68%, #3aa76d); }
.delivery-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #4f9f72; font-size: 11px; font-weight: 800; letter-spacing: .09em; }
.delivery-hero .delivery-eyebrow { color: #d7f5e2; }
.delivery-hero h2 { margin: 8px 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }
.delivery-hero p { margin: 0; max-width: 600px; color: #e2f5e9; }
.delivery-availability-card { min-width: 300px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 14px; background: rgba(255,255,255,.12); }
.delivery-availability-card strong, .delivery-availability-card span { display: block; }
.delivery-availability-card span { margin-top: 4px; font-size: 12px; color: #e2f5e9; }
.delivery-switch { position: relative; width: 48px; height: 26px; flex: 0 0 auto; cursor: pointer; }
.delivery-switch input { width: 0; height: 0; opacity: 0; }
.delivery-switch span { position: absolute; inset: 0; margin: 0; border-radius: 20px; background: #8c9d93; transition: .2s; }
.delivery-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: .2s; }
.delivery-switch input:checked + span { background: #8ff0b2; }
.delivery-switch input:checked + span::after { transform: translateX(22px); }
.delivery-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0; }
.delivery-stats article { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 20px; border: 1px solid #dce9df; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(20, 73, 43, .05); }
.delivery-stats i { grid-row: span 2; padding: 10px; border-radius: 10px; color: #198754; background: #e8f8ee; font-size: 20px; }
.delivery-stats span { color: #6b7280; font-size: 13px; }
.delivery-stats strong { font-size: 27px; line-height: 1; }
.delivery-section { padding: 26px; border: 1px solid #dce9df; border-radius: 18px; background: #fff; }
.delivery-section-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 20px; }
.delivery-section-heading h2 { margin: 5px 0; font-size: 22px; font-weight: 800; }
.delivery-section-heading p { margin: 0; color: #6b7280; }
.delivery-count { padding: 7px 10px; border-radius: 20px; color: #146c43; background: #e8f8ee; font-size: 13px; font-weight: 700; white-space: nowrap; }
.delivery-list { display: grid; gap: 16px; }
.delivery-card { padding: 22px; border: 1px solid #e2e9e4; border-radius: 14px; background: #fcfefd; }
.delivery-card-topline { display: flex; justify-content: space-between; gap: 14px; }
.delivery-order { color: #6b7280; font-size: 12px; font-weight: 700; }
.delivery-card h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; }
.delivery-status { height: fit-content; padding: 6px 10px; border-radius: 20px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.delivery-status-assigned { color: #805b00; background: #fff3cd; }.delivery-status-picked-up, .delivery-status-in-transit { color: #0b5d89; background: #d9f1ff; }.delivery-status-delivered { color: #146c43; background: #d9f5e3; }
.delivery-route { margin: 20px 0; padding: 16px; border-radius: 10px; background: #f5f9f6; }
.delivery-stop { display: flex; gap: 12px; align-items: flex-start; }.delivery-stop > i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: #198754; }.delivery-stop.dropoff > i { background: #d9534f; }
.delivery-stop span, .delivery-stop strong, .delivery-stop small { display: block; }.delivery-stop span { color: #6b7280; font-size: 12px; }.delivery-stop strong { font-size: 14px; }.delivery-stop small { color: #6b7280; font-size: 12px; }
.delivery-route-line { height: 22px; padding-left: 8px; color: #8cb99c; }
.delivery-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }.delivery-status-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }.delivery-status-form label { color: #58635c; font-size: 12px; font-weight: 700; }.delivery-status-form select { padding: 8px; border: 1px solid #cfdcd2; border-radius: 7px; background: #fff; font-size: 13px; }
.delivery-primary-action, .delivery-secondary-action, .delivery-map-action { padding: 9px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 700; text-decoration: none; }.delivery-primary-action { color: #fff; background: #198754; }.delivery-secondary-action, .delivery-map-action { color: #146c43; border-color: #b9d9c4; background: #fff; }.delivery-secondary-action:disabled { opacity: .7; cursor: wait; }.delivery-map-action { color: #4b5860; border-color: #d2dad5; }.delivery-complete-note { color: #198754; font-size: 13px; font-weight: 700; }
.delivery-proof-link { display: inline-flex; align-items: center; gap: 5px; color: #146c43; font-size: 12.5px; font-weight: 700; text-decoration: none; }.delivery-proof-link:hover { text-decoration: underline; }
.delivery-empty-state { padding: 44px 20px; border: 1px dashed #b6cdbd; border-radius: 12px; text-align: center; background: #fbfefc; }.delivery-empty-state > i { color: #198754; font-size: 38px; }.delivery-empty-state h3 { margin: 10px 0 5px; font-size: 19px; }.delivery-empty-state p { max-width: 500px; margin: 0 auto; color: #6b7280; }
.delivery-track-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }.delivery-timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 24px 0 14px; padding: 0; list-style: none; }.delivery-timeline li { position: relative; padding-top: 24px; color: #8a968e; font-size: 12px; font-weight: 700; text-align: center; }.delivery-timeline li::before { position: absolute; z-index: 1; top: 3px; left: calc(50% - 8px); width: 16px; height: 16px; border: 3px solid #d7e2da; border-radius: 50%; background: #fff; content: ''; }.delivery-timeline li:not(:last-child)::after { position: absolute; top: 10px; left: 50%; width: 100%; height: 2px; background: #d7e2da; content: ''; }.delivery-timeline li.is-complete { color: #146c43; }.delivery-timeline li.is-complete::before, .delivery-timeline li.is-complete:not(:last-child)::after { border-color: #198754; background: #198754; }

@media (max-width: 850px) { .delivery-hero { align-items: stretch; flex-direction: column; }.delivery-availability-card { min-width: 0; }.delivery-stats { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .delivery-hero, .delivery-section, .delivery-card { padding: 18px; }.delivery-section-heading, .delivery-card-topline { flex-direction: column; }.delivery-card-actions, .delivery-status-form { align-items: stretch; width: 100%; }.delivery-primary-action, .delivery-secondary-action, .delivery-map-action { text-align: center; }.delivery-status-form select { flex: 1; } }
@media (max-width: 600px) { .delivery-track-heading { flex-direction: column; }.delivery-timeline { grid-template-columns: 1fr; gap: 0; }.delivery-timeline li { padding: 5px 0 5px 30px; text-align: left; }.delivery-timeline li::before { top: 5px; left: 4px; }.delivery-timeline li:not(:last-child)::after { top: 20px; left: 11px; width: 2px; height: 22px; } }
.transaction-image:hover { outline: 3px solid #cfeeda; }.transaction-details h3 a { color: inherit; text-decoration: none; }.transaction-details h3 a:hover, .transaction-item-link:hover { color: #146c43; }.transaction-item-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; color: #198754; font-size: 13px; font-weight: 700; text-decoration: none; }.message-item-image { display: grid; width: 48px; height: 48px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 10px; color: #94a3b8; background: #f1f5f2; }.message-item-image img { width: 100%; height: 100%; object-fit: cover; }.message-item-details { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: #17633d; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }.message-item-details:hover { color: #0f5132; text-decoration: underline; }.message-thread-status { margin-left: 8px; }.delivery-secondary-action.is-sharing { color: #fff; border-color: #b42318; background: #b42318; }.delivery-location-note { color: #6b7280; font-size: 12px; font-weight: 600; }.smart-match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }.smart-match-card { overflow: hidden; border: 1px solid #dce9df; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(20,73,43,.05); }.smart-match-image { display: grid; height: 170px; place-items: center; overflow: hidden; color: #8a968e; background: #f3f7f4; text-decoration: none; }.smart-match-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }.smart-match-card:hover .smart-match-image img { transform: scale(1.04); }.smart-match-content { padding: 15px; }.smart-match-score { display: inline-flex; align-items: center; gap: 5px; color: #146c43; font-size: 12px; font-weight: 800; }.smart-match-content h2 { margin: 9px 0 5px; font-size: 17px; }.smart-match-content h2 a { color: #1f2937; text-decoration: none; }.smart-match-content h2 a:hover { color: #146c43; }.smart-match-content p { margin: 0; color: #6b7280; font-size: 13px; }.smart-match-details { display: inline-flex; align-items: center; gap: 5px; margin-top: 13px; color: #198754; font-size: 13px; font-weight: 800; text-decoration: none; }

/* Notification center */
.notification-menu { position: relative; }.dashboard-notification { position: relative; }.notification-badge { position: absolute; top: -6px; right: -8px; min-width: 18px; padding: 1px 4px; border: 2px solid #fff; border-radius: 20px; color: #fff; background: #dc3545; font-size: 10px; font-weight: 800; line-height: 14px; }.notification-panel { position: absolute; z-index: 1100; top: calc(100% + 12px); right: 0; width: min(390px, calc(100vw - 36px)); overflow: hidden; border: 1px solid #dce9df; border-radius: 14px; background: #fff; box-shadow: 0 16px 35px rgba(22, 36, 59, .18); }.notification-panel[hidden] { display: none; }.notification-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid #edf1ee; }.notification-panel-heading strong, .notification-panel-heading span { display: block; }.notification-panel-heading span { color: #6b7280; font-size: 12px; }.notification-panel-actions { display: flex; align-items: center; gap: 10px; }.notification-panel-heading button { border: 0; color: #146c43; background: transparent; font-size: 12px; font-weight: 700; white-space: nowrap; }.notification-panel-heading .notification-clear-button { color: #b42318; }.notification-items { max-height: min(520px, calc(100vh - 150px)); overflow-y: auto; overscroll-behavior: contain; }.notification-item { border-bottom: 1px solid #edf1ee; }.notification-item:last-child { border-bottom: 0; }.notification-item strong, .notification-item small, .notification-item time { display: block; }.notification-item strong { color: #25332a; font-size: 13px; }.notification-item small { margin: 2px 0; color: #657169; font-size: 12px; line-height: 1.35; }.notification-item time { color: #89958d; font-size: 11px; }.notification-type { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #146c43; background: #e8f8ee; }.notification-type-message { color: #0b5d89; background: #d9f1ff; }.notification-empty { padding: 30px; color: #718077; text-align: center; }.notification-empty i { font-size: 25px; }.notification-empty p { margin: 8px 0 0; font-size: 13px; }

.notification-item { display: flex; gap: 10px; padding: 13px 16px; color: inherit; text-decoration: none; background: #fff; }.notification-item:hover { color: inherit; background: #f5faf6; }.notification-item.is-unread { background: #effaf2; }
.notification-stack-count { min-width: 22px; height: 22px; margin: 4px 0 0 auto; padding: 2px 6px; border-radius: 12px; color: #fff; background: #dc3545; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }

.transaction-decision { padding: 11px; border: 1px solid #d8eee0; border-radius: 10px; background: #f5fbf6; }.transaction-decision > span { display: block; margin-bottom: 7px; color: #486153; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.transaction-action { display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; }.transaction-action-accept:hover { color: #fff; background: #146c43; }.transaction-action-reject:hover { background: #fff5f5; }

/* Profile photo upload */
.profile-form-card { overflow: hidden; border: 1px solid #dce9df; border-radius: 18px; background: #fff; box-shadow: 0 5px 16px rgba(20, 73, 43, .05); }.profile-photo-section { display: flex; align-items: center; gap: 24px; padding: 28px; border-bottom: 1px solid #e7eee9; background: linear-gradient(120deg, #f5fbf6, #fff); }.profile-photo-preview { display: grid; width: 116px; height: 116px; flex: 0 0 auto; overflow: hidden; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: #198754; box-shadow: 0 5px 18px rgba(20, 108, 67, .2); font-size: 40px; font-weight: 800; }.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }.profile-photo-copy h2, .profile-details-heading h2 { margin: 4px 0 6px; color: #16243b; font-size: 22px; font-weight: 800; }.profile-photo-copy p { max-width: 600px; margin: 0; color: #66736b; }.profile-section-kicker { color: #198754; font-size: 11px; font-weight: 800; letter-spacing: .09em; }.profile-photo-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }.profile-photo-upload { padding: 9px 13px; border-radius: 8px; color: #fff; background: #198754; font-size: 13px; font-weight: 700; cursor: pointer; }.profile-photo-upload:hover { background: #146c43; }.profile-photo-filename { color: #6b7280; font-size: 12px; }.profile-details-section { padding: 28px; }.profile-details-heading { margin-bottom: 18px; }.profile-details-section .form-label { color: #314238; font-size: 13px; font-weight: 700; }.profile-details-section .form-control { min-height: 42px; border-color: #d5e0d8; }.profile-details-section .form-control:focus { border-color: #198754; box-shadow: 0 0 0 .2rem rgba(25, 135, 84, .12); }.profile-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-top: 1px solid #e7eee9; background: #fbfdfb; }.profile-form-footer p { margin: 0; color: #748078; font-size: 13px; }.profile-form-footer .btn { padding: 9px 15px; font-weight: 700; }
@media (max-width: 600px) { .profile-photo-section { align-items: flex-start; flex-direction: column; padding: 22px; }.profile-details-section { padding: 22px; }.profile-location-section { padding: 18px 22px 22px; }.profile-form-footer { align-items: stretch; flex-direction: column; padding: 18px 22px; }.profile-form-footer .btn { width: 100%; } }

.image-preview-grid.has-previews {
    display: grid;
}

.image-preview-grid.single-preview {
    grid-template-columns: minmax(0, 1fr);
}

.image-preview-item {
    position: relative;
    min-width: 0;
    min-height: 0;
}

.image-preview-remove {
    position: absolute;
    top: 6px;
    right: 6px;

    display: grid;
    width: 24px;
    height: 24px;

    place-items: center;

    border: 2px solid #fff;
    border-radius: 50%;

    color: #fff;
    background: rgba(180, 35, 24, .85);

    font-size: 11px;
    cursor: pointer;
    transition: background .15s ease;
}

.image-preview-remove:hover {
    background: #b42318;
}

.image-preview-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f1f5f3;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.listing-image-preview {
    display: none !important;

    width: 100%;
    height: 100%;

    object-fit: contain;
    background: #f1f5f3;
}


/* ONLY SHOW AFTER IMAGE IS SELECTED */

.listing-image-preview.show {
    display: block !important;
}

/* =========================================================
   POSTING TIPS
========================================================= */

.listing-help-card {
    background: #f8fffb;
}

.listing-help-card ul {
    margin: 16px 0 0;

    padding-left: 20px;
}

.listing-help-card li {
    color: #6b7280;

    margin-bottom: 12px;

    font-size: 14px;
}


/* =========================================================
   BUTTONS
========================================================= */

.submit-listing-btn {
    width: 100%;

    border: none;

    border-radius: 12px;

    padding: 15px 20px;

    background: #198754;

    color: #ffffff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.submit-listing-btn:hover {
    background: #157347;

    transform: translateY(-1px);
}

.submit-listing-btn i {
    margin-right: 8px;
}


.cancel-listing-btn {
    display: block;

    width: 100%;

    margin-top: 12px;

    padding: 13px;

    border-radius: 12px;

    text-align: center;

    color: #6b7280;

    text-decoration: none;

    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.cancel-listing-btn:hover {
    background: #f3f4f6;

    color: #1f2937;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .post-listing-grid {
        grid-template-columns: 1fr;
    }

    .post-listing-side {
        display: grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap: 20px;
    }

    .image-upload-card,
    .listing-help-card {
        margin-bottom: 0;
    }

    .submit-listing-btn,
    .cancel-listing-btn {
        grid-column: span 2;
    }
}


@media (max-width: 768px) {

    .post-listing-page {
        width: 100%;
    }

    .listing-form-card {
        padding: 20px;

        border-radius: 14px;
    }

    .post-listing-header h2 {
        font-size: 24px;
    }

    .post-listing-side {
        grid-template-columns: 1fr;
    }

    .submit-listing-btn,
    .cancel-listing-btn {
        grid-column: auto;
    }
}


@media (max-width: 576px) {

    .listing-type-option {
        min-height: auto;
    }

    .post-listing-header {
        margin-bottom: 20px;
    }
}

/* =====================================================
   DASHBOARD LISTINGS - FINAL FIX
===================================================== */

/* Nearby items container */
.dashboard-item-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 22px 24px 24px;
}

/* Nearby item card */
.dashboard-item-card {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e3e8e5;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(20, 40, 25, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(20, 40, 25, 0.08);
}

/* ---------------------------------------------------------
   NEARBY ITEM IMAGE
   Fixed box: the uploaded image can NEVER change the card size.
--------------------------------------------------------- */
.dashboard-item-image {
    position: relative;
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    flex: 0 0 180px;
    overflow: hidden;
    background: #f1f5f3;
}

.dashboard-item-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.dashboard-item-no-image {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f3;
    color: #8a938d;
    font-size: 13px;
}

/* Listing type badge */
.dashboard-item-image .dashboard-item-type {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: auto;
    padding: 5px 9px;
    margin: 0;
    background: rgba(25, 135, 84, 0.95);
    color: #ffffff;
    border-radius: 20px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
}

/* If the badge is inside the body instead of the image, keep it normal. */
.dashboard-item-body > .dashboard-item-type {
    position: static;
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 5px 9px;
    margin: 0 0 9px;
    background: #e8f5ec;
    color: #198754;
    border-radius: 20px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   NEARBY ITEM BODY
--------------------------------------------------------- */
.dashboard-item-body {
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 15px;
}

.dashboard-item-body h4 {
    width: 100%;
    margin: 0 0 7px;
    color: #25342a;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-item-body p {
    width: 100%;
    min-height: 36px;
    margin: 0 0 12px;
    color: #7a847c;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dashboard-item-location {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: #7a847c;
    font-size: 10px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dashboard-item-location i {
    flex: 0 0 auto;
    color: #198754;
}

.dashboard-item-price {
    display: block;
    margin-top: 8px;
    color: #198754;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 700;
}

/* =====================================================
   MY LISTINGS
   Every thumbnail uses one fixed box.
===================================================== */

.dashboard-my-listings {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 4px 24px 18px;
}

.my-listing-row {
    width: 100%;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #edf0ed;
}

.my-listing-row:last-child {
    border-bottom: none;
}

/* Fixed thumbnail */
.my-listing-image {
    position: relative;
    width: 96px;
    height: 96px;
    min-width: 96px;
    min-height: 96px;
    max-width: 96px;
    max-height: 96px;
    flex: 0 0 96px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f3;
    border: 1px solid #e1e7e3;
    border-radius: 12px;
}

.my-listing-image img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.my-listing-image span {
    color: #8a938d;
    font-size: 10px;
    text-align: center;
}

.my-listing-info {
    flex: 1 1 auto;
    min-width: 0;
}

.my-listing-info h4 {
    width: 100%;
    margin: 0 0 6px;
    color: #25342a;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-listing-info p {
    width: 100%;
    margin: 0 0 8px;
    color: #7a847c;
    font-size: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.my-listing-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    background: #e8f5ec;
    color: #198754;
    border-radius: 20px;
    font-size: 10px;
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
}

.my-listing-date {
    flex: 0 0 auto;
    color: #8a938d;
    font-size: 11px;
    white-space: nowrap;
}

/* =====================================================
   DASHBOARD EMPTY STATE
===================================================== */

.nearby-empty-state {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.nearby-empty-state .empty-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border-radius: 50%;
    background: var(--sn-primary-light);
    color: var(--sn-primary);
    font-size: 24px;
}

.nearby-empty-state h4 {
    margin: 0 0 7px;
    color: #25342a;
    font-size: 17px;
    font-weight: 700;
}

.nearby-empty-state p {
    max-width: 400px;
    margin: 0 0 18px;
    color: #7a847c;
    font-size: 13px;
    line-height: 1.6;
}

.outline-dashboard-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid var(--sn-primary);
    border-radius: 8px;
    background: transparent;
    color: var(--sn-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

.outline-dashboard-btn:hover {
    background: var(--sn-primary);
    color: #ffffff;
}

/* =====================================================
   DASHBOARD RESPONSIVE
===================================================== */

@media (max-width: 1200px) {
    .dashboard-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .dashboard-sidebar {
        width: 250px;
    }

    .dashboard-main {
        width: calc(100% - 250px);
        margin-left: 250px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
    }

    .dashboard-main {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-topbar {
        padding: 16px 20px;
    }

    .dashboard-content {
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-item-grid {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .dashboard-item-image,
    .dashboard-item-no-image {
        height: 220px;
        min-height: 220px;
        max-height: 220px;
    }

    .dashboard-item-image {
        flex-basis: 220px;
    }

    .dashboard-my-listings {
        padding-left: 18px;
        padding-right: 18px;
    }

    .my-listing-date {
        display: none;
    }
}

@media (max-width: 576px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 15px;
    }

    .dashboard-topbar-actions {
        gap: 8px;
    }

    .dashboard-profile-button span {
        display: none;
    }

    .my-listing-row {
        gap: 12px;
    }

    .my-listing-image {
        width: 80px;
        height: 80px;
        min-width: 80px;
        min-height: 80px;
        max-width: 80px;
        max-height: 80px;
        flex-basis: 80px;
        border-radius: 10px;
    }

    .my-listing-info h4 {
        font-size: 14px;
    }

    .my-listing-info p {
        font-size: 11px;
    }
}

/* =========================================================
   BROWSE ITEMS
========================================================= */

.browse-page {
    max-width: 1280px;
    margin: 0 auto;
}

.my-item-thumbnail {
    display: flex;
    flex: 0 0 84px;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 24px;
}

.my-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.transaction-page{max-width:1100px;margin:auto}.transaction-intro{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:28px;margin-bottom:28px;border-radius:16px;background:linear-gradient(135deg,#effaf3,#fff);border:1px solid #d8eee0}.transaction-eyebrow{color:#198754;font-weight:700;font-size:13px;text-transform:uppercase;letter-spacing:.06em}.transaction-intro h2{margin:8px 0;font-size:26px}.transaction-intro p,.transaction-section-heading p,.transaction-details p{margin:0;color:#6b7280}.transaction-browse-button{display:inline-flex;gap:8px;align-items:center;padding:11px 16px;border-radius:9px;background:#198754;color:#fff;text-decoration:none;font-weight:700;white-space:nowrap}.transaction-section{margin-top:28px}.transaction-section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.transaction-section-heading h2{margin:0 0 4px;font-size:19px}.transaction-count{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#e8f5ed;color:#198754;font-weight:700}.transaction-list{display:grid;gap:12px}.transaction-card{display:grid;grid-template-columns:88px 1fr auto;gap:18px;align-items:center;padding:14px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.transaction-image{width:88px;height:72px;display:grid;place-items:center;overflow:hidden;border-radius:9px;background:#f3f4f6;color:#9ca3af;font-size:24px}.transaction-image img{width:100%;height:100%;object-fit:contain}.transaction-card-topline{display:flex;gap:8px;margin-bottom:7px}.transaction-type,.transaction-status{padding:4px 8px;border-radius:99px;font-size:12px;font-weight:700}.transaction-type{background:#f3f4f6;color:#4b5563}.transaction-status-pending{background:#fff7df;color:#9a6700}.transaction-status-accepted,.transaction-status-completed{background:#e8f5ed;color:#167344}.transaction-status-rejected,.transaction-status-cancelled{background:#fcebed;color:#b42318}.transaction-details h3{margin:0 0 6px;font-size:16px}.transaction-actions form{display:flex;gap:8px}.transaction-action{border:0;border-radius:8px;padding:9px 13px;font-weight:700}.transaction-action-accept{background:#198754;color:#fff}.transaction-action-reject,.transaction-action-cancel{background:#fff;color:#b42318;border:1px solid #fecaca}.transaction-resolved{color:#6b7280;font-size:13px}.transaction-empty-state{padding:42px 22px;text-align:center;border:1px dashed #d1d5db;border-radius:14px;background:#fff}.transaction-empty-state>div{font-size:30px;color:#198754}.transaction-empty-state h3{margin:8px 0}.transaction-empty-state p{margin:0 0 18px;color:#6b7280}@media(max-width:576px){.transaction-intro,.transaction-card{display:flex;flex-direction:column;align-items:flex-start}.transaction-intro{padding:22px}.transaction-actions{width:100%}.transaction-actions form{width:100%}.transaction-action{flex:1}.transaction-image{width:100%;height:160px}}

.browse-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}

.browse-filters select,
.browse-search input {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
}

.browse-search {
    position: relative;
}

.browse-search i {
    position: absolute;
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    color: #6b7280;
}

.browse-search input {
    padding-left: 38px;
}

.browse-filter-button {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #198754;
    color: #ffffff;
    font-weight: 600;
    white-space: nowrap;
}

.browse-clear-link {
    color: #374151;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.browse-results-count {
    margin: 20px 2px 12px;
    color: #6b7280;
}

.browse-item-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.browse-item-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    transition: transform .18s ease, box-shadow .18s ease;
}

.browse-item-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15, 23, 42, .10); }
.browse-card-link { position: absolute; z-index: 1; inset: 0; border-radius: inherit; }
.browse-item-card form, .browse-item-card .btn { position: relative; z-index: 2; }

.browse-item-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 190px;
    background: #f3f4f6;
    color: #6b7280;
}

.browse-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.browse-item-card:hover .browse-item-image img { transform: scale(1.045); }

.browse-item-content {
    padding: 15px;
}

.browse-item-meta,
.browse-item-footer {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.browse-item-meta span:last-child {
    color: #167344;
    font-weight: 600;
}

.dashboard-avatar img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

.browse-item-content h2 {
    margin: 10px 0 6px;
    color: #111827;
    font-size: 17px;
}

.browse-item-content p {
    min-height: 42px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
}

.browse-item-footer strong {
    color: #111827;
    white-space: nowrap;
}

.browse-pagination {
    margin-top: 24px;
}

.item-detail-card { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr); overflow: hidden; border: 1px solid #e5e7eb; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(15, 23, 42, .07); }
.item-detail-gallery { display: flex; flex-direction: column; gap: 10px; padding: 10px; align-content: start; background: #f3f4f6; }
.item-gallery-main-wrap { position: relative; width: 100%; }
.item-gallery-main { display: block; width: 100%; height: 380px; object-fit: contain; border-radius: 10px; background: #fff; }
.item-gallery-arrow { position: absolute; top: 50%; display: grid; width: 36px; height: 36px; margin-top: -18px; place-items: center; border: none; border-radius: 50%; color: #146c43; background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(15, 23, 42, .18); cursor: pointer; transition: background .15s ease, transform .15s ease; }
.item-gallery-arrow:hover { background: #fff; transform: translateY(-1px); }
.item-gallery-arrow-prev { left: 10px; }
.item-gallery-arrow-next { right: 10px; }
.item-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: #b9d9c4 transparent; }
.item-gallery-thumbs::-webkit-scrollbar { height: 6px; }
.item-gallery-thumbs::-webkit-scrollbar-track { background: transparent; }
.item-gallery-thumbs::-webkit-scrollbar-thumb { background: #b9d9c4; border-radius: 999px; }
.item-gallery-thumbs::-webkit-scrollbar-thumb:hover { background: #8fc3a4; }
.item-gallery-thumb { flex: 0 0 60px; width: 60px; height: 60px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s ease; }
.item-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.item-gallery-thumb:hover { border-color: #b9d9c4; }
.item-gallery-thumb.is-active { border-color: #198754; }
.item-detail-placeholder { display: grid; min-height: 300px; place-content: center; gap: 10px; color: #6b7280; text-align: center; }
.item-detail-placeholder i { font-size: 44px; }
.item-detail-content { padding: 28px; }
.item-detail-content h2 { margin: 12px 0 6px; color: #18261d; font-size: 28px; }
.item-detail-content h3 { margin: 25px 0 8px; font-size: 16px; }
.item-detail-owner { color: #64748b; }
.item-detail-facts { display: grid; gap: 12px; margin: 22px 0; }
.item-detail-facts div { display: grid; grid-template-columns: 115px 1fr; gap: 12px; padding-bottom: 11px; border-bottom: 1px solid #edf1ee; }
.item-detail-facts dt { color: #6b7280; font-weight: 500; }.item-detail-facts dd { margin: 0; color: #1f2937; font-weight: 700; }
.item-detail-description { white-space: pre-line; color: #4b5563; line-height: 1.65; }
.item-detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.item-detail-actions form.item-exchange-trigger-form { margin: 0; }
.transaction-offer-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: #146c43; font-size: 13px; }
.transaction-offer-thumb { width: 20px; height: 20px; border-radius: 5px; object-fit: cover; }
.transaction-offer-card { display: flex; align-items: center; gap: 12px; margin: 10px 0 18px; padding: 10px 14px; border: 1px solid #dce9df; border-radius: 12px; background: #f6faf7; color: inherit; text-decoration: none; transition: border-color .15s ease, background .15s ease; }
a.transaction-offer-card:hover { border-color: #198754; background: #f0faf3; }
.transaction-offer-card img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.transaction-offer-card-placeholder { display: grid; width: 52px; height: 52px; place-items: center; border-radius: 8px; color: #198754; background: #e8f8ee; font-size: 18px; }
.transaction-offer-card strong { color: #14432b; font-size: 14px; }

.message-list { display: grid; gap: 10px; max-width: 850px; }
.message-list-item { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid #e1e9e3; border-radius: 14px; color: inherit; text-decoration: none; background: #fff; transition: background .18s ease, transform .18s ease; }.message-list-item.has-unread { border-color: #acd8b9; background: #f3fbf5; }
.message-list-item:hover { color: inherit; background: #f4faf5; transform: translateX(3px); }
.message-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #17633d; background: #dff3e5; font-weight: 800; }
.message-list-copy { display: grid; min-width: 0; flex: 1; gap: 2px; }.message-list-copy small { color: #16804a; font-weight: 600; }.message-list-copy > span { overflow: hidden; color: #6b7280; text-overflow: ellipsis; white-space: nowrap; }
.message-list-item > i { color: #94a3b8; }
.message-unread-count { min-width: 23px; padding: 3px 7px; border-radius: 12px; color: #fff; background: #d9534f; font-size: 11px; font-weight: 800; line-height: 16px; text-align: center; }
.message-thread { max-width: 850px; overflow: hidden; border: 1px solid #dce9df; border-radius: 16px; background: #fff; box-shadow: 0 10px 25px rgba(15, 23, 42, .07); }
.message-thread > header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e7eee8; }.message-thread > header small { display: block; color: #6b7280; font-size: 13px; }
.message-thread-body { display: flex; min-height: 330px; max-height: 55vh; flex-direction: column; gap: 12px; overflow-y: auto; padding: 20px; background: #fbfdfb; }
.message-bubble { max-width: min(80%, 560px); padding: 11px 14px; align-self: flex-start; border: 1px solid #e4ebe5; border-radius: 4px 15px 15px 15px; background: #fff; }.message-bubble.is-mine { align-self: flex-end; border-color: #c7e9d2; border-radius: 15px 4px 15px 15px; background: #eaf8ed; }
.message-bubble strong { display: block; margin-bottom: 3px; color: #17633d; font-size: 12px; }.message-bubble p { margin: 0; color: #25332a; white-space: pre-wrap; }.message-bubble time { display: block; margin-top: 5px; color: #809087; font-size: 11px; }.message-empty { margin: auto; color: #6b7280; }
.message-compose { display: flex; gap: 10px; padding: 14px; border-top: 1px solid #e7eee8; }.message-compose textarea { min-height: 46px; flex: 1; resize: vertical; border: 1px solid #cddbd0; border-radius: 10px; padding: 10px 12px; }.message-compose button { align-self: flex-end; }
.menu-count { display: grid; min-width: 18px; height: 18px; margin-left: auto; place-items: center; border-radius: 12px; color: #fff; background: #dc3545; font-size: 10px; font-weight: 800; }

@media (max-width: 768px) { .item-detail-card { grid-template-columns: 1fr; }.item-detail-content { padding: 20px; }.item-gallery-main { height: 260px; }.message-thread-body { min-height: 280px; }.message-compose button span { display: none; } }

/* Marketplace polish: clearer item hierarchy and stronger interactive affordances. */
.browse-page { max-width: 1320px; margin: 0 auto; }
.browse-results-count { display: inline-flex; align-items: center; padding: 7px 11px; border-radius: 999px; color: #17633d; background: #eaf8ed; font-size: 13px; font-weight: 700; }
.browse-item-card { border-color: #dfe8e1; box-shadow: 0 3px 12px rgba(15, 23, 42, .035); }
.browse-item-image { height: 205px; }
.browse-item-content h2 { overflow: hidden; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.browse-item-content p { line-height: 1.55; }
.browse-item-meta span { padding: 4px 8px; border-radius: 99px; background: #f1f6f2; font-size: 11px; font-weight: 700; }
.browse-item-meta span:last-child { background: #e8f8ee; }
.browse-item-footer { align-items: center; padding-top: 11px; border-top: 1px solid #eef2ef; }
.browse-item-footer span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browse-item-card .btn { border-radius: 8px; font-weight: 700; }

.item-detail-card { border-color: #d9e7dc; }
.item-detail-content { position: relative; }
.item-detail-content::before { position: absolute; top: 0; left: 28px; right: 28px; height: 4px; border-radius: 0 0 10px 10px; background: linear-gradient(90deg, #198754, #65b989); content: ''; }
.item-detail-owner { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 10px; border-radius: 8px; color: #396149; background: #f1f8f3; font-size: 13px; }
.item-detail-facts div { align-items: center; }
.item-detail-facts dt { font-size: 13px; }.item-detail-facts dd { font-size: 14px; }
.item-detail-actions .btn { min-height: 44px; border-radius: 9px; padding-inline: 17px; font-weight: 700; }

/* Compact card actions stay on one clear row at every viewport size. */
.browse-item-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.browse-item-actions form { min-width: 0; }
.browse-item-actions .btn { display: inline-flex; width: 100%; min-width: 0; align-items: center; justify-content: center; gap: 4px; padding: 7px 5px; font-size: 11px; line-height: 1.2; white-space: nowrap; }
.browse-item-actions .btn i { font-size: 12px; }

/* Shared back navigation gives detail, messages, and listing pages a consistent control. */
.back-navigation { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 8px 12px; border: 1px solid #cfe0d3; border-radius: 9px; color: #17633d; background: #fff; box-shadow: 0 2px 5px rgba(15, 23, 42, .04); font-size: 13px; font-weight: 700; text-decoration: none; transition: background .18s ease, transform .18s ease, border-color .18s ease; }
.back-navigation:hover { border-color: #198754; color: #146c43; background: #edf9f0; transform: translateX(-2px); }

/* Conversation page: a focused, private chat workspace rather than a plain card. */
.message-thread { border-radius: 18px; box-shadow: 0 14px 35px rgba(15, 35, 22, .09); }
.message-thread > header { min-height: 76px; padding: 15px 20px; background: linear-gradient(135deg, #f5fcf6, #fff); }
.message-thread > header .message-avatar { box-shadow: 0 0 0 4px #eaf8ed; }
.message-thread-status { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 6px 9px; border-radius: 99px; color: #39704a; background: #eaf8ed; font-size: 11px; font-weight: 700; white-space: nowrap; }
.message-thread-body { background-image: radial-gradient(#dfeee3 1px, transparent 1px); background-size: 18px 18px; }
.message-compose { padding: 16px; background: #fff; }.message-compose textarea:focus { outline: none; border-color: #198754; box-shadow: 0 0 0 3px rgba(25, 135, 84, .12); }

@media (max-width: 576px) { .message-thread-status { display: none; }.message-thread > header { padding: 14px; }.browse-item-actions .btn { padding-inline: 3px; font-size: 10px; } }

.browse-empty-state {
    padding: 64px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    text-align: center;
}

.browse-empty-state i {
    display: block;
    margin-bottom: 14px;
    color: #198754;
    font-size: 34px;
}

.browse-empty-state h2 {
    font-size: 20px;
}

.browse-empty-state p {
    margin-bottom: 20px;
    color: #6b7280;
}

@media (max-width: 1100px) {
    .browse-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .browse-item-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .browse-filters,
    .browse-item-grid {
        grid-template-columns: 1fr;
    }
}

/* Transaction action panel */
.transaction-actions {
    display: grid;
    min-width: 205px;
    gap: 8px;
}

.transaction-message-form,
.transaction-message-form .transaction-action {
    width: 100%;
}

.transaction-action-message {
    color: #17633d;
    border: 1px solid #b9d9c4;
    background: #fff;
}

.transaction-action-message:hover {
    color: #146c43;
    background: #effaf2;
}

.transaction-decision {
    padding: 10px;
    border-color: #cde8d6;
    background: #f4fbf6;
}

.transaction-decision > span {
    margin-bottom: 8px;
}

.transaction-decision-form {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 7px !important;
}

.transaction-decision-form .transaction-action {
    width: 100%;
    padding: 8px 9px;
}

.transaction-action-reject {
    border-color: #f3c4c4;
    background: #fff;
}

.transaction-actions > .transaction-action-accept {
    text-align: center;
}

@media (max-width: 576px) {
    .transaction-actions { min-width: 0; }
    .transaction-message-form .transaction-action { flex: 0 0 auto; }
}

.delivery-map { height: 420px; overflow: hidden; border: 1px solid #dce9df; border-radius: 12px; background: #edf4ef; }
.delivery-route-planner { margin: 24px 0; padding: 26px; border: 1px solid #cde8d6; border-radius: 18px; background: linear-gradient(135deg, #f4fbf6, #fff); }.delivery-route-stops { display: grid; gap: 9px; }.delivery-route-stop { display: grid; grid-template-columns: 30px 22px 1fr auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid #dce9df; border-left: 4px solid #198754; border-radius: 10px; background: #fff; cursor: grab; }.delivery-route-stop.dropoff { border-left-color: #d9534f; }.delivery-route-stop.is-dragging { opacity: .55; }.delivery-route-stop.is-awaiting-pickup { border-left-style: dashed; background: #fbfcfa; }.route-stop-waiting { display: inline-flex; align-items: center; gap: 6px; color: #8a968e; font-size: 12px; font-weight: 700; white-space: nowrap; }.route-stop-waiting i { font-size: 11px; }.route-stop-order { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #146c43; background: #e8f8ee; font-size: 13px; font-weight: 800; }.delivery-route-stop.dropoff .route-stop-order { color: #b42318; background: #fcebed; }.route-stop-grip { color: #9aa8a0; font-size: 19px; }.route-stop-copy { min-width: 0; }.route-stop-copy span, .route-stop-copy strong, .route-stop-copy small { display: block; }.route-stop-copy span { color: #198754; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }.route-stop-copy strong { overflow: hidden; margin-top: 2px; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }.route-stop-copy small { overflow: hidden; color: #6b7280; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }@media (max-width: 576px) { .delivery-route-planner { padding: 18px; }.delivery-route-stop { grid-template-columns: 28px 18px 1fr; }.delivery-route-stop form { grid-column: 1 / -1; }.delivery-route-stop .delivery-primary-action { width: 100%; }.route-stop-grip { font-size: 16px; } }
.delivery-navigation-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 12px; border: 1px solid #dce9df; border-radius: 10px; background: #fff; }.delivery-navigation-controls label { color: #405048; font-size: 12px; font-weight: 800; }.delivery-navigation-controls select { min-width: min(100%, 310px); flex: 1; min-height: 38px; padding: 7px 10px; border: 1px solid #b9d9c4; border-radius: 8px; color: #25332a; background: #fff; }.delivery-navigation-status { min-height: 20px; margin: 10px 0 0; color: #146c43; font-size: 13px; font-weight: 700; }.delivery-route-map { height: 380px; margin-top: 10px; overflow: hidden; border: 1px solid #cde8d6; border-radius: 12px; background: #edf4ef; }.delivery-route-map-note { margin: 10px 0 0; color: #66736b; font-size: 12px; }.leaflet-routing-container { display: none; } @media (max-width: 576px) { .delivery-navigation-controls { align-items: stretch; }.delivery-navigation-controls select, .delivery-navigation-controls .delivery-primary-action { width: 100%; } }
.delivery-map-icon { border: 0; background: transparent; }.map-pin { box-sizing: border-box; position: relative; isolation: isolate; display: grid; place-items: center; width: 30px; height: 30px; border: 2px solid #fff; border-radius: 50%; background: #198754; color: #fff; font-size: 15px; line-height: 1; box-shadow: 0 3px 8px rgba(15, 23, 42, .3); }.map-pin::after { content: ''; position: absolute; left: 50%; top: 100%; z-index: -1; width: 11px; height: 11px; background: inherit; border-radius: 0 0 2px; transform: translate(-50%, -62%) rotate(45deg); }.map-pin > i, .map-pin > span { display: block; line-height: 1; }.map-pin--pickup { background: #198754; }.map-pin--dropoff { background: #d9534f; }.map-pin--member { background: #7c3aed; }.map-pin--driver { width: 34px; height: 34px; border-color: #fff; background: #2878d4; font-size: 17px; }.map-pin--locked { background: #9aa3a0 !important; box-shadow: 0 2px 5px rgba(15, 23, 42, .2); }.map-pin__badge { position: absolute; top: -7px; right: -7px; z-index: 1; display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 3px; border: 2px solid #fff; border-radius: 999px; background: #0f172a; color: #fff; font-size: 10px; font-weight: 800; line-height: 1; }.profile-location-section { margin-top: 22px; padding: 22px 28px 28px; border-top: 1px solid #e7ece8; }.profile-location-section > p { margin: 8px 0 12px; color: #657169; font-size: 14px; }.profile-location-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }.profile-location-actions span { color: #146c43; font-size: 13px; font-weight: 600; }.profile-location-map { height: 320px; overflow: hidden; border: 1px solid #cde8d6; border-radius: 12px; background: #edf4ef; } @media (max-width: 576px) { .profile-location-actions .btn { width: 100%; } }
.delivery-map-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; color: #52615a; font-size: 12px; font-weight: 700; }.delivery-map-legend span { display: inline-flex; align-items: center; gap: 5px; }.delivery-map-legend i { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; }.delivery-map-legend-driver i { background: #2878d4; }.delivery-map-legend-pickup i { background: #198754; }.delivery-map-legend-dropoff i { background: #d9534f; }
.delivery-map-legend-member i { background: #7c3aed; }
.delivery-marker-label { border: 0; border-radius: 5px; color: #25332a; background: rgba(255,255,255,.94); box-shadow: 0 1px 5px rgba(15,23,42,.22); font-size: 11px; font-weight: 800; }.delivery-marker-label::before { display: none; }

/* Admin console */
.admin-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; border-radius: 20px; color: #fff; background: linear-gradient(120deg, #12355b, #2168aa 62%, #458cd1); }.admin-eyebrow { display: inline-flex; align-items: center; gap: 7px; color: #bfe0ff; font-size: 11px; font-weight: 800; letter-spacing: .09em; }.admin-hero h2 { margin: 7px 0; font-size: clamp(24px, 3vw, 34px); font-weight: 800; }.admin-hero p { margin: 0; color: #dceeff; }.admin-hero-action { display: inline-flex; align-items: center; gap: 8px; padding: 12px 15px; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; color: #fff; background: rgba(255,255,255,.13); font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }.admin-hero-action:hover { color: #fff; background: rgba(255,255,255,.22); }.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }.admin-stats article { display: grid; grid-template-columns: auto 1fr; gap: 3px 11px; align-items: center; padding: 18px; border: 1px solid #dbe7f1; border-radius: 14px; background: #fff; box-shadow: 0 5px 16px rgba(23, 57, 88, .05); }.admin-stats i { grid-row: span 2; display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #2168aa; background: #e8f3fd; font-size: 18px; }.admin-stats span { color: #667788; font-size: 12px; font-weight: 700; }.admin-stats strong { color: #1f2937; font-size: 25px; line-height: 1; }.admin-tabs { display: flex; gap: 6px; margin-bottom: 20px; padding: 6px; overflow-x: auto; border: 1px solid #dbe7f1; border-radius: 12px; background: #fff; }.admin-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 8px; color: #546476; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }.admin-tabs a:hover { color: #174f85; background: #f1f7fc; }.admin-tabs a.active { color: #fff; background: #2168aa; }.admin-tabs b { display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 50%; color: #a5201a; background: #ffe2df; font-size: 10px; }.admin-panel { padding: 23px; border: 1px solid #dbe7f1; border-radius: 16px; background: #fff; box-shadow: 0 5px 16px rgba(23,57,88,.04); }.admin-panel-heading { display: flex; justify-content: space-between; gap: 15px; align-items: start; margin-bottom: 19px; }.admin-panel-heading h2 { margin: 0 0 4px; color: #203040; font-size: 19px; font-weight: 800; }.admin-panel-heading p { margin: 0; color: #6b7785; font-size: 13px; }.admin-panel-heading > a { color: #2168aa; font-size: 13px; font-weight: 800; text-decoration: none; white-space: nowrap; }.admin-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }.admin-activity-list { display: grid; gap: 4px; }.admin-activity-list > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid #edf1f5; }.admin-activity-list > div:first-child { border-top: 0; }.admin-activity-list strong, .admin-activity-list small, .admin-table strong, .admin-table small { display: block; }.admin-activity-list strong, .admin-table strong { color: #273645; font-size: 13px; }.admin-activity-list small, .admin-table small { margin-top: 2px; color: #758291; font-size: 11px; }.admin-initial, .admin-transaction-icon { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 9px; color: #2168aa; background: #e8f3fd; font-size: 13px; font-weight: 800; }.admin-transaction-icon { color: #146c43; background: #e7f7ec; }.admin-status { display: inline-flex; align-items: center; width: fit-content; padding: 4px 7px; border-radius: 20px; color: #536273; background: #edf1f5; font-size: 10px; font-style: normal; font-weight: 800; line-height: 1; text-transform: capitalize; white-space: nowrap; }.admin-status.active, .admin-status.completed, .admin-status.delivered { color: #146c43; background: #e6f6eb; }.admin-status.inactive, .admin-status.pending, .admin-status.assigned, .admin-status.picked-up, .admin-status.in-transit, .admin-status.accepted, .admin-status.reserved { color: #9a6500; background: #fff3d8; }.admin-status.banned, .admin-status.rejected, .admin-status.cancelled { color: #a5201a; background: #ffe8e6; }.admin-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin-bottom: 19px; padding: 13px; border-radius: 11px; background: #f5f9fc; }.admin-filters > div { display: grid; gap: 4px; min-width: 150px; flex: 1; }.admin-filters label, .admin-category-form label { color: #586879; font-size: 11px; font-weight: 800; }.admin-filters input, .admin-filters select, .admin-inline-form select, .admin-category-form input { min-height: 37px; padding: 7px 10px; border: 1px solid #c9d8e5; border-radius: 7px; color: #2b3a49; background: #fff; font-size: 13px; }.admin-filters > a { padding: 8px 5px; color: #2168aa; font-size: 13px; font-weight: 800; text-decoration: none; }.admin-table { width: 100%; margin: 0; border-collapse: collapse; }.admin-table th { padding: 10px 9px; border-bottom: 1px solid #dbe7f1; color: #718092; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }.admin-table td { padding: 11px 9px; border-bottom: 1px solid #edf1f5; color: #435260; font-size: 13px; vertical-align: middle; }.admin-table tbody tr:last-child td { border-bottom: 0; }.admin-role { color: #2168aa; font-weight: 700; }.admin-inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; min-width: 240px; }.admin-inline-form select { min-height: 31px; padding: 4px 7px; font-size: 12px; }.admin-protected { color: #687786; font-size: 12px; font-weight: 700; }.admin-listing { display: flex; align-items: center; gap: 9px; min-width: 180px; }.admin-item-image { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; overflow: hidden; border-radius: 8px; color: #8a98a6; background: #edf2f6; }.admin-item-image img { width: 100%; height: 100%; object-fit: cover; }.admin-report-reason { min-width: 200px; max-width: 350px; }.admin-category-form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; padding: 14px; border-radius: 11px; background: #f5f9fc; }.admin-category-form label { display: grid; width: 100%; }.admin-category-form input { width: min(100%, 330px); }.admin-category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }.admin-category-grid article { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e1eaf1; border-radius: 10px; }.admin-category-grid article > span { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; color: #2168aa; background: #e8f3fd; }.admin-category-grid strong, .admin-category-grid small { display: block; }.admin-category-grid strong { color: #2a3948; font-size: 13px; }.admin-category-grid small { color: #768493; font-size: 11px; }.admin-category-grid em { margin-left: auto; color: #7c8997; font-size: 11px; font-style: normal; font-weight: 700; }.admin-category-grid form { margin-left: auto; }.admin-empty { padding: 18px !important; color: #738191; text-align: center; }
@media (max-width: 980px) { .admin-stats { grid-template-columns: repeat(2, 1fr); }.admin-overview-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .admin-hero { align-items: stretch; flex-direction: column; padding: 22px; }.admin-hero-action { justify-content: center; }.admin-stats { grid-template-columns: 1fr; }.admin-panel { padding: 16px; }.admin-panel-heading { flex-direction: column; }.admin-filters > div { flex-basis: 100%; }.admin-filters .btn { width: 100%; }.admin-tabs { margin-right: -2px; }.admin-category-form input, .admin-category-form .btn { width: 100%; } }

/* Keep the admin workspace aligned with SwapNear's green brand palette. */
.admin-hero { background: linear-gradient(120deg, #0f5132, #198754 62%, #48a874); }.admin-eyebrow { color: #d7f5e2; }.admin-hero p { color: #e2f5e9; }.admin-stats i, .admin-initial, .admin-category-grid article > span { color: #198754; background: #e8f8ee; }.admin-tabs a:hover { color: #146c43; background: #f0faf3; }.admin-tabs a.active { background: #198754; }.admin-panel-heading > a, .admin-filters > a, .admin-role { color: #198754; }.admin-transaction-icon { color: #146c43; background: #e8f8ee; }.admin-filters { background: #f4fbf6; }.admin-filters input, .admin-filters select, .admin-inline-form select, .admin-category-form input { border-color: #b9d9c4; }.admin-category-form { background: #f4fbf6; }.admin-hero-action { background: rgba(255,255,255,.13); }

/* Transaction detail */
.transaction-detail-card { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); overflow: hidden; margin-top: 16px; border: 1px solid #dce9df; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(20,73,43,.06); }.transaction-detail-gallery { display: flex; flex-direction: column; gap: 10px; padding: 10px; min-height: 360px; max-height: 520px; overflow: auto; background: #edf4ef; }.transaction-detail-content { padding: clamp(22px, 4vw, 38px); }.transaction-detail-content h2 { margin: 13px 0 7px; color: #21342a; font-size: clamp(23px, 3vw, 31px); font-weight: 800; }.transaction-detail-owner { margin: 0 0 22px; color: #657169; font-size: 14px; }.transaction-detail-owner i { color: #198754; }.transaction-detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 22px; border-top: 1px solid #e4ece6; border-left: 1px solid #e4ece6; }.transaction-detail-facts div { min-height: 74px; padding: 12px; border-right: 1px solid #e4ece6; border-bottom: 1px solid #e4ece6; }.transaction-detail-facts dt { margin-bottom: 4px; color: #758178; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }.transaction-detail-facts dd { margin: 0; color: #27372e; font-size: 13px; font-weight: 700; }.transaction-detail-content h3 { margin: 0 0 7px; color: #294034; font-size: 15px; font-weight: 800; }.transaction-detail-description { margin: 0; color: #607067; line-height: 1.65; white-space: pre-line; }.transaction-detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }.transaction-detail-actions form { margin: 0; }.transaction-detail-actions .btn { display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 760px) { .transaction-detail-card { grid-template-columns: 1fr; }.transaction-detail-gallery { min-height: 250px; max-height: 390px; }.item-gallery-main { height: 260px; }.transaction-detail-content { padding: 22px; } }
@media (max-width: 420px) { .transaction-detail-facts { grid-template-columns: 1fr; }.transaction-detail-actions .btn { width: 100%; justify-content: center; } }

/* Keep transaction card controls consistent across every request state. */
.transaction-actions { display: grid; min-width: 180px; gap: 8px; }.transaction-actions > form, .transaction-actions > a, .transaction-decision { width: 100%; margin: 0; }.transaction-actions .transaction-action { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; width: 100%; text-align: center; text-decoration: none; }.transaction-action-details { border: 1px solid #b9d9c4; color: #146c43; background: #fff; }.transaction-action-details:hover { border-color: #198754; color: #0f5132; background: #f2fbf5; }.transaction-decision { display: grid; gap: 6px; }.transaction-decision > span { color: #66736b; font-size: 11px; font-weight: 800; text-align: center; }.transaction-actions .transaction-decision-form { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: 100%; }.transaction-actions form.d-flex { display: grid !important; gap: 8px !important; width: 100%; }.transaction-actions .form-select { min-width: 0; }
@media (max-width: 576px) { .transaction-actions { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }.transaction-actions > form, .transaction-actions > a, .transaction-decision { grid-column: span 1; }.transaction-actions .transaction-decision, .transaction-actions form.d-flex { grid-column: 1 / -1; }.transaction-actions .transaction-resolved { grid-column: 1 / -1; text-align: center; } }

/* =====================================================
   CONFIRM DIALOG (replaces window.confirm everywhere)
===================================================== */

.confirm-modal-backdrop {
    position: fixed;
    inset: 0;
    /* Above the exchange/edit-listing modals (z-index 2000) — this dialog is
       often triggered from inside one of them and must never end up buried
       underneath it. */
    z-index: 2050;

    display: grid;
    place-items: center;

    padding: 20px;

    background: rgba(15, 23, 42, .45);
}

.confirm-modal-backdrop[hidden] {
    display: none;
}

.confirm-modal {
    width: min(380px, 100%);
    padding: 28px 26px 22px;

    border-radius: 18px;

    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .25);

    text-align: center;

    animation: confirmModalIn .16s ease-out;
}

@keyframes confirmModalIn {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: none; }
}

.confirm-modal-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;

    place-items: center;

    border-radius: 50%;

    color: #198754;
    background: #e8f8ee;

    font-size: 22px;
}

.confirm-modal.is-danger .confirm-modal-icon {
    color: #b42318;
    background: #ffe2df;
}

.confirm-modal-message {
    margin: 0 0 22px;

    color: #25332a;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 10px;
}

.confirm-modal-actions button {
    flex: 1;
    padding: 11px;

    border: 0;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
    transition: background .15s ease;
}

.confirm-modal-cancel {
    color: #45514a;
    background: #eef1ea;
}

.confirm-modal-cancel:hover {
    background: #e1e6db;
}

.confirm-modal-ok {
    color: #fff;
    background: #198754;
}

.confirm-modal-ok:hover {
    background: #146c43;
}

.confirm-modal.is-danger .confirm-modal-ok {
    background: #b42318;
}

.confirm-modal.is-danger .confirm-modal-ok:hover {
    background: #8f1c13;
}

@media (max-width: 420px) {
    .confirm-modal { padding: 24px 20px 18px; }
}

/* =====================================================
   EXCHANGE OFFER MODAL
===================================================== */

.exchange-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: grid;
    place-items: center;

    padding: 20px;
    overflow-y: auto;

    background: rgba(15, 23, 42, .45);
}

.exchange-modal-backdrop[hidden] {
    display: none;
}

.exchange-modal {
    position: relative;
    width: min(420px, 100%);
    margin: auto;
    padding: 26px 24px 22px;

    border-radius: 18px;

    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .25);

    animation: confirmModalIn .16s ease-out;
}

.exchange-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    display: grid;
    width: 30px;
    height: 30px;

    place-items: center;

    border: 0;
    border-radius: 50%;

    color: #6b7c72;
    background: #f1f3ec;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.exchange-modal-close:hover {
    background: #e5e9df;
}

.exchange-modal h2 {
    margin: 0 0 4px;

    color: #14432b;
    font-size: 18px;
    font-weight: 800;
}

.exchange-modal-target {
    margin: 0 0 18px;

    color: #52615a;
    font-size: 13px;
}

.exchange-modal-target strong {
    color: #146c43;
}

.exchange-modal label {
    display: block;
    margin-bottom: 5px;

    color: #314238;
    font-size: 13px;
    font-weight: 700;
}

.exchange-modal label span {
    color: #8a968e;
    font-weight: 500;
}

.exchange-modal .form-control {
    margin-bottom: 14px;

    border-color: #cfe0d4;
}

.exchange-modal-photo {
    display: grid;
    height: 120px;
    margin-bottom: 14px;

    place-items: center;
    overflow: hidden;

    border: 1px dashed #b9d9c4;
    border-radius: 10px;

    background: #f6faf7;

    cursor: pointer;
}

.exchange-modal-photo:hover {
    background: #eef8f1;
}

.exchange-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exchange-modal-photo span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;

    color: #52615a;
    font-size: 12.5px;
    font-weight: 600;
}

.exchange-modal-photo span i {
    color: #198754;
    font-size: 20px;
}

.exchange-modal-photo span span {
    color: #8a968e;
    font-weight: 500;
}

.exchange-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.exchange-modal-actions button {
    flex: 1;
    padding: 11px;

    border: 0;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.exchange-modal-cancel {
    color: #45514a;
    background: #eef1ea;
}

.exchange-modal-cancel:hover {
    background: #e1e6db;
}

.exchange-modal-submit {
    color: #fff;
    background: #198754;
}

.exchange-modal-submit:hover {
    background: #146c43;
}

@media (max-width: 420px) {
    .exchange-modal { padding: 22px 18px 18px; }
}

/* =====================================================
   MY ITEMS — click-to-edit + edit modal
===================================================== */

.my-item-thumbnail {
    display: grid;
    width: 56px;
    height: 56px;
    flex: 0 0 auto;

    place-items: center;
    overflow: hidden;

    border-radius: 10px;

    color: #8a968e;
    background: #f1f3ec;

    font-size: 20px;
}

.my-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.my-item-card-editable {
    cursor: pointer;
    transition: background .15s ease, box-shadow .15s ease;
}

.my-item-card-editable:hover,
.my-item-card-editable:focus-visible {
    background: #f9fcfa;
    box-shadow: 0 0 0 2px #cfe0d4 inset;
    outline: none;
}

/* The status form, its select, and its button sit inside the same clickable
   card but must behave normally — restore the default cursor over them so
   the row doesn't look clickable where it actually isn't. */
.my-item-card-editable form,
.my-item-card-editable form * {
    cursor: auto;
}

.my-item-edit-hint {
    margin-left: 7px;
    color: #b7c2ba;
    font-size: 13px;
    vertical-align: middle;
}

.my-item-card-editable:hover .my-item-edit-hint,
.my-item-card-editable:focus-visible .my-item-edit-hint {
    color: #198754;
}

.edit-item-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;

    display: grid;
    place-items: center;

    padding: 20px;
    overflow-y: auto;

    background: rgba(15, 23, 42, .45);
}

.edit-item-modal-backdrop[hidden] {
    display: none;
}

.edit-item-modal {
    position: relative;
    width: min(480px, 100%);
    margin: auto;
    padding: 26px 24px 22px;

    border-radius: 18px;

    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, .25);

    animation: confirmModalIn .16s ease-out;
}

.edit-item-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;

    display: grid;
    width: 30px;
    height: 30px;

    place-items: center;

    border: 0;
    border-radius: 50%;

    color: #6b7c72;
    background: #f1f3ec;

    font-size: 20px;
    line-height: 1;

    cursor: pointer;
}

.edit-item-modal-close:hover {
    background: #e5e9df;
}

.edit-item-modal h2 {
    margin: 0 0 18px;

    color: #14432b;
    font-size: 18px;
    font-weight: 800;
}

.edit-item-form {
    display: block;
    max-height: 72vh;
    overflow-y: auto;
}

.edit-item-form label {
    display: block;
    margin-bottom: 5px;

    color: #314238;
    font-size: 13px;
    font-weight: 700;
}

.edit-item-form label span {
    color: #8a968e;
    font-weight: 500;
}

.edit-item-form .form-control,
.edit-item-form .form-select {
    margin-bottom: 14px;

    border-color: #cfe0d4;
}

.edit-item-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.edit-item-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.edit-item-photo {
    position: relative;
    width: 64px;
    height: 64px;

    border-radius: 10px;
    background: #f1f5f3;

    cursor: pointer;
}

.edit-item-photo img {
    width: 100%;
    height: 100%;

    border-radius: 10px;

    object-fit: contain;

    transition: opacity .15s ease, filter .15s ease;
}

.edit-item-photo-remove {
    position: absolute;
    top: -6px;
    right: -6px;

    display: grid;
    width: 20px;
    height: 20px;

    place-items: center;

    border: 2px solid #fff;
    border-radius: 50%;

    color: #52615a;
    background: #eef1ea;

    font-size: 10px;
}

.edit-item-photo input:checked + img {
    opacity: .35;
    filter: grayscale(1);
}

.edit-item-photo input:checked ~ .edit-item-photo-remove {
    color: #fff;
    background: #b42318;
}

.edit-item-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.edit-item-modal-actions button {
    flex: 1;
    padding: 11px;

    border: 0;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.edit-item-modal-cancel {
    color: #45514a;
    background: #eef1ea;
}

.edit-item-modal-cancel:hover {
    background: #e1e6db;
}

.edit-item-modal-save {
    color: #fff;
    background: #198754;
}

.edit-item-modal-save:hover {
    background: #146c43;
}

@media (max-width: 420px) {
    .edit-item-modal { padding: 22px 18px 18px; }
    .edit-item-row { grid-template-columns: 1fr; }
}

/* =====================================================
   TOAST NOTIFICATIONS (replaces the plain Bootstrap
   alert banners for session('success') / $errors)
===================================================== */

.toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3000;

    display: flex;
    flex-direction: column;
    gap: 10px;

    width: min(360px, calc(100vw - 32px));

    pointer-events: none;
}

.toast-stack:empty {
    display: none;
}

.toast-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 14px 14px 16px;

    border-left: 4px solid transparent;
    border-radius: 14px;

    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);

    pointer-events: auto;
    animation: toastIn .22s ease-out;
}

.toast-card.is-leaving {
    animation: toastOut .18s ease-in forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes toastOut {
    from { opacity: 1; transform: none; }
    to { opacity: 0; transform: translateX(24px); }
}

.toast-icon {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    margin-top: 1px;

    place-items: center;
    border-radius: 50%;

    font-size: 14px;
}

.toast-card.is-success { border-left-color: #198754; }
.toast-card.is-success .toast-icon { color: #198754; background: #e8f8ee; }

.toast-card.is-danger { border-left-color: #b42318; }
.toast-card.is-danger .toast-icon { color: #b42318; background: #ffe2df; }

.toast-message {
    flex: 1;
    margin: 0;
    padding-top: 2px;

    color: #25332a;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}

.toast-error-list {
    margin: 0;
    padding-left: 16px;
}

.toast-error-list li {
    margin: 2px 0;
}

.toast-close {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 0;

    border: 0;
    background: transparent;

    color: #9aa3a0;
    font-size: 18px;
    line-height: 1;

    cursor: pointer;
}

.toast-close:hover {
    color: #52615a;
}

@media (max-width: 480px) {
    .toast-stack { top: 10px; right: 10px; left: 10px; width: auto; }
}

/* =====================================================
   ADMIN — SAFE MEETUP SPOTS
===================================================== */

.admin-spot-form {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
    padding: 16px;
    border-radius: 11px;
    background: #f4fbf6;
}

.admin-spot-form label {
    display: block;
    margin-bottom: 4px;
    color: #586879;
    font-size: 11px;
    font-weight: 800;
}

.admin-spot-form input[type="text"],
.admin-spot-form input:not([type="hidden"]) {
    width: min(100%, 380px);
    min-height: 37px;
    padding: 7px 10px;
    border: 1px solid #b9d9c4;
    border-radius: 7px;
    background: #fff;
    font-size: 13px;
}

.admin-spot-map-hint {
    margin: 0;
    color: #66736b;
    font-size: 12.5px;
}

.admin-spot-map {
    height: 280px;
    overflow: hidden;
    border: 1px solid #cde8d6;
    border-radius: 12px;
    background: #edf4ef;
    /* Keep Leaflet's z-index 400–1000 panes inside the map so the search results can overlap it. */
    isolation: isolate;
}

.admin-spot-form .btn {
    justify-self: start;
}

.admin-spot-list-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
    color: #2a3948;
    font-size: 14px;
    font-weight: 700;
}

.admin-spot-list-heading span {
    padding: 1px 8px;
    border-radius: 999px;
    color: #198754;
    background: #e8f8ee;
    font-size: 11.5px;
    font-weight: 700;
}

.admin-spot-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 14px;
}

.admin-spot-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #e1eaf1;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 50, 35, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.admin-spot-card:hover {
    border-color: #b9e2c8;
    box-shadow: 0 8px 22px rgba(20, 67, 43, .08);
    transform: translateY(-1px);
}

.admin-spot-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-spot-card-head > div {
    min-width: 0;
}

.admin-spot-card-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #22a565, #157347);
    font-size: 18px;
}

.admin-spot-card-head strong {
    display: block;
    overflow: hidden;
    color: #14432b;
    font-size: 14.5px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-spot-card-head small {
    display: block;
    margin-top: 2px;
    color: #8a96a3;
    font-size: 11.5px;
}

.admin-spot-card-address {
    display: flex;
    flex: 1;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #44515e;
    background: #f6faf7;
    font-size: 12.5px;
    line-height: 1.45;
}

.admin-spot-card-address i {
    flex: 0 0 auto;
    margin-top: 1px;
    color: #198754;
}

.admin-spot-card-address span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.admin-spot-card-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e1eaf1;
}

.admin-spot-card-foot code {
    overflow: hidden;
    color: #8a96a3;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-spot-card-foot a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    color: #198754;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.admin-spot-card-foot a:hover {
    text-decoration: underline;
}

.admin-spot-card-foot form {
    margin: 0;
}

.admin-spot-card-remove {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid #f1d4d7;
    border-radius: 9px;
    color: #c0392b;
    background: #fff;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.admin-spot-card-remove:hover {
    border-color: #dc3545;
    color: #fff;
    background: #dc3545;
}

.admin-spot-address {
    margin: 0;
    color: #4f5f6f;
    font-size: 12.5px;
}

/* =====================================================
   EXCHANGE MEETUP LOCATION
===================================================== */

.meetup-section {
    margin-top: 20px;
    padding: 24px;
    border: 1px solid #dce9df;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 73, 43, .05);
}

.meetup-section-heading h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 3px;
    color: #14432b;
    font-size: 17px;
    font-weight: 800;
}

.meetup-section-heading p {
    margin: 0 0 16px;
    color: #66736b;
    font-size: 13px;
}

.meetup-safety-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f4fbf6;
    color: #35513f;
    font-size: 13px;
    line-height: 1.5;
}

.meetup-safety-tip i {
    color: #198754;
    font-size: 15px;
    margin-top: 1px;
}

.meetup-current {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #cde8d6;
    border-radius: 10px;
    background: #f6faf7;
}

.meetup-current > i {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #198754;
}

.meetup-current strong {
    display: block;
    color: #14432b;
    font-size: 14px;
}

.meetup-current small {
    display: block;
    margin-top: 2px;
    color: #66736b;
    font-size: 12px;
}

.meetup-current-address {
    display: block;
    margin-top: 2px;
    color: #3f4f5f;
    font-size: 12.5px;
    line-height: 1.4;
}

.meetup-directions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #198754;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
}

.meetup-directions:hover {
    text-decoration: underline;
}

.meetup-missing-location {
    margin: 0 0 14px;
    color: #66736b;
    font-size: 13px;
}

.meetup-suggested-label {
    margin: 0 0 8px;
    color: #314238;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.meetup-suggestions {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.meetup-suggestion-form {
    margin: 0;
}

.meetup-suggestion-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #cde8d6;
    border-radius: 10px;
    background: #fbfefc;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}

.meetup-suggestion-btn:hover {
    border-color: #198754;
    background: #f2fbf5;
}

.meetup-suggestion-btn strong {
    color: #14432b;
    font-size: 13.5px;
}

.meetup-suggestion-btn span {
    color: #66736b;
    font-size: 12px;
}

.meetup-suggestion-btn .meetup-suggestion-address {
    color: #4f5f6f;
    font-size: 12px;
    line-height: 1.35;
}

.meetup-map {
    height: 260px;
    overflow: hidden;
    border: 1px solid #cde8d6;
    border-radius: 12px;
    background: #edf4ef;
}

.meetup-map-note {
    margin: 8px 0 0;
    color: #66736b;
    font-size: 12px;
}

@media (max-width: 576px) {
    .meetup-section { padding: 18px; }
}

.admin-spot-search {
    position: relative;
}

.admin-spot-search-row {
    display: flex;
    gap: 8px;
}

.admin-spot-search-row input {
    flex: 1;
}

.admin-spot-search-results {
    position: absolute;
    z-index: 10;
    top: 100%;
    left: 0;
    right: 0;

    max-height: 220px;
    margin: 4px 0 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;

    border: 1px solid #cde8d6;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 26px rgba(15, 23, 42, .14);
}

.admin-spot-search-results li {
    padding: 8px 10px;
    border-radius: 7px;
    color: #2a3948;
    font-size: 12.5px;
    line-height: 1.4;
    cursor: pointer;
}

.admin-spot-search-results li:hover {
    background: #f2fbf5;
}

.admin-spot-search-results li.is-loading,
.admin-spot-search-results li.is-empty {
    color: #768493;
    cursor: default;
}

.admin-spot-search-results li.is-loading:hover,
.admin-spot-search-results li.is-empty:hover {
    background: none;
}

.meetup-suggested-label span {
    color: #66736b;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
}

.meetup-auto-status {
    margin: 0 0 16px;
    color: #66736b;
    font-size: 12.5px;
}

.meetup-auto-tag {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 7px;
    border-radius: 999px;
    background: #eef3ff;
    color: #3654a3;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    vertical-align: middle;
}

.meetup-search {
    margin-bottom: 16px;
}

.meetup-search label {
    display: block;
    margin-bottom: 6px;
    color: #314238;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* Delivery list → route link (the route is where stops get completed) */
.delivery-route-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #cde8d6;
    border-radius: 999px;
    color: #146c43;
    background: #f2fbf5;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.delivery-route-link:hover {
    border-color: #198754;
    color: #146c43;
    background: #e3f6ea;
}

.delivery-route-link b {
    font-weight: 800;
}

.delivery-route-stop {
    scroll-margin-top: 90px;
}

.delivery-route-stop:target {
    animation: route-stop-flash 1.6s ease;
}

@keyframes route-stop-flash {
    0%, 40% { box-shadow: 0 0 0 4px rgba(25, 135, 84, .35); background: #eefaf2; }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.delivery-route-planner) { scroll-behavior: smooth; }
}

/* =====================================================
   PROOF OF DELIVERY MODAL
===================================================== */
.proof-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2040;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, .55);
}

.proof-modal-backdrop[hidden] {
    display: none;
}

.proof-modal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(480px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 20px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
    animation: confirmModalIn .18s ease-out;
}

.proof-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.proof-modal-head h2 {
    margin: 4px 0 2px;
    color: #14432b;
    font-size: 19px;
    font-weight: 800;
}

.proof-modal-head p {
    margin: 0;
    color: #5b6a62;
    font-size: 13px;
}

.proof-modal-head p strong {
    color: #25332a;
}

.proof-modal-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #45514a;
    background: #eef1ea;
    cursor: pointer;
}

.proof-modal-close:hover {
    background: #e1e6db;
}

.proof-modal-stage {
    position: relative;
    display: grid;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #0f1a14;
}

.proof-modal-stage video,
.proof-modal-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.proof-modal-stage video[hidden],
.proof-modal-stage img[hidden] {
    display: none;
}

.proof-modal-placeholder {
    display: grid;
    gap: 10px;
    place-content: center;
    padding: 20px;
    color: #c9d8cf;
    font-size: 13.5px;
    text-align: center;
}

.proof-modal-placeholder[hidden] {
    display: none;
}

.proof-modal-placeholder i {
    color: #7fd3a3;
    font-size: 34px;
}

.proof-modal-tips {
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 0;
    color: #52615a;
    font-size: 12.5px;
    list-style: none;
}

.proof-modal-tips i {
    margin-right: 4px;
    color: #198754;
}

.proof-modal-error {
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    color: #b42318;
    background: #fdeceb;
    font-size: 13px;
}

.proof-modal-actions {
    display: flex;
    gap: 10px;
}

.proof-modal-actions[hidden] {
    display: none;
}

.proof-modal-actions button {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 46px;
    padding: 10px 14px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, opacity .15s ease;
}

.proof-modal-actions button:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.proof-modal-secondary {
    color: #45514a;
    background: #eef1ea;
}

.proof-modal-secondary:hover {
    background: #e1e6db;
}

.proof-modal-shutter,
.proof-modal-confirm {
    color: #fff;
    background: #198754;
}

.proof-modal-shutter:hover:not(:disabled),
.proof-modal-confirm:hover:not(:disabled) {
    background: #146c43;
}

.proof-modal-shutter {
    flex: 1.4;
}

@media (max-width: 576px) {
    .proof-modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .proof-modal {
        width: 100%;
        max-height: 100dvh;
        border-radius: 20px 20px 0 0;
    }

    .proof-modal-stage {
        aspect-ratio: 3 / 4;
    }
}

/* Route stop buttons: "Navigate here" + "Picked up"/"Delivered" as one aligned pair */
.route-stop-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.route-stop-actions form {
    display: flex;
    margin: 0;
}

.route-stop-actions .delivery-primary-action,
.route-stop-actions .delivery-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 136px;
    min-height: 40px;
    margin: 0;
    white-space: nowrap;
    cursor: pointer;
}

.route-stop-actions .delivery-primary-action:hover {
    background: #146c43;
}

.route-stop-actions .delivery-secondary-action:hover {
    border-color: #198754;
    background: #f2fbf5;
}

@media (max-width: 760px) {
    .delivery-route-stop {
        grid-template-columns: 28px 18px 1fr;
    }

    .route-stop-actions {
        grid-column: 1 / -1;
    }

    .route-stop-actions > *,
    .route-stop-actions form .delivery-primary-action {
        flex: 1;
        min-width: 0;
    }
}

/* Route navigation controls: each label sits above its own field, and fields + buttons share one baseline */
.delivery-navigation-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 190px) auto;
    align-items: end;
    gap: 12px;
}

.delivery-nav-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.delivery-nav-field label {
    margin: 0;
    font-size: 11.5px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.delivery-navigation-controls .delivery-nav-field select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
}

.delivery-nav-buttons {
    display: flex;
    gap: 8px;
}

.delivery-nav-buttons .delivery-primary-action,
.delivery-nav-buttons .delivery-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-height: 40px;
    white-space: nowrap;
    cursor: pointer;
}

@media (max-width: 900px) {
    .delivery-navigation-controls {
        grid-template-columns: minmax(0, 1fr) minmax(140px, 170px);
    }

    .delivery-nav-buttons {
        grid-column: 1 / -1;
    }

    .delivery-nav-buttons > * {
        flex: 1;
    }
}

@media (max-width: 520px) {
    .delivery-navigation-controls {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   REPORT LISTING — quiet link + report modal
===================================================== */
.item-detail-safety {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #e6eee8;
    color: #6b7a71;
    font-size: 12.5px;
}

.item-detail-safety > span i {
    margin-right: 4px;
    color: #198754;
}

.item-report-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 2px;
    border: 0;
    color: #7b8790;
    background: none;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: color .15s ease;
}

.item-report-link:hover,
.item-report-link:focus-visible {
    color: #b42318;
    text-decoration: underline;
}

.report-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2040;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(15, 23, 42, .5);
}

.report-modal-backdrop[hidden] {
    display: none;
}

.report-modal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(460px, 100%);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 22px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
    animation: confirmModalIn .18s ease-out;
}

.report-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.report-modal-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 12px;
    color: #b42318;
    background: #fdeceb;
    font-size: 18px;
}

.report-modal-head h2 {
    margin: 0 0 2px;
    color: #25332a;
    font-size: 18px;
    font-weight: 800;
}

.report-modal-head p {
    margin: 0;
    color: #6b7a71;
    font-size: 13px;
}

.report-modal-close {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #45514a;
    background: #eef1ea;
    cursor: pointer;
}

.report-modal-close:hover {
    background: #e1e6db;
}

.report-reasons {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
}

.report-reasons legend,
.report-details-label {
    margin-bottom: 6px;
    color: #3d4a43;
    font-size: 13px;
    font-weight: 700;
}

.report-details-label small {
    color: #8a968e;
    font-weight: 600;
}

.report-reason {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #e1e8e3;
    border-radius: 10px;
    color: #33413a;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.report-reason:hover {
    border-color: #c9d6cd;
    background: #fafcfa;
}

.report-reason:has(input:checked) {
    border-color: #b42318;
    background: #fff6f5;
}

.report-reason input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #b42318;
}

.report-modal textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5dfd8;
    border-radius: 10px;
    font-size: 13.5px;
    resize: vertical;
}

.report-modal textarea:focus {
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .15);
}

.report-error {
    margin: -4px 0 0;
    color: #b42318;
    font-size: 12.5px;
}

.report-note {
    margin: 0;
    color: #6b7a71;
    font-size: 12px;
}

.report-note i {
    margin-right: 4px;
}

.report-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.report-modal-actions button {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.report-cancel {
    color: #45514a;
    background: #eef1ea;
}

.report-cancel:hover {
    background: #e1e6db;
}

.report-submit {
    color: #fff;
    background: #b42318;
}

.report-submit:hover {
    background: #8f1c13;
}

@media (max-width: 576px) {
    .report-modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .report-modal {
        width: 100%;
        max-height: 100dvh;
        border-radius: 18px 18px 0 0;
    }
}

.admin-report-category {
    display: block;
    width: fit-content;
    margin-bottom: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    color: #b42318;
    background: #fdeceb;
    font-size: 11px;
    font-weight: 700;
}

/* =====================================================
   SAFE SPOT TYPES — map dots, legend, popups, admin import
===================================================== */
.safe-spot-icon {
    border: 0;
    background: transparent;
}

.safe-spot-dot {
    display: inline-grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #f59e0b;
    box-shadow: 0 2px 6px rgba(15, 23, 42, .3);
    font-size: 12px;
    line-height: 1;
}

.safe-spot-icon .safe-spot-dot {
    width: 100%;
    height: 100%;
}

.safe-spot-dot.is-police { background: #1d4ed8; }
.safe-spot-dot.is-municipal_hall { background: #7c3aed; }
.safe-spot-dot.is-barangay_hall { background: #0f9f6e; }
.safe-spot-dot.is-custom { background: #f59e0b; }

.safe-spot-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
    color: #52615a;
    font-size: 12px;
    font-weight: 700;
}

.safe-spot-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.safe-spot-legend .safe-spot-dot {
    width: 20px;
    height: 20px;
    border-width: 1.5px;
    font-size: 10px;
}

.safe-spot-popup {
    display: grid;
    gap: 3px;
    font-family: inherit;
}

.safe-spot-popup-type {
    color: #198754;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.safe-spot-popup strong {
    color: #14432b;
    font-size: 14px;
}

.safe-spot-popup small {
    color: #5b6a62;
    font-size: 12px;
    line-height: 1.35;
}

.safe-spot-popup small:empty {
    display: none;
}

.safe-spot-popup-distance {
    color: #3f4f5f !important;
    font-weight: 600;
}

.safe-spot-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #198754;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.safe-spot-popup-btn:hover {
    background: #146c43;
}

.meetup-suggestion-type-icon { margin-right: 2px; }
.meetup-suggestion-type-icon.is-police { color: #1d4ed8; }
.meetup-suggestion-type-icon.is-municipal_hall { color: #7c3aed; }
.meetup-suggestion-type-icon.is-barangay_hall { color: #0f9f6e; }
.meetup-suggestion-type-icon.is-custom { color: #f59e0b; }

/* Admin: import panel */
.admin-spot-import {
    display: grid;
    gap: 12px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px dashed #b9d9c4;
    border-radius: 14px;
    background: #f8fcf9;
}

.admin-spot-import-copy {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.admin-spot-import-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: #198754;
    background: #e3f6ea;
    font-size: 18px;
}

.admin-spot-import-copy strong,
.admin-spot-import-copy small {
    display: block;
}

.admin-spot-import-copy strong {
    color: #14432b;
    font-size: 14px;
}

.admin-spot-import-copy small {
    margin-top: 2px;
    color: #66736b;
    font-size: 12.5px;
}

.admin-spot-import-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-spot-import-type {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid #d5e5da;
    border-radius: 999px;
    background: #fff;
    color: #33413a;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.admin-spot-import-type:has(input:checked) {
    border-color: #198754;
    background: #eefaf2;
}

.admin-spot-import-type input {
    accent-color: #198754;
}

.admin-spot-import .btn {
    justify-self: start;
}

/* Admin: saved spot list bar + filters + type colors */
.admin-spot-list-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.admin-spot-list-bar .admin-spot-list-heading {
    margin: 0;
}

.admin-spot-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.admin-spot-filters button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border: 1px solid #dce6df;
    border-radius: 999px;
    color: #4b5a52;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.admin-spot-filters button b {
    color: #8a968e;
    font-weight: 700;
}

.admin-spot-filters button.is-active {
    border-color: #198754;
    color: #fff;
    background: #198754;
}

.admin-spot-filters button.is-active b {
    color: #d7f3e2;
}

.admin-spot-card[hidden] {
    display: none;
}

.admin-spot-card.is-police .admin-spot-card-icon { background: linear-gradient(135deg, #3b6fe0, #1d4ed8); }
.admin-spot-card.is-municipal_hall .admin-spot-card-icon { background: linear-gradient(135deg, #9461f0, #7c3aed); }
.admin-spot-card.is-barangay_hall .admin-spot-card-icon { background: linear-gradient(135deg, #22b884, #0f9f6e); }
.admin-spot-card.is-custom .admin-spot-card-icon { background: linear-gradient(135deg, #fbbf24, #f59e0b); }

/* Admin spot: "Use <found name>" suggestion, rename control, popup link */
.admin-spot-name-suggestion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: start;
    padding: 6px 12px;
    border: 1px solid #b9d9c4;
    border-radius: 999px;
    color: #146c43;
    background: #f2fbf5;
    font-size: 12.5px;
    cursor: pointer;
}

.admin-spot-name-suggestion[hidden] {
    display: none;
}

.admin-spot-name-suggestion:hover {
    border-color: #198754;
    background: #e3f6ea;
}

.admin-spot-rename summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #66736b;
    font-size: 12px;
    font-weight: 600;
    list-style: none;
    cursor: pointer;
}

.admin-spot-rename summary::-webkit-details-marker {
    display: none;
}

.admin-spot-rename summary:hover {
    color: #146c43;
}

.admin-spot-rename form {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.admin-spot-rename input {
    flex: 1;
    min-width: 0;
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid #cfdcd3;
    border-radius: 8px;
    font-size: 13px;
}

.safe-spot-popup-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    color: #198754;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
}

.safe-spot-popup-link:hover {
    text-decoration: underline;
}

/* Mall safe spot type */
.safe-spot-dot.is-mall { background: #db2777; }
.meetup-suggestion-type-icon.is-mall { color: #db2777; }
.admin-spot-card.is-mall .admin-spot-card-icon { background: linear-gradient(135deg, #ec4899, #db2777); }

/* =====================================================
   MY LISTINGS — header, filter tabs, listing card grid
===================================================== */
.listings-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.listings-header h2 {
    margin: 0;
    color: #14432b;
    font-size: 22px;
    font-weight: 800;
}

.listings-header p {
    margin: 3px 0 0;
    color: #6b7a71;
    font-size: 13.5px;
}

.listings-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border-radius: 11px;
    color: #fff;
    background: #198754;
    box-shadow: 0 4px 12px rgba(25, 135, 84, .22);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease;
}

.listings-post-btn:hover {
    color: #fff;
    background: #146c43;
    transform: translateY(-1px);
}

.listings-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
}

.listings-tabs::-webkit-scrollbar {
    display: none;
}

.listings-tabs a {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1px solid #dce6df;
    border-radius: 999px;
    color: #4b5a52;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}

.listings-tabs a span {
    min-width: 20px;
    padding: 1px 7px;
    border-radius: 999px;
    color: #66736b;
    background: #eef3ef;
    font-size: 11.5px;
    text-align: center;
}

.listings-tabs a:hover {
    border-color: #b9d9c4;
}

.listings-tabs a.is-active {
    border-color: #198754;
    color: #fff;
    background: #198754;
}

.listings-tabs a.is-active span {
    color: #198754;
    background: #fff;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.listing-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e1eae4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(20, 50, 35, .05);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.listing-card:hover {
    border-color: #c9e3d3;
    box-shadow: 0 10px 26px rgba(20, 67, 43, .1);
    transform: translateY(-2px);
}

.listing-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    background: #f1f5f2;
}

.listing-card-media[data-edit-item-trigger] {
    cursor: pointer;
}

.listing-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.listing-card:hover .listing-card-media img {
    transform: scale(1.04);
}

.listing-card.is-locked .listing-card-media img {
    filter: saturate(.85);
}

.listing-card-placeholder {
    display: grid;
    height: 100%;
    gap: 6px;
    place-content: center;
    color: #9aa8a0;
    font-size: 12.5px;
    font-weight: 600;
    text-align: center;
}

.listing-card-placeholder i {
    font-size: 30px;
}

.listing-type-badge,
.listing-status-badge,
.listing-photo-count {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    backdrop-filter: blur(4px);
}

.listing-type-badge {
    top: 10px;
    left: 10px;
    color: #14432b;
    background: rgba(255, 255, 255, .92);
}

.listing-status-badge {
    top: 10px;
    right: 10px;
    color: #fff;
    background: #6b7280;
}

.listing-status-badge.is-available { background: #198754; }
.listing-status-badge.is-reserved { background: #d97706; }
.listing-status-badge.is-completed { background: #2563eb; }
.listing-status-badge.is-archived { background: #374151; }

.listing-photo-count {
    right: 10px;
    bottom: 10px;
    color: #fff;
    background: rgba(15, 23, 42, .6);
}

.listing-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px 12px;
}

.listing-card-category {
    color: #198754;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.listing-card-body h3 {
    margin: 0;
    overflow: hidden;
    color: #1f2d25;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-card-price {
    margin: 2px 0 0;
    color: #14432b;
    font-size: 18px;
    font-weight: 800;
}

.listing-card-wish {
    display: -webkit-box;
    margin: 2px 0 0;
    overflow: hidden;
    color: #4b5a52;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.listing-card-wish i {
    color: #198754;
}

.listing-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: auto;
    padding-top: 8px;
    color: #8a968e;
    font-size: 12px;
}

.listing-card-meta i {
    margin-right: 3px;
}

.listing-card-lock {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    padding: 7px 10px;
    border-radius: 9px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    line-height: 1.35;
}

.listing-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #eef2ef;
    border-radius: 0 0 15px 15px;
    background: #fafcfb;
}

.listing-status-form {
    display: flex;
    gap: 6px;
    margin: 0;
}

.listing-status-form select {
    min-height: 34px;
    padding: 5px 30px 5px 10px;
    border: 1px solid #d5e1d9;
    border-radius: 9px;
    color: #33413a;
    background-color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.listing-status-form select:focus {
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, .15);
}

.listing-card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid #b9d9c4;
    border-radius: 9px;
    color: #146c43;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.listing-edit-btn:hover {
    border-color: #198754;
    background: #f2fbf5;
}

.listing-menu {
    position: relative;
}

.listing-menu summary {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid #dce6df;
    border-radius: 9px;
    color: #4b5a52;
    background: #fff;
    list-style: none;
    cursor: pointer;
}

.listing-menu summary::-webkit-details-marker {
    display: none;
}

.listing-menu summary:hover,
.listing-menu[open] summary {
    border-color: #b9d9c4;
    background: #f2fbf5;
}

.listing-menu-items {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 20;
    display: grid;
    min-width: 190px;
    padding: 6px;
    border: 1px solid #e1eae4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .14);
}

.listing-menu-items form {
    margin: 0;
}

.listing-menu-items button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: #33413a;
    background: none;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.listing-menu-items button:hover {
    background: #f2f6f3;
}

.listing-menu-items button.is-danger {
    color: #b42318;
}

.listing-menu-items button.is-danger:hover {
    background: #fdeceb;
}

.listings-empty {
    grid-column: 1 / -1;
    padding: 48px 20px;
    border: 1px dashed #c9dccf;
    border-radius: 16px;
    background: #fbfefc;
    text-align: center;
}

.listings-empty > i {
    color: #198754;
    font-size: 40px;
}

.listings-empty h2 {
    margin: 10px 0 6px;
    color: #14432b;
    font-size: 19px;
    font-weight: 800;
}

.listings-empty p {
    max-width: 420px;
    margin: 0 auto 16px;
    color: #6b7a71;
}

.listings-tab-reset {
    color: #198754;
    font-weight: 700;
}

/* =====================================================
   EXCHANGE — two-sided completion + outcome banners
===================================================== */
.exchange-finish {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #cde8d6;
    border-radius: 16px;
    background: linear-gradient(135deg, #f4fbf6, #fff);
}

.exchange-finish-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.exchange-finish-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #22a565, #157347);
    font-size: 19px;
}

.exchange-finish-head h3 {
    margin: 0 0 3px;
    color: #14432b;
    font-size: 17px;
    font-weight: 800;
}

.exchange-finish-head p {
    margin: 0;
    color: #5b6a62;
    font-size: 13.5px;
}

.exchange-finish-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.exchange-finish-steps li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #7b8790;
    font-size: 13.5px;
    font-weight: 600;
}

.exchange-finish-steps li.is-done {
    color: #146c43;
}

.exchange-finish-steps li.is-done i {
    color: #198754;
}

.exchange-finish-actions {
    display: grid;
    gap: 10px;
}

.exchange-finish-actions form {
    margin: 0;
}

.exchange-finish-confirm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 20px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #198754;
    box-shadow: 0 4px 12px rgba(25, 135, 84, .22);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.exchange-finish-confirm:hover {
    background: #146c43;
}

.exchange-finish-waiting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13.5px;
    font-weight: 600;
}

.exchange-cancel summary {
    width: fit-content;
    color: #7b8790;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.exchange-cancel summary:hover {
    color: #b42318;
}

.exchange-cancel-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #f1d4d7;
    border-radius: 12px;
    background: #fff;
}

.exchange-cancel-form label {
    color: #3d4a43;
    font-size: 13px;
    font-weight: 700;
}

.exchange-cancel-form select {
    flex: 1;
    min-width: 200px;
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid #d5dfd8;
    border-radius: 9px;
    font-size: 13.5px;
}

.exchange-cancel-btn {
    min-height: 38px;
    padding: 6px 14px;
    border: 1px solid #b42318;
    border-radius: 9px;
    color: #b42318;
    background: #fff;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
}

.exchange-cancel-btn:hover {
    color: #fff;
    background: #b42318;
}

.exchange-outcome {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 14px;
}

.exchange-outcome > i {
    font-size: 24px;
}

.exchange-outcome strong,
.exchange-outcome span {
    display: block;
}

.exchange-outcome strong {
    font-size: 14.5px;
}

.exchange-outcome span {
    margin-top: 2px;
    font-size: 13px;
    opacity: .85;
}

.exchange-outcome.is-completed {
    border: 1px solid #b9e2c8;
    color: #14432b;
    background: #eefaf2;
}

.exchange-outcome.is-completed > i {
    color: #198754;
}

.exchange-outcome.is-cancelled {
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #f6f7f8;
}

.exchange-outcome.is-cancelled > i {
    color: #9ca3af;
}

/* Transaction page: "updated by the other person" bar */
.transaction-live-bar {
    position: sticky;
    top: 12px;
    z-index: 30;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    border: 1px solid #b9d9c4;
    border-radius: 12px;
    color: #14432b;
    background: #eefaf2;
    box-shadow: 0 6px 18px rgba(20, 67, 43, .12);
    font-size: 13.5px;
    font-weight: 600;
}

.transaction-live-bar[hidden] {
    display: none;
}

.transaction-live-bar button {
    padding: 6px 14px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: #198754;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.transaction-live-bar button:hover {
    background: #146c43;
}

/* Transaction page: meetup place search */
.meetup-map {
    /* Keep Leaflet's high z-index panes inside the map so dropdowns can overlap it. */
    isolation: isolate;
}

.meetup-search {
    position: relative;
    margin: 14px 0 16px;
}

.meetup-search > label {
    display: block;
    margin-bottom: 6px;
    color: #3d4a43;
    font-size: 13px;
    font-weight: 700;
}

.meetup-search-row {
    display: flex;
    gap: 8px;
}

.meetup-search-field {
    position: relative;
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
}

.meetup-search-field > i {
    position: absolute;
    left: 13px;
    color: #8a968e;
    font-size: 15px;
    pointer-events: none;
}

.meetup-search-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 40px 10px 38px;
    border: 1px solid #d5e1d9;
    border-radius: 12px;
    color: #25332a;
    background: #fff;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: none;
}

/* Hide the browser's own clear "x" — we show our own. */
.meetup-search-field input::-webkit-search-cancel-button {
    display: none;
}

.meetup-search-field input::placeholder {
    color: #9aa6a0;
}

.meetup-search-field input:focus {
    border-color: #198754;
    outline: 0;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, .14);
}

.meetup-search-field:focus-within > i {
    color: #198754;
}

.meetup-search-clear {
    position: absolute;
    right: 8px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #6b7a71;
    background: #eef2ef;
    font-size: 11px;
    cursor: pointer;
}

.meetup-search-clear[hidden] {
    display: none;
}

.meetup-search-clear:hover {
    color: #25332a;
    background: #e1e6e2;
}

.meetup-search-btn {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: #198754;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease;
}

.meetup-search-btn:hover {
    background: #146c43;
}

.meetup-search-results {
    top: calc(100% + 6px);
    z-index: 40;
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
}

@media (max-width: 420px) {
    .meetup-search-btn {
        padding: 0 14px;
    }
}

/* Person reports: role tag, chat header link, admin source tag */
.report-person-role {
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    color: #4b5a52;
    background: #eef3ef;
    font-size: 11px;
    font-weight: 700;
}

.report-person-single {
    margin: 0;
    padding: 10px 12px;
    border-radius: 10px;
    color: #33413a;
    background: #f6f8f7;
    font-size: 13.5px;
}

.report-person-single i {
    margin-right: 4px;
    color: #6b7a71;
}

.message-report-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
    padding: 5px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #7b8790;
    background: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.message-report-link:hover {
    border-color: #f1d4d7;
    color: #b42318;
    background: #fff6f5;
}

.admin-report-source {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 3px;
    color: #6b7a71;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* =====================================================
   DELIVERY INSPECTION — buyer check, delivery photos,
   problem report, admin dispute evidence
===================================================== */
.delivery-check-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.delivery-check-actions form {
    margin: 0;
}

.delivery-check-problem {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 46px;
    padding: 10px 18px;
    border: 1px solid #f1c9cd;
    border-radius: 12px;
    color: #b42318;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.delivery-check-problem:hover {
    border-color: #b42318;
    background: #fff6f5;
}

.exchange-outcome.is-waiting {
    border: 1px solid #fde68a;
    color: #78350f;
    background: #fffbeb;
}

.exchange-outcome.is-waiting > i {
    color: #d97706;
}

.exchange-outcome.is-disputed {
    border: 1px solid #fecaca;
    color: #7f1d1d;
    background: #fef2f2;
}

.exchange-outcome.is-disputed > i {
    color: #dc2626;
}

.delivery-photos-note {
    margin: -4px 0 10px;
    color: #6b7a71;
    font-size: 13px;
}

.delivery-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.delivery-photo {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid #e1eae4;
    border-radius: 12px;
    background: #f1f5f2;
}

.delivery-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.delivery-photo span {
    position: absolute;
    left: 8px;
    bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .65);
    font-size: 11.5px;
    font-weight: 700;
}

.delivery-photo.is-missing {
    display: grid;
    gap: 6px;
    place-content: center;
    color: #9aa8a0;
    font-size: 12.5px;
    text-align: center;
}

.delivery-photo.is-missing span {
    position: static;
    color: #8a968e;
    background: none;
}

.delivery-photo.is-missing i {
    font-size: 24px;
}

.delivery-problem-upload {
    display: inline-flex;
    width: fit-content;
    cursor: pointer;
}

.delivery-problem-upload input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.delivery-problem-upload span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    border: 1px dashed #b9d9c4;
    border-radius: 10px;
    color: #146c43;
    background: #f8fcf9;
    font-size: 13.5px;
    font-weight: 700;
}

.delivery-problem-upload:focus-within span,
.delivery-problem-upload:hover span {
    border-color: #198754;
    background: #eefaf2;
}

.delivery-problem-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.delivery-problem-previews:empty {
    display: none;
}

.delivery-problem-previews img {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

/* Admin: delivery disputes */
.dispute-count {
    margin-left: 6px;
    padding: 2px 9px;
    border-radius: 999px;
    color: #fff;
    background: #dc2626;
    font-size: 12px;
    vertical-align: middle;
}

.dispute-card {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff;
}

.dispute-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.dispute-card-head h3 {
    margin: 4px 0 2px;
    color: #1f2d25;
    font-size: 16px;
    font-weight: 800;
}

.dispute-card-head small {
    color: #6b7a71;
    font-size: 12.5px;
}

.dispute-parties {
    display: flex;
    gap: 18px;
    margin: 0;
}

.dispute-parties dt {
    color: #8a968e;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.dispute-parties dd {
    margin: 0;
    color: #25332a;
    font-size: 13.5px;
    font-weight: 700;
}

.dispute-reason {
    margin: 0;
    padding: 10px 14px;
    border-left: 3px solid #dc2626;
    border-radius: 0 10px 10px 0;
    color: #3d4a43;
    background: #fef2f2;
    font-size: 13.5px;
}

.dispute-evidence {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dispute-evidence li {
    display: grid;
    gap: 3px;
    align-content: start;
    padding: 10px;
    border: 1px solid #e6eee8;
    border-radius: 12px;
    background: #fafcfb;
}

.dispute-evidence-step {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #198754;
    font-size: 11.5px;
    font-weight: 800;
}

.dispute-evidence strong {
    color: #25332a;
    font-size: 13px;
}

.dispute-evidence small {
    color: #8a968e;
    font-size: 11.5px;
}

.dispute-evidence-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.dispute-evidence-photos a {
    display: block;
    flex: 1 1 70px;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 9px;
    background: #eef2ef;
}

.dispute-evidence-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .2s ease;
}

.dispute-evidence-photos a:hover img {
    transform: scale(1.06);
}

.dispute-evidence-missing {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 18px 0;
    color: #9aa8a0;
    font-size: 12px;
}

.dispute-resolve {
    display: grid;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed #e1eae4;
}

.dispute-resolve fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    border: 0;
}

.dispute-resolve legend,
.dispute-resolve > label {
    margin-bottom: 4px;
    color: #3d4a43;
    font-size: 13px;
    font-weight: 700;
}

.dispute-resolve > label small {
    color: #8a968e;
    font-weight: 600;
}

.dispute-resolve textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d5dfd8;
    border-radius: 10px;
    font-size: 13.5px;
}

.dispute-resolve-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.dispute-resolve-actions span {
    max-width: 560px;
    color: #6b7a71;
    font-size: 12px;
}

@media (max-width: 480px) {
    .delivery-photos {
        grid-template-columns: 1fr;
    }
}
