@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --vinho:       #54090b;
  --vinho-dark:  #3a0608;
  --vinho-light: #7a1215;
  --terracota:   #d06f38;
  --rosa:        #b76e79;
  --bege:        #F4EDE4;
  --bege-dark:   #e8ddd3;
  --bege-card:   #faf7f4;
  --texto:       #2d1a1a;
  --cinza:       #6b5c5c;
  --cinza-light: #a09090;
  --branco:      #fff;
  --verde:       #4a7c59;
  --sombra:      0 2px 12px rgba(84,9,11,.10);
  --sombra-hover:0 8px 28px rgba(84,9,11,.18);
  --radius:      14px;
  --radius-sm:   8px;
  --trans:       all .22s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bege);
  color: var(--texto);
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

a { color: var(--vinho); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--terracota); }

img { max-width: 100%; display: block; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  cursor: pointer;
  transition: var(--trans);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--vinho);
  color: var(--branco);
}
.btn-primary:hover {
  background: var(--vinho-light);
  color: var(--branco);
  box-shadow: var(--sombra-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--vinho);
  border: 2px solid var(--vinho);
}
.btn-secondary:hover {
  background: var(--vinho);
  color: var(--branco);
}

.btn-terracota {
  background: var(--terracota);
  color: var(--branco);
}
.btn-terracota:hover {
  background: #b85e2a;
  color: var(--branco);
  box-shadow: var(--sombra-hover);
}

.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-ghost {
  background: transparent;
  color: var(--cinza);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.btn-ghost:hover { background: var(--bege-dark); color: var(--texto); }

/* ── FORM ELEMENTS ───────────────────────────────── */
.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cinza);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--bege-dark);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--texto);
  background: var(--branco);
  transition: var(--trans);
  outline: none;
}
.form-input:focus {
  border-color: var(--vinho);
  box-shadow: 0 0 0 3px rgba(84,9,11,.08);
}
.form-input::placeholder { color: var(--cinza-light); }

select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* ── TOP NAV ─────────────────────────────────────── */
.topnav {
  background: var(--vinho);
  color: var(--branco);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(84,9,11,.3);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--branco);
  line-height: 1.2;
}
.nav-logo span { display: block; font-size: .65rem; font-family: 'Inter', sans-serif; font-weight: 400; opacity: .75; letter-spacing: .08em; text-transform: uppercase; }

.nav-user {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .9rem;
}

.nav-user .user-name { font-weight: 600; }
.nav-user .user-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--terracota);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  color: var(--branco);
  flex-shrink: 0;
}

.btn-logout {
  background: rgba(255,255,255,.15);
  color: var(--branco);
  border: none;
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .8rem;
  cursor: pointer;
  transition: var(--trans);
}
.btn-logout:hover { background: rgba(255,255,255,.25); }

/* ── PAGE LAYOUT ─────────────────────────────────── */
.page-content { max-width: 1200px; margin: 0 auto; padding: 40px 32px; }

.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 1.8rem; color: var(--vinho); }
.page-header p { color: var(--cinza); margin-top: 6px; }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: var(--trans);
}
.card:hover { box-shadow: var(--sombra-hover); transform: translateY(-2px); }

.card-body { padding: 24px; }

/* ── COURSE GRID ─────────────────────────────────── */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.course-card { cursor: pointer; }

.course-thumb {
  aspect-ratio: 9 / 14;
  background: var(--vinho);
  position: relative;
  overflow: hidden;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.04); }

.course-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--vinho) 0%, var(--terracota) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px;
  padding: 24px;
}
.course-thumb-svg { opacity: .25; }

.course-info { padding: 20px; }
.course-info h3 { font-size: 1.05rem; margin-bottom: 8px; }
.course-info p { font-size: .85rem; color: var(--cinza); line-height: 1.5; }

.course-progress { margin-top: 16px; }
.progress-bar {
  height: 6px;
  background: var(--bege-dark);
  border-radius: 99px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--terracota);
  border-radius: 99px;
  transition: width .5s ease;
}
.progress-label { font-size: .75rem; color: var(--cinza); margin-top: 4px; }

/* ── BADGE ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-vinho   { background: rgba(84,9,11,.1);   color: var(--vinho); }
.badge-verde   { background: rgba(74,124,89,.12); color: var(--verde); }
.badge-cinza   { background: var(--bege-dark);    color: var(--cinza); }
.badge-terracota { background: rgba(208,111,56,.12); color: var(--terracota); }

/* ── PLAYER LAYOUT ───────────────────────────────── */
.player-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: calc(100vh - 64px);
}

.player-sidebar {
  background: var(--vinho-dark);
  color: var(--branco);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.player-sidebar::-webkit-scrollbar { width: 4px; }
.player-sidebar::-webkit-scrollbar-thumb { background: var(--vinho-light); border-radius: 2px; }

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.sidebar-header h3 { font-size: .95rem; line-height: 1.4; }
.sidebar-header .back-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: rgba(255,255,255,.6);
  font-size: .8rem;
  margin-bottom: 10px;
  transition: var(--trans);
}
.sidebar-header .back-link:hover { color: var(--branco); }

