
:root {
    --navy: #142b4a;
    --navy-light: #203f63;
    --teal: #078f83;
    --teal-dark: #06766d;
    --background: #f3f6fb;
    --surface: #ffffff;
    --text: #1b2a41;
    --muted: #69788d;
    --border: #dfe7f0;
    --success: #147d53;
    --danger: #c43d4b;
    --shadow: 0 12px 30px rgba(24, 47, 78, 0.08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--teal-dark);
    text-decoration: none;
}

a:hover {
    color: var(--navy);
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
.button {
    transition: background-color 0.2s ease,
                transform 0.2s ease,
                box-shadow 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(7, 143, 131, 0.3);
    outline-offset: 3px;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

/* Navigation */

.topbar {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 3px 16px rgba(24, 47, 78, 0.035);
}

.topbar-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--navy);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand:hover {
    color: var(--navy);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--navy), var(--teal));
    color: white;
    font-size: 14px;
    letter-spacing: 0;
}

.brand-light {
    color: var(--teal);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.topbar-actions form {
    margin: 0;
}

.mode-badge {
    padding: 7px 12px;
    border-radius: 999px;
    background: #e1f5f1;
    color: #076f64;
    font-size: 12px;
    font-weight: 750;
}

/* Buttons */

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(20, 43, 74, 0.12);
}

.button-primary {
    background: var(--teal);
    color: white;
}

.button-primary:hover {
    background: var(--teal-dark);
    color: white;
}

.button-secondary {
    background: #edf2f8;
    border-color: var(--border);
    color: var(--navy);
}

.button-secondary:hover {
    background: #db1212;
    color: var(--navy);
}

.button-approve {
    background: #e1f5eb;
    color: #146a43;
}

.button-approve:hover {
    background: #c9eedb;
}

.button-reject {
    background: #fff0f0;
    color: #b42c3b;
}

.button-reject:hover {
    background: #ffe0e3;
}

.text-link {
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
}

/* Main dashboard */

main.container {
    padding-top: 30px;
    padding-bottom: 52px;
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(30px, 5vw, 60px);
    border-radius: 24px;
    background: linear-gradient(120deg, #142b4a 0%, #1c4767 55%, #087d7a 100%);
    color: white;
    box-shadow: 0 16px 35px rgba(20, 43, 74, 0.15);
}

.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 280px;
    height: 280px;
    top: -135px;
    right: -65px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(255, 255, 255, 0.035),
        0 0 0 38px rgba(255, 255, 255, 0.035),
        0 0 0 60px rgba(255, 255, 255, 0.025);
}

.section-kicker {
    display: block;
    margin-bottom: 9px;
    color: var(--teal);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
    line-height: 1.5;
}

.hero .section-kicker {
    color: #9ef2df;
}

.hero h1 {
    max-width: 720px;
    margin: 0 0 14px;
    color: white;
    font-size: clamp(30px, 5vw, 49px);
    font-weight: 850;
    line-height: 1.13;
    letter-spacing: -1.8px;
}

.hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    line-height: 1.8;
}

/* Statistics */

.quick-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 22px 0;
}

.stat-card,
.quick-stats > div,
.approval-summary > div {
    min-width: 0;
    padding: 22px 24px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 4px 15px rgba(24, 47, 78, 0.035);
}

.stat-number {
    display: block;
    color: var(--navy);
    font-size: 30px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

/* Form sections and page cards */

.submit-section,
.items-section,
.page-heading,
.approval-list,
.approval-summary {
    margin-top: 25px;
}

.submit-section {
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.section-intro {
    margin-bottom: 25px;
}

.section-intro h2,
.page-heading h1 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: clamp(23px, 3vw, 31px);
    font-weight: 850;
    line-height: 1.25;
    letter-spacing: -0.8px;
}

.section-intro p,
.page-heading p {
    max-width: 750px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* Form fields */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 21px;
}

.field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--navy);
    font-size: 13px;
    font-weight: 750;
}

