:root {
  --bg: #e9edf2;
  --surface: #ffffff;
  --surface-soft: #fff3f7;
  --surface-gold: #fff8e5;
  --text: #111827;
  --muted: #5f6d7e;
  --line: #dfe8ef;
  --brand: #c2185b;
  --brand-dark: #8f1242;
  --blue: #2f70bf;
  --blue-dark: #1f5da8;
  --gold: #b8892d;
  --teal: #0f766e;
  --teal-dark: #0b5f59;
  --danger: #b42318;
  --shadow: 0 18px 44px rgba(17, 24, 39, 0.14);
  --shadow-soft: 0 10px 26px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.topbar {
  backdrop-filter: blur(14px);
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 58%, var(--teal) 100%);
  border-bottom: 0;
  box-shadow: 0 16px 40px rgba(31, 93, 168, 0.24);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0.65rem 1rem;
  position: relative;
}

.brand {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  font-size: 1.15rem;
  gap: 0.7rem;
  font-weight: 800;
  min-width: 0;
}

.brand span {
  display: grid;
  line-height: 1.1;
}

.brand small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.brand-logo {
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  height: 50px;
  object-fit: cover;
  width: 50px;
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.nav a,
.nav button,
.button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.82rem;
}

.nav a:hover,
.nav button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.nav .install-app-button {
  background: #ffffff;
  border-color: rgba(255, 255, 255, 0.86);
  color: var(--blue-dark);
  gap: 0.45rem;
}

.nav .install-app-button:hover {
  background: #fff8e5;
  color: var(--blue-dark);
}

.install-app-button svg {
  fill: none;
  height: 19px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  width: 19px;
}

.nav span {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  padding: 0.55rem 0.3rem;
}

.nav-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  height: 42px;
  justify-content: center;
  padding: 0;
  width: 42px;
}

.nav-toggle span {
  background: #ffffff;
  border-radius: 999px;
  display: block;
  height: 2px;
  position: absolute;
  transition: transform 0.18s ease, opacity 0.18s ease;
  width: 20px;
}

.nav-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.nav-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
}

.button,
button.primary {
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
}

.button.secondary,
button.secondary {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
}

.button.danger,
button.danger {
  background: var(--danger);
  border: 1px solid var(--danger);
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.9rem;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.container {
  flex: 1;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.25rem 1rem 2.75rem;
  width: 100%;
}

.hero-rental {
  align-items: center;
  background:
    linear-gradient(105deg, rgba(9, 23, 44, 0.95) 0%, rgba(17, 45, 79, 0.9) 48%, rgba(15, 118, 110, 0.66) 100%),
    #101827;
  color: #ffffff;
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  margin: -1.25rem calc(50% - 50vw) 1.6rem;
  min-height: calc(100svh - 82px);
  padding: clamp(2.6rem, 6vw, 4.8rem) max(1rem, calc((100vw - 1200px) / 2 + 1rem));
  position: relative;
  overflow: hidden;
}

.hero-rental::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 32%),
    radial-gradient(circle at 78% 12%, rgba(194, 24, 91, 0.28), transparent 18rem);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-rental > * {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 610px;
}

.eyebrow {
  color: var(--brand);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
  text-transform: uppercase;
}

.hero-rental h1 {
  color: #ffffff;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  margin: 0;
  max-width: 680px;
}

.hero-rental p {
  color: #e6fbff;
  font-size: clamp(1rem, 1.65vw, 1.22rem);
  margin: 0.95rem 0 0;
  max-width: 620px;
}

.hero-actions,
.hero-badges,
.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-actions {
  margin-top: 1.25rem;
}

.hero-badges {
  margin-top: 1rem;
}

.hero-badges span,
.status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
}

.hero-badges span {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.27);
  color: #fff7d6;
}

.hero-showcase {
  min-height: 360px;
}

.hero-showcase > img {
  border: 4px solid #111;
  border-radius: 999px;
  box-shadow: var(--shadow);
  display: block;
  height: 190px;
  margin: 0 auto 1rem;
  object-fit: cover;
  width: 190px;
}

