:root {
  --bg: #070706;
  --bg-2: #11100e;
  --panel: rgba(24, 23, 21, 0.78);
  --panel-2: rgba(36, 33, 29, 0.72);
  --gold: #d9aa6a;
  --gold-2: #f1d2a6;
  --text: #fff8ef;
  --soft: #c9beb1;
  --muted: #948a80;
  --line: rgba(231, 184, 116, 0.24);
  --line-2: rgba(255, 255, 255, 0.1);
  --danger: #ff8f7d;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 72% 8%, rgba(217, 170, 106, 0.18), transparent 28rem),
    radial-gradient(circle at 16% 52%, rgba(74, 56, 36, 0.2), transparent 24rem),
    linear-gradient(135deg, #050505, #11100e 58%, #070707);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { max-width: 100%; font: inherit; }
img, video { max-width: 100%; }

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

.text-clamp-2,
.text-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.text-clamp-2 { -webkit-line-clamp: 2; }
.text-clamp-3 { -webkit-line-clamp: 3; }

.page, .app-shell { width: min(100%, 1480px); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 20px clamp(22px, 5vw, 82px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(7, 7, 6, 0.82);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-logo {
  display: block;
  width: auto;
  max-width: 230px;
  max-height: 52px;
  object-fit: contain;
}

.brand-icon-logo {
  display: block;
  width: auto;
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: auto;
  max-width: 210px;
  max-height: 48px;
  object-fit: contain;
}

.brand-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--gold-2);
  background: linear-gradient(145deg, rgba(217, 170, 106, 0.18), rgba(255, 255, 255, 0.03));
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
}
.brand-text strong, .brand-text small { display: block; text-transform: uppercase; letter-spacing: 4px; }
.brand-text strong { font-size: 14px; }
.brand-text small { margin-top: 3px; color: var(--gold); font-size: 10px; }

.main-nav { display: flex; justify-content: center; gap: clamp(18px, 3vw, 42px); color: var(--soft); font-size: 15px; }
.main-nav a, .site-footer a, .text-link { color: var(--soft); transition: color 160ms ease; }
.main-nav a:hover, .main-nav a.active, .site-footer a:hover, .text-link:hover { color: var(--gold-2); }

.header-actions, .hero-actions { display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.pressed { transform: scale(0.98); }
.btn-gold { color: #1b1209; background: linear-gradient(135deg, #f4d5aa, #c98f4d); box-shadow: 0 14px 34px rgba(217, 170, 106, 0.2); }
.btn-outline { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.03); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 52px clamp(22px, 5vw, 82px) 42px;
}

.hero-copy { max-width: 620px; }
.eyebrow { margin: 0 0 14px; color: var(--gold); text-transform: uppercase; letter-spacing: 5px; font-size: 12px; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.06; }
h1 { margin-bottom: 18px; font-size: clamp(42px, 5vw, 70px); }
h2 { margin-bottom: 0; font-size: clamp(28px, 3.2vw, 46px); }
h3 { margin-bottom: 8px; }
p { color: var(--soft); line-height: 1.65; }
.hero-copy p:not(.eyebrow) { max-width: 580px; font-size: clamp(17px, 1.6vw, 21px); }

.photo-hero { position: relative; min-height: 560px; }
.photo-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 226, 180, 0.35), transparent 4rem),
    radial-gradient(circle at 46% 22%, rgba(217, 170, 106, 0.28), transparent 12rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), transparent 44%),
    linear-gradient(135deg, #2b2119, #0d0c0b 66%);
  box-shadow: var(--shadow);
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 9% 4% 0 16%;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 236, 203, 0.95), transparent 0.38rem),
    radial-gradient(circle at 68% 18%, rgba(217, 170, 106, 0.85), transparent 0.34rem),
    radial-gradient(circle at 92% 10%, rgba(255, 236, 203, 0.7), transparent 0.28rem);
  opacity: 0.9;
}
.light-ring {
  position: absolute;
  inset: 9% 13% 11% 10%;
  border: 1px solid rgba(217, 170, 106, 0.54);
  border-left-color: transparent;
  border-radius: 50%;
  filter: drop-shadow(0 0 22px rgba(217, 170, 106, 0.34));
}
.photo-person { position: absolute; bottom: 0; border-radius: 42% 42% 0 0; filter: drop-shadow(0 26px 42px rgba(0, 0, 0, 0.62)); }
.person-left {
  right: 39%;
  width: 230px;
  height: 430px;
  background: radial-gradient(ellipse at 52% 16%, #2c211a 0 16%, transparent 17%), linear-gradient(105deg, transparent 0 26%, #181615 27% 63%, transparent 64%);
}
.person-right {
  right: 12%;
  width: 250px;
  height: 390px;
  background: radial-gradient(ellipse at 50% 16%, #38291f 0 17%, transparent 18%), linear-gradient(72deg, transparent 0 30%, #eee1d0 31% 68%, transparent 69%);
}
.photo-caption {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(10, 10, 9, 0.72);
  backdrop-filter: blur(14px);
}
.photo-caption span { color: var(--muted); font-size: 12px; }
.photo-caption strong { color: var(--gold-2); }

.section { padding: 42px clamp(22px, 5vw, 82px); }
.compact-section { padding-top: 24px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-title-row h2 { max-width: 760px; }

.portfolio-grid, .timeline-grid, .metric-grid, .mini-features, .gallery-stats, .photo-grid { display: grid; gap: 16px; }
.preview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.full-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.portfolio-card {
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: var(--panel);
  isolation: isolate;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease;
}
.portfolio-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(145deg, rgba(255,255,255,0.12), transparent), var(--card-bg); }
.portfolio-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 18%, rgba(0,0,0,0.84)); }
.portfolio-card:hover { transform: translateY(-5px); border-color: rgba(241, 210, 166, 0.48); }
.portfolio-card span, .portfolio-card a { color: var(--gold-2); text-transform: uppercase; letter-spacing: 3px; font-size: 11px; font-weight: 800; }
.portfolio-card h3 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 24px; line-height: 1.14; }
.wedding { --card-bg: radial-gradient(circle at 66% 22%, rgba(245,210,165,.48), transparent 5rem), linear-gradient(135deg,#5a3a25,#11100f); }
.graduation { --card-bg: radial-gradient(circle at 58% 18%, rgba(255,245,230,.42), transparent 4rem), linear-gradient(135deg,#303036,#13110f); }
.events { --card-bg: radial-gradient(circle at 50% 16%, rgba(255,207,105,.55), transparent 5rem), linear-gradient(135deg,#2b2040,#110f0d); }
.portrait { --card-bg: radial-gradient(circle at 74% 24%, rgba(245,215,175,.42), transparent 5rem), linear-gradient(135deg,#3b2b25,#111); }

.experience-band, .glass-card, .timeline-card, .metric-card, .auth-card {
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.experience-band { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 28px; padding: 28px; align-items: center; }
.mini-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mini-features article, .contact-info article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.mini-features strong, .mini-features span, .contact-info strong, .contact-info span { display: block; }
.mini-features span, .contact-info span { margin-top: 6px; color: var(--muted); }

.page-hero { padding: 76px clamp(22px, 5vw, 82px) 24px; max-width: 920px; }
.page-hero p:not(.eyebrow) { font-size: 20px; }
.timeline-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timeline-card { position: relative; padding: 28px; min-height: 220px; }
.timeline-card span, .metric-card span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; margin-bottom: 18px; color: var(--gold-2); border: 1px solid var(--line); border-radius: 50%; background: rgba(217, 170, 106, 0.08); font-weight: 800; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,0.03); }
.filter-bar button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 6px; color: var(--soft); background: transparent; cursor: pointer; }
.filter-bar button.active { color: #1b1209; background: linear-gradient(135deg, #f4d5aa, #c98f4d); font-weight: 800; }

.contact-layout { display: grid; grid-template-columns: 0.85fr 1fr; gap: 42px; align-items: start; padding: 82px clamp(22px, 5vw, 82px); }
.contact-info { display: grid; gap: 14px; margin-top: 28px; }
.contact-form { display: grid; gap: 16px; padding: 28px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--text);
  background: rgba(0,0,0,0.28);
  outline: none;
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,170,106,0.12); }
input.field-error { border-color: var(--danger); }

.auth-body { overflow-x: hidden; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 86px 24px 32px; }
.auth-brand { position: fixed; top: 28px; left: 28px; }
.auth-card { width: min(100%, 500px); padding: clamp(26px, 4vw, 40px); }
.auth-card h1 { font-size: clamp(36px, 5vw, 52px); }
.tab-switch { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; padding: 6px; margin: 22px 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,0.04); }
.tab-button { min-height: 42px; border: 0; border-radius: 6px; color: var(--soft); background: transparent; font-weight: 800; cursor: pointer; }
.tab-button.active { color: #1b1209; background: linear-gradient(135deg, #f4d5aa, #c98f4d); }
.form-message { display: none; margin-bottom: 14px; padding: 12px 14px; border: 1px solid rgba(255,143,125,.38); border-radius: var(--radius); color: #ffd6cf; background: rgba(255,143,125,.08); }
.form-message.show { display: block; }
.login-form { display: none; }
.login-form.active { display: grid; gap: 16px; }

.login-hint {
  margin: -6px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(217, 170, 106, 0.22);
  border-radius: 8px;
  color: #f1d2a6 !important;
  background: rgba(217, 170, 106, 0.07);
  font-size: 13px;
}

.login-hint strong {
  color: #fff8ef;
}

.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(22px, 5vw, 82px); border-bottom: 1px solid var(--line-2); background: rgba(7,7,6,.82); }
.dashboard, .gallery-page { padding: 42px clamp(22px, 5vw, 82px) 110px; }
.dashboard-hero, .gallery-heading, .admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.dashboard-hero h1, .gallery-heading h1, .admin-heading h1 { font-size: clamp(38px, 5vw, 60px); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric-card { padding: 24px; }
.metric-card h3 { font-size: 18px; }

.admin-layout { display: grid; grid-template-columns: 270px 1fr; min-height: 100vh; }
.sidebar { padding: 24px; border-right: 1px solid var(--line-2); background: rgba(10,10,9,.78); }
.sidebar nav { display: grid; gap: 8px; margin-top: 36px; }
.sidebar nav a { padding: 13px 14px; border-radius: var(--radius); color: var(--soft); }
.sidebar nav a.active, .sidebar nav a:hover { color: var(--gold-2); background: rgba(217,170,106,.08); }
.admin-main { padding: 38px clamp(22px, 4vw, 60px); }

.gallery-stats { grid-template-columns: repeat(2, 150px); }
.gallery-stats article { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.gallery-stats strong, .gallery-stats span { display: block; }
.gallery-stats strong { color: var(--gold-2); font-size: 30px; }
.gallery-stats span { color: var(--muted); font-size: 13px; }
.photo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.photo-tile { position: relative; min-height: 230px; overflow: hidden; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card-bg); }
.photo-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.76)); }
.photo-tile button { position: absolute; z-index: 1; left: 14px; bottom: 14px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); background: rgba(0,0,0,.48); cursor: pointer; }
.photo-tile.selected { border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(217,170,106,.14); }
.photo-tile.selected button { color: #1b1209; background: linear-gradient(135deg, #f4d5aa, #c98f4d); }
.selection-bar { position: fixed; left: 50%; bottom: 18px; z-index: 30; width: min(calc(100% - 36px), 760px); transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13,13,12,.92); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.selection-bar strong { color: var(--gold-2); }

.site-footer { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; margin-top: 34px; padding: 28px clamp(22px, 5vw, 82px); border-top: 1px solid var(--line-2); }
.site-footer div strong, .site-footer div span { display: block; }
.site-footer div span, .site-footer p { color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; font-size: 14px; }
.site-footer p { justify-self: end; text-align: right; }

@media (max-width: 1180px) {
  .preview-grid, .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .full-grid, .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .photo-hero { min-height: 460px; }
}

@media (max-width: 880px) {
  .site-header { grid-template-columns: 1fr; align-items: start; }
  .main-nav { justify-content: start; overflow-x: auto; padding-bottom: 4px; }
  .header-actions { width: 100%; }
  .experience-band, .contact-layout, .admin-layout, .site-footer { grid-template-columns: 1fr; }
  .admin-layout { display: block; }
  .sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer, .site-footer p { text-align: left; justify-items: start; }
  .dashboard-hero, .gallery-heading, .admin-heading { align-items: start; flex-direction: column; }
}

@media (max-width: 640px) {
  h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-actions, .header-actions, .selection-bar { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .preview-grid, .full-grid, .timeline-grid, .mini-features, .metric-grid, .photo-grid, .gallery-stats { grid-template-columns: 1fr; }
  .photo-hero { min-height: 360px; }
  .person-left { right: 34%; width: 170px; height: 310px; }
  .person-right { right: 2%; width: 190px; height: 300px; }
  .auth-brand { position: static; margin-bottom: 26px; }
  .auth-page { place-items: start center; }
}

/* Home baseada na referencia visual enviada */
.reference-home {
  background:
    radial-gradient(circle at 75% 18%, rgba(205, 143, 67, 0.14), transparent 24rem),
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.03), transparent 28rem),
    linear-gradient(180deg, #070808 0%, #0b0b0a 55%, #10100f 100%);
  overflow-x: hidden;
}

.reference-page {
  width: 1448px;
  min-height: 100vh;
  margin: 0 auto;
  color: #f7f0e8;
  transform-origin: top center;
}

@media (max-width: 1447px) {
  .reference-page {
    margin-left: 0;
    margin-right: 0;
    transform: scale(0.98);
    transform-origin: top left;
  }
}

@media (max-width: 1400px) {
  .reference-page {
    transform: scale(0.94);
  }
}

@media (max-width: 1300px) {
  .reference-page {
    transform: scale(0.884);
  }
}

@media (max-width: 1100px) {
  .reference-page {
    transform: scale(0.76);
  }
}

.reference-header {
  display: grid;
  grid-template-columns: 252px 1fr 275px;
  align-items: center;
  gap: 24px;
  padding: 30px 114px 16px;
}

.reference-brand img {
  display: block;
  width: auto;
  max-width: 240px;
  max-height: 52px;
  height: auto;
  object-fit: contain;
}

.reference-nav {
  display: flex;
  justify-content: center;
  gap: 31px;
  color: #eee7de;
  font-size: 14px;
}

.reference-nav a {
  opacity: 0.93;
}

.reference-nav a:hover {
  color: #f2cfa1;
}

.reference-actions,
.reference-hero-buttons,
.reference-benefits,
.reference-footer nav {
  display: flex;
  align-items: center;
}

.reference-actions {
  justify-content: flex-end;
  gap: 18px;
}

.reference-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.reference-btn.gold {
  min-width: 168px;
  color: #1b130b;
  background: linear-gradient(135deg, #f0d0a6 0%, #c99255 100%);
  box-shadow: 0 14px 34px rgba(194, 129, 56, 0.18);
}

.reference-btn.outline {
  min-width: 90px;
  color: #f7f0e8;
  border: 1px solid rgba(228, 178, 105, 0.55);
  background: rgba(255, 255, 255, 0.02);
}

.reference-btn.compact {
  min-width: 176px;
}

.reference-hero {
  position: relative;
  display: grid;
  grid-template-columns: 520px 1fr;
  min-height: 445px;
  padding: 35px 88px 0 114px;
}

.reference-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 62px;
}

.reference-eyebrow {
  margin: 0 0 9px;
  color: #d7a562;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 11px;
  font-weight: 700;
}

.reference-hero h1 {
  width: 520px;
  margin: 0 0 10px;
  color: #f4eee7;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 50px;
  font-weight: 600;
  line-height: 1.02;
}

.reference-hero h1 span {
  color: #d7a562;
}

.reference-lead {
  width: 390px;
  margin-bottom: 24px;
  color: #c5bdb4;
  font-size: 14px;
  line-height: 1.5;
}

.reference-hero-buttons {
  gap: 16px;
  margin-bottom: 28px;
}

.camera-icon,
.play-icon {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
}

.camera-icon {
  border-radius: 4px;
}

.camera-icon::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.play-icon {
  border-radius: 50%;
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.reference-benefits {
  gap: 35px;
}

.reference-benefits article {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  width: 150px;
}

.benefit-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #d9aa6a;
  border: 1px solid rgba(217, 170, 106, 0.35);
  border-radius: 50%;
  background: rgba(217, 170, 106, 0.04);
}

.reference-benefits strong,
.reference-benefits small {
  display: block;
}

.reference-benefits strong {
  margin-bottom: 4px;
  color: #f3eee8;
  font-size: 10px;
}

.reference-benefits small {
  color: #a79f96;
  font-size: 9.5px;
  line-height: 1.35;
}

.reference-hero-photo {
  position: absolute;
  right: 83px;
  top: 63px;
  width: 725px;
  height: 438px;
  overflow: hidden;
  pointer-events: none;
}

.reference-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 2;
  width: 150px;
  background: linear-gradient(90deg, #080908 0%, rgba(8, 9, 8, 0.6) 35%, transparent 100%);
}

.reference-hero-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 100px;
  background: linear-gradient(0deg, #0b0b0a 0%, transparent 100%);
}

.reference-hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-portfolio {
  position: relative;
  z-index: 3;
  padding: 25px 88px 0;
}

.reference-section-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 18px 26px;
}

.reference-section-line p {
  margin: 0;
  color: #d7a562;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 11px;
  font-weight: 700;
}

.reference-section-line span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #d7a562;
}

.reference-tabs {
  position: absolute;
  top: 30px;
  right: 158px;
  display: grid;
  grid-template-columns: repeat(5, auto);
  gap: 8px;
  min-width: 470px;
  padding: 6px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 13px;
  background: rgba(29, 27, 24, 0.78);
  backdrop-filter: blur(12px);
}

@media (max-width: 1350px) {
  .reference-header {
    grid-template-columns: 250px 1fr 275px;
    padding: 30px 92px 16px;
  }

  .reference-hero {
    grid-template-columns: 430px 1fr;
    padding-left: 92px;
    padding-right: 72px;
  }

  .reference-hero h1 {
    width: 430px;
    font-size: 48px;
  }

  .reference-lead {
    width: 390px;
  }

  .reference-hero-photo {
    right: 72px;
    top: 105px;
    width: min(640px, calc(100vw - 560px));
    height: 438px;
  }

  .reference-benefits {
    gap: 22px;
  }

  .reference-benefits article {
    width: 145px;
  }

  .reference-portfolio {
    padding-left: 92px;
    padding-right: 92px;
  }

  .reference-tabs {
    right: 174px;
  }

  .reference-card-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reference-image-card img {
    aspect-ratio: 1.62 / 1;
  }

  .reference-experience {
    grid-template-columns: 220px 1fr;
    margin-left: 92px;
    margin-right: 92px;
  }

  .reference-experience-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reference-experience-row img {
    aspect-ratio: 1.56 / 1;
  }

  .reference-footer {
    grid-template-columns: 390px 1fr 360px;
    padding-left: 92px;
    padding-right: 92px;
  }

  .to-top {
    right: 52px;
  }
}

.reference-tabs button {
  min-height: 31px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #cfc7bd;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.reference-tabs button.active {
  color: #f4d3a9;
  background: rgba(217, 170, 106, 0.12);
  box-shadow: inset 0 0 0 1px rgba(217, 170, 106, 0.14);
}

.reference-card-row {
  display: grid;
  grid-template-columns: 266px 245px 249px 238px;
  gap: 12px;
}

.reference-image-card,
.reference-experience-row a {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
}

.reference-image-card img,
.reference-experience-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease, filter 180ms ease;
}