.field-full {
    grid-column: 1 / -1;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #d5dfeb;
    border-radius: 10px;
    background: #fbfcfe;
    color: var(--text);
    font-size: 14px;
    font-weight: 450;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:hover,
.field textarea:hover,
.field select:hover {
    border-color: #a9c0d3;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--teal);
    outline: none;
    box-shadow: 0 0 0 3px rgba(7, 143, 131, 0.1);
}

.field input[type="file"] {
    padding: 9px;
    background: #fbfcfe;
}

.field input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 7px 10px;
    border: 0;
    border-radius: 7px;
    background: #e5f3f2;
    color: var(--navy);
    cursor: pointer;
    font-weight: 700;
}

.field textarea {
    min-height: 110px;
    resize: vertical;
}

.field small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.form-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.form-footer > a {
    font-size: 13px;
    font-weight: 700;
}

/* Dashboard item cards */

.items-section {
    margin-top: 45px;
}

.items-section > .section-intro {
    margin-bottom: 22px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px;
}

.item-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 6px 22px rgba(24, 47, 78, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(24, 47, 78, 0.12);
}

/*
   IMPORTANT:
   Use contain instead of cover so the entire uploaded photo is visible.
   The background fills empty space around photos with different proportions.
*/
.item-image {
    display: block;
    width: 100%;
    height: 270px;
    padding: 10px;
    object-fit: contain;
    object-position: center;
    background: #edf2f7;
}

.item-placeholder {
    width: 100%;
    height: 270px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #e7f1f5, #e2f5ef);
    color: var(--navy);
    font-size: 60px;
}

.item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 21px;
}

