/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Open Sans', sans-serif; color: #1a1a1a; background: #f4f3ef; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== VARIÁVEIS — PALETA LUXO ===== */
:root {
  --black:       #0a0a0a;
  --navy:        #0d1f3c;
  --navy-mid:    #162d54;
  --navy-light:  #1e3a6e;
  --gold:        #c9993a;
  --gold-light:  #e8c97a;
  --gold-pale:   #f5edd8;
  --white:       #ffffff;
  --off-white:   #f4f3ef;
  --gray-light:  #e8e6e0;
  --gray:        #888880;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.13);
  --shadow-hover:0 10px 40px rgba(0,0,0,0.22);
}

/* ===== HEADER ===== */
.site-header {
  background: var(--black);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(201,153,58,0.3);
  box-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 28px;
}
.header-brand { display: flex; align-items: center; gap: 16px; }
.header-photo {
  width: 60px; height: 60px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 2px solid var(--gold);
  display: block; margin: 0 auto;
  box-shadow: 0 0 0 4px rgba(201,153,58,0.15);
}
.site-title {
  font-family: 'Montserrat', sans-serif; font-size: 1.2rem;
  font-weight: 800; color: var(--white); letter-spacing: 0.5px;
}
.site-subtitle {
  font-size: 0.75rem; color: var(--gold-light); margin-top: 2px;
  letter-spacing: 1.5px; text-transform: uppercase;
}
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600;
  padding: 8px 16px; border-radius: 6px; transition: all 0.2s;
  letter-spacing: 0.5px; text-transform: uppercase; font-size: 0.78rem;
}
.nav-link:hover { color: var(--gold-light); background: rgba(201,153,58,0.1); }
.nav-admin { opacity: 0.5; font-size: 1rem; padding: 8px 12px; }
.nav-admin:hover { opacity: 1; }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 520px;
  background: url('assets/hero-bg.jpg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(10,10,10,0.88) 0%, rgba(13,31,60,0.80) 60%, rgba(10,10,10,0.75) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 60px 24px; }
.hero-title {
  font-family: 'Montserrat', sans-serif; font-size: 2.6rem;
  font-weight: 800; color: var(--white); margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}
.hero-title span { color: var(--gold-light); }
.hero-desc {
  font-size: 1.05rem; color: rgba(255,255,255,0.78);
  margin-bottom: 36px; letter-spacing: 0.5px;
}
.btn-hero {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black); font-family: 'Montserrat', sans-serif; font-weight: 800;
  padding: 16px 42px; border-radius: 4px; font-size: 0.9rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201,153,58,0.5);
}
.btn-hero:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(201,153,58,0.6); }

/* ===== SECTION LAUNCHES ===== */
.section-launches { padding: 70px 0; background: var(--off-white); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section-title {
  font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: var(--navy); text-align: center; margin-bottom: 10px; letter-spacing: 0.5px;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 12px auto 0; border-radius: 2px;
}
.section-sub { text-align: center; color: var(--gray); margin-bottom: 40px; font-size: 0.95rem; margin-top: 10px; }

/* ===== LAUNCHES GRID ===== */
.launches-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
@media (max-width: 1024px) { .launches-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .launches-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px)  { .launches-grid { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ===== LAUNCH CARD ===== */
.launch-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  cursor: pointer; transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
  border: 1px solid rgba(201,153,58,0.08);
}
.launch-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: rgba(201,153,58,0.3);
}
.launch-card-img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  display: block; background: var(--gray-light);
}
.launch-card-img-placeholder {
  width: 100%; aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #1a2a4a, #0d1f3c);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: var(--gold);
}
.launch-card-body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.launch-card-name {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 0.88rem; color: var(--navy); margin-bottom: 5px; line-height: 1.3;
}
.launch-card-loc { font-size: 0.76rem; color: var(--gray); margin-bottom: 8px; }
.launch-card-price {
  font-size: 0.82rem; font-weight: 700; color: var(--gold);
  margin-top: auto; letter-spacing: 0.3px;
}
.launch-card-empty {
  border: 2px dashed rgba(201,153,58,0.25); background: rgba(201,153,58,0.03);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 180px; border-radius: var(--radius); color: #ccc;
  font-size: 0.82rem; gap: 8px;
}
.launch-card-empty i { font-size: 1.8rem; color: rgba(201,153,58,0.3); }