.reference-image-card:hover img,
.reference-experience-row a:hover img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.reference-experience {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin: 19px 88px 0;
  padding: 17px 27px 7px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(27, 26, 24, 0.82);
}

.reference-experience-intro {
  padding-top: 1px;
}

.reference-experience h2 {
  margin: 0 0 12px;
  color: #f4eee7;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.05;
}

.reference-experience-intro p:last-child {
  margin: 0;
  color: #aaa197;
  font-size: 11px;
  line-height: 1.55;
}

.reference-experience-row {
  display: grid;
  grid-template-columns: 238px 233px 257px 246px;
  gap: 11px;
}

.reference-footer {
  position: relative;
  display: grid;
  grid-template-columns: 420px 1fr 405px;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding: 12px 112px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.reference-footer-brand {
  display: flex;
  align-items: center;
  gap: 22px;
}

.reference-footer-brand img {
  width: auto;
  max-width: 210px;
  max-height: 48px;
  object-fit: contain;
}

.reference-footer-brand span,
.reference-footer-copy p,
.reference-footer-copy a {
  color: #8f887f;
  font-size: 12px;
}

.reference-footer nav {
  justify-content: center;
  gap: 24px;
}

.reference-footer nav a {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #efe8df;
  font-weight: 800;
}

.reference-footer-copy {
  text-align: left;
}

.reference-footer-copy p {
  margin: 0 0 6px;
}

.reference-footer-copy span {
  margin: 0 12px;
  color: rgba(255, 255, 255, 0.24);
}

.to-top {
  position: absolute;
  right: 110px;
  bottom: 18px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(217, 170, 106, 0.35);
  border-radius: 50%;
  color: #f2cfa1;
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 1180px) {
  body:not(.reference-home) .reference-header,
  body:not(.reference-home) .reference-hero,
  body:not(.reference-home) .reference-portfolio,
  body:not(.reference-home) .reference-footer {
    padding-left: 28px;
    padding-right: 28px;
  }

  body:not(.reference-home) .reference-header {
    grid-template-columns: 1fr;
  }

  body:not(.reference-home) .reference-nav,
  body:not(.reference-home) .reference-actions {
    justify-content: flex-start;
  }

  body:not(.reference-home) .reference-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  body:not(.reference-home) .reference-hero-photo {
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 28px;
  }

  body:not(.reference-home) .reference-tabs {
    position: static;
    width: max-content;
    margin: 0 0 14px;
  }

  body:not(.reference-home) .reference-card-row,
  body:not(.reference-home) .reference-experience,
  body:not(.reference-home) .reference-experience-row,
  body:not(.reference-home) .reference-footer {
    grid-template-columns: 1fr 1fr;
  }

  body:not(.reference-home) .reference-image-card img,
  body:not(.reference-home) .reference-experience-row img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 1180px) {
  .reference-header,
  .reference-hero,
  .reference-portfolio,
  .reference-footer {
    padding-left: 114px;
    padding-right: 88px;
  }

  .reference-header {
    grid-template-columns: 252px 1fr 275px;
  }

  .reference-nav,
  .reference-actions {
    justify-content: center;
  }

  .reference-hero {
    grid-template-columns: 520px 1fr;
    min-height: 445px;
  }

  .reference-hero-photo {
    position: absolute;
    right: 83px;
    top: 63px;
    width: 725px;
    margin-top: 0;
  }

  .reference-tabs {
    position: absolute;
    width: auto;
    margin: 0;
  }

  .reference-card-row,
  .reference-experience,
  .reference-experience-row,
  .reference-footer {
    grid-template-columns: revert;
  }

  .reference-image-card img,
  .reference-experience-row img {
    aspect-ratio: auto;
  }
}

@media (max-width: 720px) {
  body:not(.reference-home) .reference-nav,
  body:not(.reference-home) .reference-actions,
  body:not(.reference-home) .reference-hero-buttons,
  body:not(.reference-home) .reference-benefits {
    align-items: stretch;
    flex-direction: column;
  }

  body:not(.reference-home) .reference-hero h1,
  body:not(.reference-home) .reference-lead {
    width: auto;
  }

  body:not(.reference-home) .reference-hero h1 {
    font-size: 42px;
  }

  body:not(.reference-home) .reference-btn {
    width: 100%;
  }

  body:not(.reference-home) .reference-tabs,
  body:not(.reference-home) .reference-card-row,
  body:not(.reference-home) .reference-experience,
  body:not(.reference-home) .reference-experience-row,
  body:not(.reference-home) .reference-footer {
    grid-template-columns: 1fr;
  }

  body:not(.reference-home) .reference-footer-copy {
    padding-right: 58px;
  }

  body:not(.reference-home) .to-top {
    right: 28px;
  }
}

@media (min-width: 1181px) and (max-width: 1350px) {
  body:not(.reference-home) .reference-card-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.reference-home) .reference-card-row,
  body:not(.reference-home) .reference-experience-row {
    width: 100%;
  }

  body:not(.reference-home) .reference-image-card img,
  body:not(.reference-home) .reference-experience-row img {
    width: 100%;
  }

  body:not(.reference-home) .reference-experience-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.reference-home .reference-header {
  grid-template-columns: 252px 1fr 275px;
  padding: 30px 114px 16px;
}

.reference-home .reference-nav {
  justify-content: center;
}

.reference-home .reference-actions {
  justify-content: flex-end;
}

.reference-home .reference-hero {
  grid-template-columns: 520px 1fr;
  min-height: 445px;
  padding: 35px 88px 0 114px;
}

.reference-home .reference-hero h1 {
  width: 520px;
  font-size: 50px;
}

.reference-home .reference-lead {
  width: 390px;
}

.reference-home .reference-hero-photo {
  position: absolute;
  right: 83px;
  top: 63px;
  width: 725px;
  height: 438px;
}

.reference-home .reference-portfolio {
  padding: 25px 88px 0;
}

.reference-home .reference-tabs {
  position: absolute;
  top: 30px;
  right: 158px;
  grid-template-columns: repeat(5, auto);
}

.reference-home .reference-card-row {
  grid-template-columns: 266px 245px 249px 238px;
}

.reference-home .reference-experience {
  grid-template-columns: 220px 1fr;
  margin: 19px 88px 0;
}

.reference-home .reference-experience-row {
  grid-template-columns: 238px 233px 257px 246px;
}

.reference-home .reference-footer {
  grid-template-columns: 420px 1fr 405px;
  padding: 12px 112px 14px;
}

/* Refinamento final da home: limpa slider fake, equaliza cards e remove escala fixa. */
.reference-home {
  overflow-x: hidden;
}

.reference-home .reference-page {
  width: min(100%, 1280px);
  transform: none;
  margin: 0 auto;
}

.reference-home .reference-header {
  display: grid;
  grid-template-columns: 235px minmax(420px, 1fr) 300px;
  gap: 24px;
  align-items: center;
  padding: 28px clamp(28px, 6.6vw, 86px) 20px;
}

.reference-home .reference-brand img {
  width: auto;
  max-width: 230px;
  max-height: 52px;
}

.reference-home .reference-nav {
  gap: clamp(22px, 3vw, 36px);
  justify-content: center;
}

.reference-home .reference-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  border: 1px solid rgba(224, 174, 105, 0.55);
  background: transparent;
  color: #f2cfa1;
  cursor: pointer;
}

