/* ============================================================
   Mary Kay – Lu Rocha | styles.css v9.0
   Banner GRANDE · Mobile-first · Cross-browser
   Rosa claro: #fce4ec | Escuro: #c2185b | Vinho: #880e4f
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --lpink: #fce4ec;
  --mpink: #f48fb1;
  --dpink: #c2185b;
  --vpink: #880e4f;
  --hpink: #ad1457;
  --insta: #e1306c;
  --fb:    #1877f2;
  --white: #fff;
  --gray:  #f5f5f5;
  --td:    #333;
  --tm:    #666;
  --sh:    0 2px 12px rgba(194,24,91,.18);
  --shl:   0 8px 32px rgba(194,24,91,.28);
}

html, body {
  height: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--lpink);
  color: var(--td);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
#app-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--vpink), var(--dpink));
  padding: 10px 16px;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 14px rgba(0,0,0,.30);
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.logo-circle-sm {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.65);
  color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

#logo-emp-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.75);
  flex-shrink: 0;
}

.hdr-info { display: flex; flex-direction: column; color: #fff; min-width: 0; }
.hdr-info span  { font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-info small { font-size: 11px; opacity: .88; }

.btn-admin {
  flex-shrink: 0;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.60);
  color: #fff;
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 13px; font-weight: 600;
  cursor: pointer;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
  transition: background .2s;
}
.btn-admin:hover, .btn-admin:active { background: rgba(255,255,255,.38); }

/* ══════════════════════════════════════════
   BANNER — GRANDE
══════════════════════════════════════════ */
#banner {
  flex: 1 0 auto;
  min-height: 62vh;
  position: relative;
  background: linear-gradient(160deg, var(--vpink) 0%, var(--dpink) 55%, var(--mpink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .55;
}

.banner-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px 70px;
  gap: 28px; width: 100%;
}

.banner-logo-circle {
  width: 170px; height: 170px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  border: 5px solid rgba(255,255,255,.88);
  color: #fff; font-size: 60px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  flex-shrink: 0;
}

#ban-logo-img {
  width: 170px; height: 170px;
  border-radius: 50%; object-fit: cover;
  border: 5px solid rgba(255,255,255,.88);
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
  flex-shrink: 0;
}