.item-content h3 {
    margin: 0 0 9px;
    color: var(--navy);
    font-size: 19px;
    font-weight: 850;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.item-content > p:not(.item-meta) {
    margin: 0 0 15px;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.item-meta {
    margin: 5px 0;
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.item-meta strong {
    color: var(--text);
}

.item-content form {
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
}

.item-content form .button {
    width: 100%;
}

/* Empty state */

.empty-state {
    padding: 48px 24px;
    border: 1px dashed #c8d7e5;
    border-radius: var(--radius);
    background: white;
    text-align: center;
}

.empty-icon {
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #e2f5eb;
    color: var(--success);
    font-size: 25px;
}

.empty-state h2,
.empty-state h3 {
    margin: 0 0 8px;
    color: var(--navy);
}

.empty-state p {
    margin: 0 0 20px;
    color: var(--muted);
}

/* Flash messages */

.messages {
    margin: 0 0 22px;
    padding: 14px 18px;
    border: 1px solid #bce7d2;
    border-radius: 11px;
    background: #edfaf3;
    color: #176b47;
    font-size: 13px;
}

.messages p {
    margin: 3px 0;
}

/* Teacher pages */

.page-main {
    min-height: 65vh;
}

.page-heading {
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.approval-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}

.approval-list {
    display: grid;
    gap: 22px;
}

.approval-card {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
}

.approval-image {
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-height: 380px;
    padding: 12px;
    object-fit: contain;
    object-position: center;
    background: #edf2f7;
}

.approval-placeholder {
    display: grid;
    place-items: center;
    font-size: 55px;
}

.approval-content {
    min-width: 0;
    padding: 27px;
}

.card-eyebrow {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.status-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff2d9;
    color: #875b10;
    font-size: 10px;
    letter-spacing: 0;
}

.approval-content h2 {
    margin: 0 0 10px;
    color: var(--navy);
    font-size: 23px;
    overflow-wrap: anywhere;
}

.approval-content > p {
    color: var(--muted);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.approval-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.approval-actions form {
    margin: 0;
}

/* Footer */

.site-footer {
    padding: 25px 0;
    border-top: 1px solid var(--border);
    background: white;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* Responsive layout */

@media (min-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

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

    .approval-card {
        grid-template-columns: minmax(180px, 35%) minmax(0, 1fr);
    }

    .approval-image {
        min-height: 230px;
    }

    .approval-content {
        padding: 20px;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(100% - 26px, 1120px);
    }

    main.container {
        padding-top: 18px;
        padding-bottom: 32px;
    }

    .topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 15px;
        padding-bottom: 15px;
        gap: 13px;
    }

    .topbar-actions {
        justify-content: flex-start;
        width: 100%;
        gap: 8px;
    }

    .topbar-actions .button {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 12px;
    }

    .brand {
        font-size: 18px;
    }

    .hero {
        padding: 30px 23px;
        border-radius: 18px;
    }

    .hero h1 {
        font-size: clamp(29px, 8vw, 39px);
        letter-spacing: -1.2px;
    }

    .hero p {
        font-size: 13px;
    }

    .quick-stats,
    .approval-summary {
        gap: 10px;
    }

    .stat-card,
    .quick-stats > div,
    .approval-summary > div {
        padding: 16px;
    }

    .stat-number {
        font-size: 25px;
    }

    .stat-label {
        font-size: 11px;
    }

    .submit-section {
        padding: 21px 17px;
        border-radius: 15px;
    }

    .form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .field-full {
        grid-column: auto;
    }

    .form-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .form-footer .button {
        width: 100%;
    }

    .items-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .item-image,
    .item-placeholder {
        height: 300px;
    }

    .item-content {
        padding: 18px;
    }

    .page-heading {
        padding: 23px 18px;
    }

    .approval-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .approval-image {
        height: 280px;
        min-height: 0;
        max-height: none;
    }

    .approval-content {
        padding: 20px;
    }

    .approval-actions {
        flex-direction: column;
    }

    .approval-actions form,
    .approval-actions .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
.home-page {
    background: #f7f8fc;
    color: #172b45;
}

.home-topbar {
    background: #ffffff;
    border-bottom: 1px solid #e7ebf2;
}

.home-topbar .topbar-inner {
    min-height: 82px;
}

.home-page .brand {
    font-size: 20px;
}

.home-user {
    max-width: 200px;
    overflow-wrap: anywhere;
    color: #64748b;
    font-size: 12px;
}

.nav-login,
.nav-staff {
    color: #263b55;
    font-size: 13px;
    font-weight: 750;
}

.nav-login {
    padding: 10px 13px;
}

.nav-staff {
    padding: 10px 0 10px 8px;
}

/* Large dark hero */

.home-hero {
    overflow: hidden;
    position: relative;
    background:
        radial-gradient(ellipse at 85% 15%, rgba(16, 173, 153, 0.22), transparent 35%),
        linear-gradient(120deg, #10243e 0%, #173a5a 58%, #125968 100%);
    color: white;
}

.home-hero-inner {
    min-height: 510px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 30px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: #a5eadb;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 2px;
}

.live-dot,
.count-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #4dd7b2;
}

.hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 5vw, 65px);
    font-weight: 850;
    letter-spacing: -2.8px;
    line-height: 1.06;
}

.hero-copy h1 span {
    color: #65e0c4;
}

.home-hero-description {
    max-width: 530px;
    margin: 24px 0 0;
    color: #d3dfeb;
    font-size: 15px;
    line-height: 1.9;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button-hero-primary,
.button-hero-secondary {
    min-height: 49px;
    padding: 13px 19px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.button-hero-primary {
    background: #54d7b6;
    color: #102c40;
}

.button-hero-primary:hover {
    background: #7ce8ce;
    color: #102c40;
}

.button-hero-secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
}

.button-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 27px;
    color: #c1d2e0;
    font-size: 12px;
}

.trust-check {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 50%;
    background: rgba(84, 215, 182, 0.15);
    color: #72e8cd;
    font-weight: 850;
}

/* Decorative hero illustration made with CSS */

.hero-visual {
    min-height: 365px;
    position: relative;
    display: grid;
    place-items: center;
    isolation: isolate;
}

.visual-orbit {
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(180, 235, 236, 0.18);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 310px;
    height: 310px;
}

.orbit-two {
    width: 405px;
    height: 405px;
    border-style: dashed;
    border-color: rgba(180, 235, 236, 0.12);
}

.visual-center {
    width: 240px;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #27647a, #173a59 70%);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.visual-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 13px;
    border: 1px solid rgba(117, 231, 206, 0.4);
    border-radius: 20px;
    background: rgba(78, 214, 185, 0.13);
    color: #79efd2;
    font-size: 44px;
    font-weight: 400;
    line-height: 1;
    transform: rotate(-8deg);
}

.visual-label {
    margin-bottom: 8px;
    color: #9ce9da;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1.6px;
}

.visual-center strong {
    color: white;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
}

.floating-note {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(0, 0, 0, 0.15);
}

.note-top {
    top: 35px;
    right: -5px;
}

.note-bottom {
    bottom: 29px;
    left: -8px;
}

.note-icon {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    font-size: 20px;
    font-weight: 800;
}

.note-icon-green {
    background: #e1f7ef;
    color: #087e62;
}

.note-icon-blue {
    background: #e6eefc;
    color: #315eac;
}

.floating-note strong,
.floating-note small {
    display: block;
    white-space: nowrap;
}

.floating-note strong {
    color: #1b2d46;
    font-size: 11px;
    font-weight: 850;
}

.floating-note small {
    margin-top: 3px;
    color: #728097;
    font-size: 9px;
}

/* Stats strip */

.home-stats-section {
    position: relative;
    z-index: 2;
    background: #fff;
    border-bottom: 1px solid #e8edf4;
}

.home-stats {
    min-height: 116px;
    display: grid;
    grid-template-columns: 1fr 1px 1.3fr 1px 1.3fr;
    align-items: center;
    gap: 25px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.home-stat {
    display: flex;
    align-items: center;
    gap: 14px;
}

.home-stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 14px;
    background: #e9f7f3;
    color: #078878;
    font-size: 24px;
}

.home-stat strong,
.home-stat span:not(.home-stat-icon) {
    display: block;
}

.home-stat strong {
    color: #19304c;
    font-size: 16px;
    font-weight: 850;
    line-height: 1.4;
}

.home-stat div > span {
    margin-top: 4px;
    color: #78869a;
    font-size: 11px;
    line-height: 1.5;
}

.home-stat-divider {
    height: 44px;
    background: #e7edf3;
}

/* Main homepage content */

.home-main-content {
    padding-top: 62px;
    padding-bottom: 75px;
}

.home-items-section {
    scroll-margin-top: 25px;
}

.home-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 30px;
}

.home-section-label {
    display: block;
    margin-bottom: 11px;
    color: #078b7e;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 2px;
}

.home-section-heading h2,
.home-how-heading h2 {
    margin: 0;
    color: #172e49;
    font-size: clamp(27px, 3.4vw, 38px);
    font-weight: 850;
    letter-spacing: -1.4px;
    line-height: 1.2;
}

.heading-period {
    color: #0caa93;
}

.home-section-heading p {
    margin: 10px 0 0;
    color: #748197;
    font-size: 14px;
}

.items-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 1px solid #dfe9e7;
    border-radius: 999px;
    background: #fff;
    color: #526477;
    font-size: 11px;
    font-weight: 750;
}

.items-count-pill .count-dot {
    width: 7px;
    height: 7px;
    background: #0aa786;
}

/* Item gallery */

.home-items-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 23px;
}