.reference-home .reference-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.reference-home .reference-actions {
  gap: 16px;
}

.reference-home .reference-btn {
  min-height: 40px;
  padding: 0 20px;
  line-height: 1;
}

.reference-home .reference-btn.gold {
  min-width: 166px;
}

.reference-home .reference-btn.outline {
  min-width: 88px;
}

.reference-home .reference-hero {
  display: grid;
  grid-template-columns: minmax(470px, 0.86fr) minmax(520px, 1.14fr);
  gap: clamp(24px, 3vw, 42px);
  align-items: center;
  min-height: 430px;
  padding: 52px clamp(28px, 6.6vw, 86px) 0;
}

.reference-home .reference-hero-copy {
  padding-top: 18px;
}

.reference-home .reference-hero h1 {
  width: auto;
  max-width: 545px;
  margin-bottom: 12px;
  font-size: clamp(39px, 3.55vw, 46px);
  line-height: 1.03;
}

.reference-home .reference-lead {
  width: auto;
  max-width: 440px;
  margin-bottom: 22px;
}

.reference-home .reference-hero-buttons {
  gap: 14px;
  margin-bottom: 24px;
}

.reference-home .reference-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 510px;
}

.reference-home .reference-benefits article {
  width: auto;
  min-height: 58px;
  grid-template-columns: 38px 1fr;
  align-items: start;
  gap: 10px;
}

.reference-home .benefit-icon {
  width: 38px;
  height: 38px;
  font-size: 11px;
}

.reference-home .reference-benefits strong {
  font-size: 10px;
  line-height: 1.2;
}

.reference-home .reference-benefits small {
  font-size: 9.5px;
  line-height: 1.3;
}

.reference-home .reference-hero-photo {
  position: relative;
  inset: auto;
  width: 100%;
  height: 404px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    inset -180px -92px 90px rgba(8, 8, 7, 0.96),
    inset 0 -80px 88px rgba(8, 8, 7, 0.62);
}

.reference-home .hero-media,
.reference-home .hero-main-video-wrap,
.reference-home .hero-visual-media {
  position: relative;
  overflow: hidden;
}

.reference-home .reference-hero-photo::before {
  width: 120px;
  z-index: 2;
  background: linear-gradient(90deg, #080908 0%, rgba(8, 9, 8, 0.5) 42%, transparent 100%);
}

.reference-home .reference-hero-photo::after {
  height: 120px;
  z-index: 2;
  background: linear-gradient(0deg, #0b0b0a 0%, rgba(11, 11, 10, 0.78) 18%, transparent 100%);
}

.reference-home .hero-main-video {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
}

.reference-home .hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.35)),
    radial-gradient(circle at 50% 45%, rgba(218, 176, 112, 0.18), transparent 55%);
}

.reference-home .hero-floating-card,
.reference-home .hero-badge,
.reference-home .hero-mini-card {
  position: relative;
  z-index: 3;
}

.reference-home .reference-portfolio {
  padding: 26px clamp(28px, 6.6vw, 86px) 0;
}

.reference-home .reference-section-line {
  margin-left: 0;
  margin-bottom: 14px;
}

.reference-home .reference-tabs {
  position: static;
  display: flex;
  flex-wrap: wrap;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  margin: -4px 0 12px auto;
  padding: 6px;
  border-radius: 12px;
}

.reference-home .reference-tabs button {
  min-width: 72px;
  min-height: 32px;
  padding: 0 14px;
}

.reference-home .reference-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.reference-home .portfolio-card,
.reference-home .experience-card {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(218, 176, 112, 0.18);
  border-radius: 9px;
  background:
    radial-gradient(circle at 72% 10%, rgba(218, 176, 112, 0.16), transparent 42%),
    rgba(255, 255, 255, 0.04);
}

.reference-home .portfolio-card {
  padding: 0;
  min-height: 154px;
  aspect-ratio: 1.52 / 1;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 230, 0.03);
}

.reference-home .portfolio-card-image,
.reference-home .experience-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-home .portfolio-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72)),
    radial-gradient(circle at 72% 14%, rgba(218, 176, 112, 0.16), transparent 42%);
}

.reference-home .portfolio-card-content {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  min-height: calc(100% - 32px);
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.reference-home .portfolio-card-category,
.reference-home .portfolio-card-link,
.reference-home .experience-card a {
  color: #d8ad70;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 10px;
  font-weight: 800;
}

.reference-home .portfolio-card h3 {
  max-width: 190px;
  margin: 8px 0 12px;
  color: #fff7ea;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  line-height: 1.08;
}

.reference-home .portfolio-card-link,
.reference-home .experience-card a {
  text-decoration: none;
}

.reference-home .reference-fifteen-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, transparent 10%, rgba(0, 0, 0, 0.78) 100%),
    radial-gradient(circle at 66% 20%, rgba(245, 210, 165, 0.54), transparent 4.6rem),
    linear-gradient(135deg, #4b3028 0%, #12100e 62%);
}

.reference-home .reference-fifteen-card span,
.reference-home .reference-fifteen-card small {
  color: #d7a562;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 10px;
  font-weight: 800;
}

.reference-home .reference-fifteen-card strong {
  max-width: 150px;
  color: #f4eee7;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1.08;
}

.reference-home .reference-experience {
  display: grid;
  grid-template-columns: minmax(230px, 0.27fr) minmax(0, 1fr);
  gap: 16px;
  margin: 18px clamp(28px, 6.6vw, 86px) 0;
  padding: 16px;
  align-items: stretch;
  border: 1px solid rgba(218, 176, 112, 0.16);
  border-radius: 9px;
  background:
    radial-gradient(circle at 18% 20%, rgba(218, 176, 112, 0.08), transparent 34%),
    rgba(255, 255, 255, 0.035);
}

.reference-home .reference-experience-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 168px;
  padding: 10px 12px;
}

.reference-home .reference-experience h2 {
  max-width: 190px;
  font-size: 25px;
  line-height: 1.02;
}

.reference-home .reference-experience-intro p:last-child {
  max-width: 190px;
  line-height: 1.5;
}

