/* ═══════════════════════════════════════════
   PERFIL LINKTREE — Tema TGNHOST
   Neutro, profissional, azul #2563eb
   ═══════════════════════════════════════════ */

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

:root {
  --bg: #ffffff;
  --bg-2: #f8f9fa;
  --bg-card: #ffffff;
  --bg-elevated: #f1f3f5;
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.08);
  --primary-glow-strong: rgba(37, 99, 235, 0.18);
  --text: #111827;
  --text-muted: #6b7280;
  --text-dim: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.2s ease;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --max-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-2);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Tipografia ── */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--text); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border: none; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 0.88rem; font-weight: 500;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; line-height: 1.2;
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--primary); color: #fff; font-weight: 600;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); color: #fff; }
.btn-outline {
  background: transparent; color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { background: var(--bg-elevated); border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-danger { background: transparent; color: #ef4444; border: 1.5px solid rgba(239,68,68,0.25); }
.btn-danger:hover { background: rgba(239,68,68,0.06); border-color: #ef4444; color: #dc2626; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.1rem; }

/* Toggle buttons */
.btn-toggle-on {
  background: rgba(34,197,94,0.1); color: #16a34a; border: 1.5px solid rgba(34,197,94,0.25);
  padding: 6px 12px; font-size: 0.75rem; cursor: pointer; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-toggle-on:hover { background: rgba(34,197,94,0.18); border-color: #22c55e; }
.btn-toggle-off {
  background: rgba(239,68,68,0.06); color: #ef4444; border: 1.5px solid rgba(239,68,68,0.15);
  padding: 6px 12px; font-size: 0.75rem; cursor: pointer; border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.btn-toggle-off:hover { background: rgba(239,68,68,0.12); border-color: #ef4444; }

/* ── Inputs ── */
.input {
  width: 100%; padding: 12px 16px;
  background: var(--bg); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 0.9rem;
  transition: all var(--transition);
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); }
.input::placeholder { color: var(--text-dim); }
.textarea { resize: vertical; min-height: 90px; }
.input-sm { padding: 8px 12px; font-size: 0.82rem; }
.file-input {
  font-size: 0.84rem; color: var(--text-muted);
  padding: 10px 14px; background: var(--bg);
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  cursor: pointer; width: 100%; transition: all var(--transition);
}
.file-input:hover { border-color: var(--primary); background: var(--bg-2); }
.file-input::file-selector-button {
  background: var(--primary); color: #fff; border: none;
  padding: 8px 18px; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  cursor: pointer; margin-right: 14px; transition: all var(--transition);
}
.file-input::file-selector-button:hover { background: var(--primary-dark); box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3); }
.file-input:focus { outline: none; border-color: var(--primary); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em;
}
.form-row { display: flex; gap: 16px; }
.form-row > .form-group { flex: 1; }
.form-group-sm { flex: 0 0 120px !important; }
.form-check { display: flex; align-items: flex-end; }
.checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.9rem; }
.checkbox-label input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }
.form-error { color: #ef4444; font-size: 0.82rem; margin-top: 8px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.form-inline { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.form-hint { font-size: 0.75rem; color: var(--text-dim); margin-top: 4px; }
.admin-form { max-width: 640px; }

/* ── Perfil Público (Linktree) ── */

.profile-page {
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* Cover photo */
.cover-photo-wrapper {
  width: 100%; height: 200px; overflow: hidden;
  background: var(--bg-elevated);
}
.cover-photo {
  width: 100%; height: 100%; object-fit: cover;
}

/* Header */
.profile-header {
  text-align: center; padding: 32px 24px 32px;
  position: relative;
}
.profile-photo {
  width: 120px; height: 120px; border-radius: 50%;
  object-fit: cover; background: var(--bg-elevated);
  border: 3px solid var(--border); margin: -80px auto 16px;
  box-shadow: var(--shadow); position: relative; z-index: 1;
}
.profile-photo-placeholder {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--bg-elevated); margin: -80px auto 16px;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--border); position: relative; z-index: 1;
  color: var(--text-dim); font-size: 2.5rem;
}
.profile-name {
  font-size: 1.5rem; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.profile-occupation {
  font-size: 1rem; color: var(--primary); font-weight: 500;
  margin-bottom: 4px;
}
.profile-location {
  font-size: 0.85rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-bottom: 4px;
}

/* Social icons */
.social-links {
  display: flex; justify-content: center; gap: 12px; margin-top: 12px;
}
.social-link {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1.5px solid var(--border);
  color: var(--text-muted); transition: all var(--transition);
}
.social-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.social-icon { width: 18px; height: 18px; }

/* Seções */
.profile-section {
  padding: 32px 24px;
}
.profile-section + .profile-section {
  border-top: 1px solid var(--border-light);
}
.section-label {
  display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px;
}
.section-title {
  font-size: 1.25rem; font-weight: 600; color: var(--text);
  margin-bottom: 20px;
}

/* Sobre */
.profile-description {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-muted);
  max-width: 600px;
}

/* Serviços */
.services-list {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 600px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.service-info { flex: 1; min-width: 0; }
.service-name { font-weight: 600; color: var(--text); font-size: 0.95rem; margin-bottom: 4px; }
.service-desc { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; }
.service-price {
  font-weight: 700; color: var(--primary); font-size: 0.95rem;
  white-space: nowrap; flex-shrink: 0;
  padding: 6px 14px; background: var(--primary-glow);
  border-radius: var(--radius-full);
}

/* Galeria */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 600px;
}
.gallery-item {
  position: relative; border-radius: var(--radius);
  overflow: hidden; aspect-ratio: 4/3;
  background: var(--bg-elevated); border: 1px solid var(--border);
  cursor: pointer; transition: all var(--transition);
}
.gallery-item:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item .gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-size: 0.72rem; padding: 24px 8px 8px;
  pointer-events: none; opacity: 0; transition: opacity var(--transition);
}
.gallery-item:hover .gallery-caption { opacity: 1; }

/* Lightbox */
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.9); display: flex;
  align-items: center; justify-content: center;
  padding: 32px; animation: fadeIn 0.2s ease;
}
.lightbox-overlay img { max-width: 100%; max-height: 90vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 2rem; cursor: pointer; line-height: 1; opacity: 0.7; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 1; }

/* Contato */
.contact-links { display: flex; gap: 12px; flex-wrap: wrap; max-width: 600px; }
.contact-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-full);
  color: var(--text); font-size: 0.9rem; font-weight: 500;
  transition: all var(--transition);
}
.contact-link:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 90;
  display: flex; align-items: center; gap: 8px;
  background: #25d366; color: #fff; padding: 14px 24px;
  border-radius: var(--radius-full); font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition); text-decoration: none;
}
.whatsapp-float:hover { background: #20bd5a; color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45); }

/* Share float */
.btn-share-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-card); color: var(--text-muted);
  border: 1.5px solid var(--border);
  font-size: 1.1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: all var(--transition);
}
.btn-share-float:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff; padding: 12px 24px;
  border-radius: var(--radius-full); font-size: 0.85rem;
  z-index: 9999; opacity: 0; transition: all 0.3s ease;
  pointer-events: none; box-shadow: var(--shadow-lg);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Footer */