.lesson-list { flex: 1; padding: 12px 0; }

.lesson-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: var(--trans);
  border-left: 3px solid transparent;
}
.lesson-item:hover { background: rgba(255,255,255,.07); }
.lesson-item.active {
  background: rgba(208,111,56,.2);
  border-left-color: var(--terracota);
}
.lesson-item.locked {
  opacity: .55;
  cursor: default;
}
.lesson-item.locked:hover { background: transparent; }

.lesson-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 600;
  flex-shrink: 0;
}
.lesson-item.active .lesson-num { background: var(--terracota); }
.lesson-item.done .lesson-num { background: var(--verde); }

.lesson-meta { flex: 1; min-width: 0; }
.lesson-title { font-size: .85rem; font-weight: 500; line-height: 1.35; }
.lesson-dur { font-size: .75rem; opacity: .55; margin-top: 2px; }
.lesson-lock-icon { font-size: .8rem; opacity: .7; }

.lesson-unlock-date {
  font-size: .7rem;
  opacity: .6;
  margin-top: 3px;
  color: var(--terracota);
}

/* ── VIDEO AREA ──────────────────────────────────── */
.player-main { display: flex; flex-direction: column; overflow-y: auto; }

.video-wrapper {
  position: relative;
  background: #111;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
}
.video-wrapper iframe {
  width: 100%; height: 100%;
  border: none;
  display: block;
}

.video-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  color: rgba(255,255,255,.35);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .04em;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
  line-height: 1.5;
  text-align: right;
}

/* ── PLAYER CONTENT ──────────────────────────────── */
.player-content { padding: 28px 32px; flex: 1; }

.player-lesson-title {
  font-size: 1.4rem;
  color: var(--vinho);
  margin-bottom: 4px;
}

.player-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

/* ── TABS ────────────────────────────────────────── */
.tabs {
  border-bottom: 2px solid var(--bege-dark);
  display: flex;
  gap: 0;
  margin-bottom: 28px;
}
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 500;
  color: var(--cinza);
  cursor: pointer;
  transition: var(--trans);
}
.tab-btn:hover { color: var(--vinho); }
.tab-btn.active {
  color: var(--vinho);
  border-bottom-color: var(--terracota);
  font-weight: 600;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── COMMENTS ────────────────────────────────────── */
.comment-form { margin-bottom: 32px; }
.comment-form textarea { margin-bottom: 12px; }

.comment-list { display: flex; flex-direction: column; gap: 20px; }

.comment-item {
  display: flex;
  gap: 14px;
}
.comment-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--bege-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
  color: var(--cinza);
  flex-shrink: 0;
}
.comment-avatar.is-carla { background: var(--terracota); color: var(--branco); }

.comment-bubble { flex: 1; }
.comment-name {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.comment-name .professora-tag {
  background: var(--terracota);
  color: var(--branco);
  font-size: .65rem;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
  margin-left: 8px;
  vertical-align: middle;
}
.comment-text {
  background: var(--bege-card);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) var(--radius);
  font-size: .9rem;
  line-height: 1.6;
  border: 1px solid var(--bege-dark);
}
.comment-date { font-size: .75rem; color: var(--cinza-light); margin-top: 6px; }

.comment-reply {
  margin-top: 16px;
  margin-left: 54px;
}

/* ── ADMIN LAYOUT ────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 64px);
}

.admin-sidebar {
  background: var(--branco);
  border-right: 1px solid var(--bege-dark);
  padding: 24px 0;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--cinza);
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--trans);
  border-right: 3px solid transparent;
}
.admin-nav-item:hover { background: var(--bege); color: var(--vinho); }
.admin-nav-item.active {
  background: rgba(84,9,11,.06);
  color: var(--vinho);
  border-right-color: var(--terracota);
  font-weight: 600;
}
.admin-nav-item svg { flex-shrink: 0; }

.admin-main { padding: 36px 40px; overflow-y: auto; }

/* ── TABLES ──────────────────────────────────────── */
.table-container {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: var(--sombra);
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--bege-dark);
}
.table-header h3 { font-size: 1.05rem; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
th {
  text-align: left;
  padding: 12px 20px;
  background: var(--bege);
  color: var(--cinza);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--bege-dark);
}
td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--bege-dark);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bege-card); }

.td-actions { display: flex; gap: 8px; }

