/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* ===== Fonts ===== */
@font-face {
  font-family: 'Rosseti';
  src: url("/assets/Rosseti-Regular-e5f3896e.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: #171717;
  color: #FFFFFF;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a,
a:link,
a:visited {
  color: #D5FEA0;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover,
a:active {
  color: #ffffff;
}

/* ===== Shared utilities ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.mkt-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header / Nav ===== */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  background: #171717;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: block;
  width: 160px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link,
.site-nav__link:link,
.site-nav__link:visited {
  color: #D5FEA0;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:active {
  color: #ffffff;
}

/* ===== Buttons ===== */
.mkt-btn,
a.mkt-btn,
a.mkt-btn:link,
a.mkt-btn:visited,
button.mkt-btn,
input.mkt-btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  line-height: 1;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.2s, transform 0.1s;
}

.mkt-btn:hover,
a.mkt-btn:hover,
a.mkt-btn:active {
  opacity: 0.88;
  transform: translateY(-1px);
}

a.mkt-btn--primary,
a.mkt-btn--primary:link,
a.mkt-btn--primary:visited,
button.mkt-btn--primary,
input.mkt-btn--primary,
.mkt-btn--primary {
  background: #D5FEA0;
  color: #171717;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

a.mkt-btn--primary:hover,
a.mkt-btn--primary:active,
button.mkt-btn--primary:hover,
input.mkt-btn--primary:hover {
  color: #171717;
}

button.mkt-btn--pink,
.mkt-btn--pink {
  background: #ff66b3;
  color: #fff;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

a.mkt-btn--secondary,
a.mkt-btn--secondary:link,
a.mkt-btn--secondary:visited,
.mkt-btn--secondary {
  background: transparent;
  color: #D5FEA0;
  padding: 0.8rem 1.75rem;
  font-size: 1rem;
  border: 2px solid #D5FEA0;
}

a.mkt-btn--secondary:hover,
a.mkt-btn--secondary:active {
  color: #D5FEA0;
}

a.mkt-btn--sm,
a.mkt-btn--sm:link,
a.mkt-btn--sm:visited,
button.mkt-btn--sm,
input.mkt-btn--sm,
.mkt-btn--sm {
  background: #D5FEA0;
  color: #171717;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

a.mkt-btn--sm:hover,
a.mkt-btn--sm:active,
button.mkt-btn--sm:hover,
input.mkt-btn--sm:hover {
  color: #171717;
}

/* ===== Section titles ===== */
.mkt-section-title {
  font-family: 'Rosseti', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
  color: #D5FEA0;
}

.mkt-label {
  display: inline-block;
  background: rgba(213, 254, 160, 0.12);
  color: #D5FEA0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 2rem;
  margin-bottom: 1rem;
}

/* ===== Hero ===== */
.mkt-hero {
  padding: 5rem 0 4rem;
}

.mkt-hero .mkt-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mkt-hero__headline {
  font-family: 'Rosseti', sans-serif;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  color: #D5FEA0;
}

.mkt-hero__sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
  max-width: 480px;
}

.mkt-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.mkt-waitlist__form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mkt-waitlist__input,
.mkt-waitlist__input:focus {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #D5FEA0;
  border-radius: 2rem;
  color: #fff;
  outline: none;
  box-shadow: none;
}

.mkt-waitlist__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.mkt-waitlist__message {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.mkt-waitlist__message--success {
  color: #D5FEA0;
}

.mkt-waitlist__message--error {
  color: #ff6b6b;
}

.mkt-hero__screenshots {
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  object-position: center top;
  display: block;
}

/* ===== How it works ===== */
.mkt-steps {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.03);
}

.mkt-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.mkt-step {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
}

.mkt-step__num {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #D5FEA0;
  line-height: 1;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}

.mkt-step__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mkt-step__desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Feature splits ===== */
.mkt-split {
  padding: 5rem 0;
}

.mkt-split--restaurants {
  background: rgba(255, 255, 255, 0.03);
}

.mkt-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mkt-split__title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: #D5FEA0;
}

.mkt-split__desc {
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.mkt-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.mkt-list li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
}

.mkt-list li::before {
  content: "→";
  color: #D5FEA0;
  position: absolute;
  left: 0;
}

.mkt-illustration {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 1rem;
}

/* ===== Search section ===== */
.mkt-search-section {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.03);
}

.mkt-search__desc {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.mkt-search-form {
  display: flex;
  gap: 0.75rem;
}

.mkt-search-form--centered {
  max-width: 680px;
  margin: 0 auto;
}

/*
 * Use .mkt-search-form as a parent scope to reach specificity (0,2,1),
 * which beats active_admin's form input[type=...] rules at (0,1,2).
 */
.mkt-search-form input[type="text"],
.mkt-search-form input[type="text"]:focus {
  flex: 1;
  width: auto;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #D5FEA0;
  border-radius: 2rem;
  color: #fff;
  outline: none;
  box-shadow: none;
}

.mkt-search-form input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.mkt-search-form input[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  background: #D5FEA0;
  background-image: none;
  color: #171717;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-shadow: none;
  box-shadow: none;
  line-height: normal;
  transition: opacity 0.2s;
}

.mkt-search-form input[type="submit"]:hover {
  background-image: none;
  color: #171717;
  opacity: 0.88;
}

/* ===== Footer ===== */
.mkt-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0;
  margin-top: 2rem;
}

.mkt-footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mkt-footer__copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.mkt-footer__copy a {
  color: rgba(255, 255, 255, 0.55);
}

.mkt-footer__copy a:hover {
  color: #D5FEA0;
}

/* ===== Privacy / Legal ===== */
.mkt-legal {
  padding: 4rem 0 6rem;
}

.mkt-legal__inner {
  max-width: 720px;
}

.mkt-legal__title {
  font-family: 'Rosseti', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  color: #D5FEA0;
}

.mkt-legal__updated {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  margin-bottom: 2.5rem;
}

.mkt-legal__inner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.5rem 0 0.75rem;
  color: #D5FEA0;
}

.mkt-legal__inner p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.975rem;
}