.site-footer {
  text-align: center; padding: 20px 24px;
  border-top: 1px solid var(--border-light); margin-top: auto;
  color: var(--text-dim); font-size: 0.78rem;
}
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--primary); }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-dim); }
.empty-state .empty-icon { font-size: 2rem; opacity: 0.3; margin-bottom: 8px; display: block; }

/* ── Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-box {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  max-width: 480px; width: 100%; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  animation: slideUp 0.25s ease;
  max-height: calc(100vh - 48px);
  overflow-y: auto; display: flex; flex-direction: column;
}
.modal-box.modal-lg { max-width: 640px; }
.modal-title { font-size: 1.3rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.modal-sub { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 24px; }
.btn-close-modal {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text-dim);
  font-size: 1.5rem; cursor: pointer; line-height: 1; transition: color var(--transition);
}
.btn-close-modal:hover { color: var(--text); }

.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form .btn { margin-top: 4px; }

/* ── Admin Panel ── */
.admin-panel {
  position: fixed; inset: 0; z-index: 150;
  display: flex; background: var(--bg);
  animation: fadeIn 0.2s ease;
}
.admin-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--bg-2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 24px 0;
}
.admin-logo {
  font-weight: 700; color: var(--primary); font-size: 1.05rem;
  padding: 0 20px 20px; border-bottom: 1px solid var(--border);
  margin-bottom: 16px; letter-spacing: 0.01em;
}
.admin-nav { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 4px; }
.admin-tab {
  text-align: left; padding: 10px 16px; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-muted);
  font-family: var(--font); font-size: 0.88rem; cursor: pointer;
  transition: all var(--transition); display: flex; align-items: center; gap: 10px;
}
.admin-tab:hover { background: var(--bg-elevated); color: var(--text); }
.admin-tab.active { background: var(--primary-glow); color: var(--primary); font-weight: 500; }
.admin-tab .tab-icon { font-size: 1rem; width: 20px; text-align: center; }
.admin-sidebar-footer {
  padding: 16px 12px 0; border-top: 1px solid var(--border);
  margin: 12px 12px 0; display: flex; flex-direction: column; gap: 8px;
}

.admin-main {
  flex: 1; overflow-y: auto; padding: 40px 48px;
  scroll-behavior: smooth;
}
.admin-main::-webkit-scrollbar { width: 6px; }
.admin-main::-webkit-scrollbar-track { background: transparent; }
.admin-main::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; animation: fadeIn 0.25s ease; }
.admin-heading { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.admin-subheading { color: var(--text); font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; }
.admin-tab-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
}
.admin-tab-header .admin-heading { margin-bottom: 0; }
.admin-section-divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* Admin list */
.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-list-item {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--transition);
}
.admin-list-item:hover { border-color: var(--primary); }
.admin-list-item .info { flex: 1; min-width: 0; }
.admin-list-item .info .name { font-weight: 600; color: var(--text); font-size: 0.95rem; }
.admin-list-item .info .price { font-size: 0.82rem; color: var(--primary); margin-top: 2px; }
.admin-list-item .info .meta { font-size: 0.78rem; color: var(--text-dim); margin-top: 2px; }
.admin-list-item .actions { display: flex; gap: 8px; flex-shrink: 0; }