.reference-home .reference-experience-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.reference-home .experience-card {
  min-height: 168px;
  aspect-ratio: auto;
}

.reference-home .experience-card-media {
  position: absolute;
  inset: 0;
}

.reference-home .experience-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.94), rgba(9, 9, 8, 0.62) 54%, rgba(9, 9, 8, 0.38)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.82));
}

.reference-home .experience-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: 18px 16px 16px;
}

.reference-home .experience-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  margin-bottom: 14px;
  border: 1px solid rgba(218, 176, 112, 0.26);
  border-radius: 50%;
  color: #d8ad70;
  background: rgba(218, 176, 112, 0.08);
  font-size: 10px;
  font-weight: 900;
}

.reference-home .experience-card h3 {
  margin: 0 0 8px;
  color: #fff7ea;
  font-size: 13px;
  line-height: 1.18;
}

.reference-home .experience-card p {
  max-width: none;
  margin: 0 0 12px;
  color: rgba(255, 248, 239, 0.64);
  font-size: 10.5px;
  line-height: 1.38;
  flex: 1 1 auto;
}

.reference-home .experience-card a {
  letter-spacing: 0;
  text-transform: none;
  font-size: 10.5px;
  margin-top: auto;
  flex: 0 0 auto;
}

.reference-home .reference-footer {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(320px, 1fr) 38px;
  gap: 24px;
  align-items: center;
  margin-top: 10px;
  padding: 16px clamp(28px, 6.6vw, 86px);
}

.reference-home .reference-footer-brand {
  gap: 18px;
}

.reference-home .reference-footer-brand img {
  width: auto;
  max-width: 200px;
  max-height: 48px;
}

.reference-home .reference-footer-copy {
  text-align: right;
}

.reference-home .to-top {
  position: static;
}

@media (max-width: 1100px) {
  .reference-home .reference-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .reference-home .reference-nav,
  .reference-home .reference-actions {
    justify-content: flex-start;
  }

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

  .reference-home .reference-hero h1,
  .reference-home .reference-lead,
  .reference-home .reference-benefits {
    max-width: 680px;
  }

  .reference-home .reference-hero-photo {
    height: min(56vw, 430px);
  }

  .reference-home .reference-card-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reference-home .reference-experience {
    grid-template-columns: 1fr;
  }

  .reference-home .reference-footer {
    grid-template-columns: 1fr;
  }

  .reference-home .reference-footer-copy {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .reference-home .reference-header,
  .reference-home .reference-hero,
  .reference-home .reference-portfolio {
    padding-left: 18px;
    padding-right: 18px;
  }

  .reference-home .reference-header {
    grid-template-columns: minmax(0, 1fr) 44px;
    gap: 14px;
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .reference-home .reference-brand img {
    max-width: 190px;
    max-height: 44px;
  }

  .reference-home .reference-menu-toggle {
    display: block;
    justify-self: end;
  }

  .reference-home .reference-nav,
  .reference-home .reference-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .reference-home .reference-header.menu-open .reference-nav,
  .reference-home .reference-header.menu-open .reference-actions {
    display: flex;
  }

  .reference-home .reference-header.menu-open .reference-menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .reference-home .reference-header.menu-open .reference-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .reference-home .reference-header.menu-open .reference-menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .reference-home .reference-nav,
  .reference-home .reference-actions,
  .reference-home .reference-hero-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-home .reference-btn {
    width: 100%;
  }

  .reference-home .reference-hero h1 {
    font-size: 40px;
  }

  .reference-home .reference-benefits,
  .reference-home .reference-card-row,
  .reference-home .reference-experience-row {
    grid-template-columns: 1fr;
  }

  .reference-home .reference-tabs {
    width: 100%;
  }

  .reference-home .reference-tabs button {
    flex: 1 1 42%;
  }

.reference-home .reference-experience {
    margin-left: 18px;
    margin-right: 18px;
  }
}

/* SubWorld Select Admin - Parte 2 */
.proof-admin-body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 8%, rgba(217, 170, 106, 0.18), transparent 24rem),
    radial-gradient(circle at 18% 40%, rgba(255, 255, 255, 0.04), transparent 22rem),
    linear-gradient(135deg, #060606, #11100e 54%, #080807);
}

.proof-admin {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.proof-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 8, 0.82);
  backdrop-filter: blur(18px);
}

.proof-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff8ef;
}

.proof-logo img {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 52px;
  object-fit: contain;
}

.proof-logo-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(217, 170, 106, 0.42);
  border-radius: 8px;
  color: #f1d2a6;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  background: rgba(217, 170, 106, 0.08);
}

.proof-logo strong,
.proof-logo small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.proof-logo strong { font-size: 14px; }
.proof-logo small { margin-top: 4px; color: #d9aa6a; font-size: 10px; }

.proof-menu {
  display: grid;
  gap: 8px;
}

.proof-menu button,
.proof-logout {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #c9beb1;
  background: transparent;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.proof-menu button:hover,
.proof-menu button.active,
.proof-logout:hover {
  color: #f1d2a6;
  border-color: rgba(217, 170, 106, 0.22);
  background: rgba(217, 170, 106, 0.08);
}

.proof-logout {
  display: flex;
  align-items: center;
  margin-top: auto;
}

.proof-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 42px) 44px;
}

.proof-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.proof-kicker {
  margin: 0 0 8px;
  color: #d9aa6a;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 11px;
  font-weight: 800;
}

.proof-topbar h1,
.proof-card h2,
.proof-empty h2 {
  margin: 0;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
}

.proof-topbar h1 { font-size: clamp(34px, 4vw, 54px); }

.proof-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.proof-search {
  position: relative;
  min-width: 260px;
}

.proof-search span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.proof-search input,
.proof-form input,
.proof-form textarea,
.proof-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  padding: 0 13px;
  color: #fff8ef;
  background: rgba(0, 0, 0, 0.25);
  outline: none;
}

.proof-form textarea {
  padding-top: 12px;
}

.proof-search input:focus,
.proof-form input:focus,
.proof-form textarea:focus,
.proof-form select:focus {
  border-color: #d9aa6a;
  box-shadow: 0 0 0 4px rgba(217, 170, 106, 0.11);
}

.proof-avatar {
  display: grid;
  min-height: 42px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(217, 170, 106, 0.2);
  border-radius: 8px;
  color: #f1d2a6;
  background: rgba(217, 170, 106, 0.06);
  font-weight: 800;
}

.proof-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.proof-btn-gold {
  color: #1b1209;
  background: linear-gradient(135deg, #f4d5aa, #c98f4d);
  box-shadow: 0 14px 34px rgba(217, 170, 106, 0.18);
}

.proof-btn-ghost {
  color: #fff8ef;
  border-color: rgba(217, 170, 106, 0.38);
  background: rgba(255, 255, 255, 0.03);
}

.proof-section {
  display: none;
}

.proof-section.active {
  display: grid;
  gap: 18px;
}

.proof-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proof-summary-card,
.proof-card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(24, 23, 21, 0.74);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.proof-summary-card {
  position: relative;
  padding: 20px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease;
}

.proof-summary-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 170, 106, 0.32);
}

.proof-summary-card span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(217, 170, 106, 0.32);
  border-radius: 50%;
  color: #f1d2a6;
}

.proof-summary-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff8ef;
  font-size: 30px;
  line-height: 1;
}

.proof-summary-card h3 {
  margin: 0 0 6px;
  color: #fff8ef;
  font-size: 15px;
}

.proof-summary-card p,
.proof-card p,
.proof-empty p {
  margin: 0;
  color: #948a80;
  line-height: 1.55;
}

.proof-table-card {
  padding: 18px;
}

.proof-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.proof-card-head h2 {
  font-size: 28px;
}

.proof-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.proof-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.proof-table th,
.proof-table td {
  padding: 13px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  vertical-align: middle;
}

.proof-table th {
  color: #d9aa6a;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
}

.proof-table td {
  color: #d8d0c7;
  font-size: 13px;
}

.proof-empty-cell {
  color: #948a80 !important;
  text-align: center !important;
}

.proof-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.proof-row-actions button {
  min-height: 30px;
  border: 1px solid rgba(217, 170, 106, 0.25);
  border-radius: 7px;
  color: #f1d2a6;
  background: rgba(217, 170, 106, 0.06);
  cursor: pointer;
}

.proof-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.payment-paid,
.state-active,
.gallery-delivered,
.gallery-finished {
  color: #d9ffe3;
  background: rgba(69, 189, 111, 0.16);
}

.payment-pending,
.gallery-waiting_payment,
.gallery-waiting_album_approval {
  color: #ffe0a6;
  background: rgba(217, 170, 106, 0.16);
}

.payment-partial,
.gallery-selecting,
.gallery-published {
  color: #d7ecff;
  background: rgba(98, 158, 211, 0.16);
}

.payment-free {
  color: #f4d5ff;
  background: rgba(185, 111, 214, 0.16);
}

.gallery-draft,
.state-inactive {
  color: #c9beb1;
  background: rgba(255, 255, 255, 0.08);
}

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

.proof-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
}