.home-item-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #e4eaf2;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 25px rgba(20, 42, 71, 0.045);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(20, 42, 71, 0.1);
}

.home-item-image-wrap {
    height: 255px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #edf2f7;
}

.home-item-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px;
    object-fit: contain;
    object-position: center;
}

.home-item-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: #eaf5f4;
    font-size: 65px;
}

.image-status {
    position: absolute;
    z-index: 1;
    top: 13px;
    left: 13px;
    padding: 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.93);
    color: #29455e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.8px;
}

.home-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.home-item-content h3 {
    margin: 0;
    color: #1a304c;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.4px;
    overflow-wrap: anywhere;
}

.home-item-description {
    min-height: 42px;
    margin: 8px 0 17px;
    color: #758298;
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.home-item-details {
    display: grid;
    gap: 13px;
    padding: 16px 0;
    border-top: 1px solid #edf0f5;
    border-bottom: 1px solid #edf0f5;
}

.home-item-detail {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.detail-icon {
    width: 33px;
    height: 33px;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 9px;
    background: #f0f5f9;
    color: #536e88;
    font-size: 19px;
}

.home-item-detail small,
.home-item-detail strong {
    display: block;
}

.home-item-detail small {
    margin-bottom: 3px;
    color: #8a96a8;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.home-item-detail strong {
    color: #364b64;
    font-size: 12px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.home-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
}

.available-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #16815e;
    font-size: 11px;
    font-weight: 750;
}

.available-label span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1ab783;
}