.banner-text { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.banner-text h1 {
  color: #fff; font-size: 38px; font-weight: 800;
  text-shadow: 1px 2px 18px rgba(0,0,0,.70); line-height: 1.25;
}
.banner-text p {
  color: rgba(255,255,255,.94); font-size: 18px;
  text-shadow: 1px 1px 8px rgba(0,0,0,.52);
}

/* ══════════════════════════════════════════
   CARDS DE NAVEGAÇÃO
══════════════════════════════════════════ */
#main-cards {
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(194,24,91,.16);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.card-btn {
  background: #fff;
  border: none;
  border-top: 1px solid var(--lpink);
  border-right: 1px solid var(--lpink);
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: background .2s;
}
.card-btn:nth-child(2n) { border-right: none; }
.card-btn:nth-child(1),
.card-btn:nth-child(2)  { border-top: 2px solid var(--mpink); }
.card-btn:hover, .card-btn:active { background: var(--lpink); }

/* Instagram e Facebook — linha própria */
.card-btn-instagram, .card-btn-facebook {
  border-top: 2px solid var(--mpink) !important;
}
.card-btn-instagram .card-ico { color: var(--insta); font-size: 32px; }
.card-btn-instagram .card-lbl { color: var(--insta); }
.card-btn-instagram:hover, .card-btn-instagram:active { background: #fff0f5; }

.card-btn-facebook .card-ico { color: var(--fb); font-size: 32px; }
.card-btn-facebook .card-lbl { color: var(--fb); }
.card-btn-facebook:hover, .card-btn-facebook:active { background: #f0f4ff; }

.card-ico  { font-size: 34px; line-height: 1; }
.card-lbl  { font-size: 14px; font-weight: 700; color: var(--dpink); line-height: 1.2; }
.card-sub  { font-size: 11px; color: var(--tm); }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#app-footer {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--vpink), var(--dpink));
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  min-height: 60px;
  gap: 12px;
}

.ftr-left { display: flex; align-items: center; gap: 8px; font-size: 11px; opacity: .92; min-width: 0; flex: 1; }
#ftr-vsual-txt { display: flex; flex-direction: column; min-width: 0; }
#ftr-vsual-txt span  { font-size: 12px; font-weight: 600; }
#ftr-vsual-txt small { font-size: 10px; opacity: .82; }
#logo-vsual-img { height: 30px; width: auto; object-fit: contain; flex-shrink: 0; }

.btn-seja-ftr {
  flex-shrink: 0;
  background: #fff; color: var(--vpink);
  border: none; padding: 10px 20px;
  border-radius: 26px; font-size: 14px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.btn-seja-ftr:hover, .btn-seja-ftr:active { background: var(--lpink); transform: scale(1.03); }

/* ══════════════════════════════════════════
   OVERLAY + MODAIS
══════════════════════════════════════════ */
#modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.58);
  z-index: 300; cursor: pointer;
}

.modal {
  position: fixed; inset: 0; z-index: 301;
  display: flex; align-items: center; justify-content: center;
  padding: 12px; pointer-events: none;
}

.modal-box {
  background: #fff; border-radius: 16px;
  width: 100%; max-width: 460px; max-height: 92vh;
  overflow-y: auto; pointer-events: all;
  box-shadow: 0 12px 56px rgba(0,0,0,.42);
  -webkit-overflow-scrolling: touch;
}
.modal-box-lg { max-width: 700px; }

.modal-hdr {
  background: linear-gradient(135deg, var(--vpink), var(--dpink));
  color: #fff; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 16px 16px 0 0;
  font-weight: 700; font-size: 15px;
  position: sticky; top: 0; z-index: 5; gap: 8px;
}

.modal-body  { padding: 18px; }
.modal-intro { color: var(--tm); font-size: 14px; margin-bottom: 16px; text-align: center; }

.btn-x {
  background: rgba(255,255,255,.24); border: none; color: #fff;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; flex-shrink: 0;
}
.btn-x:hover { background: rgba(255,255,255,.44); }
.btn-back    { margin-right: 4px; }

/* ══════════════════════════════════════════
   ADMIN GRID
══════════════════════════════════════════ */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.adm-btn {
  background: var(--lpink); border: 1.5px solid var(--mpink);
  border-radius: 12px; padding: 14px 6px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 5px;
  font-size: 20px; font-weight: 600; color: var(--vpink);
  transition: background .2s, color .2s;
}
.adm-btn span { font-size: 10px; text-align: center; line-height: 1.3; font-weight: 600; }
.adm-btn:hover, .adm-btn:active { background: var(--mpink); color: #fff; }

/* ══════════════════════════════════════════
   FORMULÁRIOS
══════════════════════════════════════════ */
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.fg        { display: flex; flex-direction: column; gap: 3px; }
.fg label  { font-size: 12px; font-weight: 600; color: var(--vpink); }

.inp {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid var(--mpink); border-radius: 8px;
  font-size: 14px; outline: none; background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
}
.inp:focus { border-color: var(--dpink); box-shadow: 0 0 0 3px rgba(194,24,91,.12); }
textarea.inp { resize: vertical; min-height: 80px; }

.w100   { width: 100%; }
.mxw300 { max-width: 300px; }

/* ══════════════════════════════════════════
   BOTÕES
══════════════════════════════════════════ */
.btn-pk {
  background: var(--dpink); color: #fff; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.btn-pk:hover, .btn-pk:active { background: var(--hpink); }

.btn-pk-solid {
  background: var(--vpink); color: #fff !important; border: none;
  padding: 10px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .2s;
}
.btn-pk-solid:hover, .btn-pk-solid:active { background: var(--dpink); }

.btn-out {
  background: transparent; color: var(--dpink);
  border: 1.5px solid var(--dpink);
  padding: 8px 18px; border-radius: 8px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s;
}
.btn-out:hover { background: var(--lpink); }

.btn-danger {
  background: #e53935; color: #fff; border: none;
  padding: 6px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.btn-danger:hover { background: #c62828; }

.btn-sm  { padding: 6px 12px !important; font-size: 12px !important; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.cons-actions { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.cons-actions .btn-pk-solid { flex: 1; min-width: 130px; }

/* ══════════════════════════════════════════
   TABELA
══════════════════════════════════════════ */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 8px; border: 1px solid var(--lpink); }
table    { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 280px; }
th       { background: var(--vpink); color: #fff; padding: 8px 10px; text-align: left; font-size: 12px; font-weight: 600; }
td       { padding: 7px 10px; border-bottom: 1px solid var(--lpink); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:nth-child(even) { background: #fef8fb; }
tr:hover { background: var(--lpink); }

/* ══════════════════════════════════════════
   UTILITÁRIOS
══════════════════════════════════════════ */
.sec-title { font-size: 15px; font-weight: 700; color: var(--vpink); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 2px solid var(--lpink); }
.tag       { background: var(--lpink); color: var(--vpink); font-size: 11px; padding: 2px 8px; border-radius: 10px; font-weight: 600; display: inline-block; }
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 4px; }
.cont-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--sh); transition: box-shadow .2s, transform .15s; border: 1px solid var(--lpink); }
.cont-card:hover { box-shadow: var(--shl); transform: translateY(-2px); }
.cont-card-img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--lpink); }
.cont-card-ph  { width: 100%; height: 150px; background: var(--lpink); display: flex; align-items: center; justify-content: center; font-size: 42px; }
.cont-card-body  { padding: 12px; }
.cont-card-title { font-size: 14px; font-weight: 700; color: var(--vpink); margin-bottom: 5px; }
.cont-card-desc  { font-size: 12px; color: var(--tm); line-height: 1.5; }
.img-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.img-prev { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--mpink); }

.upload-lbl {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--lpink); color: var(--vpink);
  border: 1.5px dashed var(--mpink); border-radius: 8px;
  padding: 7px 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .2s;
  position: relative; overflow: hidden;
}
.upload-lbl:hover { background: var(--mpink); color: #fff; }
.upload-lbl input[type=file] { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 12px 26px; border-radius: 26px;
  font-size: 14px; font-weight: 600; color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.28);
  min-width: 200px; text-align: center; pointer-events: none; white-space: nowrap;
}
.toast.success { background: #2e7d32; }
.toast.error   { background: #c62828; }
.toast.info    { background: var(--dpink); }

.loading { text-align: center; padding: 32px; color: var(--tm); font-size: 14px; }
.loading::before { content: '⏳ '; }
.empty   { text-align: center; padding: 28px; color: var(--tm); font-size: 14px; }

.km-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.km-img  { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 2px solid var(--lpink); }

.price { background: var(--dpink); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 4px; }
.bk-sec { border: 1px solid var(--lpink); border-radius: 10px; padding: 16px; margin-bottom: 14px; background: #fff8fb; }

/* ══════════════════════════════════════════
   RESPONSIVIDADE – TABLET ≤768px
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .modal-box-lg { max-width: 100%; }
  .banner-text h1 { font-size: 30px; }
  .content-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  #banner { min-height: 55vh; }
  .banner-inner { padding: 50px 24px 58px; }
}

/* ══════════════════════════════════════════
   RESPONSIVIDADE – MOBILE ≤480px
══════════════════════════════════════════ */
@media (max-width: 480px) {
  #app-header { padding: 8px 12px; height: 54px; }
  .hdr-info span { font-size: 13px; }
  .btn-admin-txt { display: none; }
  .btn-admin { padding: 7px 10px; border-radius: 50%; width: 38px; height: 38px; justify-content: center; }

  #banner { min-height: 52vh; }
  .banner-inner { padding: 36px 16px 44px; gap: 20px; }
  .banner-logo-circle, #ban-logo-img { width: 130px; height: 130px; font-size: 46px; }
  .banner-text h1 { font-size: 24px; }
  .banner-text p  { font-size: 15px; }

  .card-btn  { padding: 16px 8px; }
  .card-ico  { font-size: 30px; }
  .card-lbl  { font-size: 12px; }
  .card-sub  { font-size: 10px; }

  #app-footer { padding: 11px 14px; min-height: 54px; }
  .btn-seja-ftr { font-size: 13px; padding: 9px 16px; }

  .admin-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .adm-btn    { padding: 10px 4px; font-size: 18px; }
  .adm-btn span { font-size: 9px; }

  .form-row { grid-template-columns: 1fr; }
  .modal    { padding: 6px; }
  .modal-box { border-radius: 14px; max-height: 95vh; }
  .modal-body { padding: 14px; }
  .cons-actions { flex-direction: column; }
  .cons-actions .btn-pk-solid { width: 100%; }
  .km-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  table { font-size: 12px; }
  th, td { padding: 6px 7px; }
}

/* ══════════════════════════════════════════
   MOBILE PEQUENO ≤360px
══════════════════════════════════════════ */
@media (max-width: 360px) {
  .hdr-info { display: none; }
  #banner { min-height: 48vh; }
  .banner-inner { padding: 28px 12px 36px; gap: 16px; }
  .banner-logo-circle, #ban-logo-img { width: 108px; height: 108px; font-size: 38px; }
  .banner-text h1 { font-size: 20px; }
  .banner-text p  { font-size: 13px; }
  .adm-btn span { display: none; }
}

/* ══════════════════════════════════════════
   LANDSCAPE MOBILE
══════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  #banner { min-height: 38vh; }
  .banner-inner { padding: 16px 16px 20px; gap: 12px; }
  .banner-logo-circle, #ban-logo-img { width: 75px; height: 75px; font-size: 26px; }
  .banner-text h1 { font-size: 17px; }
  .banner-text p  { font-size: 12px; margin-top: 3px; }
  .modal { align-items: flex-start; padding-top: 4px; }
  .modal-box { max-height: 98vh; }
}