.proof-modal-panel {
  position: relative;
  width: min(100%, 880px);
  max-height: min(88vh, 760px);
  overflow: auto;
  border: 1px solid rgba(217, 170, 106, 0.22);
  border-radius: 12px;
  background: rgba(18, 17, 15, 0.98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
}

.proof-modal-panel:has(.selection-lightbox) {
  width: min(100%, 1120px);
  overflow: hidden;
}

.proof-modal-close {
  position: sticky;
  top: 14px;
  float: right;
  z-index: 2;
  margin: 14px 14px 0 0;
  min-height: 34px;
  border: 1px solid rgba(217, 170, 106, 0.28);
  border-radius: 8px;
  color: #f1d2a6;
  background: rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

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

.proof-form h2 {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px;
}

.proof-form label {
  color: #fff8ef;
}

.proof-form label span {
  margin-bottom: 7px;
  font-size: 13px;
}

.proof-form-full,
.proof-check,
.proof-form-actions {
  grid-column: 1 / -1;
}

.proof-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.proof-check input {
  width: auto;
  min-height: auto;
}

.proof-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.proof-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  max-width: 360px;
  padding: 14px 16px;
  border: 1px solid rgba(217, 170, 106, 0.28);
  border-radius: 10px;
  color: #fff8ef;
  background: rgba(20, 19, 17, 0.95);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.proof-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.proof-toast.error {
  border-color: rgba(255, 143, 125, 0.5);
}

.proof-empty {
  padding: 28px;
}

.dashboard-open .proof-topbar {
  display: none;
}

.proof-sidebar-bottom {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.proof-user-card,
.proof-tip-card,
.proof-sidebar-brand {
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.proof-user-card,
.proof-sidebar-brand {
  padding: 14px;
}

.proof-user-card strong,
.proof-sidebar-brand strong,
.proof-tip-card strong {
  display: block;
  color: #fff8ef;
}

.proof-user-card span,
.proof-sidebar-brand span,
.proof-tip-card p {
  display: block;
  margin: 5px 0 0;
  color: rgba(255, 248, 239, 0.56);
  font-size: 12px;
  line-height: 1.45;
}

.proof-tip-card {
  padding: 14px;
  background:
    radial-gradient(circle at 80% 0%, rgba(217, 170, 106, 0.16), transparent 60%),
    rgba(255, 255, 255, 0.035);
}

.proof-tip-card button {
  min-height: 32px;
  margin-top: 12px;
  padding: 0 10px;
  border: 1px solid rgba(217, 170, 106, 0.28);
  border-radius: 8px;
  color: #f1d2a6;
  background: rgba(217, 170, 106, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.proof-logout {
  margin-top: 0;
}

.proof-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.proof-menu button::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 1px solid rgba(217, 170, 106, 0.42);
  border-radius: 50%;
  background: rgba(217, 170, 106, 0.08);
}

.proof-menu button.active::before {
  background: #d9aa6a;
}

.dash-shell {
  display: grid;
  gap: 18px;
}

.dash-hero,
.dash-actions,
.dash-metrics,
.dash-main-grid,
.dash-footer {
  width: 100%;
}

.dash-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.dash-hero h1 {
  margin: 0 0 8px;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
}

.dash-hero p,
.dash-top-meta,
.dash-panel-head button,
.dash-panel-link {
  color: rgba(255, 248, 239, 0.6);
}

.dash-hero p {
  margin: 0;
}

.dash-top-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.dash-top-meta button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 50%;
  color: #f1d2a6;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 900;
}

.dash-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: -8px;
}

.dash-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 190px;
  min-height: 62px;
  padding: 0 20px;
  border: 1px solid rgba(217, 170, 106, 0.22);
  border-radius: 12px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
  cursor: pointer;
}

.dash-action span {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border: 1px solid rgba(217, 170, 106, 0.26);
  border-radius: 8px;
  color: #f1d2a6;
  font-size: 11px;
}

.dash-action.primary {
  color: #1b1209;
  background: linear-gradient(135deg, #f4d5aa, #c98f4d);
  box-shadow: 0 20px 42px rgba(217, 170, 106, 0.18);
}

.dash-action.primary span {
  border-color: rgba(27, 18, 9, 0.22);
  color: #1b1209;
}

.dash-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.dash-metric,
.dash-panel,
.dash-footer {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background:
    radial-gradient(circle at 82% 0%, rgba(217, 170, 106, 0.11), transparent 46%),
    rgba(18, 17, 15, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.dash-metric {
  display: flex;
  gap: 16px;
  min-height: 136px;
  padding: 18px;
}

.dash-metric > span {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(217, 170, 106, 0.26);
  border-radius: 50%;
  color: #f1d2a6;
  background: rgba(217, 170, 106, 0.08);
  font-weight: 900;
}

.dash-metric h3 {
  margin: 3px 0 10px;
  color: rgba(255, 248, 239, 0.62);
  font-size: 14px;
}

.dash-metric strong {
  display: block;
  color: #f4d5aa;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  line-height: 1;
  overflow-wrap: anywhere;
}

.dash-metric p {
  margin: 12px 0 0;
  color: #a9e7a9;
  font-size: 13px;
  font-weight: 700;
}

.dash-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 18px;
}

.dash-panel {
  overflow: hidden;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 10px;
}

.dash-panel-head h2 {
  margin: 0;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
}

.dash-panel-head button,
.dash-panel-link {
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.dash-gallery-list,
.dash-agenda-list,
.dash-payments-list {
  display: grid;
  padding: 0 20px 14px;
}

.dash-gallery-item,
.dash-agenda-item,
.dash-payment-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 248, 239, 0.72);
}

.dash-gallery-item {
  grid-template-columns: 58px minmax(150px, 1fr) 110px 92px 92px;
}

.dash-thumb,
.dash-payment-client > span,
.dash-date-box {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 10px;
  background:
    radial-gradient(circle at 70% 20%, rgba(217, 170, 106, 0.2), transparent 34%),
    linear-gradient(135deg, var(--demo, #3b2b25), #090908 80%);
}

.dash-thumb {
  width: 48px;
  height: 48px;
  color: #f1d2a6;
  font-weight: 900;
}

.dash-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dash-gallery-item strong,
.dash-agenda-item strong,
.dash-payment-row strong {
  color: #fff8ef;
}

.dash-gallery-item small,
.dash-agenda-item small,
.dash-payment-row small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 248, 239, 0.48);
}

.dash-status,
.dash-tag {
  justify-self: start;
  min-width: 76px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.dash-status.gold,
.dash-tag.gold {
  color: #ffdca8;
  background: rgba(217, 170, 106, 0.14);
}

.dash-status.yellow {
  color: #ffe0a6;
  background: rgba(229, 184, 89, 0.14);
}

.dash-status.green,
.dash-tag.green,
.dash-tag.deepgreen {
  color: #d9ffe3;
  background: rgba(69, 189, 111, 0.16);
}

.dash-status.blue,
.dash-tag.blue {
  color: #d7ecff;
  background: rgba(98, 158, 211, 0.16);
}

.dash-status.purple,
.dash-tag.purple {
  color: #f0dcff;
  background: rgba(163, 111, 214, 0.16);
}

.dash-status.gray,
.dash-tag.gray {
  color: #c9beb1;
  background: rgba(255, 255, 255, 0.08);
}

.dash-status.red {
  color: #ffd0ca;
  background: rgba(255, 118, 95, 0.14);
}

.dash-panel-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #f1d2a6;
}

.dash-agenda-item {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: start;
  padding: 12px 0;
}

.dash-date-box {
  width: 44px;
  height: 54px;
}

.dash-date-box strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 21px;
  line-height: 1;
}

.dash-date-box span {
  color: rgba(255, 248, 239, 0.52);
  font-size: 11px;
  font-weight: 800;
}

.agenda-page {
  display: grid;
  gap: 18px;
}

.agenda-header h2,
.agenda-card h3,
.calendar-events-list h4 {
  margin: 0;
}

.agenda-header p {
  max-width: 720px;
  margin: 8px 0 0;
}

.agenda-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(217, 170, 106, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.agenda-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: rgba(255, 248, 239, 0.72);
  font-size: 12px;
}

.agenda-filters input,
.agenda-filters select {
  min-height: 42px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 8px;
  color: #fff8ef;
  background: rgba(12, 11, 10, 0.9);
}

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

.agenda-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(217, 170, 106, 0.16);
  border-radius: 12px;
  background: rgba(14, 13, 12, 0.78);
}

.agenda-list {
  display: grid;
  gap: 12px;
}

.agenda-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}

.agenda-date {
  display: grid;
  place-items: center;
  width: 48px;
  min-height: 56px;
  border: 1px solid rgba(217, 170, 106, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(217, 170, 106, 0.16), rgba(0, 0, 0, 0.24));
}