.home-item-footer form {
    width: 100%;
}

.button-collect {
    width: 100%;
    background: #e5f7f1;
    color: #08745f;
}

.button-collect:hover {
    background: #c9eee3;
    color: #075c4c;
}

/* Empty gallery */

.home-empty-state {
    padding: 55px 25px;
    border: 1px dashed #d1dce8;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.empty-illustration {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: #e7f6f2;
    color: #087f72;
    font-size: 43px;
}

.home-empty-state h3 {
    margin: 0 0 8px;
    color: #172e49;
    font-size: 23px;
}

.home-empty-state p {
    max-width: 480px;
    margin: 0 auto 22px;
    color: #748197;
    font-size: 13px;
}

/* Submission panel */

.home-submit-panel {
    scroll-margin-top: 25px;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: center;
    gap: 40px;
    margin-top: 85px;
    padding: clamp(25px, 4.5vw, 52px);
    border: 1px solid #e0e8ef;
    border-radius: 23px;
    background: linear-gradient(140deg, #e8f6f2 0%, #f3f8fb 58%, #e9f0fb 100%);
}

.submit-panel-copy h2 {
    margin: 0;
    color: #162e49;
    font-size: clamp(30px, 3.7vw, 43px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -1.7px;
}

.submit-panel-copy h2 span {
    color: #078878;
}

.submit-panel-copy > p {
    margin: 20px 0 0;
    color: #64768a;
    font-size: 14px;
    line-height: 1.9;
}

.submit-promise {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 25px;
    color: #425d70;
    font-size: 11px;
    font-weight: 750;
}

.submit-promise span {
    width: 19px;
    height: 19px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #d1f1e6;
    color: #08775f;
}

.submit-panel-form {
    min-width: 0;
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid rgba(219, 229, 237, 0.95);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(29, 58, 82, 0.07);
}

.submit-panel-form h3 {
    margin: 0;
    color: #172e49;
    font-size: 23px;
    font-weight: 850;
    letter-spacing: -0.7px;
}

.form-intro {
    margin: 6px 0 23px;
    color: #79869a;
    font-size: 12px;
}

.submit-panel-form .form-grid {
    gap: 17px;
}

.submit-panel-form .field {
    gap: 7px;
    font-size: 12px;
}

.submit-panel-form .field input {
    min-height: 43px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12px;
}

.submit-panel-form .field input[type="file"] {
    padding: 7px;
}

.submit-panel-form .field textarea {
    min-height: 94px;
    font-size: 12px;
}

.submit-panel-form .field small {
    font-size: 10px;
}

.home-submit-footer {
    margin-top: 20px;
    padding-top: 17px;
    border-top: 1px solid #e9edf3;
}

.home-submit-footer p {
    margin: 0 0 13px;
    color: #748197;
    font-size: 11px;
}

.button-submit-wide {
    width: 100%;
    min-height: 48px;
    background: #087f73;
    color: #fff;
}

.button-submit-wide:hover {
    background: #06685f;
    color: #fff;
}

/* How it works */

.home-how-section {
    margin-top: 85px;
}

.home-how-heading {
    margin-bottom: 30px;
    text-align: center;
}

.home-how-heading .home-section-label {
    margin-bottom: 13px;
}

.home-how-heading h2 {
    font-size: clamp(26px, 3.5vw, 37px);
}

.home-how-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-how-card {
    position: relative;
    min-width: 0;
    padding: 28px;
    border: 1px solid #e5eaf1;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 42, 71, 0.035);
}

.how-number {
    position: absolute;
    top: 22px;
    right: 23px;
    color: #d8e2eb;
    font-size: 28px;
    font-weight: 850;
    letter-spacing: -1px;
}

.how-icon {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #e7f6f2;
    color: #078878;
    font-size: 28px;
}

.home-how-card:nth-child(2) .how-icon {
    background: #eaf0fc;
    color: #466bb4;
}

.home-how-card:nth-child(3) .how-icon {
    background: #f9eee5;
    color: #b77739;
}

.home-how-card h3 {
    margin: 0 0 9px;
    color: #1a304b;
    font-size: 17px;
    font-weight: 850;
}

.home-how-card p {
    margin: 0;
    color: #778499;
    font-size: 12px;
    line-height: 1.8;
}

/* Homepage footer */

.home-footer {
    padding: 28px 0;
    border-top: 1px solid #e3e9f1;
    background: #fff;
}

.home-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-brand {
    font-size: 16px !important;
}

.footer-brand .brand-mark {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    font-size: 12px;
}

.home-footer-inner > p,
.footer-copyright {
    margin: 0;
    color: #7b8798;
    font-size: 11px;
}

/* Responsive homepage */

@media (max-width: 900px) {
    .home-hero-inner {
        grid-template-columns: 1fr 0.75fr;
        gap: 10px;
        min-height: 460px;
    }

    .hero-copy h1 {
        font-size: clamp(38px, 5.5vw, 52px);
    }

    .hero-visual {
        transform: scale(0.85);
    }

    .home-stats {
        gap: 15px;
    }

    .home-stat-icon {
        width: 38px;
        height: 38px;
    }

    .home-submit-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .submit-panel-copy {
        max-width: 580px;
    }

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

@media (max-width: 600px) {
    .home-topbar .topbar-inner {
        align-items: center;
    }

    .home-topbar .topbar-actions {
        gap: 7px;
    }

    .home-topbar .nav-staff {
        padding-left: 2px;
    }

    .home-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 48px;
        padding-bottom: 30px;
    }

    .home-eyebrow {
        margin-bottom: 19px;
        font-size: 9px;
    }

    .hero-copy h1 {
        font-size: clamp(39px, 11vw, 53px);
        letter-spacing: -1.8px;
    }

    .home-hero-description {
        margin-top: 18px;
        font-size: 13px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        margin-top: 23px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust {
        margin-top: 20px;
        font-size: 10px;
    }

    .hero-visual {
        min-height: 270px;
        margin: 10px -20px 0;
        transform: scale(0.78);
    }

    .orbit-one {
        width: 275px;
        height: 275px;
    }

    .orbit-two {
        width: 340px;
        height: 340px;
    }

    .note-top {
        top: 5px;
        right: 0;
    }

    .note-bottom {
        bottom: 0;
        left: 0;
    }

    .home-stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .home-stat {
        padding: 13px 2px;
    }

    .home-stat-divider {
        width: 100%;
        height: 1px;
    }

    .home-main-content {
        padding-top: 42px;
        padding-bottom: 45px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .home-section-heading h2 {
        font-size: 30px;
    }

    .home-items-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .home-item-image-wrap {
        height: 290px;
    }

    .home-item-content {
        padding: 19px;
    }

    .home-submit-panel {
        margin-top: 55px;
        padding: 22px 15px;
        border-radius: 17px;
    }

    .submit-panel-copy {
        padding: 4px;
    }

    .submit-panel-copy h2 {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .submit-panel-copy > p {
        font-size: 13px;
    }

    .submit-panel-form {
        padding: 20px 15px;
    }

    .submit-panel-form .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .submit-panel-form .field-full {
        grid-column: auto;
    }

    .home-how-section {
        margin-top: 55px;
    }

    .home-how-heading {
        text-align: left;
    }

    .home-how-heading h2 {
        font-size: 29px;
    }

    .home-how-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
    }

    .home-how-card {
        padding: 23px;
    }

    .home-footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-item-card,
    .home-item-card:hover,
    .button {
        transition: none;
        transform: none;
    }
}

/* FIX: SHOW COMPLETE FOUND-ITEM PHOTOS */
.home-page .home-item-image-wrap {
    height: 300px;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f0f3f7;
    box-sizing: border-box;
}

.home-page .home-item-image {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    object-fit: contain;
    object-position: center;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .home-page .home-item-image-wrap {
        height: 280px;
    }
}
