:root {
  --bg-dark: #0A0D14;
  --bg-surface: #121622;
  --bg-surface-hover: #1A2030;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(255, 65, 108, 0.4);
  
  --primary-gradient: linear-gradient(135deg, #FF416C 0%, #FF4B2B 100%);
  --primary-color: #FF416C;
  --accent-cyan: #48F2D1;
  --accent-gold: #F59E0B;
  --accent-green: #10B981;
  --accent-red: #EF4444;

  --text-main: #FFFFFF;
  --text-muted: #94A3B8;
  --text-subtle: #64748B;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --shadow-lg: 0 10px 30px -10px rgba(0,0,0,0.5);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  width: 270px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: fixed;
  height: 100vh;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px 28px 12px;
}

.brand-icon {
  font-size: 28px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-title span {
  font-size: 11px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 65, 108, 0.3);
  margin-left: 4px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}

.nav-item i {
  width: 18px;
  height: 18px;
}

.nav-item:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
}

.nav-item.active {
  background: var(--primary-gradient);
  color: #FFF;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.3);
}

.badge-count {
  margin-left: auto;
  background: var(--accent-red);
  color: #FFF;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
}

.avatar-thumb {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  font-size: 14px;
}

.user-role {
  font-size: 12px;
  color: var(--text-subtle);
}

/* MAIN CONTENT */
.main-content {
  margin-left: 270px;
  flex: 1;
  padding: 32px 40px;
}

/* TOPBAR */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.page-title h1 {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.page-title p {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-active);
}

/* METRICS GRID */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.users-bg { background: rgba(72, 242, 209, 0.15); color: var(--accent-cyan); }
.pending-bg { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.approved-bg { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.matches-bg { background: rgba(255, 65, 108, 0.15); color: var(--primary-color); }

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  margin-top: 2px;
}

/* TAB CONTENT */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* PANEL SECTIONS */
.panel-section {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.panel-header h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}

/* FILTERS */
.filter-bar {
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-control {
  width: 100%;
  padding: 9px 12px;
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: #FFF;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.filter-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 65, 108, 0.15);
}

.filter-control option {
  background: #0F172A;
  color: #FFF;
}

.filter-chips {
  display: flex;
  gap: 10px;
}

.chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip.active {
  background: var(--primary-gradient);
  color: #FFF;
  border-color: transparent;
}

.search-input {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  width: 320px;
  font-size: 14px;
  outline: none;
}

.search-input:focus {
  border-color: var(--primary-color);
}

/* DATA TABLE */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 12px 16px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-subtle);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  vertical-align: middle;
}

.user-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.user-row:hover {
  background-color: var(--bg-surface-hover);
}

.loading-td {
  text-align: center;
  color: var(--text-subtle);
  padding: 30px !important;
}

/* BADGES & ACTION BUTTONS */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.status-pending { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.status-approved { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 12px;
}

.rating-gold { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.rating-green { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.rating-red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.action-btns {
  display: flex;
  gap: 8px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-approve { background: var(--accent-green); color: #FFF; }
.btn-reject { background: var(--accent-red); color: #FFF; }
.btn-delete { background: rgba(239, 68, 68, 0.2); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.btn-delete:hover { background: #EF4444; color: #FFF; border-color: #EF4444; }
.btn-vip { background: var(--primary-gradient); color: #FFF; }

.btn-action:hover {
  opacity: 0.85;
}

/* PHOTOS GALLERY GRID */
.photos-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
}

.gallery-photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

.gallery-photo-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 13;
  overflow: hidden;
  background: #000;
  cursor: zoom-in;
}

.gallery-photo-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-photo-card:hover .gallery-photo-img-wrapper img {
  transform: scale(1.05);
}

.gallery-photo-type-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent-cyan);
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid rgba(72, 242, 209, 0.3);
}

.gallery-photo-info {
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface-hover);
  border-top: 1px solid var(--border-color);
}

.gallery-user-name {
  font-size: 13px;
  font-weight: 700;
  color: #FFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-user-name:hover {
  color: var(--accent-cyan);
}

.gallery-user-avatar-mini {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
}

/* LIGHTBOX INTERACTIVE ZOOM */
.lightbox-img-container {
  width: 100%;
  max-height: 72vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  margin-bottom: 14px;
  position: relative;
  user-select: none;
}

.lightbox-img-container img {
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 8px;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: zoom-in;
}

.lightbox-img-container img.is-zoomed {
  transform: scale(2.2);
  cursor: zoom-out;
}

.photos-grid {
  display: grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.photo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.photo-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.photo-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
}

.photo-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photo-card:hover .photo-card-img-wrapper img {
  transform: scale(1.05);
}

.photo-type-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: var(--accent-cyan);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(72, 242, 209, 0.3);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.photo-zoom-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #FFF;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.photo-zoom-btn:hover {
  background: var(--accent-purple);
  transform: scale(1.1);
}

.photo-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.photo-user-name {
  font-weight: 800;
  font-size: 14px;
  color: #FFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-user-email {
  font-size: 11px;
  color: var(--text-subtle);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-user-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.photo-meta-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255,255,255,0.06);
  padding: 3px 8px;
  border-radius: 6px;
}

.photo-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* MODAL DE DETALHES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #FFF;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: var(--accent-red);
}

/* MODAL USER PROFILE LAYOUT */
.user-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.user-modal-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
}

.user-modal-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
}

.user-modal-email {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 2px;
}

.modal-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.info-block {
  background: var(--bg-surface-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}

.info-block h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span:first-child {
  color: var(--text-muted);
}

.info-row span:last-child {
  font-weight: 700;
  color: var(--text-main);
}

.demographics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.streaming-7col-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@media (max-width: 1200px) {
  .streaming-7col-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .demographics-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  .streaming-7col-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* STORIES CAROUSEL SCROLLBAR */
.stories-bar-horizontal::-webkit-scrollbar {
  height: 6px;
}
.stories-bar-horizontal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.stories-bar-horizontal::-webkit-scrollbar-thumb {
  background: rgba(244, 63, 94, 0.5);
  border-radius: 10px;
}
.stories-bar-horizontal::-webkit-scrollbar-thumb:hover {
  background: rgba(244, 63, 94, 0.8);
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #FFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