.mkt-legal__inner ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.975rem;
}

.mkt-legal__inner ul li {
  margin-bottom: 0.4rem;
}

.mkt-legal__address {
  font-style: normal;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.975rem;
  line-height: 1.8;
  margin-top: 0.75rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .site-nav {
    gap: 1rem;
  }

  .site-nav__link {
    display: none;
  }

  .mkt-hero .mkt-container,
  .mkt-split__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .mkt-hero__media {
    order: -1;
  }

  .mkt-steps__grid {
    grid-template-columns: 1fr;
  }

  .mkt-split--restaurants .mkt-split__image,
  .mkt-split--diners .mkt-split__image {
    order: -1;
  }

  .mkt-search-form,
  .mkt-search-form--centered {
    flex-direction: column;
  }

  .mkt-search-form .mkt-btn,
  .mkt-search-form--centered .mkt-btn {
    width: 100%;
    text-align: center;
  }

  .mkt-waitlist__form {
    flex-direction: column;
  }

  .mkt-waitlist__form .mkt-btn {
    width: 100%;
    text-align: center;
  }
}

/* ===== App layout (creator / restaurant / user web app) ===== */

:root {
  --sidebar-w: 220px;
  --topbar-h: 56px;
}

/* ── Body ── */
.app-body {
  display: flex;
  min-height: 100vh;
}

/* Flash messages */
.app-flash {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.app-flash--notice {
  background: rgba(213, 254, 160, 0.12);
  color: #D5FEA0;
  border: 1px solid rgba(213, 254, 160, 0.25);
}

.app-flash--alert {
  background: rgba(255, 90, 90, 0.12);
  color: #ff8080;
  border: 1px solid rgba(255, 90, 90, 0.25);
}

/* ── Desktop sidebar ── */
.app-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: #1c1c1c;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 200;
  overflow-y: auto;
}

.app-sidebar__logo-link {
  display: block;
  padding: 1.5rem 1.25rem 1rem;
  flex-shrink: 0;
}

.app-sidebar__logo {
  width: 100px;
  height: auto;
  display: block;
}

.app-sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  gap: 0.125rem;
}

.app-sidebar__footer {
  padding: 1rem 0.75rem 1.5rem;
  flex-shrink: 0;
}

.app-sidebar__signout {
  display: block;
  width: calc(100% - 1.5rem);
  margin: 0 0.75rem;
  background: #ff66b3;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
  transition: opacity 0.15s;
}

.app-sidebar__signout:hover {
  opacity: 0.85;
}