/* ── STATS CARDS ─────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: var(--branco);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--sombra);
  border-left: 4px solid var(--terracota);
}
.stat-card.vinho { border-left-color: var(--vinho); }
.stat-card.rosa  { border-left-color: var(--rosa); }
.stat-card.verde { border-left-color: var(--verde); }
.stat-num { font-size: 2rem; font-weight: 700; font-family: 'Playfair Display', serif; color: var(--texto); }
.stat-label { font-size: .82rem; color: var(--cinza); margin-top: 4px; }

/* ── MODAL ───────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--branco);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--bege-dark);
}
.modal-header h3 { font-size: 1.15rem; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bege-dark);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--trans);
}
.modal-close:hover { background: var(--bege-dark); transform: scale(1.1); }
.modal-body { padding: 28px; }
.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--bege-dark);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── TOAST ───────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: var(--texto);
  color: var(--branco);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  box-shadow: var(--sombra-hover);
  animation: slideIn .3s ease;
  max-width: 320px;
}
.toast.success { background: var(--verde); }
.toast.error   { background: #c0392b; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── LOGIN PAGE ──────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-brand {
  background: linear-gradient(160deg, var(--vinho-dark) 0%, var(--vinho) 60%, var(--terracota) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  color: var(--branco);
  position: relative;
  overflow: hidden;
}
.login-brand-content { position: relative; z-index: 1; }
.login-brand h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 16px; }
.login-brand p { opacity: .8; font-size: 1rem; line-height: 1.7; max-width: 320px; }
.brand-tag {
  display: inline-block;
  background: rgba(255,255,255,.15);
  color: var(--branco);
  padding: 6px 18px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: 24px;
}
.brand-geo {
  position: absolute;
  opacity: .06;
  bottom: -60px;
  right: -60px;
}

.login-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  background: var(--bege);
}

.login-box { width: 100%; max-width: 380px; }
.login-box h2 { font-size: 1.6rem; margin-bottom: 8px; color: var(--vinho); }
.login-box .subtitle { color: var(--cinza); font-size: .9rem; margin-bottom: 32px; }

.code-inputs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.code-inputs input {
  flex: 1;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 14px 6px;
  border: 2px solid var(--bege-dark);
  border-radius: var(--radius-sm);
  background: var(--branco);
  outline: none;
  transition: var(--trans);
}
.code-inputs input:focus { border-color: var(--vinho); }

.step { display: none; }
.step.active { display: block; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cinza);
  font-size: .85rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-top: 16px;
  transition: var(--trans);
}
.back-btn:hover { color: var(--vinho); }

.dev-code-hint {
  background: var(--bege-dark);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .85rem;
  color: var(--cinza);
  margin-top: 16px;
  display: none;
}

/* ── JOTFORM SUPPORT ─────────────────────────────── */
.support-tab-content { padding: 8px 0; }
.support-info {
  background: var(--bege-dark);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}
.support-info h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--vinho); }
.support-info p { color: var(--cinza); font-size: .9rem; }

/* ── NOTIFY PANEL ────────────────────────────────── */
.notify-panel { max-width: 600px; }
.notify-panel h3 { font-size: 1.1rem; margin-bottom: 20px; color: var(--vinho); }
.notify-preview {
  background: var(--bege-dark);
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
  font-size: .88rem;
  color: var(--texto);
  line-height: 1.8;
  border-left: 4px solid var(--terracota);
}
.notify-count { color: var(--cinza); font-size: .85rem; margin-bottom: 16px; }

/* ── DRIP LOCK ───────────────────────────────────── */
.locked-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  text-align: center;
  gap: 12px;
  color: var(--cinza);
}
.locked-message svg { opacity: .4; }
.locked-message h3 { font-size: 1.1rem; color: var(--vinho); }

/* ── SEARCH BOX ──────────────────────────────────── */
.search-box {
  position: relative;
  max-width: 260px;
}
.search-box input {
  padding: 10px 16px 10px 38px;
  border: 1px solid var(--bege-dark);
  border-radius: 50px;
  background: var(--bege);
  font-size: .85rem;
  width: 100%;
  outline: none;
  transition: var(--trans);
}
.search-box input:focus { border-color: var(--vinho); background: var(--branco); }
.search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--cinza-light);
}

/* ── EMPTY STATE ─────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--cinza);
}
.empty-state svg { opacity: .3; margin: 0 auto 16px; }
.empty-state p { font-size: .9rem; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-side { min-height: 100vh; }

  .player-layout { grid-template-columns: 1fr; height: auto; }
  .player-sidebar { height: auto; max-height: 60vh; }

  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; overflow-x: auto; padding: 0; border-right: none; border-bottom: 1px solid var(--bege-dark); }
  .admin-nav-item { white-space: nowrap; border-right: none; border-bottom: 3px solid transparent; padding: 14px 20px; }
  .admin-nav-item.active { border-bottom-color: var(--terracota); background: none; }
  .admin-main { padding: 24px 20px; }
}

@media (max-width: 600px) {
  .topnav { padding: 0 20px; }
  .page-content { padding: 24px 20px; }
  .courses-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .player-content { padding: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .table-container { overflow-x: auto; }
}

/* ── LOADING SPINNER ─────────────────────────────── */
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--bege-dark);
  border-top-color: var(--vinho);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* ── TOGGLE SWITCH ───────────────────────────────── */
.toggle {
  position: relative;
  display: inline-block;
  width: 44px; height: 24px;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--bege-dark);
  border-radius: 99px;
  cursor: pointer;
  transition: var(--trans);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: var(--branco);
  border-radius: 50%;
  transition: var(--trans);
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--verde); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
