/* =================================
   LOST & FOUND - MAIN STYLES
   ================================= */

:root {
  --background: #121212;
  --surface: #1e1e1e;
  --surface-light: #292929;
  --gold: #f5c040;
  --gold-hover: #ffcf57;
  --text: #f5f5f5;
  --muted: #b5b5b5;
  --border: #383838;
  --danger: #ff6b6b;
  --success: #63dba0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: var(--gold);
  text-decoration: none;
}

a:hover {
  color: var(--gold-hover);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.auth-container {
  width: min(460px, 92%);
  margin: clamp(24px, 7vh, 60px) auto;
}

.auth-container h1,
.auth-container h2,
.auth-container > p {
  text-align: center;
}

.auth-container form button {
  width: 100%;
  min-height: 48px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header and navigation */

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 18px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.logo {
  color: var(--gold);
  font-size: 1.5rem;
  font-weight: bold;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text);
  font-weight: 600;
}

nav a:hover {
  color: var(--gold);
}

.nav-menu {
  display: contents;
}

.nav-menu-toggle,
.nav-menu-button {
  display: none;
}

/* Main content */

main {
  width: min(1100px, 90%);
  margin: 35px auto;
}

section {
  margin-bottom: 35px;
}

h1,
h2,
h3 {
  line-height: 1.3;
  margin-bottom: 15px;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: 1.7rem;
}

p {
  margin-bottom: 12px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.05rem;
}

/* Hero section */

.hero {
  padding: 55px 30px;
  background: linear-gradient(135deg, #242424, #171717);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}

.hero h1 span {
  color: var(--gold);
}

.hero p {
  max-width: 650px;
  margin: 0 auto 22px;
  color: var(--muted);
}

/* Buttons */

.button,
.btn,
button,
input[type="submit"] {
  display: inline-block;
  background: var(--gold);
  color: #171717;
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-weight: bold;
  transition: background 0.2s, transform 0.2s;
}

.button:hover,
.btn:hover,
button:hover,
input[type="submit"]:hover {
  background: var(--gold-hover);
  transform: translateY(-1px);
}

.btn.secondary {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.btn.secondary:hover {
  color: #171717;
  background: var(--gold-hover);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Forms */

form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 14px;
}

label {
  display: block;
  margin: 15px 0 6px;
  font-weight: bold;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  background: #171717;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

form button,
form input[type="submit"] {
  margin-top: 12px;
}

.optional-label,
.image-help {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: normal;
}

.image-help {
  margin: -3px 0 8px;
}

#itemImage {
  padding: 10px;
  background: var(--surface-light);
  border: 1px dashed #686868;
}

.image-error {
  color: var(--danger);
  font-size: 0.92rem;
}

.image-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 12px 0 18px;
  padding: 12px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.image-preview img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border-radius: 8px;
}

.remove-image-button {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.remove-image-button:hover {
  background: var(--danger);
}

/* Search and filters */

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-field {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.filter-field input,
.filter-field select {
  display: block;
  margin: 6px 0 0;
}

.filter-search {
  grid-column: span 2;
}

.clear-filters-button {
  width: 100%;
  min-height: 46px;
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.clear-filters-button:hover {
  color: #171717;
  background: var(--gold-hover);
}

.results-count {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Items display */

#itemsContainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  overflow-wrap: anywhere;
  transition: border-color 0.2s, transform 0.2s;
}

.item-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.item-card h3 {
  color: var(--gold);
}

.item-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.item-card button {
  margin-top: 10px;
  width: 100%;
}

.student-profile {
  padding: clamp(18px, 4vw, 30px);
  background: linear-gradient(145deg, rgba(41, 41, 41, 0.88), rgba(30, 30, 30, 0.94));
  border: 1px solid rgba(245, 192, 64, 0.22);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.student-profile > section {
  margin-top: 28px;
}

.profile-form,
.student-report-edit {
  background: rgba(18, 18, 18, 0.58);
  border-color: rgba(245, 192, 64, 0.18);
}

.profile-form input[readonly] {
  color: var(--muted);
  cursor: not-allowed;
}

.profile-note {
  color: var(--muted);
  font-size: 0.9rem;
}

#studentReports,
#studentClaims {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 14px;
}

#studentReports > article,
#studentClaims > article {
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  background: rgba(30, 30, 30, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
}

#studentReports > article h4,
#studentClaims > article h4 {
  color: var(--gold);
}

.claim-centre {
  padding: clamp(18px, 4vw, 32px);
  border: 1px solid rgba(245, 192, 64, 0.28);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at top right, rgba(245, 192, 64, 0.1), transparent 42%),
    linear-gradient(145deg, rgba(38, 38, 38, 0.92), rgba(19, 19, 19, 0.96));
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
}

.claim-centre > h2 {
  margin-bottom: 4px;
}

.claim-centre-message {
  min-height: 1.6em;
  margin: 14px 0;
  color: var(--muted);
}

.claim-centre-error {
  color: var(--danger);
}

.claim-centre-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.6fr);
  gap: 20px;
  align-items: start;
}

.claim-centre-layout h3,
.claim-centre-layout h4 {
  color: var(--gold);
}

.claim-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.claim-list-entry {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.claim-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  gap: 3px;
  padding: 14px;
  text-align: left;
  color: var(--text);
  background: rgba(15, 15, 15, 0.66);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.claim-list-card.has-item-image {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

.claim-list-image {
  grid-column: 1;
  grid-row: 1 / span 6;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.claim-list-card:hover,
.claim-list-card.is-selected {
  border-color: var(--gold);
  background: rgba(245, 192, 64, 0.09);
  transform: translateY(-1px);
}

.claim-list-card strong {
  color: var(--gold);
}

.claim-list-card > span {
  color: var(--muted);
  font-size: 0.88rem;
}

.claim-list-card.has-item-image > strong,
.claim-list-card.has-item-image > span {
  grid-column: 2;
  min-width: 0;
}

.claim-list-card-footer {
  overflow-wrap: anywhere;
  white-space: normal;
}

.claim-unread-badge {
  color: var(--gold);
  font-weight: 700;
}

.contact-finder-button {
  justify-self: start;
  max-width: 100%;
}

.claim-chat-status {
  padding: 10px 12px;
  color: var(--gold);
  background: rgba(245, 192, 64, 0.07);
  border: 1px solid rgba(245, 192, 64, 0.18);
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.claim-empty {
  padding: 16px;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.claim-details {
  min-width: 0;
  padding: clamp(14px, 3vw, 24px);
  background: rgba(11, 11, 11, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.claim-details > p {
  color: var(--muted);
}

.claim-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.claim-detail-header h3 {
  overflow-wrap: anywhere;
}

.claim-detail-header p {
  color: var(--muted);
}

.claim-status-pill {
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--gold);
  background: rgba(245, 192, 64, 0.1);
  border: 1px solid rgba(245, 192, 64, 0.35);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.claim-item-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 12px;
}

.claim-item-summary img {
  width: 76px;
  height: 76px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 10px;
}

.verification-progress,
.claim-handover-note {
  margin: 12px 0;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(245, 192, 64, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
}

.claim-verification,
.claim-chat {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.claim-chat-participants {
  color: var(--muted);
}

.claim-messaging-locked {
  margin: 12px 0 0;
  padding: 14px;
  color: var(--muted);
  background: rgba(245, 192, 64, 0.07);
  border: 1px solid rgba(245, 192, 64, 0.25);
  border-radius: 12px;
}

.claim-verification-item-image {
  width: min(100%, 360px);
  max-height: 240px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.claim-verification-item-location {
  color: var(--muted);
}

.messages-page {
  min-width: 0;
}

.messages-claim-lists {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.messages-page .claim-centre-layout {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.5fr);
}

.claim-message-form {
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  background: rgba(11, 11, 11, 0.96);
}

.claim-message-form textarea {
  scroll-margin-bottom: 12vh;
}

.verification-question {
  margin-top: 10px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.verification-prompt {
  color: var(--text);
  font-weight: 700;
}

.verification-answer,
.verification-answer-status {
  margin-top: 8px;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.claim-inline-form,
.claim-message-form {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.claim-inline-form textarea,
.claim-message-form textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px 12px;
  color: var(--text);
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
}

.claim-inline-form button,
.claim-message-form button,
.claim-actions button {
  justify-self: start;
}

.claim-inline-form [role="status"],
.claim-message-form [role="status"],
.claim-action-message {
  min-height: 1.5em;
  color: var(--muted);
}

.claim-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.claim-actions .claim-action-message {
  flex-basis: 100%;
}

.claim-message-list {
  display: flex;
  max-height: 360px;
  min-height: 120px;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  overflow-y: auto;
  background: rgba(7, 7, 7, 0.55);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.claim-message-list > p {
  color: var(--muted);
}

.claim-message {
  align-self: flex-start;
  width: min(88%, 560px);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px 12px 12px 3px;
  overflow-wrap: anywhere;
}

.claim-message.is-mine {
  align-self: flex-end;
  background: rgba(245, 192, 64, 0.11);
  border-color: rgba(245, 192, 64, 0.2);
  border-radius: 12px 12px 3px 12px;
}

.claim-message strong {
  color: var(--gold);
  font-size: 0.86rem;
}

.claim-message p {
  margin: 3px 0;
  white-space: pre-wrap;
}

.claim-message time {
  color: var(--muted);
  font-size: 0.76rem;
}

.claim-message-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.claim-message-form textarea {
  min-height: 56px;
}

.claim-message-form [role="status"] {
  grid-column: 1 / -1;
}

.student-report-edit {
  margin-top: 14px;
  padding: 16px;
}

@media (max-width: 760px) {
  .claim-centre-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .messages-page .claim-centre-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim-list {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
}

@media (max-width: 520px) {
  .claim-detail-header {
    flex-direction: column;
  }

  .claim-message-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .claim-message-form [role="status"] {
    grid-column: auto;
  }

  .claim-message {
    width: 95%;
  }
}

.profile-cancel-button {
  color: var(--gold);
  background: transparent;
  border: 1px solid var(--gold);
}

.ownership-questions-section {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: clamp(14px, 3vw, 22px);
  background: rgba(15, 15, 15, 0.62);
  border: 1px solid rgba(245, 192, 64, 0.24);
  border-radius: 16px;
}

.ownership-questions-section h3 {
  color: var(--gold);
}

.ownership-questions-section > p {
  color: var(--muted);
}

.ownership-questions-list {
  display: grid;
  gap: 10px;
}

.ownership-question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: end;
}

.ownership-question-row label {
  grid-column: 1 / -1;
}

.ownership-question-row input {
  min-width: 0;
}

.ownership-question-remove {
  margin: 0;
}

.claim-questionnaire-dialog {
  width: min(680px, calc(100vw - 28px));
  max-height: min(85vh, 850px);
  margin: auto;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid rgba(245, 192, 64, 0.4);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
}

.claim-item-button {
  width: 100%;
  margin: 8px 0;
  white-space: normal;
}

.item-details-dialog .claim-questionnaire {
  gap: 12px;
}

.item-details-dialog .claim-item-button {
  margin: 8px 0 0;
}

.claim-questionnaire-dialog::backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(7px);
}

.claim-questionnaire {
  display: grid;
  gap: 16px;
  max-height: min(85vh, 850px);
  padding: clamp(18px, 5vw, 32px);
  overflow: auto;
  background: linear-gradient(145deg, rgba(38, 38, 38, 0.99), rgba(15, 15, 15, 0.99));
  border-radius: inherit;
}

.claim-questionnaire h2 {
  color: var(--gold);
  overflow-wrap: anywhere;
}

.claim-questionnaire > p {
  color: var(--muted);
}

.claim-questionnaire-field {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
}

.claim-questionnaire-field textarea {
  width: 100%;
  min-height: 84px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.52);
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
}

.claim-questionnaire-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.claim-questionnaire [role="status"] {
  min-height: 1.5em;
  color: var(--muted);
}

/* Information cards */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

/* Footer */

footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 25px 6%;
  text-align: center;
  color: var(--muted);
  margin-top: 50px;
}

footer p {
  margin: 0;
}

/* Responsive layout for phones and tablets */

@media (max-width: 800px) {
  #itemsContainer,
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  header {
    padding: 16px 5%;
  }

  nav {
    gap: 12px;
  }

  main {
    width: 92%;
    margin: 22px auto;
  }

  .hero {
    padding: 35px 18px;
  }

  #itemsContainer,
  .cards {
    grid-template-columns: 1fr;
  }

  form {
    padding: 18px;
  }

  .image-preview {
    grid-template-columns: 1fr;
  }

  .remove-image-button {
    width: 100%;
  }
}
/* Login and Create Account navigation buttons */
.nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-left: 8px;
}

.login-btn {
  color: #F5C040;
  background: transparent;
  border: 1px solid #F5C040;
}

.login-btn:hover {
  background: #F5C040;
  color: #121212;
}

.signup-btn {
  color: #121212;
  background: #F5C040;
  border: 1px solid #F5C040;
}

.signup-btn:hover {
  background: #FFB428;
  transform: translateY(-2px);
}

.user-email {
  color: #F5C040;
  font-size: 13px;
  margin-left: 10px;
  overflow-wrap: anywhere;
}

.notification-nav-wrapper {
  position: relative;
}

.notification-bell {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 9px;
  color: var(--gold);
  background: rgba(245, 192, 64, 0.08);
  border: 1px solid rgba(245, 192, 64, 0.35);
  border-radius: 50%;
}

.notification-bell:hover {
  color: #171717;
}

.notification-bell svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  color: #171717;
  background: var(--gold);
  border: 2px solid var(--surface);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 16px;
  text-align: center;
}

.notification-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 12px);
  right: -12px;
  width: min(390px, calc(100vw - 28px));
  max-height: min(75vh, 620px);
  overflow: auto;
  padding: 18px;
  color: var(--text);
  background: rgba(30, 30, 30, 0.97);
  border: 1px solid rgba(245, 192, 64, 0.3);
  border-radius: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.notification-panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
}

.notification-panel-header,
.notification-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.notification-panel-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.notification-text-button,
.notification-delete-button {
  padding: 5px 8px;
  color: var(--gold);
  background: transparent;
  border: 1px solid transparent;
  font-size: 0.85rem;
}

.notification-text-button:hover,
.notification-delete-button:hover {
  color: var(--gold-hover);
  background: rgba(245, 192, 64, 0.08);
  border-color: rgba(245, 192, 64, 0.25);
  transform: none;
}

.notification-delete-button {
  color: var(--muted);
}

.notification-delete-button:hover {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.3);
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-card {
  min-width: 0;
  padding: 14px;
  overflow-wrap: anywhere;
  background: rgba(18, 18, 18, 0.68);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.notification-card.is-unread {
  border-color: rgba(245, 192, 64, 0.55);
  box-shadow: inset 3px 0 0 var(--gold);
}

.notification-card h3 {
  margin: 0 0 5px;
  color: var(--gold);
  font-size: 1rem;
}

.notification-card p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 0.92rem;
}

.notification-card time {
  color: var(--muted);
  font-size: 0.78rem;
}

.notification-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}

.notification-empty,
.notification-message {
  color: var(--muted);
  font-size: 0.9rem;
}

.notification-error {
  color: var(--danger);
}

.notification-view-all,
.notification-back-link {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-weight: 700;
  text-align: center;
}

.notification-login-link {
  display: inline-block;
  margin-bottom: 16px;
}

.notification-history {
  padding: clamp(18px, 4vw, 32px);
  background: linear-gradient(145deg, rgba(41, 41, 41, 0.9), rgba(30, 30, 30, 0.96));
  border: 1px solid rgba(245, 192, 64, 0.22);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.notification-history-header {
  margin-bottom: 20px;
}

.notification-history-header h1,
.notification-history-header p {
  margin-bottom: 6px;
}

.notification-history-list {
  gap: 14px;
}

.notification-history-list .notification-card {
  padding: 18px;
}

.notification-load-more {
  display: block;
  margin: 18px auto 0;
}

.notification-page-nav {
  gap: 16px;
}

@media (max-width: 800px) {
  .notification-nav-wrapper {
    width: 100%;
  }

  .notification-bell {
    width: 100%;
    justify-content: start;
    border-radius: 10px;
  }

  .notification-panel {
    top: calc(100% + 8px);
    right: 0;
  }
}

@media (max-width: 520px) {
  .notification-history-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .notification-history-header button {
    width: 100%;
  }

  .notification-page-nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
}

[hidden] {
  display: none !important;
}

/* Responsive layouts */

main,
section,
form,
.item-card,
.admin-container,
#adminReports,
#adminClaims {
  min-width: 0;
}

.item-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.item-image-placeholder {
  display: grid;
  width: 100%;
  min-height: 150px;
  aspect-ratio: 4 / 3;
  place-items: center;
  border: 1px solid rgba(245, 192, 64, 0.16);
  border-radius: 8px;
  background: linear-gradient(145deg, #242424, #171717);
  color: var(--gold);
  font-size: clamp(2.5rem, 8vw, 4rem);
}

.image-upload-progress {
  display: block;
  width: 100%;
  height: 12px;
  margin: 8px 0;
  accent-color: var(--gold);
}

.image-upload-progress-text {
  min-height: 1.5em;
  color: var(--muted);
}

.report-image-edit-section {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.report-image-edit-section input[type="file"] {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
}

.edit-image-preview {
  width: min(100%, 360px);
  max-height: 240px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #171717;
}

.admin-report-image {
  width: min(100%, 520px);
  max-height: 360px;
  margin: 12px 0;
  object-fit: contain;
  border-radius: 8px;
}

.admin-container {
  width: min(1100px, 90%);
}

.admin-container > header {
  display: block;
}

.admin-container > header h1,
.admin-container > header h2,
.admin-container > header p {
  overflow-wrap: anywhere;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 16px;
}

.admin-stats article,
#adminReports article,
#adminClaims article {
  min-width: 0;
  padding: 18px;
  overflow-wrap: anywhere;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

#adminReports article,
#adminClaims article {
  margin-bottom: 14px;
}

#adminReports details {
  min-width: 0;
  overflow-wrap: anywhere;
}

#adminReports details > * {
  max-width: 100%;
}

#adminReports details summary {
  min-height: 44px;
  padding: 8px 0;
  cursor: pointer;
}

#adminReports details select {
  width: 100%;
}

.admin-status-controls {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.admin-status-controls button {
  width: 100%;
}

.admin-status-controls > div {
  min-width: 0;
}

.admin-delete-report {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  margin-top: 0.9rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 93, 93, 0.65);
  border-radius: 12px;
  background: rgba(140, 28, 38, 0.72);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-delete-report:hover:not(:disabled),
.admin-delete-report-confirm:hover:not(:disabled) {
  background: #b42332;
}

.admin-delete-report:disabled,
.admin-delete-report-confirm:disabled {
  cursor: wait;
  opacity: 0.65;
}

.admin-delete-report-message {
  min-height: 1.4em;
  margin: 0.5rem 0 0;
  color: var(--text-secondary, #d4d4d4);
}

.admin-delete-dialog {
  width: min(92vw, 34rem);
  padding: 1.5rem;
  border: 1px solid rgba(255, 211, 77, 0.35);
  border-radius: 20px;
  background: rgba(18, 19, 24, 0.98);
  color: #f5f5f5;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.admin-delete-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
}

.admin-delete-dialog h2 {
  color: #ffd34d;
}

.admin-delete-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.admin-delete-report-confirm {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border: 1px solid #e34553;
  border-radius: 12px;
  background: #922936;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 800px) {
  header.navbar {
    align-items: flex-start;
  }

  .nav-menu {
    display: block;
    width: 100%;
  }

  .nav-menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 9px 14px;
    color: var(--gold);
    font-weight: bold;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
  }

  .nav-menu-toggle {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  .nav-menu-toggle:focus-visible + .nav-menu-button {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
  }

  .nav-menu-button::after {
    content: "+";
    font-size: 1.25rem;
  }

  .nav-menu-toggle:checked + .nav-menu-button::after {
    content: "−";
  }

  .nav-menu nav {
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding-top: 10px;
  }

  .nav-menu-toggle:checked ~ nav {
    display: flex;
  }

  .nav-menu nav > a:not(.nav-btn) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 4px;
  }

  .nav-menu .nav-btn {
    margin: 4px 0;
  }

  .user-email {
    margin: 8px 0;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  header.navbar {
    gap: 12px;
  }

  .logo {
    font-size: 1.35rem;
  }

  main,
  .admin-container {
    width: 92%;
    margin: 22px auto;
  }

  section {
    margin-bottom: 28px;
  }

  h2 {
    font-size: 1.45rem;
  }

  .hero {
    padding: 34px 18px;
  }

  .hero .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 10px 0;
  }

  .filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-search {
    grid-column: auto;
  }

  #itemsContainer,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  form {
    padding: 18px;
  }

  input,
  select,
  textarea {
    min-width: 0;
    font-size: 16px;
  }

  button,
  .button,
  .btn,
  .nav-btn,
  .nav-menu-button {
    min-height: 44px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-stats article,
  #adminReports article,
  #adminClaims article {
    padding: 14px;
  }

  #adminReports details button,
  #adminClaims article > button {
    display: block;
    width: 100%;
    margin: 8px 0;
  }
}

/* Premium interactive button system */
button:not(.nav-menu-button):not(.notification-bell),
input[type="submit"],
.button,
.btn:not(.secondary),
.nav-btn:not(.login-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  color: #21190b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.26), transparent 48%),
    linear-gradient(135deg, #ffe59a 0%, #f5c040 48%, #dfa31d 100%);
  border: 1px solid rgba(255, 231, 160, 0.7);
  border-radius: 12px;
  box-shadow:
    0 5px 0 #9d7116,
    0 8px 18px rgba(245, 192, 64, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

button:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
input[type="submit"]:not(:disabled):hover,
.button:hover,
.btn:not(.secondary):hover,
.nav-btn:not(.login-btn):hover {
  color: #17120a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.34), transparent 48%),
    linear-gradient(135deg, #ffedb5 0%, #ffd35c 48%, #efb52f 100%);
  box-shadow:
    0 7px 0 #9d7116,
    0 12px 25px rgba(245, 192, 64, 0.28),
    0 0 18px rgba(245, 192, 64, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

button:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
input[type="submit"]:not(:disabled):active,
.button:active,
.btn:not(.secondary):active,
.nav-btn:not(.login-btn):active {
  box-shadow:
    0 1px 0 #9d7116,
    0 3px 8px rgba(0, 0, 0, 0.28),
    inset 0 2px 4px rgba(93, 62, 0, 0.2);
  transform: translateY(3px) scale(0.99);
  transition-duration: 70ms;
}

button.button-secondary:not(.nav-menu-button):not(.notification-bell),
button.profile-cancel-button:not(.nav-menu-button):not(.notification-bell),
button.remove-image-button:not(.nav-menu-button):not(.notification-bell),
button.clear-filters-button:not(.nav-menu-button):not(.notification-bell),
button.notification-text-button:not(.nav-menu-button):not(.notification-bell),
.btn.secondary,
.nav-btn.login-btn {
  color: #f5d276;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(245, 192, 64, 0.52);
  box-shadow:
    0 3px 0 rgba(132, 96, 25, 0.62),
    0 6px 15px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Subscription payment options */
.subscription-checkout {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(129, 112, 255, 0.26);
  border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, rgba(86, 66, 190, 0.16), transparent 65%),
    linear-gradient(145deg, rgba(24, 23, 39, 0.96), rgba(13, 15, 25, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.04);
}

.subscription-checkout .eyebrow { color: #a99dff; letter-spacing: 0.16em; }
.subscription-intro { max-width: 620px; color: #b9bbca; }
.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0 16px;
}
.payment-button {
  --payment-accent: #147bff;
  display: flex;
  min-height: 68px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid color-mix(in srgb, var(--payment-accent) 54%, transparent);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(130deg, color-mix(in srgb, var(--payment-accent) 24%, #161a27), #11141f 72%);
  box-shadow: 0 9px 25px color-mix(in srgb, var(--payment-accent) 14%, transparent), inset 0 1px rgba(255,255,255,.12);
  font-size: 1rem;
  font-weight: 750;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  cursor: pointer;
}
.payment-button-wave { --payment-accent: #1685ff; }
.payment-button-orange { --payment-accent: #ff7900; }
.payment-button:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--payment-accent);
  box-shadow: 0 13px 30px color-mix(in srgb, var(--payment-accent) 24%, transparent), inset 0 1px rgba(255,255,255,.16);
  filter: brightness(1.1);
}
.payment-button:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.payment-logo {
  display: block;
  flex: 0 0 auto;
  width: 88px;
  max-height: 35px;
  object-fit: contain;
  border-radius: 7px;
}
.payment-logo-wave { background: #fff; padding: 4px 8px; }
.payment-logo-orange { width: 96px; }
.payment-arrow { margin-left: auto; color: var(--payment-accent); font-size: 1.35rem; transition: transform 160ms ease; }
.payment-button:hover .payment-arrow { transform: translateX(3px); }
.payment-button[aria-busy="true"] { cursor: progress; }
.payment-button[aria-busy="true"]::after {
  width: 17px;
  height: 17px;
  margin-left: auto;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--payment-accent);
  border-radius: 50%;
  content: "";
  animation: payment-spin .7s linear infinite;
}
.payment-button[aria-busy="true"] .payment-arrow { display: none; }
.payment-setup-notice {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid rgba(255, 190, 92, .2);
  border-radius: 12px;
  color: #d3c6ad;
  background: rgba(255, 179, 66, .055);
  font-size: .88rem;
  line-height: 1.55;
}
.payment-setup-notice[data-state="error"] { border-color: rgba(255, 190, 92, .4); color: #ffe1b5; }
@keyframes payment-spin { to { transform: rotate(360deg); } }
@media (max-width: 640px) {
  .payment-methods { grid-template-columns: 1fr; gap: 11px; }
  .payment-button { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  .payment-button, .payment-arrow { transition-duration: .01ms !important; }
  .payment-button[aria-busy="true"]::after { animation-duration: 1.5s; }
}

button.button-secondary:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
button.profile-cancel-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
button.remove-image-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
button.clear-filters-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
button.notification-text-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
.btn.secondary:hover,
.nav-btn.login-btn:hover {
  color: #fff0c1;
  background: linear-gradient(145deg, rgba(245, 192, 64, 0.19), rgba(245, 192, 64, 0.07));
  border-color: rgba(255, 216, 112, 0.86);
  box-shadow:
    0 5px 0 rgba(132, 96, 25, 0.68),
    0 9px 22px rgba(245, 192, 64, 0.14),
    0 0 14px rgba(245, 192, 64, 0.1);
}

button.button-secondary:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
button.profile-cancel-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
button.remove-image-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
button.clear-filters-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
button.notification-text-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
.btn.secondary:active,
.nav-btn.login-btn:active {
  box-shadow: 0 1px 0 rgba(132, 96, 25, 0.68), inset 0 2px 4px rgba(0, 0, 0, 0.24);
  transform: translateY(2px) scale(0.99);
  transition-duration: 70ms;
}

button.button-danger:not(.nav-menu-button):not(.notification-bell),
button.notification-delete-button:not(.nav-menu-button):not(.notification-bell) {
  color: #ffd2d2;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 52%), #54272a;
  border: 1px solid rgba(255, 107, 107, 0.5);
  box-shadow:
    0 4px 0 #35191b,
    0 7px 16px rgba(255, 74, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

button.button-danger:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover,
button.notification-delete-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):hover {
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), transparent 52%), #713034;
  border-color: rgba(255, 140, 140, 0.8);
  box-shadow:
    0 6px 0 #35191b,
    0 11px 22px rgba(255, 74, 74, 0.19),
    0 0 14px rgba(255, 74, 74, 0.11);
  transform: translateY(-2px);
}

button.button-danger:not(.nav-menu-button):not(.notification-bell):not(:disabled):active,
button.notification-delete-button:not(.nav-menu-button):not(.notification-bell):not(:disabled):active {
  box-shadow: 0 1px 0 #35191b, inset 0 2px 4px rgba(0, 0, 0, 0.28);
  transform: translateY(2px) scale(0.99);
  transition-duration: 70ms;
}

button:not(.nav-menu-button):not(.notification-bell):disabled,
input[type="submit"]:disabled,
.button[aria-disabled="true"],
.btn[aria-disabled="true"],
.nav-btn[aria-disabled="true"] {
  color: #99917f;
  background: linear-gradient(145deg, #39362f, #292722);
  border-color: #514d43;
  box-shadow: 0 2px 0 #201f1b, inset 0 1px 0 rgba(255, 255, 255, 0.04);
  cursor: not-allowed;
  filter: saturate(0.35);
  opacity: 0.68;
  transform: none;
}

button:focus-visible,
input[type="submit"]:focus-visible,
.button:focus-visible,
.btn:focus-visible,
.nav-btn:focus-visible {
  outline: 2px solid #ffe08a;
  outline-offset: 3px;
}

button[aria-busy="true"]:not(.nav-menu-button):not(.notification-bell)::after,
input[type="submit"][aria-busy="true"]::after {
  width: 0.9em;
  height: 0.9em;
  margin-left: 0.65em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  content: "";
  animation: button-spinner 700ms linear infinite;
  flex: 0 0 auto;
}

@keyframes button-spinner {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 520px) {
  button:not(.nav-menu-button):not(.notification-bell),
  input[type="submit"],
  .button,
  .btn,
  .nav-btn {
    min-height: 46px;
    padding: 11px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  button,
  input[type="submit"],
  .button,
  .btn,
  .nav-btn {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

.btn.secondary,
.nav-btn.login-btn {
  min-height: 46px;
  padding: 11px 20px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.25;
}