/* ── Sidebar nav items ── */
.app-sidebar__nav .app-nav__item,
.app-sidebar__nav .app-nav__item:link,
.app-sidebar__nav .app-nav__item:visited {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.app-sidebar__nav .app-nav__item:hover,
.app-sidebar__nav .app-nav__item:active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.app-sidebar__nav .app-nav__item--active,
.app-sidebar__nav .app-nav__item--active:link,
.app-sidebar__nav .app-nav__item--active:visited {
  color: #D5FEA0;
  background: rgba(213, 254, 160, 0.08);
}

/* ── Main content (offset by sidebar on desktop) ── */
.app-main {
  flex: 1;
  margin-left: var(--sidebar-w);
  padding: 1.75rem 2rem;
  max-width: calc(640px + var(--sidebar-w));
  width: 100%;
  min-height: 100vh;
}

/* ── Mobile topbar (hidden on desktop) ── */
.app-topbar {
  display: none;
}

/* ── Mobile drawer (hidden on desktop) ── */
.app-drawer {
  display: none;
}

/* ── Nav icon shared ── */
.app-nav__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Mobile breakpoint ── */
@media (max-width: 767px) {
  .app-sidebar {
    display: none;
  }

  .app-body {
    flex-direction: column;
    padding-top: var(--topbar-h);
  }

  /* Topbar */
  .app-topbar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: #1c1c1c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    z-index: 200;
  }

  .app-topbar__logo {
    width: 90px;
    height: auto;
    display: block;
  }

  .app-topbar__hamburger {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    transition: color 0.15s;
  }

  .app-topbar__hamburger svg {
    width: 24px;
    height: 24px;
  }

  .app-topbar__hamburger:hover {
    color: #fff;
  }

  /* Main content on mobile */
  .app-main {
    margin-left: 0;
    padding: 1.25rem 1rem 1.5rem;
    max-width: 100%;
  }

  /* Drawer */
  .app-drawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    pointer-events: none;
  }

  .app-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.25s;
  }

  .app-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 260px;
    background: #1c1c1c;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }

  .app-drawer--open {
    pointer-events: auto;
  }

  .app-drawer--open .app-drawer__backdrop {
    opacity: 1;
  }

  .app-drawer--open .app-drawer__panel {
    transform: translateX(0);
  }

  .app-drawer__header {
    display: flex;
    justify-content: flex-end;
    padding: 0.75rem 0.75rem 0.25rem;
  }

  .app-drawer__close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    transition: color 0.15s;
  }

  .app-drawer__close svg {
    width: 22px;
    height: 22px;
  }

  .app-drawer__close:hover {
    color: #fff;
  }

  .app-drawer__nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0.75rem;
    gap: 0.125rem;
    overflow-y: auto;
  }

  .app-drawer__nav .app-nav__item,
  .app-drawer__nav .app-nav__item:link,
  .app-drawer__nav .app-nav__item:visited {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.75rem;
    border-radius: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
  }

  .app-drawer__nav .app-nav__item:hover,
  .app-drawer__nav .app-nav__item:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
  }

  .app-drawer__nav .app-nav__item--active,
  .app-drawer__nav .app-nav__item--active:link,
  .app-drawer__nav .app-nav__item--active:visited {
    color: #D5FEA0;
    background: rgba(213, 254, 160, 0.08);
  }

  .app-drawer__footer {
    padding: 1rem 0.75rem 2rem;
    flex-shrink: 0;
  }

  .app-drawer__signout {
    display: block;
    width: calc(100% - 2rem);
    margin: 0 1rem;
    background: #ff66b3;
    border: none;
    color: #fff;
    font-size: 0.925rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
    transition: opacity 0.15s;
  }

  .app-drawer__signout:hover {
    opacity: 0.85;
  }
}