.agenda-date strong {
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.agenda-date span {
  color: #f1d2a6;
  font-size: 11px;
  font-weight: 900;
}

.agenda-info {
  min-width: 0;
}

.agenda-title {
  margin: 0 0 6px;
  color: #fff8ef;
  font-size: 16px;
}

.agenda-meta {
  margin: 0;
  color: rgba(255, 248, 239, 0.62);
  font-size: 13px;
  line-height: 1.5;
}

.agenda-badge {
  justify-self: end;
  min-width: 92px;
  padding: 6px 10px;
  border-radius: 8px;
  text-align: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.agenda-badge.confirmed { color: #d9ffe3; background: rgba(69, 189, 111, 0.16); }
.agenda-badge.pending { color: #ffe0a6; background: rgba(229, 184, 89, 0.14); }
.agenda-badge.partial { color: #d7ecff; background: rgba(98, 158, 211, 0.16); }
.agenda-badge.free { color: #f0dcff; background: rgba(163, 111, 214, 0.16); }
.agenda-badge.delivered { color: #ffdca8; background: rgba(217, 170, 106, 0.14); }

.agenda-actions {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agenda-actions button,
.calendar-head button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 8px;
  color: #f1d2a6;
  background: rgba(12, 11, 10, 0.72);
  font-weight: 800;
  cursor: pointer;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.calendar-head div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.calendar-head strong {
  color: #fff8ef;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-grid b,
.calendar-day {
  min-width: 0;
  text-align: center;
}

.calendar-grid b {
  color: rgba(255, 248, 239, 0.5);
  font-size: 12px;
}

.calendar-day {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.calendar-day.empty {
  visibility: hidden;
}

.calendar-day.has-event {
  border-color: rgba(217, 170, 106, 0.32);
}

.calendar-day.has-event i {
  position: absolute;
  bottom: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d9aa6a;
}

.calendar-day.selected {
  color: #17120d;
  background: linear-gradient(135deg, #f1c287, #c9853e);
}

.calendar-day.selected i {
  background: #17120d;
}

.calendar-events-list {
  display: grid;
  gap: 8px;
}

.calendar-events-list p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.calendar-events-list strong {
  color: #f1d2a6;
}

.dash-payments-panel {
  width: 100%;
}

.dash-payment-row {
  grid-template-columns: minmax(190px, 1.2fr) minmax(190px, 1.4fr) 120px 110px 100px 230px;
  min-height: 72px;
}

.dash-payment-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-payment-client > span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #f1d2a6;
  font-weight: 900;
}

.dash-payment-client p {
  margin: 0;
}

.dash-payment-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.dash-payment-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(217, 170, 106, 0.2);
  border-radius: 8px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.035);
  font-weight: 800;
  cursor: pointer;
}

.dash-payment-actions span {
  color: #d9aa6a;
  font-weight: 900;
}

.dash-empty {
  display: grid;
  min-height: 120px;
  place-items: center;
  color: rgba(255, 248, 239, 0.52);
  text-align: center;
}

.dash-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
}

.dash-footer strong,
.dash-footer span {
  display: block;
}

.dash-footer strong {
  color: #f1d2a6;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
}

.dash-footer div span,
.dash-footer p {
  margin: 4px 0 0;
  color: rgba(255, 248, 239, 0.5);
  font-size: 12px;
}

.dash-footer nav {
  display: flex;
  gap: 12px;
}

.dash-footer nav span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 50%;
  color: #fff8ef;
  font-size: 11px;
  font-weight: 900;
}

.dash-footer p {
  justify-self: end;
}

/* Admin overflow and responsive hardening */
.proof-admin,
.proof-main,
.proof-topbar,
.proof-top-actions,
.proof-section,
.proof-card,
.proof-card-head,
.proof-table-card,
.dash-shell,
.dash-hero,
.dash-hero > *,
.dash-actions,
.dash-metrics,
.dash-main-grid,
.dash-panel,
.dash-panel-head,
.dash-gallery-list,
.dash-agenda-list,
.dash-payments-list,
.dash-footer,
.agenda-page,
.agenda-card,
.agenda-list,
.calendar-grid,
.calendar-events-list {
  min-width: 0;
  max-width: 100%;
}

.proof-admin {
  width: 100%;
  overflow-x: hidden;
}

.proof-main,
.dash-shell,
.proof-section,
.dash-panel,
.proof-card {
  overflow-x: hidden;
}

.proof-sidebar,
.proof-sidebar *,
.proof-topbar *,
.dash-panel *,
.proof-card *,
.agenda-page * {
  min-width: 0;
}

.proof-sidebar strong,
.proof-sidebar span,
.proof-sidebar p,
.proof-menu button,
.proof-logout,
.proof-topbar h1,
.proof-kicker,
.dash-hero h1,
.dash-hero p,
.dash-panel-head h2,
.dash-panel-head button,
.dash-panel-link,
.dash-action,
.proof-btn,
.proof-avatar,
.proof-table th,
.proof-table td,
.proof-row-actions button,
.agenda-actions button,
.calendar-head button {
  overflow: hidden;
  text-overflow: ellipsis;
}

button,
.proof-btn,
.dash-action,
.proof-row-actions button,
.agenda-actions button,
.calendar-head button,
.agenda-badge,
.dash-status,
.dash-tag,
.proof-badge {
  max-width: 100%;
  white-space: nowrap;
}

.dash-metric {
  min-width: 0;
  min-height: 142px;
  overflow: hidden;
}

.dash-metric > div {
  min-width: 0;
  overflow: hidden;
}

.dash-metric h3,
.dash-metric p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-metric strong {
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1;
}

.dash-gallery-list,
.dash-agenda-list:not(.dash-agenda-page),
.dash-payments-list {
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
}

.dash-agenda-page,
[data-panel="agenda"],
[data-panel="agenda"] > .proof-card {
  max-height: none;
  overflow: visible;
}

.dash-gallery-item {
  grid-template-columns: 58px minmax(0, 1fr) minmax(88px, 110px) minmax(78px, 92px) minmax(80px, 92px);
  min-width: 0;
  overflow: hidden;
}

.dash-gallery-item > div,
.dash-gallery-item > span,
.dash-gallery-item > time,
.dash-gallery-item strong,
.dash-gallery-item small,
.dash-payment-row > div,
.dash-payment-row strong,
.dash-payment-row small,
.dash-payment-row time,
.agenda-info,
.agenda-title,
.agenda-meta,
.calendar-events-list span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dash-thumb {
  flex: 0 0 auto;
}

.dash-agenda-item,
.agenda-item {
  min-width: 0;
  overflow: hidden;
}

.dash-agenda-item .agenda-info strong,
.dash-agenda-item .agenda-info small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.agenda-badge,
.dash-status,
.dash-tag,
.proof-badge {
  max-width: 140px;
  flex-shrink: 0;
}

.agenda-item {
  grid-template-columns: 58px minmax(0, 1fr) minmax(92px, auto);
  max-width: 100%;
}

.agenda-actions {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.agenda-actions button {
  max-width: 180px;
}

.calendar-grid {
  width: 100%;
  max-width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-day {
  min-width: 0;
  min-height: 78px;
  max-height: 92px;
  overflow: hidden;
  align-content: start;
  gap: 3px;
  padding: 8px 6px;
}

.calendar-day > span {
  line-height: 1;
}

.calendar-day-events {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.calendar-day-event,
.calendar-day-more {
  display: block;
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 248, 239, 0.72);
  font-size: 10px;
  line-height: 1.2;
}

.calendar-day-more {
  color: #f1d2a6;
  font-weight: 900;
}

.proof-table-wrap {
  max-width: 100%;
  overflow-x: hidden;
}

.proof-table {
  min-width: 0;
  table-layout: fixed;
}

.proof-table th,
.proof-table td {
  max-width: 220px;
  white-space: nowrap;
}

.proof-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.proof-row-actions button {
  max-width: 150px;
}

.proof-modal {
  overflow: hidden;
}

.proof-modal-panel {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
}

.proof-form,
.proof-settings-form,
.client-wizard-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.proof-form label,
.client-wizard-form label,
.proof-form input,
.proof-form select,
.proof-form textarea,
.client-wizard-form input,
.client-wizard-form select,
.client-wizard-form textarea {
  min-width: 0;
  max-width: 100%;
}

.proof-form-actions {
  position: sticky;
  bottom: -1px;
  z-index: 2;
  margin-top: 10px;
  padding-top: 14px;
  background: rgba(14, 12, 10, 0.96);
}

.client-flow-open .proof-topbar,
.gallery-flow-open .proof-topbar {
  display: none;
}

.client-wizard-shell {
  display: grid;
  gap: 18px;
}

.client-wizard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.client-wizard-head h1 {
  margin: 0 0 8px;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 0.95;
}

.client-wizard-head p,
.client-wizard-muted {
  margin: 0;
  color: rgba(255, 248, 239, 0.66);
}

.client-wizard-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding: 16px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.client-wizard-steps button {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px 12px;
  align-items: center;
  min-height: 64px;
  border: 0;
  color: rgba(255, 248, 239, 0.72);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.client-wizard-steps button:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 34px;
  height: 1px;
  background: rgba(217, 170, 106, 0.32);
}

.client-wizard-steps span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 170, 106, 0.35);
  border-radius: 50%;
  color: #f1d2a6;
  font-weight: 800;
}

.client-wizard-steps strong {
  align-self: end;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff8ef;
}

.client-wizard-steps small {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: rgba(255, 248, 239, 0.52);
}

.client-wizard-steps .active span {
  color: #1b1209;
  background: linear-gradient(135deg, #f4d5aa, #c98f4d);
  box-shadow: 0 0 0 6px rgba(217, 170, 106, 0.12);
}

.client-wizard-steps .active strong,
.client-wizard-steps .active small {
  color: #f4d5aa;
}

.client-wizard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
  gap: 16px;
}

.client-wizard-card,
.client-wizard-summary {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background:
    radial-gradient(circle at 80% 0%, rgba(217, 170, 106, 0.11), transparent 32%),
    rgba(24, 23, 21, 0.78);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.client-wizard-card {
  padding: 28px;
}

.client-wizard-card h2,
.client-wizard-summary h2 {
  margin: 0 0 20px;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
}

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

.client-wizard-form label {
  display: grid;
  gap: 8px;
  color: #fff8ef;
}

.client-wizard-form label > span,
.client-wizard-form label > span strong {
  font-size: 13px;
  font-weight: 800;
}

.client-wizard-form .wide,
.client-wizard-divider,
.client-contract-choice,
.client-custom-package {
  grid-column: 1 / -1;
}

.client-wizard-form input,
.client-wizard-form select,
.client-wizard-form textarea,
.client-wizard-summary input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 9px;
  color: #fff8ef;
  background: rgba(8, 8, 7, 0.62);
  font: inherit;
}

.client-wizard-form textarea {
  min-height: 108px;
  padding-top: 12px;
  resize: vertical;
}

.client-wizard-divider {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-wizard-divider h3,
.client-contract-choice h3 {
  margin: 0;
  color: #fff8ef;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}

.client-wizard-switch {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.client-wizard-switch small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 248, 239, 0.56);
  line-height: 1.4;
}

.client-wizard-switch input {
  flex: 0 0 auto;
  width: 48px;
  height: 26px;
  min-height: 26px;
  appearance: none;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.client-wizard-switch input::before {
  content: "";
  display: block;
  width: 20px;
  height: 20px;
  margin: 2px;
  border-radius: 50%;
  background: rgba(255, 248, 239, 0.82);
  transition: transform 160ms ease, background 160ms ease;
}

.client-wizard-switch input:checked {
  border-color: rgba(217, 170, 106, 0.65);
  background: linear-gradient(135deg, #f4d5aa, #c98f4d);
}

.client-wizard-switch input:checked::before {
  background: #1b1209;
  transform: translateX(22px);
}

.client-package-grid,
.client-confirm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.client-package-card,
.client-confirm-grid article,
.client-wizard-summary article {
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.client-package-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.client-package-card.selected {
  border-color: rgba(217, 170, 106, 0.62);
  box-shadow: 0 0 0 1px rgba(217, 170, 106, 0.2);
}

.client-package-card h3,
.client-confirm-grid h3 {
  margin: 0;
  color: #fff8ef;
}

.client-package-card p,
.client-package-card li,
.client-confirm-grid p,
.client-wizard-summary p {
  margin: 0;
  color: rgba(255, 248, 239, 0.62);
  line-height: 1.5;
}

.client-package-card strong {
  color: #f4d5aa;
  font-size: 22px;
}

.client-package-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
}

.client-custom-package {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-contract-choice {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 10px;
  background: rgba(217, 170, 106, 0.055);
}

.client-contract-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-contract-choice p,
.client-contract-choice small {
  margin: 0;
  color: rgba(255, 248, 239, 0.6);
}

.client-contract-option {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-height: 74px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(8, 8, 7, 0.5);
}

.client-contract-option.is-selected {
  border-color: rgba(217, 170, 106, 0.58);
  background: rgba(217, 170, 106, 0.08);
}

.client-contract-option span,
.client-contract-option small {
  min-width: 0;
}

.client-contract-option small {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.client-contract-file {
  overflow-wrap: anywhere;
  font-size: 11px;
}

.client-contract-option input {
  width: auto;
  min-height: auto;
}

.wizard-inline-btn {
  min-height: 44px;
}

.client-wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.client-wizard-summary {
  align-self: start;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  position: sticky;
  top: 24px;
}

.client-wizard-summary article {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
}

.client-summary-person {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
}

.client-summary-person div {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 170, 106, 0.32);
  border-radius: 50%;
  color: #1b1209;
  background: linear-gradient(135deg, #f4d5aa, #c98f4d);
  font-weight: 900;
}

.client-summary-person strong,
.client-wizard-summary p strong,
.client-confirm-grid p strong {
  color: #fff8ef;
}

.client-summary-person span {
  display: block;
  color: rgba(255, 248, 239, 0.62);
}

.client-wizard-summary p,
.client-confirm-grid p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  overflow: hidden;
}

.client-wizard-summary p > *,
.client-confirm-grid p > * {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
}

.client-wizard-summary p > span,
.client-confirm-grid p > span {
  overflow: hidden;
  white-space: nowrap;
  text-align: right;
  text-overflow: ellipsis;
}

.client-summary-person p {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: initial;
  gap: 8px;
  min-width: 0;
}

.client-summary-person strong,
.client-summary-person span {
  display: grid;
  gap: 4px;
  min-height: 44px;
  padding: 8px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-align: left;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  align-content: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 11px;
  line-height: 1.25;
}

.client-summary-person strong::before,
.client-summary-person span::before {
  color: rgba(244, 213, 170, 0.72);
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.client-summary-person strong::before {
  content: "Nome";
}

.client-summary-person span:nth-of-type(1)::before {
  content: "E-mail";
}

.client-summary-person span:nth-of-type(2)::before {
  content: "Telefone";
}

.client-summary-person span:nth-of-type(3)::before {
  content: "CPF/CNPJ";
}

.client-wizard-summary em {
  min-width: 44px;
  padding: 3px 9px;
  border-radius: 999px;
  text-align: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.client-wizard-summary em.yes {
  color: #d9ffe3;
  background: rgba(69, 189, 111, 0.16);
}

.client-wizard-summary em.no {
  color: #ffe0a6;
  background: rgba(217, 170, 106, 0.16);
}

.client-summary-total {
  grid-template-columns: 1fr auto;
  align-items: center;
  background: linear-gradient(135deg, rgba(217, 170, 106, 0.14), rgba(255, 255, 255, 0.035)) !important;
}

.client-summary-total span {
  color: rgba(255, 248, 239, 0.68);
}

.client-summary-total strong {
  color: #fff8ef;
  font-size: 24px;
}

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

  .proof-sidebar {
    position: static;
    height: auto;
  }

  .proof-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-top-actions,
  .proof-search {
    width: 100%;
  }

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

  .client-wizard-grid {
    grid-template-columns: 1fr;
  }

  .client-wizard-summary {
    position: static;
  }

  .client-wizard-steps,
  .client-package-grid,
  .client-confirm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-wizard-steps button::after {
    display: none;
  }

  .proof-sidebar-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

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

  .dash-main-grid,
  .dash-footer {
    grid-template-columns: 1fr;
  }

  .dash-payment-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    padding: 14px 0;
  }

  .dash-payment-actions,
  .dash-footer p {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .proof-main,
  .proof-sidebar {
    padding: 18px;
  }

  .proof-menu,
  .proof-summary-grid,
  .proof-form {
    grid-template-columns: 1fr;
  }

  .proof-card-head,
  .proof-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .proof-btn,
  .proof-avatar {
    width: 100%;
  }

  .client-wizard-head,
  .client-wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .client-wizard-steps,
  .client-wizard-form,
  .client-package-grid,
  .client-contract-options,
  .client-confirm-grid {
    grid-template-columns: 1fr;
  }

  .client-wizard-card,
  .client-wizard-summary {
    padding: 18px;
  }

  .client-wizard-summary p,
  .client-confirm-grid p {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .proof-sidebar-bottom,
  .dash-metrics,
  .dash-gallery-item,
  .dash-agenda-item,
  .dash-payment-row,
  .agenda-filters,
  .agenda-grid,
  .agenda-item {
    grid-template-columns: 1fr;
  }

  .dash-hero,
  .dash-panel-head,
  .dash-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dash-top-meta {
    align-items: flex-start;
    white-space: normal;
  }

  .dash-action {
    width: 100%;
    min-width: 0;
  }

  .dash-thumb {
    width: 100%;
    height: 156px;
  }

  .dash-status,
  .dash-tag,
  .agenda-badge,
  .dash-payment-actions {
    justify-self: start;
  }

  .dash-payment-actions {
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .agenda-actions {
    grid-column: auto;
  }

  .calendar-head {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-head div {
    justify-content: flex-start;
  }

  .calendar-day {
    min-height: 40px;
    padding: 0;
  }

  .proof-table-wrap {
    overflow-x: hidden;
  }

  .proof-table,
  .proof-table thead,
  .proof-table tbody,
  .proof-table tr,
  .proof-table th,
  .proof-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .proof-table thead {
    display: none;
  }

  .proof-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(217, 170, 106, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
  }

  .proof-table td {
    max-width: 100%;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .proof-table td:last-child {
    border-bottom: 0;
  }

  .proof-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-row-actions button,
  .agenda-actions button {
    width: 100%;
    max-width: none;
  }
}

/* SubWorld Select - client, gallery and contract flow */
.client-body,
.gallery-client-body,
.contract-body {
  min-height: 100vh;
  margin: 0;
  color: #fff8ef;
  background:
    radial-gradient(circle at 78% 8%, rgba(217, 170, 106, 0.16), transparent 32%),
    linear-gradient(135deg, #090908 0%, #11100e 48%, #090908 100%);
}

.client-shell,
.gallery-client-main,
.contract-stage {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.client-topbar,
.gallery-client-topbar,
.contract-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
}

.client-topbar .brand-logo,
.gallery-client-topbar .brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 52px;
  object-fit: contain;
}

.client-topbar > div {
  display: grid;
  gap: 4px;
  margin-left: auto;
  text-align: right;
  color: rgba(255, 248, 239, 0.78);
}

.client-topbar span {
  font-size: 13px;
  color: #d9aa6a;
}

.client-main {
  padding: 28px 0 70px;
}

.client-hero,
.gallery-client-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(14, 13, 12, 0.84);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
}

.client-hero::after,
.gallery-client-hero::after {
  content: "";
  position: absolute;
  inset: auto -80px -110px auto;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

.client-hero h1,
.gallery-client-hero h1 {
  max-width: 720px;
  margin: 8px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.96;
}

.client-hero p,
.gallery-client-hero p,
.gallery-instructions {
  max-width: 660px;
  color: rgba(255, 248, 239, 0.72);
}

.client-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.client-summary article,
.client-gallery-card,
.selection-photo-card,
.proof-photo-admin-grid article {
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 12px;
  background: rgba(18, 17, 15, 0.82);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.client-summary article {
  min-height: 128px;
  padding: 18px;
}

.client-summary strong {
  display: block;
  margin-bottom: 12px;
  color: #e1ad6a;
  font-size: 24px;
}

.client-summary h3,
.client-summary p {
  margin: 0;
}

.client-summary h3 {
  font-size: 14px;
  color: #fff8ef;
}

.client-summary p {
  margin-top: 7px;
  font-size: 13px;
  color: rgba(255, 248, 239, 0.62);
}

.client-gallery-list {
  display: grid;
  gap: 16px;
}

.client-gallery-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
  min-height: 230px;
}

.client-gallery-cover,
.selection-photo-thumb,
.proof-photo-admin-grid article > div {
  background:
    radial-gradient(circle at 70% 20%, rgba(217, 170, 106, 0.22), transparent 30%),
    linear-gradient(135deg, var(--demo, #3b2b25), #090908 78%);
}

.client-gallery-cover img,
.selection-photo-thumb img,
.proof-photo-admin-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.client-gallery-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.client-gallery-info span,
.eyebrow {
  color: #d9aa6a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.client-gallery-info h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.client-gallery-info p {
  margin: 0;
  color: rgba(255, 248, 239, 0.68);
}

.client-gallery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.client-gallery-meta b,
.proof-badge,
.selection-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 999px;
  color: rgba(255, 248, 239, 0.78);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 700;
}

.client-gallery-actions,
.gallery-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gallery-client-body {
  padding-bottom: 110px;
}

.gallery-client-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: none;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 170, 106, 0.12);
  background: rgba(9, 9, 8, 0.9);
  backdrop-filter: blur(16px);
}

.gallery-client-main {
  display: grid;
  gap: 18px;
  padding: 28px 0;
}

.gallery-client-hero {
  min-height: 230px;
  background:
    linear-gradient(90deg, rgba(9, 9, 8, 0.9) 0%, rgba(9, 9, 8, 0.78) 42%, rgba(9, 9, 8, 0.2) 100%),
    var(--gallery-cover),
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(14, 13, 12, 0.84);
  background-position: center;
  background-size: cover;
}

.gallery-instructions {
  padding: 16px 18px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 12px;
  background: rgba(217, 170, 106, 0.055);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(217, 170, 106, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.gallery-filters button,
.selection-photo-actions button,
.proof-photo-admin-grid button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 8px;
  color: rgba(255, 248, 239, 0.78);
  background: rgba(12, 11, 10, 0.9);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.gallery-filters button.active,
.selection-photo-card.selected .selection-photo-actions button:first-child {
  color: #17120d;
  background: linear-gradient(135deg, #f1c287, #c9853e);
}

.selection-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.selection-photo-card {
  overflow: hidden;
  transition: border-color 160ms ease, transform 160ms ease;
}

.selection-photo-card.selected {
  border-color: rgba(217, 170, 106, 0.55);
}

.selection-photo-card:hover {
  transform: translateY(-2px);
}

.selection-photo-thumb {
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}

.selection-photo-info {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.selection-badges,
.selection-photo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selection-summary-bar {
  position: fixed;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(980px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px;
  border: 1px solid rgba(217, 170, 106, 0.22);
  border-radius: 16px;
  color: rgba(255, 248, 239, 0.8);
  background: rgba(14, 13, 12, 0.94);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.selection-summary-bar strong {
  color: #e1ad6a;
}

.selection-finish {
  display: grid;
  gap: 8px;
}

.proof-photo-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.proof-photo-admin-grid article {
  overflow: hidden;
}

.proof-photo-admin-grid article > div {
  aspect-ratio: 4 / 3;
}

.proof-photo-admin-grid strong {
  display: block;
  padding: 12px 12px 4px;
  color: #fff8ef;
}

.proof-photo-admin-grid button {
  width: calc(100% - 24px);
  margin: 8px 12px 12px;
}

.proof-photo-admin-grid article.is-cover {
  border-color: rgba(217, 170, 106, 0.62);
  box-shadow: 0 0 0 1px rgba(217, 170, 106, 0.24), 0 18px 58px rgba(0, 0, 0, 0.32);
}

.proof-cover-badge {
  display: inline-flex;
  margin: 8px 12px 0;
  padding: 5px 9px;
  border: 1px solid rgba(217, 170, 106, 0.28);
  border-radius: 999px;
  color: #17120d;
  background: linear-gradient(135deg, #f1c287, #c9853e);
  font-size: 11px;
  font-weight: 800;
}

.selection-lightbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  min-height: min(74vh, 720px);
  color: #fff8ef;
}

.selection-lightbox-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  padding: 22px;
  background:
    radial-gradient(circle at 70% 20%, rgba(217, 170, 106, 0.2), transparent 30%),
    linear-gradient(135deg, var(--demo, #3b2b25), #070706 80%);
}

.selection-lightbox-stage img {
  width: 100%;
  height: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
}

.selection-lightbox-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, 620px);
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 12px;
  color: rgba(255, 248, 239, 0.8);
  background: rgba(0, 0, 0, 0.28);
  font-weight: 800;
}

.selection-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 54px;
  border: 1px solid rgba(217, 170, 106, 0.28);
  border-radius: 12px;
  color: #f1d2a6;
  background: rgba(0, 0, 0, 0.48);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.selection-lightbox-nav.prev {
  left: 18px;
}

.selection-lightbox-nav.next {
  right: 18px;
}

.selection-lightbox-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 34px 24px 24px;
  border-left: 1px solid rgba(217, 170, 106, 0.16);
  background: rgba(18, 17, 15, 0.98);
}

.selection-lightbox-panel h2 {
  margin: 0;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.selection-lightbox-panel label {
  display: grid;
  gap: 8px;
  color: rgba(255, 248, 239, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.selection-lightbox-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.proof-form-actions.compact {
  grid-column: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.proof-warning {
  padding: 12px;
  border: 1px solid rgba(217, 170, 106, 0.16);
  border-radius: 10px;
  color: rgba(255, 248, 239, 0.72);
  background: rgba(217, 170, 106, 0.055);
}

.contract-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  justify-content: flex-end;
  background: rgba(9, 9, 8, 0.86);
  backdrop-filter: blur(16px);
}

.contract-stage {
  padding: 22px 0 70px;
}

.contract-paper {
  width: min(900px, 100%);
  min-height: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 72px);
  color: #17120d;
  background: #fffaf2;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.45);
}

.contract-paper-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(23, 18, 13, 0.14);
}

.contract-paper-head img {
  width: auto;
  max-width: 220px;
  max-height: 48px;
  object-fit: contain;
}

.contract-paper-head div {
  display: grid;
  gap: 6px;
  text-align: right;
}

.contract-paper h1,
.contract-paper h2 {
  font-family: "Playfair Display", serif;
  line-height: 1;
}

.contract-paper h1 {
  max-width: 680px;
  margin: 0 0 18px;
  font-size: 42px;
}

.contract-paper h2 {
  margin: 34px 0 14px;
  font-size: 24px;
}

.contract-paper p {
  color: rgba(23, 18, 13, 0.78);
  line-height: 1.72;
}

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

.contract-data-grid p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(23, 18, 13, 0.1);
  border-radius: 8px;
  background: rgba(217, 170, 106, 0.08);
}

.contract-data-grid strong {
  color: #8a5723;
  font-size: 12px;
  text-transform: uppercase;
}

.contract-signatures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  margin-top: 70px;
}

.contract-signatures div {
  display: grid;
  gap: 12px;
  text-align: center;
}

.contract-signatures span {
  display: block;
  height: 1px;
  background: rgba(23, 18, 13, 0.48);
}

@media (max-width: 980px) {
  .client-summary,
  .selection-photo-grid,
  .proof-photo-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .selection-lightbox {
    grid-template-columns: 1fr;
  }

  .selection-lightbox-stage {
    min-height: 360px;
  }

  .selection-lightbox-panel {
    border-top: 1px solid rgba(217, 170, 106, 0.16);
    border-left: 0;
  }

  .client-gallery-card {
    grid-template-columns: 1fr;
  }

  .client-gallery-cover {
    min-height: 220px;
  }

  .selection-summary-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .client-shell,
  .gallery-client-main,
  .contract-stage,
  .client-topbar,
  .contract-toolbar {
    width: min(100% - 28px, 1180px);
  }

  .client-topbar,
  .gallery-client-topbar,
  .contract-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .client-topbar > div {
    margin-left: 0;
    text-align: left;
  }

  .client-summary,
  .selection-photo-grid,
  .proof-photo-admin-grid,
  .contract-data-grid,
  .contract-signatures {
    grid-template-columns: 1fr;
  }

  .selection-summary-bar {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .selection-lightbox-stage {
    min-height: 280px;
    padding: 12px;
  }

  .selection-lightbox-nav {
    width: 38px;
    height: 46px;
  }

  .selection-lightbox-nav.prev {
    left: 10px;
  }

  .selection-lightbox-nav.next {
    right: 10px;
  }

  .selection-lightbox-panel {
    padding: 24px 16px 18px;
  }

  .contract-paper {
    min-height: 0;
    padding: 28px 20px;
  }

  .contract-paper-head {
    flex-direction: column;
  }

  .contract-paper-head div {
    text-align: left;
  }

  .contract-paper h1 {
    font-size: 32px;
  }
}

@media print {
  .contract-body {
    background: #fff;
  }

  .contract-toolbar,
  .proof-toast {
    display: none !important;
  }

  .contract-stage {
    width: 100%;
    padding: 0;
  }

  .contract-paper {
    width: auto;
    min-height: auto;
    padding: 0;
    box-shadow: none;
  }
}

/* PDF contract formalization */
.print-contract-body {
  min-height: 100vh;
  margin: 0;
  color: #fff8ef;
  background:
    radial-gradient(circle at 82% 10%, rgba(217, 170, 106, 0.15), transparent 30%),
    linear-gradient(135deg, #090908 0%, #12100e 58%, #090908 100%);
}

.print-contract-topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0;
}

.print-contract-topbar .brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 52px;
  object-fit: contain;
}

.print-contract-topbar h1 {
  margin: 4px 0 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1;
}

.print-contract-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.print-contract-main {
  display: grid;
  gap: 18px;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0 60px;
}

.print-contract-card,
.print-contract-viewer {
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(14, 13, 12, 0.86);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.3);
}

.print-contract-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.35fr) 1fr;
  gap: 18px;
  padding: 22px;
}

.print-contract-card h2 {
  margin: 6px 0 0;
  font-family: "Playfair Display", serif;
  font-size: 34px;
}

.print-contract-data {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.print-contract-data p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.print-contract-data strong {
  color: #d9aa6a;
  font-size: 12px;
  text-transform: uppercase;
}

.print-contract-data span {
  color: rgba(255, 248, 239, 0.78);
  overflow-wrap: anywhere;
}

.print-contract-viewer {
  overflow: hidden;
  min-height: 760px;
}

.print-contract-viewer iframe {
  display: block;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 720px;
  border: 0;
  background: #fff;
}

@media (max-width: 900px) {
  .print-contract-topbar,
  .print-contract-card {
    grid-template-columns: 1fr;
  }

  .print-contract-actions {
    justify-content: flex-start;
  }

  .print-contract-data {
    grid-template-columns: 1fr;
  }
}

@media print {
  .print-contract-topbar,
  .print-contract-card,
  .proof-toast {
    display: none !important;
  }

  .print-contract-body {
    background: #fff !important;
  }

  .print-contract-main {
    width: 100% !important;
    padding: 0 !important;
  }

  .print-contract-viewer {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .print-contract-viewer iframe {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

/* SubWorld Select - Parte 4 flows */
.flow-body {
  min-height: 100vh;
  margin: 0;
  color: #fff8ef;
  background:
    radial-gradient(circle at 80% 12%, rgba(217, 170, 106, 0.14), transparent 30%),
    linear-gradient(135deg, #090908 0%, #12100e 54%, #090908 100%);
}

.flow-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(217, 170, 106, 0.12);
  background: rgba(9, 9, 8, 0.9);
  backdrop-filter: blur(16px);
}

.flow-topbar .brand-logo {
  display: block;
  width: auto;
  max-width: 220px;
  max-height: 52px;
  object-fit: contain;
}

.flow-main {
  display: grid;
  gap: 18px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 72px;
}

.flow-hero,
.flow-card {
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(14, 13, 12, 0.84);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.3);
}

.flow-hero {
  padding: clamp(28px, 5vw, 54px);
}

.flow-hero h1 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 0.98;
}

.flow-hero p,
.flow-card p {
  color: rgba(255, 248, 239, 0.72);
}

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

.flow-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 24px;
}

.flow-card-wide {
  grid-column: 1 / -1;
}

.flow-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  line-height: 1;
}

.flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flow-row strong {
  color: #d9aa6a;
}

.flow-row span {
  text-align: right;
}

.flow-form {
  display: grid;
  gap: 14px;
}

.flow-form label,
.proof-proof-view label {
  display: grid;
  gap: 8px;
}

.flow-form input,
.flow-form textarea,
.proof-proof-view textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 10px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
}

.album-preview {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 18px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.24);
}

.album-preview img,
.proof-file-preview {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 10px;
}

.delivery-file-list {
  display: grid;
  gap: 10px;
}

.delivery-file-list article,
.proof-comment-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.client-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.client-timeline span {
  position: relative;
  min-height: 42px;
  padding: 10px;
  border: 1px solid rgba(217, 170, 106, 0.14);
  border-radius: 10px;
  color: rgba(255, 248, 239, 0.62);
  background: rgba(255, 255, 255, 0.035);
  font-size: 11px;
  font-weight: 800;
}

.client-timeline span.done {
  color: #17120d;
  background: linear-gradient(135deg, #f1c287, #c9853e);
}

.client-next-step {
  padding: 14px;
  border: 1px solid rgba(217, 170, 106, 0.16);
  border-radius: 12px;
  background: rgba(217, 170, 106, 0.055);
}

.client-next-step strong {
  color: #d9aa6a;
}

.client-next-step p {
  margin-top: 6px;
}

.gallery-tools,
.report-filters,
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(217, 170, 106, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.gallery-tools label,
.report-filters label {
  display: grid;
  gap: 6px;
  min-width: min(220px, 100%);
  color: rgba(255, 248, 239, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.gallery-tools input,
.gallery-tools select,
.report-filters input,
.report-filters select {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 9px;
  color: #fff8ef;
  background: rgba(12, 11, 10, 0.9);
  font: inherit;
}

.report-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 9px;
  color: rgba(255, 248, 239, 0.78);
  background: rgba(12, 11, 10, 0.9);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.report-tabs button.active {
  color: #17120d;
  background: linear-gradient(135deg, #f1c287, #c9853e);
}

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

.help-message {
  width: 100%;
  min-height: 180px;
  padding: 14px;
  border: 1px solid rgba(217, 170, 106, 0.18);
  border-radius: 12px;
  color: #fff8ef;
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
}

.proof-activity-list {
  display: grid;
  gap: 10px;
}

.proof-activity-list article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(217, 170, 106, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.proof-activity-list strong {
  color: #fff8ef;
}

.proof-activity-list p,
.proof-activity-list span {
  margin: 0;
  color: rgba(255, 248, 239, 0.62);
}

.proof-proof-view {
  display: grid;
  gap: 14px;
}

.proof-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.proof-quick-card h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.proof-quick-card p {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 248, 239, 0.72);
}

.proof-badge.payment-proof_sent,
.proof-badge.album-waiting_review,
.proof-badge.delivery-released {
  border-color: rgba(101, 196, 255, 0.35);
  color: #bfe8ff;
}

.proof-badge.payment-approved,
.proof-badge.payment-paid,
.proof-badge.album-approved,
.proof-badge.album-finalized,
.proof-badge.delivery-delivered,
.proof-badge.delivery-downloaded {
  border-color: rgba(119, 221, 148, 0.35);
  color: #c8f5d5;
}

.proof-badge.payment-rejected,
.proof-badge.album-changes_requested {
  border-color: rgba(255, 143, 125, 0.42);
  color: #ffc7bc;
}

@media (max-width: 900px) {
  .flow-grid,
  .client-timeline,
  .proof-quick-grid,
  .help-grid {
    grid-template-columns: 1fr;
  }

  .flow-topbar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  .report-no-print,
  .flow-topbar,
  .proof-sidebar,
  .proof-topbar,
  .proof-form-actions,
  .proof-modal-close {
    display: none !important;
  }

  .report-body,
  .flow-body,
  .proof-admin-body {
    background: #fff !important;
    color: #111 !important;
  }

  .report-print-área,
  .flow-main,
  .proof-main {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .flow-card,
  .proof-card,
  .proof-table-card {
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    color: #111 !important;
  }

  .proof-table th,
  .proof-table td {
    color: #111 !important;
    border-color: #ddd !important;
  }
}

@media (max-width: 640px) {
  .flow-main {
    width: min(100% - 28px, 1180px);
  }

  .flow-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .flow-row span {
    text-align: left;
  }
}