/* Admin gallery */
.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px; margin-top: 24px;
}
.admin-gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--bg-elevated); border: 1px solid var(--border);
}
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.admin-gallery-item:hover img { transform: scale(1.05); }
.admin-gallery-item .delete-btn {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #f87171; border: none;
  font-size: 0.85rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: all var(--transition);
}
.admin-gallery-item:hover .delete-btn { opacity: 1; }
.admin-gallery-item .delete-btn:hover { background: #dc2626; color: #fff; }

/* Photo preview */
.photo-preview-area { margin-bottom: 12px; }
.photo-preview-area img {
  max-height: 160px; border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* Logo upload */
.logo-upload-area { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.logo-preview { height: 60px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.logo-empty { color: var(--text-dim); font-size: 0.84rem; }

/* AI Hero Card — destaque no topo do painel admin */
.ai-hero-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--primary-glow);
  border: 1px solid var(--primary-glow-strong);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.ai-hero-icon {
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}
.ai-hero-text { flex: 1; }
.ai-hero-text h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 4px;
}
.ai-hero-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}
.ai-hero-card .btn {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .ai-hero-card {
    flex-direction: column;
    text-align: center;
  }
}

/* AI Modal */
.ai-questions { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.ai-preview {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  margin: 20px 0; display: none;
}
.ai-preview h4 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.ai-preview .desc { font-size: 0.9rem; color: var(--text); line-height: 1.7; margin-bottom: 16px; }
.ai-preview .preview-services { display: flex; flex-direction: column; gap: 8px; }
.ai-preview .preview-service {
  font-size: 0.85rem; color: var(--text-muted);
  padding: 8px 12px; background: var(--bg);
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 12px;
}
.ai-preview .preview-service .ps-name { font-weight: 500; color: var(--text); }
.ai-loading {
  text-align: center; padding: 32px 0; display: none;
}
.ai-loading .spinner {
  width: 36px; height: 36px; border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin 0.8s linear infinite; margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Gallery modal ── */
.gallery-modal-preview {
  width: 100%; aspect-ratio: 16/10; object-fit: cover;
  border-radius: var(--radius); margin-bottom: 16px;
  background: var(--bg-2); border: 1px solid var(--border);
}

/* ── Animações ── */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Color picker ── */
.color-picker-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.color-preset {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid transparent;
  cursor: pointer; transition: all var(--transition); padding: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.color-preset:hover { transform: scale(1.15); }
.color-preset.active { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text); }

/* ── Responsivo ── */
@media (max-width: 1024px) {
  .admin-main { padding: 24px 28px; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }

  .cover-photo-wrapper { height: 160px; }
  .profile-header { padding: 24px 16px 24px; }
  .profile-photo { margin-top: -60px; }
  .profile-photo-placeholder { margin-top: -60px; }
  .profile-section { padding: 24px 16px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  .services-list { gap: 8px; }
  .service-card { padding: 16px; }

  .contact-links { flex-direction: column; }

  .whatsapp-float { bottom: 20px; right: 20px; padding: 12px 20px; font-size: 0.85rem; }
  .btn-share-float { bottom: 20px; left: 20px; width: 42px; height: 42px; }

  .admin-panel { flex-direction: column; }
  .admin-sidebar { width: 100%; flex-direction: row; padding: 12px; align-items: center; overflow-x: auto; }
  .admin-logo { padding: 0 12px 0 0; border-bottom: none; border-right: 1px solid var(--border); margin-bottom: 0; font-size: 0.9rem; white-space: nowrap; }
  .admin-nav { flex-direction: row; padding: 0; gap: 2px; }
  .admin-tab { white-space: nowrap; font-size: 0.78rem; padding: 8px 12px; }
  .admin-sidebar-footer { flex-direction: row; border-top: none; border-left: 1px solid var(--border); padding: 0 0 0 12px; margin: 0 0 0 12px; gap: 6px; }
  .admin-sidebar-footer .btn { font-size: 0.75rem; padding: 6px 12px; white-space: nowrap; }
  .admin-main { padding: 20px 16px; }
  .admin-tab-header { flex-direction: column; gap: 12px; align-items: stretch; }
  .form-inline { flex-direction: column; }
  .form-row { flex-direction: column; }
  .modal-box { padding: 24px 20px; }
  .admin-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 480px) {
  .cover-photo-wrapper { height: 140px; }
  .profile-photo { width: 100px; height: 100px; margin-top: -50px; }
  .profile-photo-placeholder { width: 100px; height: 100px; margin-top: -50px; }
  .profile-name { font-size: 1.3rem; }
  .profile-section { padding: 20px 16px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .service-card { flex-direction: column; }
  .service-price { align-self: flex-start; }
  .whatsapp-float { padding: 10px 16px; font-size: 0.8rem; }
  .lightbox-overlay { padding: 16px; }
}
