/* ===========================
   MODEL SERVICES — Velvet Premium (iOS-Lux Edition)
=========================== */

:root {
  --text: #f5f5f5;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --border: #2b2b2b;
  --muted: #aaa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
  --gold: #d4af37;
  --gold-light: #f5d97d;
  --gold-dark: #b38e2e;
  --black: #000;
  --radius-lg: 16px;
}

/* ---------- Container ---------- */
.modelservices-section {
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  color: var(--text);
  font-family: "Inter", sans-serif;
  position: relative;
}

/* ---------- Header ---------- */
.mlc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 32px;
  backdrop-filter: blur(6px);
}

.mlc-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mlc-header-left .dash-heading {
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

.plan-chip {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold);
  backdrop-filter: blur(6px);
}

/* ---------- Header Buttons ---------- */
.mlc-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mlc-header-right .chip {
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.chip-ghost {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--gold);
  color: var(--gold);
}
.chip-ghost:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

.chip-gold {
  background: var(--gold);
  color: var(--black);
  border: none;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}
.chip-gold:hover {
  filter: brightness(1.1);
}

/* ---------- Category ---------- */
.modelservices-category {
  margin-bottom: 30px;
}
.modelservices-title {
  font-family: "Playfair Display", serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 18px;
  border-left: 4px solid var(--gold);
  padding-left: 10px;
}

/* ---------- Grid ---------- */
.modelservices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

/* ---------- Card ---------- */
.modelservices-card {
  background: linear-gradient(180deg, var(--surface-2), #101010);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.3s ease;
  position: relative;
}
.modelservices-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.modelservices-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  flex: 1;
}

/* ---------- iOS-style Toggle ---------- */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border-radius: 34px;
  box-shadow: inset 0 2px 3px rgba(0,0,0,0.5);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
}

.slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  top: 3px;
  background: linear-gradient(145deg, #fefefe, #c8c8c8);
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.switch input:checked + .slider {
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}
.switch input:checked + .slider::before {
  transform: translateX(22px);
  background: radial-gradient(circle at 30% 30%, #fff 0%, #f8e68b 100%);
  box-shadow: 0 0 8px rgba(240, 202, 50, 0.7);
}

/* subtle glow animation when toggled on */
@keyframes togglePulse {
  0% { box-shadow: 0 0 0 rgba(212,175,55,0.5); }
  50% { box-shadow: 0 0 20px rgba(212,175,55,0.8); }
  100% { box-shadow: 0 0 0 rgba(212,175,55,0.5); }
}
.switch input:checked + .slider::before {
  animation: togglePulse 0.6s ease;
}

/* ---------- Status text ---------- */
.toggle-status {
  font-size: 0.9rem;
  color: var(--muted);
  min-width: 80px;
  text-align: right;
  transition: color 0.3s ease, transform 0.3s ease;
}
.toggle-status.active {
  color: var(--gold-light);
  font-weight: 600;
  transform: scale(1.05);
}

/* ---------- Save Button ---------- */
.btn-save {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--black);
  background: linear-gradient(135deg, #f0ca32, #d4af37);
  border: none;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(212, 175, 55, 0.35);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-save:hover {
  background: linear-gradient(135deg, #ffd84d, #e2c24a);
  transform: translateY(-1px);
}
.btn-save.saved {
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: #fff;
  box-shadow: 0 3px 10px rgba(76, 175, 80, 0.45);
}

/* ---------- Tooltip Modal ---------- */
.tooltip-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(160deg, #111, #1a1a1a);
  border: 1px solid var(--gold);
  border-radius: 18px;
  padding: 26px;
  max-width: 420px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7);
  color: #eee;
  z-index: 9999;
  display: none;
  backdrop-filter: blur(8px);
}

.tooltip-modal h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.tooltip-modal li {
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: #ccc;
}

.tooltip-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 1.4rem;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.2s;
}
.tooltip-close:hover {
  transform: scale(1.2);
}

/* ---------- Responsividade ---------- */
@media (max-width: 768px) {
  .modelservices-grid {
    grid-template-columns: 1fr;
  }
  .modelservices-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .toggle-status {
    text-align: left;
  }
}