/* Page content */
.app-page {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.app-page__greeting {
  padding-top: 0.25rem;
}

.app-page__title {
  font-family: 'Rosseti', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: #D5FEA0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.app-page__sub {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}

/* Stat cards */
.app-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.75rem;
}

.app-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.app-stat__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #D5FEA0;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.app-stat__label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Content sections */
.app-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.app-section__heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.app-section__empty {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
  padding: 2rem 0;
  text-align: center;
}

.app-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-section__link,
.app-section__link:link,
.app-section__link:visited {
  font-size: 0.8rem;
  color: #D5FEA0;
  font-weight: 600;
  text-decoration: none;
}

.app-section__inline-link,
.app-section__inline-link:link,
.app-section__inline-link:visited {
  color: #D5FEA0;
  text-decoration: underline;
}

/* ===== Dashboard list ===== */
.dash-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-item,
.dash-item:link,
.dash-item:visited {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.dash-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dash-item__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #D5FEA0;
  color: #171717;
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.dash-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item__sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.dash-item__sub--truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-item__chevron {
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.dash-item__badge {
  background: #D5FEA0;
  color: #171717;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  flex-shrink: 0;
}

/* ===== App back link ===== */
.app-back-link,
.app-back-link:link,
.app-back-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 0.25rem;
  transition: color 0.15s;
}

.app-back-link:hover {
  color: #D5FEA0;
}

/* ===== Empty state ===== */
.app-empty {
  padding: 3rem 0;
  text-align: center;
}

.app-empty__text {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.9rem;
}

/* ===== Offer cards (creator browse) ===== */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.offer-card,
.offer-card:link,
.offer-card:visited {
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.offer-card:hover,
.offer-card:active {
  border-color: rgba(213, 254, 160, 0.3);
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
}

.offer-card__inner {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.offer-card__thumb {
  width: 80px;
  height: 80px;
  border-radius: 0.625rem;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.07);
}

.offer-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
}

.offer-card__body {
  flex: 1;
  min-width: 0;
}

.offer-card__restaurant {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.offer-card__restaurant-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #D5FEA0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-card__location {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.offer-card__title {
  font-family: 'Rosseti', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.offer-card__meta {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.offer-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.offer-card__compensation {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}

.offer-card__dates {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Platform badges ===== */
.offer-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
}

.offer-badge--instagram {
  background: rgba(193, 53, 132, 0.18);
  color: #e879a8;
  border: 1px solid rgba(193, 53, 132, 0.3);
}

.offer-badge--tiktok {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Offer detail ===== */
.offer-detail {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.offer-detail__restaurant {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.offer-detail__restaurant-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #D5FEA0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-detail__restaurant-name--link,
.offer-detail__restaurant-name--link:link,
.offer-detail__restaurant-name--link:visited {
  text-decoration: none;
  color: #D5FEA0;
}

.offer-detail__restaurant-name--link:hover {
  text-decoration: underline;
}

.offer-detail__restaurant-meta {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.offer-detail__title {
  font-family: 'Rosseti', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.offer-detail__badges {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.offer-detail__section {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.offer-detail__section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
}

.offer-detail__value {
  font-size: 0.975rem;
  color: #fff;
  font-weight: 500;
}

.offer-detail__value--secondary {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
}

.offer-detail__deliverable-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.3rem;
  padding: 0.15rem 0.45rem;
  margin-right: 0.4rem;
  vertical-align: middle;
}

.offer-detail__body {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ===== Apply section ===== */
.offer-apply {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.offer-apply__btn {
  width: 100%;
  text-align: center;
}

.offer-apply__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 0;
}

.offer-apply__status-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== Status badges ===== */
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
}

.status-badge--pending  { background: rgba(255, 200, 60, 0.15); color: #ffc83c; border: 1px solid rgba(255, 200, 60, 0.3); }
.status-badge--accepted { background: rgba(213, 254, 160, 0.12); color: #D5FEA0; border: 1px solid rgba(213, 254, 160, 0.25); }
.status-badge--rejected { background: rgba(255, 90, 90, 0.12); color: #ff8080; border: 1px solid rgba(255, 90, 90, 0.25); }
.status-badge--finished { background: rgba(100, 180, 255, 0.12); color: #80c4ff; border: 1px solid rgba(100, 180, 255, 0.25); }
.status-badge--disputed { background: rgba(255, 140, 60, 0.12); color: #ff9f60; border: 1px solid rgba(255, 140, 60, 0.25); }
.status-badge--completed { background: rgba(213, 254, 160, 0.12); color: #D5FEA0; border: 1px solid rgba(213, 254, 160, 0.25); }

/* ===== Application status block ===== */
.application-status {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
}

.application-status__message {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.application-status__date {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===== CTA button (above list) ===== */
.app-cta {
  display: inline-block;
  margin-bottom: 1.25rem;
}

/* ===== Offer index: applicant badge ===== */
.offer-card__applicant-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

.offer-card__applicant-badge--pending {
  background: rgba(213, 254, 160, 0.15);
  color: #D5FEA0;
}

/* ===== Offer detail: edit actions ===== */
.offer-detail__actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.75rem;
}

/* ===== Applicant list & cards ===== */
.applicant-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 0.5rem;
}

.applicant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s, border-color 0.15s;
}

.applicant-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.applicant-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.applicant-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.applicant-card__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Applicant profile block ===== */
.applicant-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.applicant-profile__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(213, 254, 160, 0.18);
  color: #D5FEA0;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.applicant-profile__name {
  font-size: 1.15rem;
  font-weight: 700;
}

.applicant-profile__name--link,
.applicant-profile__name--link:link,
.applicant-profile__name--link:visited {
  color: #fff;
  text-decoration: none;
}

.applicant-profile__name--link:hover {
  text-decoration: underline;
  color: #D5FEA0;
}

.applicant-profile__meta {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
}

/* ===== Applicant action buttons ===== */
.applicant-actions {
  display: flex;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.applicant-actions__btn {
  flex: 1;
  text-align: center;
}

form.button_to {
  display: contents;
}

.mkt-btn--danger,
button.mkt-btn--danger {
  background: #ff66b3;
  color: #fff;
  border: none;
}

.mkt-btn--danger:hover,
button.mkt-btn--danger:hover {
  color: #fff;
  opacity: 0.88;
}

/* ===== Form styles ===== */
.app-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  margin-top: 1.25rem;
}

.app-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-form__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-form__input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.625rem;
  color: #fff;
  font-size: 0.95rem;
  padding: 0.65rem 0.875rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
}

.app-form__input:focus {
  border-color: rgba(213, 254, 160, 0.5);
}

.app-form__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.app-form__textarea {
  resize: vertical;
  min-height: 6rem;
}

.app-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.app-form__checks {
  display: flex;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

.app-form__check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
}

.app-form__check input[type="checkbox"],
.app-form__check input[type="radio"] {
  accent-color: #D5FEA0;
  width: 1rem;
  height: 1rem;
}

/* ===== Platform icon toggles ===== */
.platform-cb {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.platform-options {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.platform-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 1rem 1.75rem;
  min-width: 7.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  user-select: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.platform-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.65);
}

.platform-cb:checked + .platform-btn {
  background: #D5FEA0;
  border-color: #D5FEA0;
  color: #171717;
}

/* ===== Platform badges (offer show) ===== */
.platform-badges {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.platform-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 600;
}

.platform-badge--active {
  background: rgba(213, 254, 160, 0.12);
  border-color: rgba(213, 254, 160, 0.3);
  color: #D5FEA0;
}

.platform-badge--inactive {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.2);
}

.platform-badges--sm .platform-badge {
  padding: 0.3rem;
  font-size: 0.72rem;
  border-radius: 0.5rem;
  gap: 0;
}

.app-form__section-title {
  font-family: 'Rosseti', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.app-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
}

.app-form__cancel {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
}

.app-form__cancel:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Flash messages ===== */
.app-flash {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.88rem;
}

.app-flash--alert {
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.3);
  color: #ff9494;
}

/* ===== Conversation list ===== */
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.conversation-card {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  text-decoration: none;
  color: #fff;
  transition: background 0.15s;
}

.conversation-card:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.conversation-card--unread {
  border-color: rgba(213, 254, 160, 0.2);
}

.conversation-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(213, 254, 160, 0.15);
  color: #D5FEA0;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.conversation-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.conversation-card__name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-card__preview {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-card__unread {
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 1rem;
  background: #D5FEA0;
  color: #171717;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.3rem;
  flex-shrink: 0;
}

/* ===== Chat layout (conversation show) ===== */
/* The show page uses the app layout's main area, so we control sizing inside */
.app-main:has(.chat) {
  padding: 0;
  min-height: unset;
}

.chat {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}

@media (max-width: 767px) {
  .chat {
    height: calc(100dvh - var(--topbar-h));
  }
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.chat__back {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.chat__with {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.chat__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(213, 254, 160, 0.15);
  color: #D5FEA0;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat__name {
  font-family: 'Rosseti', sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
}

/* ===== Chat date divider ===== */
.chat__date-divider {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0.625rem 0;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chat__date-divider::before,
.chat__date-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

/* ===== Message bubbles ===== */
.message {
  display: flex;
  flex-direction: column;
  max-width: 78%;
  gap: 0.2rem;
}

.message--outgoing {
  align-self: flex-end;
  align-items: flex-end;
}

.message--incoming {
  align-self: flex-start;
  align-items: flex-start;
}

.message__content {
  padding: 0.55rem 0.875rem;
  border-radius: 1.125rem;
  font-size: 0.92rem;
  line-height: 1.45;
  word-break: break-word;
  white-space: pre-wrap;
}

.message--outgoing .message__content {
  background: #D5FEA0;
  color: #171717;
  border-bottom-right-radius: 0.3rem;
}

.message--incoming .message__content {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-bottom-left-radius: 0.3rem;
}

.message__time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  padding: 0 0.25rem;
}

/* ===== Chat compose area ===== */
.chat__compose {
  padding: 0.625rem 0.875rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.chat__form {
  display: block;
}

.chat__input-wrap {
  position: relative;
}

.chat__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  color: #fff;
  font-size: 0.92rem;
  padding: 0.6rem 2.75rem 0.6rem 0.875rem;
  resize: none;
  outline: none;
  font-family: inherit;
  line-height: 1.45;
  max-height: 10rem;
  overflow-y: auto;
  transition: border-color 0.15s;
}

.chat__input:focus {
  border-color: rgba(213, 254, 160, 0.4);
}

.chat__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat__send {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  background: #D5FEA0;
  color: #171717;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.15s;
  padding: 0;
}

.chat__send:hover {
  opacity: 0.85;
}

/* ===== Profile ===== */
.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.profile-avatar {
  border-radius: 50%;
  background: rgba(213, 254, 160, 0.15);
  color: #D5FEA0;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-avatar--lg {
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
}

.profile-avatar--restaurant {
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
}

.profile-header__info {
  flex: 1;
  min-width: 0;
}

.profile-header__name {
  font-family: 'Rosseti', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.profile-header__handle {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
}

.profile-header__edit {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.profile-stats {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
}

.profile-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.profile-stat__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #D5FEA0;
}

.profile-stat__label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
}

/* ===== Portfolio cards ===== */
.portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.portfolio-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.75rem;
}

.portfolio-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  flex: 1;
}

.portfolio-card__title {
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.portfolio-card__desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.portfolio-card__links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.portfolio-card__actions {
  display: flex;
  gap: 0.25rem;
  flex-shrink: 0;
  align-items: center;
}

.portfolio-card__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.portfolio-card__action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.portfolio-card__action--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* ===== Form select ===== */
.app-form__select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.app-form__select option {
  background: #1f1f1f;
  color: #fff;
}

/* ===== Search ===== */
.search-form {
  margin-bottom: 0.875rem;
}

.search-form__bar {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form__icon {
  position: absolute;
  left: 0.875rem;
  width: 1rem;
  height: 1rem;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
  flex-shrink: 0;
}

.search-form__input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.875rem;
  color: #fff;
  font-size: 0.92rem;
  padding: 0.7rem 1rem 0.7rem 2.5rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.search-form__input:focus {
  border-color: rgba(213, 254, 160, 0.4);
}

.search-form__input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.search-filters {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.search-filters::-webkit-scrollbar { display: none; }

.search-filter {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.875rem;
  border-radius: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.search-filter:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.search-filter--active {
  background: rgba(213, 254, 160, 0.12);
  border-color: rgba(213, 254, 160, 0.35);
  color: #D5FEA0;
}

.search-count {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.75rem;
}

.search-results {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

/* ===== Restaurant cards (search results) ===== */
.restaurant-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.restaurant-card__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.restaurant-card__avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.restaurant-card__info {
  min-width: 0;
}

.restaurant-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.restaurant-card__meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.restaurant-card__description {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
}

.restaurant-card__offers {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.625rem;
}

.restaurant-card__offers-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #D5FEA0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.restaurant-card__offer-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.restaurant-card__offer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}

.restaurant-card__offer-name {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.75);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-card__offer-comp {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.restaurant-card__offer-more {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.15rem;
}

/* ===== Admin / queries pages ===== */
table {
  width: 100%;
}

table a,
table a:link,
table a:visited {
  color: #FFFFFF;
}

table a:hover,
table a:active {
  color: #FFFFFF;
}

table .tr--top td {
  padding: 2rem 0 0.5rem 0;
}

table svg {
  width: 20px;
  height: 20px;
}

table svg path {
  fill: #FFFFFF;
}

.icon path {
  fill: gray;
  cursor: pointer;
}

.icon.green path { fill: green; }
.icon.red path { fill: red; }
.icon.active path { fill-opacity: 1; }

/* ===== Message button ===== */
.message-btn-form {
  display: contents;
}

.message-btn-form__btn {
  white-space: nowrap;
}

/* ===== Star rating form ===== */
.rating-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.rating-form__optional {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
}

.rating-form__submit {
  align-self: flex-start;
}

/* Star rating input — reverse order trick for CSS-only hover */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 0.2rem;
}

.star-rating__input {
  display: none;
}

.star-rating__label {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  line-height: 1;
  transition: color 0.1s;
}

/* Hover: fill this star and all after it (which are earlier in DOM = higher value) */
.star-rating__label:hover,
.star-rating__label:hover ~ .star-rating__label {
  color: #D5FEA0;
}

/* Selected: fill checked star and all siblings after it */
.star-rating__input:checked ~ .star-rating__label {
  color: #D5FEA0;
}

/* ===== Rating display (read-only) ===== */
.ratings-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.25rem;
}

.rating-display {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.rating-display__stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.rating-display__star {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
}

.rating-display__star--filled {
  color: #D5FEA0;
}

.rating-display__score {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  margin-left: 0.4rem;
}

.rating-display__review {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
  line-height: 1.5;
}

/* ===== Media upload section ===== */
.media-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.media-section__divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0;
}

.media-section__uploaded {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.media-grid__item {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.media-grid__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.media-file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
}

.media-file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-upload-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
}

.media-upload-form__hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: -0.25rem;
}

.media-upload-form__fields {
  display: flex;
  gap: 0.75rem;
}

.media-upload-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 1rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-align: center;
}

.media-upload-label:hover {
  border-color: rgba(213, 254, 160, 0.4);
  color: #D5FEA0;
}

.media-upload-label__input {
  display: none;
}

.media-upload-form__submit {
  align-self: flex-start;
}

.media-upload-form__subheading {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0;
}

.url-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.url-list__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.url-list__input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  color: #fff;
  font-size: 0.85rem;
}

.url-list__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.url-list__remove {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
}

.url-list__remove:hover {
  color: rgba(255, 255, 255, 0.8);
}

.url-list__add {
  align-self: flex-start;
  background: none;
  border: none;
  color: #D5FEA0;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
}

.media-finish-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.media-finish-form__hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.media-finish-form__btn {
  width: 100%;
}

/* ===== Authentication layout ===== */

.auth-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
}

.auth-flash {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: 90%;
  max-width: 420px;
}

.auth-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-logo {
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-logo__img {
  width: 130px;
  height: auto;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.auth-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 0.25rem;
}

.auth-form .auth-input,
.auth-form .auth-input:focus {
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #D5FEA0;
  border-radius: 2rem;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  outline: none;
  box-shadow: none;
  transition: opacity 0.15s;
}

.auth-form .auth-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.auth-form select.auth-select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 2.5rem;
}

.auth-form select.auth-select option {
  background: #1f1f1f;
  color: #fff;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 0.25rem;
}

.auth-submit {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  background: #D5FEA0;
  background-image: none;
  color: #171717;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2rem;
  border: none;
  cursor: pointer;
  text-shadow: none;
  box-shadow: none;
  line-height: normal;
  transition: opacity 0.2s;
  margin-top: 0.25rem;
}

.auth-submit:hover {
  background-image: none;
  opacity: 0.88;
}

.auth-back {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.auth-back a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.auth-back a:hover {
  color: #D5FEA0;
}

/* ===== New Message / user search ===== */

.new-message-search {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.new-message-search__row {
  display: flex;
  gap: 0.75rem;
}

.new-message-search__input {
  flex: 1;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s;
}

.new-message-search__input:focus {
  border-color: #D5FEA0;
}

.new-message-search__input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.new-message-search__btn {
  -webkit-appearance: none;
  appearance: none;
  background: #D5FEA0;
  color: #171717;
  border: none;
  border-radius: 1.125rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.new-message-search__btn:hover {
  opacity: 0.88;
}

.new-message-results {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.new-message-result {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
}

.new-message-result__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(213, 254, 160, 0.15);
  color: #D5FEA0;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.new-message-result__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.new-message-result__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.new-message-result__role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.new-message-result__btn {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 2rem;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.new-message-result__btn:hover {
  border-color: #D5FEA0;
  color: #D5FEA0;
}

/* ===== Profile avatar with image ===== */
.profile-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ===== Portfolio card image ===== */
.portfolio-card__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* ===== Avatar upload (profile photo edit) ===== */
.avatar-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-upload__preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(213, 254, 160, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #D5FEA0;
}

.avatar-upload__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-upload__btn {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
  display: inline-block;
}

.avatar-upload__btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.avatar-upload__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

/* ===== Portfolio image upload ===== */
.portfolio-img-upload {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.portfolio-img-upload__preview {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.portfolio-img-upload__placeholder {
  width: 96px;
  height: 72px;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ===== Admin layout additions ===== */
.app-sidebar__section-label,
.app-drawer__section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.25);
  padding: 0.5rem 1.25rem 0.25rem;
}

/* ===== Admin page header ===== */
.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-header__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

/* ===== Admin stats (dashboard) ===== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.admin-stats--4col {
  grid-template-columns: repeat(4, 1fr);
}

.admin-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.875rem;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

.admin-stat__value {
  font-size: 2rem;
  font-weight: 700;
  color: #D5FEA0;
  line-height: 1;
}

.admin-stat__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.4);
}

.admin-stat__breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.admin-stat__chip {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 0.375rem;
  padding: 0.1rem 0.4rem;
}

/* ===== Admin dashboard charts ===== */
.admin-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .admin-charts {
    grid-template-columns: 1fr;
  }

  .admin-stats--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-chart-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.875rem;
  padding: 1.125rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-chart-card__title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.admin-chart-card__canvas-wrap {
  position: relative;
  height: 180px;
}

/* ===== Date picker white icon ===== */
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* ===== Admin table ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-panel .admin-table {
  border-radius: 0;
}

.admin-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.35);
  padding: 0.625rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.admin-table td {
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table__id {
  color: rgba(255, 255, 255, 0.25);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  width: 1%;
  white-space: nowrap;
}

.admin-table__nowrap {
  white-space: nowrap;
}

.admin-table__center {
  text-align: center;
}

.admin-table__actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
  vertical-align: middle;
}

.admin-table__actions form {
  display: inline;
  margin: 0;
}

/* ===== Admin links & actions ===== */
.admin-link,
.admin-link:link,
.admin-link:visited {
  color: #D5FEA0;
  text-decoration: none;
  font-weight: 500;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-action,
.admin-action:link,
.admin-action:visited {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  display: inline-block;
}

.admin-action:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

.admin-action--danger,
.admin-action--danger:link,
.admin-action--danger:visited {
  color: rgba(255, 107, 107, 0.7);
}

.admin-action--danger:hover {
  color: #ff8080;
  background: rgba(255, 107, 107, 0.1);
}

.admin-action--icon {
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  line-height: 1;
  vertical-align: middle;
}

.admin-action--icon svg {
  display: block;
}

/* ===== Admin detail grid (show pages) ===== */
.admin-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.admin-detail {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0.625rem;
  padding: 0.75rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.admin-detail--full {
  grid-column: 1 / -1;
}

.admin-detail__label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.3);
}

.admin-detail__value {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== Admin filters / search ===== */
.admin-filters {
  margin-bottom: 0.25rem;
}

.admin-search {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-wrap: wrap;
}

.admin-search__input {
  flex: 1;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.15s;
}

.admin-search__input:focus {
  border-color: rgba(213, 254, 160, 0.4);
}

.admin-search__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.admin-search__select {
  appearance: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem 2rem 0.5rem 0.875rem;
  outline: none;
  font-family: inherit;
  cursor: pointer;
}

.admin-search__select option {
  background: #1f1f1f;
}

/* ===== Admin role badges ===== */
.admin-role-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
}

.admin-role-badge--admin    { background: rgba(255, 102, 179, 0.15); color: #ff66b3; border: 1px solid rgba(255,102,179,0.3); }
.admin-role-badge--creator  { background: rgba(213, 254, 160, 0.12); color: #D5FEA0; border: 1px solid rgba(213,254,160,0.25); }
.admin-role-badge--restaurant { background: rgba(147, 197, 253, 0.12); color: #93c5fd; border: 1px solid rgba(147,197,253,0.25); }
.admin-role-badge--user     { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.1); }

/* ===== Admin platform chips ===== */
.admin-platform-chip {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 0.375rem;
  background: rgba(213, 254, 160, 0.1);
  color: #D5FEA0;
  border: 1px solid rgba(213, 254, 160, 0.2);
  margin-right: 0.25rem;
}

/* ===== Admin code display ===== */
.admin-code {
  font-family: monospace;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 0.375rem;
  padding: 0.15rem 0.5rem;
  color: #D5FEA0;
  letter-spacing: 0.05em;
}

/* ===== Admin form hint ===== */
.admin-form__hint {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: -0.5rem;
}


/* ===== Social link icon buttons (portfolio cards) ===== */
.social-link,
.social-link:link,
.social-link:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}

.social-link:hover { opacity: 0.8; }

.social-link--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link--tiktok {
  background: #010101;
  border: 1px solid rgba(255,255,255,0.12);
}

.social-link--web {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ===== Image crop modal ===== */
.crop-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 1rem;
}

.crop-modal--hidden {
  display: none;
}

.crop-modal__dialog {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.25rem;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crop-modal__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #111;
  overflow: hidden;
  border-radius: 0.5rem;
  cursor: grab;
  touch-action: none;
}

.crop-modal__stage:active {
  cursor: grabbing;
}

.crop-modal__img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  user-select: none;
  pointer-events: none;
  max-width: none;
}

.crop-modal__cutout {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.crop-modal__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

.crop-modal__controls input[type="range"] {
  flex: 1;
  accent-color: #D5FEA0;
  cursor: pointer;
}

.crop-modal__footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Pagy pagination – admin dark theme */
nav.pagy {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

nav.pagy a,
nav.pagy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.55rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s, color 0.15s;
}

nav.pagy a:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

nav.pagy a[aria-current="page"] {
  background: #D5FEA0;
  color: #111;
  border-color: #D5FEA0;
  font-weight: 700;
}

nav.pagy a[aria-disabled="true"] {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

nav.pagy a[role="separator"] {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}