/* ===== MODAL ===== */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.78); align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white); border-radius: 14px; width: 100%;
  max-width: 720px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5); position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  background: rgba(0,0,0,0.6); border: none; color: #fff;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: #c0392b; }
.modal-header-img img {
  width: 100%; height: 280px; object-fit: cover; border-radius: 14px 14px 0 0;
}
.modal-body { padding: 26px 30px; }
.modal-title {
  font-family: 'Montserrat', sans-serif; font-size: 1.5rem;
  font-weight: 800; color: var(--navy); margin-bottom: 6px; letter-spacing: 0.3px;
}
.modal-location { color: var(--gray); font-size: 0.9rem; margin-bottom: 4px; }
.modal-price {
  font-size: 1.2rem; font-weight: 700; color: var(--gold);
  margin-bottom: 12px; letter-spacing: 0.3px;
}
.modal-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag {
  background: var(--gold-pale); color: var(--navy);
  border-radius: 4px; padding: 4px 12px; font-size: 0.76rem; font-weight: 700;
  letter-spacing: 0.5px; border: 1px solid rgba(201,153,58,0.25);
}
.modal-desc { color: #444; line-height: 1.75; margin-bottom: 18px; font-size: 0.95rem; }
.modal-section { margin-top: 22px; border-top: 1px solid var(--gray-light); padding-top: 18px; }
.modal-section h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--navy); font-size: 0.95rem; margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px; text-transform: uppercase;
  letter-spacing: 0.8px;
}
.modal-section h3 i { color: var(--gold); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.price-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.price-table th {
  background: var(--navy); color: var(--gold-light);
  padding: 11px 16px; text-align: left; font-size: 0.8rem;
  letter-spacing: 1px; text-transform: uppercase;
}
.price-table td { padding: 10px 16px; border-bottom: 1px solid var(--gray-light); }
.price-table tr:nth-child(even) td { background: var(--gold-pale); }
.pdf-link, .ext-link {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-pale); color: var(--navy);
  border-radius: 6px; padding: 10px 18px; margin: 6px 6px 0 0;
  font-weight: 700; font-size: 0.85rem; transition: background 0.2s;
  border: 1px solid rgba(201,153,58,0.3);
  letter-spacing: 0.3px;
}
.pdf-link i, .ext-link i { color: var(--gold); }
.pdf-link:hover, .ext-link:hover { background: #ecdcb0; }
.modal-footer {
  padding: 18px 30px 26px; display: flex; justify-content: flex-end; gap: 12px;
  border-top: 1px solid var(--gray-light);
}
.btn-contact {
  background: #25d366; color: #fff; font-weight: 700;
  padding: 12px 28px; border-radius: 6px; font-family: 'Montserrat', sans-serif;
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem;
  transition: background 0.2s; letter-spacing: 0.3px;
}
.btn-contact:hover { background: #1da854; }

/* ===== CONTACT ===== */
.section-contact { background: var(--navy); padding: 70px 0; }
.contact-inner { display: flex; align-items: center; gap: 56px; }
@media (max-width: 768px) { .contact-inner { flex-direction: column; gap: 32px; text-align: center; } }
.contact-photo-wrap { display: flex; justify-content: center; align-items: center; }
.contact-photo {
  width: 180px; height: 180px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  border: 3px solid var(--gold);
  display: block; margin: 0 auto;
  box-shadow: 0 0 0 8px rgba(201,153,58,0.12), 0 12px 40px rgba(0,0,0,0.4);
}
.contact-info h2 {
  font-family: 'Montserrat', sans-serif; font-size: 1.7rem;
  font-weight: 800; color: var(--white); margin-bottom: 12px; letter-spacing: 0.5px;
}
.contact-info p { color: rgba(255,255,255,0.68); line-height: 1.75; margin-bottom: 26px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 768px) { .contact-links { justify-content: center; } }
.contact-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 6px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; font-size: 0.88rem;
  transition: opacity 0.2s, transform 0.2s; letter-spacing: 0.3px;
}
.contact-btn:hover { opacity: 0.85; transform: translateY(-2px); }
.contact-btn.whatsapp { background: #25d366; color: #fff; }
.contact-btn.instagram { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#bc1888); color: #fff; }
.contact-btn.email {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--black);
  border-top: 1px solid rgba(201,153,58,0.2);
  color: rgba(255,255,255,0.35);
  text-align: center; padding: 20px; font-size: 0.82rem; letter-spacing: 0.5px;
}

/* ==================== ADMIN ==================== */
.admin-body { background: #f0f1f3; }
.login-overlay {
  position: fixed; inset: 0; background: var(--navy);
  display: flex; align-items: center; justify-content: center; z-index: 999;
}
.login-box {
  background: var(--white); border-radius: 16px; padding: 44px 40px;
  text-align: center; width: 100%; max-width: 360px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  border-top: 4px solid var(--gold);
}
.login-photo {
  width: 90px; height: 90px; border-radius: 50%;
  object-fit: cover; object-position: top;
  border: 3px solid var(--gold); margin: 0 auto 16px;
}
.login-box h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.login-box p { color: var(--gray); margin-bottom: 22px; font-size: 0.88rem; }
.login-box input {
  width: 100%; padding: 12px 14px; border: 2px solid #ddd;
  border-radius: 8px; font-size: 1rem; margin-bottom: 14px; outline: none;
  transition: border-color 0.2s;
}
.login-box input:focus { border-color: var(--gold); }

.admin-wrap { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: var(--navy); color: #fff;
  display: flex; flex-direction: column; padding: 24px 0;
  position: fixed; top: 0; left: 0; height: 100vh; z-index: 10;
  border-right: 1px solid rgba(201,153,58,0.2);
}
.admin-logo {
  display: flex; align-items: center; gap: 10px; padding: 0 20px 24px;
  border-bottom: 1px solid rgba(201,153,58,0.2); margin-bottom: 16px;
}
.admin-logo img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; }
.admin-logo span { font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.9rem; color: var(--gold-light); }
.admin-nav { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; flex: 1; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 8px; color: rgba(255,255,255,0.65);
  font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(201,153,58,0.15); color: var(--gold-light);
}
.admin-view-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 26px; color: rgba(255,255,255,0.45); font-size: 0.85rem;
  transition: color 0.2s;
}
.admin-view-link:hover { color: var(--gold-light); }
.btn-logout {
  margin: 12px 16px 0; background: rgba(192,57,43,0.18);
  border: none; color: #e07878; padding: 10px 14px;
  border-radius: 8px; cursor: pointer; font-size: 0.88rem; font-weight: 600;
  display: flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.btn-logout:hover { background: rgba(192,57,43,0.35); }

.admin-main { margin-left: 240px; flex: 1; padding: 36px 36px 60px; }
@media (max-width: 768px) {
  .admin-sidebar { width: 100%; height: auto; position: relative; flex-direction: row; flex-wrap: wrap; padding: 12px; }
  .admin-main { margin-left: 0; padding: 20px; }
  .admin-nav { flex-direction: row; }
  .admin-logo { display: none; }
}

.admin-section-title {
  font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800;
  color: var(--navy); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.admin-card {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); margin-bottom: 20px;
  border-left: 4px solid var(--gold);
}
.admin-card h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--navy); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.admin-card label { display: block; font-size: 0.8rem; font-weight: 700; color: #555; margin-bottom: 4px; margin-top: 10px; }
.admin-card input, .admin-card textarea,
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 12px; border: 2px solid #e0e0e0;
  border-radius: 8px; font-size: 0.95rem; outline: none; transition: border-color 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.admin-card input:focus, .admin-card textarea:focus,
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); }

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light); border: none;
  padding: 12px 24px; border-radius: 8px; font-weight: 700;
  font-family: 'Montserrat', sans-serif; font-size: 0.92rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.2s; letter-spacing: 0.3px;
}
.btn-primary:hover { opacity: 0.88; }
.btn-secondary {
  background: var(--gold-pale); color: var(--navy); border: 1px solid rgba(201,153,58,0.35);
  padding: 9px 18px; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s; margin-top: 8px;
}
.btn-secondary:hover { background: #ecdcb0; }
.btn-danger {
  background: #fdecea; color: #c0392b; border: none;
  padding: 12px 24px; border-radius: 8px; font-weight: 700;
  font-size: 0.92rem; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; transition: background 0.2s;
}
.btn-danger:hover { background: #f5c6c2; }
.btn-icon-danger {
  background: none; border: none; color: #c0392b;
  cursor: pointer; padding: 4px 8px; font-size: 1rem;
}
.save-msg { color: var(--gold); font-weight: 700; margin-top: 12px; font-size: 0.9rem; min-height: 20px; }

/* LAUNCH LIST ADMIN */
.launch-list-admin { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.launch-item-admin {
  background: var(--white); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  border-left: 3px solid var(--gold);
}
.launch-item-thumb {
  width: 64px; height: 64px; border-radius: 8px;
  object-fit: cover; background: var(--gold-pale); flex-shrink: 0;
}
.launch-item-thumb-placeholder {
  width: 64px; height: 64px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex; align-items: center;
  justify-content: center; color: var(--gold); font-size: 1.5rem; flex-shrink: 0;
}
.launch-item-info { flex: 1; }
.launch-item-info strong { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); }
.launch-item-info span { display: block; font-size: 0.82rem; color: var(--gray); margin-top: 2px; }
.launch-item-actions { display: flex; gap: 8px; }

/* MODAL ADMIN */
.modal-box-admin { max-width: 820px; padding-bottom: 20px; }
.modal-box-admin .modal-body { padding: 28px 32px; }
.modal-box-admin h2 {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  color: var(--navy); font-size: 1.3rem; padding: 24px 32px 0;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-grid .full { grid-column: 1; } }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-group label { font-size: 0.8rem; font-weight: 700; color: #555; }
.form-group small { font-size: 0.75rem; color: var(--gray); }
.form-divider { border: none; border-top: 1px solid var(--gray-light); margin: 22px 0 16px; }
.modal-box-admin h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  color: var(--navy); font-size: 0.95rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.modal-box-admin h3 i { color: var(--gold); }

/* PRICE / PDF / LINK ROWS */
.price-row, .pdf-row, .link-row {
  display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap;
}
.price-row input, .pdf-row input, .link-row input {
  flex: 1; min-width: 120px; padding: 9px 10px;
  border: 2px solid #e0e0e0; border-radius: 7px; font-size: 0.88rem;
  outline: none; transition: border-color 0.2s;
}
.price-row input:focus, .pdf-row input:focus, .link-row input:focus { border-color: var(--gold); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 40px; color: var(--gray); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; display: block; color: rgba(201,153,58,0.3); }

/* ==================== NOVAS FUNCIONALIDADES ==================== */

/* ===== BUSCA E FILTROS ===== */
.section-search {
  background: var(--white); border-bottom: 1px solid var(--gray-light);
  padding: 20px 0; position: sticky; top: 80px; z-index: 90;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.search-bar-wrap { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-input-wrap { flex: 1; min-width: 220px; position: relative; }
.search-input-wrap i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 0.9rem;
}
.search-input-wrap input {
  width: 100%; padding: 11px 14px 11px 38px;
  border: 2px solid var(--gray-light); border-radius: 8px; font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
}
.search-input-wrap input:focus { border-color: var(--gold); }
.section-search select {
  padding: 11px 14px; border: 2px solid var(--gray-light); border-radius: 8px;
  font-size: 0.88rem; outline: none; background: #fff; cursor: pointer;
  transition: border-color 0.2s; min-width: 160px;
}
.section-search select:focus { border-color: var(--gold); }
.btn-clear-filter {
  background: var(--gray-light); border: none; color: var(--gray);
  padding: 11px 16px; border-radius: 8px; cursor: pointer; font-size: 0.85rem;
  display: flex; align-items: center; gap: 6px; transition: background 0.2s; white-space: nowrap;
}
.btn-clear-filter:hover { background: #ddd; color: #333; }
.search-result-count { color: var(--gray); font-size: 0.83rem; margin-top: 8px; }
.no-results { text-align: center; color: var(--gray); padding: 40px; font-size: 1rem; }

/* ===== CARD MÚLTIPLAS FOTOS ===== */
.card-img-wrap { position: relative; }
.card-img-count {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.65); color: var(--gold-light);
  font-size: 0.72rem; padding: 3px 9px; border-radius: 12px;
  display: flex; align-items: center; gap: 4px; font-weight: 600;
}

/* ===== GALERIA NO MODAL ===== */
.modal-gallery { width: 100%; background: #0a0a0a; position: relative; }
.gallery-main {
  position: relative; width: 100%; height: 300px; overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: opacity 0.25s; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,0.55); border: 1px solid rgba(201,153,58,0.4);
  color: var(--gold-light); width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; font-size: 0.95rem; display: flex; align-items: center;
  justify-content: center; z-index: 5; transition: background 0.2s;
}
.gallery-nav:hover { background: rgba(201,153,58,0.3); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.6); color: var(--gold-light); font-size: 0.78rem;
  padding: 3px 12px; border-radius: 12px; font-weight: 600; letter-spacing: 0.5px;
}
.gallery-thumbs {
  display: flex; gap: 6px; padding: 8px 10px; overflow-x: auto; background: #111;
}
.gallery-thumbs:empty { display: none; }
.gallery-thumb {
  width: 58px; height: 48px; object-fit: cover; border-radius: 5px;
  cursor: pointer; opacity: 0.5; flex-shrink: 0;
  border: 2px solid transparent; transition: opacity 0.2s, border-color 0.2s;
}
.gallery-thumb.active { opacity: 1; border-color: var(--gold); }
.gallery-thumb:hover { opacity: 0.85; }

/* ===== MODAL TITLE ROW ===== */
.modal-title-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 10px; flex-wrap: wrap;
}
.share-buttons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; padding-top: 4px; }
.share-label { font-size: 0.75rem; color: var(--gray); white-space: nowrap; letter-spacing: 0.5px; text-transform: uppercase; }
.share-btn {
  width: 34px; height: 34px; border-radius: 50%; display: flex;
  align-items: center; justify-content: center; font-size: 0.95rem;
  transition: transform 0.2s, opacity 0.2s;
}
.share-btn:hover { transform: scale(1.15); }
.share-wa  { background: #25d366; color: #fff; }
.share-ig  { background: linear-gradient(135deg,#f09433,#e6683c,#dc2743,#bc1888); color: #fff; }
.share-copy { background: var(--gold-pale); color: var(--navy); border: 1px solid rgba(201,153,58,0.3); }

/* ===== BOTÃO INTERESSE NO MODAL ===== */
.btn-interest-modal {
  background: var(--gold-pale); color: var(--navy);
  border: 2px solid rgba(201,153,58,0.4); font-weight: 700;
  padding: 12px 22px; border-radius: 6px; font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem; cursor: pointer; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 8px; transition: background 0.2s;
}
.btn-interest-modal:hover { background: #ecdcb0; }

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
  display: none; position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.97); align-items: center; justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 4px; }
.lightbox-close {
  position: absolute; top: 18px; right: 18px;
  background: rgba(201,153,58,0.2); border: 1px solid rgba(201,153,58,0.3);
  color: var(--gold-light); width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; display: flex; align-items: center;
  justify-content: center; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(201,153,58,0.4); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(201,153,58,0.15); border: 1px solid rgba(201,153,58,0.3);
  color: var(--gold-light); width: 50px; height: 50px; border-radius: 50%;
  cursor: pointer; font-size: 1.2rem; display: flex; align-items: center;
  justify-content: center; transition: background 0.2s;
}
.lightbox-nav:hover { background: rgba(201,153,58,0.35); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.5); font-size: 0.85rem; letter-spacing: 1px;
}

/* ===== FORMULÁRIO DE INTERESSE ===== */
.section-interest { background: var(--navy); padding: 80px 0; }
.interest-inner { display: grid; grid-template-columns: 1fr 1.6fr; gap: 70px; align-items: center; }
@media (max-width: 900px) { .interest-inner { grid-template-columns: 1fr; gap: 40px; } }
.interest-text h2 {
  font-family: 'Montserrat', sans-serif; font-size: 1.8rem; font-weight: 800;
  color: var(--white); margin-bottom: 14px; letter-spacing: 0.5px;
}
.interest-text h2 span { color: var(--gold-light); }
.interest-text p { color: rgba(255,255,255,0.65); line-height: 1.75; margin-bottom: 24px; }
.interest-benefits { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.interest-benefits li {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.92rem;
}
.interest-benefits i { color: var(--gold); font-size: 0.95rem; }
.interest-form {
  background: var(--white); border-radius: 12px; padding: 36px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-top: 4px solid var(--gold);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; font-weight: 700; color: #555; text-transform: uppercase; letter-spacing: 0.5px; }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px; border: 2px solid var(--gray-light); border-radius: 8px;
  font-size: 0.95rem; outline: none; transition: border-color 0.2s;
  font-family: 'Open Sans', sans-serif;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--gold); }
.btn-submit-interest {
  width: 100%; background: #25d366; color: #fff; border: none;
  padding: 15px; border-radius: 8px; font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 0.95rem; cursor: pointer; margin-top: 20px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.2s; letter-spacing: 0.5px;
}
.btn-submit-interest:hover { background: #1da854; }
.form-note { font-size: 0.76rem; color: var(--gray); margin-top: 12px; text-align: center; }

/* ===== WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  background: #25d366; color: #fff; width: 60px; height: 60px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; box-shadow: 0 4px 24px rgba(37,211,102,0.55);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.65); color: #fff; }
.waf-tooltip {
  position: absolute; right: 70px; background: var(--black); color: var(--gold-light);
  padding: 6px 14px; border-radius: 6px; font-size: 0.8rem; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  border: 1px solid rgba(201,153,58,0.3); letter-spacing: 0.3px;
}
.whatsapp-float:hover .waf-tooltip { opacity: 1; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 104px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: var(--gold-light);
  border: 1px solid rgba(201,153,58,0.3);
  padding: 12px 26px; border-radius: 8px; font-size: 0.88rem;
  z-index: 999; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; letter-spacing: 0.3px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error { background: #7b1e1e; border-color: rgba(231,76,60,0.4); color: #ffb3b3; }

/* ==================== UPLOAD / CLOUDINARY ==================== */

/* Campo com botão de upload */
.upload-field-wrap {
  display: flex; gap: 8px; align-items: center;
}
.upload-field-wrap input { flex: 1; }
.btn-upload {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--black); border: none; padding: 10px 16px; border-radius: 8px;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.2s; letter-spacing: 0.3px; font-family: 'Montserrat', sans-serif;
}
.btn-upload:hover { opacity: 0.85; }
.btn-upload-video { background: linear-gradient(135deg, #1e3a6e 0%, #2a5298 100%); color: #fff; }
.btn-upload-sm { padding: 9px 10px; }

/* Preview de imagem/vídeo */
.preview-wrap { margin-top: 10px; }
.upload-preview-img {
  max-width: 200px; max-height: 140px; object-fit: cover;
  border-radius: 8px; border: 2px solid var(--gray-light);
}
.upload-preview-video {
  max-width: 280px; border-radius: 8px; display: block;
  border: 2px solid var(--gray-light);
}

/* Galeria admin */
.gallery-upload-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; min-height: 10px;
}
.gallery-admin-item {
  position: relative; width: 80px; height: 80px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--gray-light);
}
.gallery-admin-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-admin-remove {
  position: absolute; top: 3px; right: 3px;
  background: rgba(0,0,0,0.65); border: none; color: #fff;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}
.gallery-admin-remove:hover { background: #c0392b; }

/* Aba Arquivos — cards de upload */
.tab-desc { color: var(--gray); font-size: 0.9rem; margin-bottom: 24px; }
.media-upload-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px;
}
@media (max-width: 600px) { .media-upload-grid { grid-template-columns: 1fr; } }
.media-upload-card {
  background: var(--white); border-radius: var(--radius); padding: 32px 20px;
  text-align: center; cursor: pointer; border: 2px dashed rgba(201,153,58,0.3);
  transition: all 0.2s; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.media-upload-card:hover {
  border-color: var(--gold); background: var(--gold-pale);
  transform: translateY(-3px);
}
.media-upload-card i { font-size: 2.2rem; color: var(--gold); }
.media-upload-card span { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.media-upload-card small { color: var(--gray); font-size: 0.78rem; }

/* Biblioteca de mídia */
.media-library { margin-top: 8px; }
.media-lib-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; color: var(--gray); font-size: 0.88rem;
}
.media-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px;
}
.media-item {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  border: 1px solid var(--gray-light);
}
.media-thumb {
  width: 100%; height: 140px; object-fit: cover; display: block;
  background: var(--gray-light);
}
.media-thumb-video, .media-thumb-pdf {
  width: 100%; height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 3rem;
}
.media-thumb-video { background: linear-gradient(135deg, var(--navy), var(--navy-light)); color: var(--gold-light); }
.media-thumb-pdf   { background: linear-gradient(135deg, #7b1e1e, #c0392b); color: #ffb3b3; }
.media-info { padding: 10px 12px 6px; }
.media-name {
  display: block; font-weight: 700; font-size: 0.82rem; color: var(--navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.media-meta { font-size: 0.72rem; color: var(--gray); margin-top: 2px; display: block; }
.media-actions {
  display: flex; gap: 6px; padding: 8px 12px 12px; border-top: 1px solid var(--gray-light);
}
.btn-copy-url, .btn-open-url {
  flex: 1; background: var(--gold-pale); border: 1px solid rgba(201,153,58,0.3);
  color: var(--navy); border-radius: 6px; padding: 7px; cursor: pointer;
  font-size: 0.85rem; text-align: center; transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.btn-copy-url:hover, .btn-open-url:hover { background: #ecdcb0; }

/* Cloudinary Setup */
.cloud-setup-steps { display: flex; flex-direction: column; gap: 20px; }
.cloud-step {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white); border-radius: var(--radius);
  padding: 20px 24px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.cloud-step-num {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black); font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
}
.cloud-step strong { font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--navy); display: block; margin-bottom: 6px; }
.cloud-step p { color: #555; font-size: 0.9rem; line-height: 1.6; }
.link-gold { color: var(--gold); font-weight: 700; }
.link-gold:hover { text-decoration: underline; }
.cloud-ok {
  background: #e6f4ec; color: #1a5c37; border: 1px solid #a8d8b8;
  padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.cloud-warn {
  background: #fff8e6; color: #7a5000; border: 1px solid #f0d080;
  padding: 12px 18px; border-radius: 8px; font-weight: 600; font-size: 0.88rem;
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