.hero-showcase > div:not(.hero-look-grid) {
  display: grid;
  justify-items: center;
  text-align: center;
}

.hero-showcase strong {
  color: var(--brand-dark);
  font-size: 1.25rem;
}

.hero-showcase span {
  color: var(--muted);
}

.hero-look-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr 0.78fr;
}

.hero-look-grid figure {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  margin: 0;
  min-width: 0;
  overflow: hidden;
}

.hero-look-grid figure:first-child {
  grid-row: span 2;
}

.hero-look-grid img {
  aspect-ratio: 4 / 5;
  display: block;
  height: auto;
  object-fit: contain;
  padding: 0.35rem;
  width: 100%;
}

.hero-look-grid figcaption {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.65rem;
}

.category-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0.6rem 0 1.6rem;
}

.category-strip .category-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: block;
  padding: 1rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.category-strip .category-card.active,
.category-strip .category-card:hover {
  border-color: rgba(194, 24, 91, 0.45);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.category-strip strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.category-strip span {
  color: var(--muted);
  display: block;
  font-size: 0.94rem;
}

.page-title,
.section-heading {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.page-title h1,
.page-title h2,
.section-heading h2 {
  font-size: 1.65rem;
  line-height: 1.15;
  margin: 0;
}

.page-title p,
.section-heading p {
  color: var(--muted);
  margin: 0.35rem 0 0;
  max-width: 620px;
}

.catalog-title {
  padding-top: 0.6rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
}

.card,
.form-card,
.panel,
.instagram-card,
.social-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-body {
  padding: 1rem;
}

.product-media {
  aspect-ratio: 4 / 3.4;
  background: linear-gradient(135deg, #ffffff, #fff3f7);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-media img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem;
  width: 100%;
}

.product-media-fallback,
.mini-media-fallback {
  align-items: center;
  background: linear-gradient(135deg, #fff3f7, #f0faf8);
  color: var(--brand);
  display: flex;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.product-media-fallback {
  font-size: 2rem;
}

.product-card h3 {
  font-size: 1.02rem;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.product-card p {
  color: var(--muted);
  line-height: 1.38;
  margin: 0 0 0.75rem;
}

.price-row {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin: 0.8rem 0;
}

.meta-row {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.86rem;
  gap: 0.45rem;
  margin: 0.55rem 0;
}

.price {
  color: var(--brand-dark);
  font-size: 1.02rem;
  font-weight: 900;
}

.stock {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-card,
.panel {
  padding: 1rem;
}

.login-shell {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 1rem;
}

.login-card {
  margin: 0 auto;
  max-width: 410px;
  width: 100%;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
}

.form-note {
  background: #effdfa;
  border: 1px solid #b7eee8;
  border-radius: 8px;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
}

label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
  padding: 0.58rem 0.7rem;
  width: 100%;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 24, 91, 0.13);
  outline: none;
}

.split {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.admin-tools {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.72rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.mini-image {
  border-radius: 8px;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.mini-media {
  background: var(--surface-soft);
  border-radius: 8px;
  height: 58px;
  overflow: hidden;
  width: 58px;
}

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

.mini-media-fallback {
  font-size: 0.9rem;
}

.message {
  border-radius: 8px;
  display: none;
  margin-bottom: 1rem;
  padding: 0.78rem;
}

.message.show {
  display: block;
}

.message.error {
  background: #fff1f0;
  color: var(--danger);
}

.message.success {
  background: #ecfdf3;
  color: var(--teal);
}

.summary-line {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0.58rem 0;
}

.summary-total {
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
  font-weight: 900;
  padding-top: 0.8rem;
}

.muted-text {
  color: var(--muted);
  display: block;
  font-size: 0.88rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.status.active {
  background: #ecfdf3;
  color: var(--teal);
}

.status.rent {
  background: #eef2ff;
  color: #3730a3;
}

.status.inactive {
  background: #fff1f0;
  color: var(--danger);
}

.payment-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.payment-row:first-child {
  border-top: 0;
}

.payment-info {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.payment-icon {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  display: inline-flex;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.payment-icon svg,
.social-links svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.payroll-values {
  align-items: flex-end;
  display: grid;
  gap: 0.25rem;
  justify-items: end;
}

.instagram-section {
  margin-top: 2.4rem;
  padding-top: 0.4rem;
}

.community-section {
  margin-top: 2.4rem;
}

.community-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: 360px minmax(0, 1fr);
}

.community-layout h3 {
  margin-top: 0;
}

.social-feed {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.social-card {
  overflow: hidden;
}

.social-media {
  background: linear-gradient(135deg, #101827, #1f5da8);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.social-media img,
.social-media video {
  aspect-ratio: 4 / 4.6;
  display: block;
  max-height: 480px;
  object-fit: contain;
  padding: 0.45rem;
  width: 100%;
}

.social-body {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
}

.social-body p {
  color: var(--text);
  margin: 0;
}

.social-body span {
  color: var(--muted);
}

.social-admin-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  padding: 0.9rem 0;
}

.social-admin-row:first-child {
  border-top: 0;
}

.social-admin-media {
  background: var(--surface-soft);
  border-radius: 8px;
  height: 82px;
  overflow: hidden;
  width: 82px;
}

.social-admin-media img,
.social-admin-media video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.social-admin-copy {
  display: grid;
  gap: 0.22rem;
}

.social-admin-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.instagram-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 420px));
  justify-content: center;
}

.instagram-card {
  overflow: hidden;
  width: 100%;
}

.instagram-media {
  background: #150f18;
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
}

.instagram-media img,
.instagram-media video {
  display: block;
  height: auto;
  max-height: 720px;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.instagram-caption {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
}

.instagram-caption span {
  color: var(--muted);
}

.instagram-card-empty {
  align-items: center;
  display: grid;
  min-height: 190px;
}

.site-footer {
  background: #101827;
  color: white;
  margin-top: auto;
}

.footer-inner {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1.25rem 1rem;
}

.footer-inner span {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.92rem;
  margin-top: 0.2rem;
  max-width: 680px;
}

.social-links {
  display: flex;
  gap: 0.55rem;
}

.social-links a {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: white;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
  width: 44px;
}

.social-links a:hover {
  background: var(--brand);
  transform: translateY(-2px);
}

.hidden {
  display: none !important;
}

.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: 1rem;
}

@media (max-width: 980px) {
  .hero-rental {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .hero-showcase {
    min-height: auto;
  }

  .split,
  .admin-tools {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar-inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
  }

  .nav {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none;
    gap: 0.2rem;
    left: 1rem;
    padding: 0.55rem;
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.45rem);
  }

  .nav.open {
    display: grid;
  }

  .nav a,
  .nav button,
  .nav span {
    color: var(--text);
    justify-content: flex-start;
    width: 100%;
  }

  .nav a:hover,
  .nav button:hover {
    background: #effdfa;
    color: var(--teal-dark);
  }

  .nav .install-app-button {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #ffffff;
  }

  .nav .install-app-button:hover {
    background: var(--brand);
    color: #ffffff;
  }

  .page-title,
  .section-heading,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .community-layout,
  .social-admin-row {
    grid-template-columns: 1fr;
  }

  .hero-rental h1 {
    font-size: 2rem;
  }

  .hero-look-grid {
    grid-template-columns: 1fr 1fr;
  }

  .payment-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    padding: 1rem 0.8rem 2.25rem;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-logo {
    height: 44px;
    width: 44px;
  }

  .hero-rental h1 {
    font-size: 1.82rem;
  }

  .hero-rental p {
    font-size: 0.98rem;
  }

  .hero-look-grid {
    gap: 0.65rem;
  }

  .product-grid,
  .instagram-grid,
  .social-feed,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .button,
  button.primary,
  button.secondary,
  button.danger {
    width: 100%;
  }

  .social-links a,
  .nav-toggle {
    height: 42px;
    width: 42px;
  }
}
