@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --bg-deep: #07070a;
  --bg-card: rgba(18, 18, 24, 0.85);
  --bg-card-solid: #121218;
  --bg-card-hover: rgba(26, 26, 36, 0.95);
  --border-subtle: rgba(225, 29, 72, 0.18);
  --border-glow: rgba(225, 29, 72, 0.45);
  
  --crimson: #e11d48;
  --crimson-hover: #f43f5e;
  --crimson-dark: #881337;
  --crimson-glow: rgba(225, 29, 72, 0.35);

  --gold: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.3);
  
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --cat-trono: #f59e0b;
  --cat-chao: #94a3b8;
  --cat-espera: #38bdf8;
  --cat-pet: #10b981;
  --cat-sissy: #f472b6;
  --cat-contencao: #ef4444;

  --font-serif: 'Cinzel', serif;
  --font-sans: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(136, 19, 55, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(225, 29, 72, 0.12) 0%, transparent 45%),
    linear-gradient(180deg, #07070a 0%, #0d0d14 100%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #09090d;
}
::-webkit-scrollbar-thumb {
  background: #2a2a38;
  border-radius: 4px;
  border: 1px solid rgba(225, 29, 72, 0.2);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson);
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
}

/* Typography */
h1, h2, h3, h4, .brand-title {
  font-family: var(--font-serif);
  letter-spacing: 0.5px;
  font-weight: 700;
}

.text-gold { color: var(--gold); }
.text-crimson { color: var(--crimson); }
.text-emerald { color: var(--emerald); }
.text-muted { color: var(--text-muted); }

/* Header & Nav */
.main-header {
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--crimson-dark), var(--crimson));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 0 16px var(--crimson-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.brand-title {
  font-size: 1.35rem;
  background: linear-gradient(90deg, #fff 0%, #cbd5e1 50%, #fda4af 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--crimson);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--crimson) 0%, #be123c 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--crimson-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--crimson-hover) 0%, var(--crimson) 100%);
  box-shadow: 0 6px 24px rgba(225, 29, 72, 0.55);
  transform: translateY(-2px);
  color: #fff;
}

.btn-secondary {
  background: rgba(30, 30, 42, 0.8);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.btn-secondary:hover {
  background: rgba(45, 45, 62, 0.95);
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #fff;
  box-shadow: 0 4px 18px var(--gold-glow);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Glass Cards */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  border-color: var(--border-glow);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.card-title {
  font-size: 1.25rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-box {
  background: rgba(22, 22, 32, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-subtle);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(225, 29, 72, 0.12);
  color: var(--crimson);
  border: 1px solid rgba(225, 29, 72, 0.25);
}

.stat-box.stat-gold .stat-icon {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.25);
}

.stat-box.stat-emerald .stat-icon {
  background: rgba(16, 185, 129, 0.12);
  color: var(--emerald);
  border-color: rgba(16, 185, 129, 0.25);
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1.1;
  color: #fff;
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Progress Bar */
.progress-container {
  background: rgba(10, 10, 15, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  height: 16px;
  position: relative;
  overflow: hidden;
  margin: 12px 0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #9f1239 0%, var(--crimson) 70%, var(--gold) 100%);
  border-radius: 20px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--crimson-glow);
}

/* Sorteador Section */
.drawer-banner {
  background: linear-gradient(135deg, rgba(35, 10, 20, 0.9) 0%, rgba(20, 15, 25, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.35);
  box-shadow: 0 0 35px rgba(225, 29, 72, 0.15);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  position: relative;
  margin-bottom: 28px;
}

.drawer-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--crimson), var(--gold), transparent);
}

.deck-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.15);
  color: #fda4af;
  border: 1px solid rgba(225, 29, 72, 0.3);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.drawer-title {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 10px;
}

.drawer-desc {
  max-width: 600px;
  margin: 0 auto 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Active Session Card */
.active-session-card {
  background: linear-gradient(145deg, rgba(28, 12, 18, 0.95) 0%, rgba(18, 18, 26, 0.95) 100%);
  border: 2px solid var(--crimson);
  box-shadow: 0 0 30px rgba(225, 29, 72, 0.25);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 28px;
  position: relative;
}

.active-session-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: linear-gradient(135deg, var(--crimson), #9f1239);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.5);
}

.session-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-trono { background: rgba(245, 158, 11, 0.15); color: var(--cat-trono); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-chao { background: rgba(148, 163, 184, 0.15); color: var(--cat-chao); border: 1px solid rgba(148, 163, 184, 0.3); }
.badge-espera { background: rgba(56, 189, 248, 0.15); color: var(--cat-espera); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge-pet { background: rgba(16, 185, 129, 0.15); color: var(--cat-pet); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-sissy { background: rgba(244, 114, 182, 0.15); color: var(--cat-sissy); border: 1px solid rgba(244, 114, 182, 0.3); }
.badge-contencao { background: rgba(239, 68, 68, 0.15); color: var(--cat-contencao); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-cbt { background: rgba(220, 38, 38, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.4); font-weight: 700; }
.badge-predicament { background: rgba(168, 85, 247, 0.2); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.4); font-weight: 700; }
.badge-selfbondage { background: rgba(234, 179, 8, 0.2); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.4); font-weight: 700; }
.badge-breathplay { background: rgba(14, 165, 233, 0.2); color: #38bdf8; border: 1px solid rgba(14, 165, 233, 0.45); font-weight: 700; }
.badge-banheiro { background: rgba(20, 184, 166, 0.2); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.45); font-weight: 700; }
.badge-maquinas { background: rgba(239, 68, 68, 0.2); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.45); font-weight: 700; }
.badge-objeto { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.45); font-weight: 700; }
.badge-mimo { background: rgba(244, 114, 182, 0.2); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.4); font-weight: 700; }
.badge-massagem { background: rgba(251, 113, 133, 0.2); color: #fb7185; border: 1px solid rgba(251, 113, 133, 0.4); font-weight: 700; }
.badge-brincadeira { background: rgba(253, 224, 71, 0.2); color: #fde047; border: 1px solid rgba(253, 224, 71, 0.4); font-weight: 700; }
.badge-carinho { background: rgba(236, 72, 153, 0.2); color: #f43f5e; border: 1px solid rgba(236, 72, 153, 0.4); font-weight: 700; }
.badge-baralho-baunilha { background: rgba(244, 114, 182, 0.18); color: #f472b6; border: 1px solid rgba(244, 114, 182, 0.4); font-weight: 700; }
.badge-baralho-extremo { background: rgba(225, 29, 72, 0.18); color: #fda4af; border: 1px solid rgba(225, 29, 72, 0.4); font-weight: 700; }

.badge-hum-leve { background: rgba(16, 185, 129, 0.15); color: #86efac; border: 1px solid rgba(16, 185, 129, 0.3); font-weight: 600; }
.badge-hum-moderada { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-hum-intensa { background: rgba(249, 115, 22, 0.15); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-hum-extrema { background: rgba(225, 29, 72, 0.2); color: #fda4af; border: 1px solid var(--crimson); font-weight: 700; }

.badge-tempo {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Detail Box */
.detail-block {
  background: rgba(12, 12, 16, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-top: 14px;
}

.detail-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--crimson);
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-text {
  color: #f1f5f9;
  font-size: 0.95rem;
}

/* Pet Status Live Pill */
.pet-live-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pet-live-ready {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  color: #6ee7b7;
}

.pet-live-waiting {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fcd34d;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulse 1.8s infinite;
}

.pulse-dot.dot-yellow {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

/* Interactive Rating Chips (1-10) */
.rating-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}

.rating-chip {
  cursor: pointer;
}

.rating-chip input[type="radio"] {
  display: none;
}

.rating-chip span {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(25, 25, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.rating-chip:hover span {
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-2px);
}

.rating-chip input[type="radio"]:checked + span {
  background: linear-gradient(135deg, var(--crimson), #9f1239);
  color: #fff;
  border-color: #fda4af;
  box-shadow: 0 0 16px var(--crimson-glow);
  transform: scale(1.08);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  background: rgba(14, 14, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 12px var(--crimson-glow);
  background: rgba(20, 20, 30, 0.95);
}

textarea.form-control {
  min-height: 90px;
  resize: vertical;
}

/* Table Styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.table-modern {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.table-modern th {
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-align: left;
  border: none;
}

.table-modern td {
  padding: 14px 16px;
  background: rgba(20, 20, 28, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 0.92rem;
}

.table-modern tr td:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.table-modern tr td:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.table-modern tr:hover td {
  background: rgba(30, 30, 42, 0.85);
  border-color: rgba(225, 29, 72, 0.25);
}

/* Flash Messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.92rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
}

.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid var(--emerald);
  color: #6ee7b7;
}

.alert-danger {
  background: rgba(225, 29, 72, 0.18);
  border: 1px solid var(--crimson);
  color: #fda4af;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--gold);
  color: #fcd34d;
}

/* Pet View Styles */
.pet-body {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(136, 19, 55, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #050508 0%, #0a0a12 100%);
}

.pet-hero {
  text-align: center;
  padding: 30px 15px 20px;
}

.pet-card {
  background: rgba(18, 18, 26, 0.9);
  border: 2px solid rgba(225, 29, 72, 0.4);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 29, 72, 0.15);
  max-width: 650px;
  margin: 0 auto 30px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(25, 25, 35, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checklist-item:hover {
  background: rgba(35, 35, 48, 0.8);
  border-color: rgba(225, 29, 72, 0.3);
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--crimson);
  margin-top: 2px;
}

.checklist-item.checked {
  opacity: 0.65;
  text-decoration: line-through;
  border-color: var(--emerald);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .drawer-title {
    font-size: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .rating-chip span {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================================
   SISTEMA DE CHAT & ORDENS EM TEMPO REAL (DONA & PET)
   ======================================================== */
.chat-section {
  margin-top: 30px;
  margin-bottom: 35px;
}

.chat-card {
  background: rgba(14, 12, 18, 0.94);
  border: 1px solid rgba(225, 29, 72, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(225, 29, 72, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.chat-card.pet-theme {
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.18);
}

.chat-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  background: rgba(22, 14, 22, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
  gap: 12px;
}

.chat-partner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-partner-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4c0519, #e11d48);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 0 14px var(--crimson-glow);
}

.pet-theme .chat-partner-avatar {
  background: linear-gradient(135deg, #2e1065, #7e22ce);
  border-color: #c084fc;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.4);
}

.chat-partner-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.chat-online-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #86efac;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.chat-messages-box {
  height: 380px;
  max-height: 440px;
  overflow-y: auto;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: 
    radial-gradient(circle at 50% 10%, rgba(225, 29, 72, 0.05) 0%, transparent 60%),
    linear-gradient(180deg, #0a080d 0%, #0d0a12 100%);
  scroll-behavior: smooth;
}

.chat-messages-box::-webkit-scrollbar {
  width: 6px;
}
.chat-messages-box::-webkit-scrollbar-thumb {
  background: rgba(225, 29, 72, 0.3);
  border-radius: 4px;
}
.pet-theme .chat-messages-box::-webkit-scrollbar-thumb {
  background: rgba(168, 85, 247, 0.3);
}

.chat-empty-notice {
  margin: auto;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-style: italic;
  padding: 20px;
}

.chat-bubble-row {
  display: flex;
  width: 100%;
}

.chat-bubble-row.msg-minha {
  justify-content: flex-end;
}

.chat-bubble-row.msg-outra {
  justify-content: flex-start;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 14px;
  position: relative;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  word-break: break-word;
}

.bubble-dona .chat-bubble {
  background: linear-gradient(135deg, rgba(46, 8, 20, 0.95), rgba(28, 6, 14, 0.95));
  border: 1px solid rgba(225, 29, 72, 0.45);
  color: #fff;
}

.bubble-pet .chat-bubble {
  background: linear-gradient(135deg, rgba(32, 14, 48, 0.95), rgba(18, 10, 28, 0.95));
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #f1f5f9;
}

.chat-bubble.chat-bubble-ordem {
  border: 2px solid var(--gold);
  background: linear-gradient(135deg, rgba(76, 5, 25, 0.98), rgba(35, 6, 14, 0.98));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), 0 0 10px rgba(225, 29, 72, 0.5);
  animation: pulseOrdem 2.5s infinite;
}

@keyframes pulseOrdem {
  0% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.25); }
  50% { box-shadow: 0 0 24px rgba(245, 158, 11, 0.55), 0 0 12px rgba(225, 29, 72, 0.4); }
  100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.25); }
}

.chat-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 0.74rem;
}

.chat-autor {
  font-weight: 700;
  letter-spacing: 0.5px;
}
.autor-dona {
  color: #fda4af;
}
.autor-pet {
  color: #d8b4fe;
}

.chat-hora {
  color: var(--text-dim);
  font-size: 0.7rem;
}

.badge-ordem {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fef08a;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid var(--gold);
  padding: 1px 6px;
  border-radius: 4px;
}

.badge-penitencia {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fda4af;
  background: rgba(225, 29, 72, 0.2);
  border: 1px solid var(--crimson);
  padding: 1px 6px;
  border-radius: 4px;
}

.chat-bubble-text {
  color: #f8fafc;
  font-size: 0.92rem;
  white-space: pre-wrap;
}

.chat-bubble.chat-bubble-ordem .chat-bubble-text {
  font-size: 1.02rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.2px;
}

/* Ações Rápidas de Ordens e Respostas */
.chat-quick-wrapper {
  padding: 10px 18px;
  background: rgba(18, 14, 24, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.chat-quick-wrapper::-webkit-scrollbar {
  height: 4px;
}
.chat-quick-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.chat-quick-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-right: 4px;
}

.btn-quick-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-quick-chip:hover {
  background: rgba(225, 29, 72, 0.2);
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-1px);
}

.pet-theme .btn-quick-chip:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: #a855f7;
  color: #fff;
}

/* Rodapé de Envio */
.chat-footer-bar {
  padding: 14px 18px;
  background: rgba(14, 10, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-controls-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
}

.chat-ordem-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.chat-ordem-toggle input {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}

.chat-form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.chat-input {
  flex: 1;
  background: rgba(6, 6, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: all 0.25s ease;
}

.chat-input:focus {
  border-color: var(--crimson);
  box-shadow: 0 0 12px var(--crimson-glow);
  background: rgba(12, 6, 10, 0.9);
}

.pet-theme .chat-input:focus {
  border-color: #a855f7;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.35);
  background: rgba(10, 6, 16, 0.9);
}

.btn-chat-send {
  background: linear-gradient(135deg, var(--crimson), #be123c);
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-chat-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px var(--crimson-glow);
}

.pet-theme .btn-chat-send {
  background: linear-gradient(135deg, #7e22ce, #9333ea);
  border-color: #c084fc;
}

.pet-theme .btn-chat-send:hover {
  box-shadow: 0 4px 18px rgba(168, 85, 247, 0.5);
}

/* Botão Flutuante de Acesso Rápido ao Chat */
.chat-fab-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: linear-gradient(135deg, #be123c, #e11d48);
  border: 2px solid var(--gold);
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px var(--crimson-glow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.chat-fab-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px var(--crimson-glow);
  color: #fff;
}

.pet-theme-fab {
  background: linear-gradient(135deg, #6b21a8, #9333ea);
  border-color: #c084fc;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.5);
}

.pet-theme-fab:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 25px rgba(168, 85, 247, 0.7);
}

/* ========================================================
   TEMA ANGELICAL & BAUNILHA (MODO DOMINADORA = 0)
   Ambiente claro, charmoso, angelical, bem fofinho e floral
   Paleta: Branco perolado, rosa pastel, ouro meigo, blush e lavanda
   ======================================================== */
body.theme-angelical {
  --bg-deep: #fff7fa;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-solid: #ffffff;
  --bg-card-hover: #fff0f5;
  --border-subtle: rgba(244, 114, 182, 0.35);
  --border-glow: rgba(244, 114, 182, 0.65);
  
  --crimson: #ec4899;
  --crimson-hover: #db2777;
  --crimson-dark: #be185d;
  --crimson-glow: rgba(236, 72, 153, 0.25);

  --gold: #d97706;
  --gold-glow: rgba(245, 158, 11, 0.25);

  --text-main: #2a1224;
  --text-muted: #6b3e60;
  --text-dim: #946989;

  background-color: #fff7fa;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(253, 226, 236, 0.85) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(254, 243, 199, 0.75) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(252, 231, 243, 0.5) 0%, transparent 65%),
    linear-gradient(180deg, #fff7fa 0%, #fff1f6 100%);
  background-attachment: fixed;
  color: #2a1224;
}

body.theme-angelical .main-header {
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 2px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 4px 25px rgba(244, 114, 182, 0.15);
}

body.theme-angelical .brand-title {
  color: #831843;
  text-shadow: 0 0 15px rgba(244, 114, 182, 0.3);
}

body.theme-angelical .brand-subtitle {
  color: #be185d;
  font-weight: 600;
}

body.theme-angelical .brand-icon {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 2px solid #f472b6;
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.35);
}

body.theme-angelical .card {
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.32);
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08), 0 2px 10px rgba(0, 0, 0, 0.03);
}

body.theme-angelical .card-header {
  border-bottom-color: rgba(244, 114, 182, 0.2);
}

body.theme-angelical .card-title {
  color: #831843;
}

body.theme-angelical .card-subtitle {
  color: #9d5c89;
}

body.theme-angelical .metric-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f8 100%);
  border: 1px solid rgba(244, 114, 182, 0.3);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.07);
}

body.theme-angelical .metric-value {
  color: #be185d;
}

body.theme-angelical .metric-label {
  color: #6b3e60;
}

body.theme-angelical .btn-primary {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #f59e0b 100%);
  border: 1px solid #fbcfe8;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(236, 72, 153, 0.35);
}
body.theme-angelical .btn-primary:hover {
  background: linear-gradient(135deg, #db2777 0%, #ec4899 50%, #d97706 100%);
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.5);
  color: #ffffff;
}

body.theme-angelical .btn-secondary {
  background: #fff0f5;
  border: 1px solid rgba(244, 114, 182, 0.4);
  color: #831843;
}
body.theme-angelical .btn-secondary:hover {
  background: #fce7f3;
  color: #500724;
}

body.theme-angelical .form-select,
body.theme-angelical .form-control {
  background-color: #ffffff;
  border-color: rgba(244, 114, 182, 0.4);
  color: #33152c;
}
body.theme-angelical .form-select:focus,
body.theme-angelical .form-control:focus {
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.25);
  background-color: #ffffff;
}

body.theme-angelical .form-label {
  color: #6b3e60;
  font-weight: 600;
}

body.theme-angelical .card-deck-visual {
  background: linear-gradient(135deg, #fdf2f8 0%, #fff7fa 50%, #fef3c7 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 10px 30px rgba(236, 72, 153, 0.2), 0 0 15px rgba(251, 191, 36, 0.2);
  color: #831843;
}

body.theme-angelical .deck-emblem {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  border: 2px solid #f472b6;
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.3);
}

body.theme-angelical .active-session-card {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f8 50%, #fefce8 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 12px 35px rgba(236, 72, 153, 0.15), 0 0 20px rgba(251, 191, 36, 0.15);
  color: #2a1224;
}

body.theme-angelical .active-session-title {
  color: #831843;
}

body.theme-angelical .active-session-badge {
  background: linear-gradient(135deg, #db2777, #f472b6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(236, 72, 153, 0.35);
}

body.theme-angelical .detail-block {
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.28);
  box-shadow: 0 3px 12px rgba(236, 72, 153, 0.05);
}

body.theme-angelical .detail-label {
  color: #be185d;
  font-weight: 700;
}

body.theme-angelical .detail-value {
  color: #33152c;
}

body.theme-angelical .table-modern th {
  background: #fce7f3;
  color: #831843;
  border-bottom: 2px solid rgba(244, 114, 182, 0.4);
}

body.theme-angelical .table-modern td {
  border-bottom-color: rgba(244, 114, 182, 0.18);
  color: #2a1224;
}

body.theme-angelical .table-modern tr:hover td {
  background: #fff0f5;
}

body.theme-angelical .badge-cat {
  background: #fce7f3;
  color: #831843;
  border: 1px solid rgba(244, 114, 182, 0.35);
}

/* Banner de Modo Ativo (Aviso de Templo) */
.modo-banner-angelical {
  background: linear-gradient(135deg, #fdf2f8 0%, #fff7fa 100%);
  border: 2px solid rgba(244, 114, 182, 0.5);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: 0 6px 25px rgba(236, 72, 153, 0.12);
}

/* Portal do Submisso no Modo Angelical (Claro, Delicado & Fofinho) */
body.theme-angelical.pet-body {
  background-color: #fff7fa;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(244, 114, 182, 0.3) 0%, transparent 60%),
    radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #fff7fa 0%, #fff1f6 100%);
  color: #2a1224;
}

body.theme-angelical .pet-top-bar {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(244, 114, 182, 0.4);
  box-shadow: 0 4px 20px rgba(244, 114, 182, 0.15);
}

body.theme-angelical .pet-name-pill {
  background: #fce7f3;
  color: #831843;
  border: 1px solid #f472b6;
}

body.theme-angelical .order-card {
  background: linear-gradient(145deg, #ffffff 0%, #fff5f8 50%, #fefce8 100%);
  border: 2px solid rgba(244, 114, 182, 0.55);
  box-shadow: 0 10px 40px rgba(236, 72, 153, 0.15);
}

body.theme-angelical .thermometer-card {
  background: #ffffff;
  border: 2px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 10px 35px rgba(236, 72, 153, 0.12);
}

body.theme-angelical .prep-box {
  background: #fff7fa;
  border-color: rgba(244, 114, 182, 0.35);
}

body.theme-angelical .checklist-item {
  background: #ffffff;
  border-color: rgba(244, 114, 182, 0.25);
  color: #2a1224;
}
body.theme-angelical .checklist-item:hover {
  background: #fff0f5;
}

body.theme-angelical .chat-floating-btn {
  background: linear-gradient(135deg, #ec4899, #f472b6);
  box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

body.theme-angelical .chat-modal-window {
  background: #ffffff;
  border: 2px solid rgba(244, 114, 182, 0.45);
  box-shadow: 0 15px 50px rgba(236, 72, 153, 0.2);
}

body.theme-angelical .chat-modal-header {
  background: linear-gradient(135deg, #fdf2f8, #fce7f3);
  border-bottom: 1px solid rgba(244, 114, 182, 0.3);
}

body.theme-angelical .chat-body-messages {
  background: #fff7fa;
}

body.theme-angelical .chat-bubble.msg-dona {
  background: linear-gradient(135deg, #fce7f3, #fbcfe8);
  color: #831843;
  border: 1px solid rgba(244, 114, 182, 0.4);
}

body.theme-angelical .chat-bubble.msg-pet {
  background: #ffffff;
  color: #2a1224;
  border: 1px solid rgba(244, 114, 182, 0.25);
}

/* ========================================================
   TEMA TREVAS & BDSM PESADO (MODO DOMINADORA = 1)
   Ambiente dark gótico, obsidian, rubro/crimson profundo, ferro e couro
   ======================================================== */
body.theme-trevas {
  --bg-deep: #050508;
  --bg-card: rgba(14, 14, 18, 0.9);
  --bg-card-solid: #0e0e14;
  --bg-card-hover: rgba(22, 22, 30, 0.98);
  --border-subtle: rgba(225, 29, 72, 0.25);
  --border-glow: rgba(225, 29, 72, 0.6);
  
  --crimson: #e11d48;
  --crimson-hover: #f43f5e;
  --crimson-dark: #881337;
  --crimson-glow: rgba(225, 29, 72, 0.45);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  background-color: #040406;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(136, 19, 55, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 85% 85%, rgba(225, 29, 72, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, #050507 0%, #09090e 100%);
  background-attachment: fixed;
  color: var(--text-main);
}

/* ========================================================
   ALERTAS ELEGANTES (ESTILO LUXUOSO / INTEGRADO AO TEMA)
   ======================================================== */
.alert {
  padding: 16px 22px;
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
  animation: alertPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes alertPopIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

/* Alertas Sombrios (Padrão e Trevas) */
.alert-success,
body.theme-trevas .alert-success {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(8, 28, 20, 0.92) 100%);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #a7f3d0;
}
.alert-success::before,
body.theme-trevas .alert-success::before {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

.alert-danger,
body.theme-trevas .alert-danger {
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.2) 0%, rgba(30, 8, 14, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.55);
  color: #fecdd3;
}
.alert-danger::before,
body.theme-trevas .alert-danger::before {
  background: #e11d48;
  box-shadow: 0 0 14px #e11d48;
}

.alert-warning,
body.theme-trevas .alert-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(35, 20, 8, 0.92) 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fef08a;
}
.alert-warning::before,
body.theme-trevas .alert-warning::before {
  background: #f59e0b;
  box-shadow: 0 0 12px #f59e0b;
}

.alert-info,
body.theme-trevas .alert-info {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(10, 25, 38, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}
.alert-info::before,
body.theme-trevas .alert-info::before {
  background: #38bdf8;
  box-shadow: 0 0 12px #38bdf8;
}

/* Alertas Angelicais (Claros, Acolhedores e com Glow Floral) */
body.theme-angelical .alert-success {
  background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 100%);
  border: 1px solid rgba(244, 114, 182, 0.6);
  color: #831843;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.15);
}
body.theme-angelical .alert-success::before {
  background: #ec4899;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
}

body.theme-angelical .alert-danger {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid rgba(244, 63, 94, 0.5);
  color: #9f1239;
  box-shadow: 0 8px 25px rgba(244, 63, 94, 0.15);
}
body.theme-angelical .alert-danger::before {
  background: #f43f5e;
}

body.theme-angelical .alert-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #92400e;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
}
body.theme-angelical .alert-warning::before {
  background: #f59e0b;
}

body.theme-angelical .alert-info {
  background: linear-gradient(135deg, #ffffff 0%, #fce7f3 100%);
  border: 1px solid rgba(244, 114, 182, 0.55);
  color: #701a75;
  box-shadow: 0 8px 25px rgba(236, 72, 153, 0.12);
}
body.theme-angelical .alert-info::before {
  background: #f472b6;
}

/* ========================================================
   CHAT: INPUT MODERNO, BOTÃO DE FOTOS & PRÉ-VISUALIZAÇÃO
   ======================================================== */
.chat-btn-attach {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  background: rgba(225, 29, 72, 0.15);
  border: 1.5px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  outline: none;
}
.chat-btn-attach:hover {
  transform: scale(1.08) translateY(-1px);
  background: rgba(225, 29, 72, 0.25);
  border-color: var(--crimson);
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.45);
  color: #fff;
}
.chat-btn-attach:active {
  transform: scale(0.96);
}

body.theme-angelical .chat-btn-attach {
  background: #fdf2f8;
  border: 1.5px solid rgba(244, 114, 182, 0.5);
  color: #be185d;
  box-shadow: 0 4px 14px rgba(244, 114, 182, 0.2);
}
body.theme-angelical .chat-btn-attach:hover {
  background: #fce7f3;
  border-color: #ec4899;
  box-shadow: 0 0 16px rgba(236, 72, 153, 0.35);
  color: #831843;
}

/* Área de Pré-visualização da Foto/Arquivo */
.chat-file-preview-bar {
  padding: 10px 16px;
  background: rgba(10, 10, 16, 0.95);
  border-top: 1px solid rgba(225, 29, 72, 0.25);
}
body.theme-angelical .chat-file-preview-bar {
  background: #fff0f5;
  border-top-color: rgba(244, 114, 182, 0.35);
}

.chat-file-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(25, 20, 30, 0.85);
  border: 1.5px solid rgba(225, 29, 72, 0.45);
  border-radius: 14px;
  padding: 8px 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
body.theme-angelical .chat-file-preview-card {
  background: #ffffff;
  border: 1.5px solid #f472b6;
  box-shadow: 0 6px 20px rgba(244, 114, 182, 0.15);
}

.chat-preview-thumb-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.chat-preview-thumb-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.chat-preview-meta {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-preview-name {
  font-size: 0.88rem;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 250px;
}
body.theme-angelical .chat-preview-name {
  color: #831843;
}

.chat-preview-size {
  font-size: 0.74rem;
  color: #94a3b8;
  margin-top: 2px;
}
body.theme-angelical .chat-preview-size {
  color: #be185d;
}

.chat-preview-btn-remove {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fda4af;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.chat-preview-btn-remove:hover {
  background: var(--crimson);
  color: #fff;
  transform: scale(1.1);
}
body.theme-angelical .chat-preview-btn-remove {
  background: #fce7f3;
  color: #be185d;
}
body.theme-angelical .chat-preview-btn-remove:hover {
  background: #ec4899;
  color: #fff;
}

/* Indicador de Drag & Drop ativo */
.chat-drag-active {
  outline: 2px dashed var(--crimson) !important;
  outline-offset: -8px;
  background: rgba(225, 29, 72, 0.08) !important;
}
body.theme-angelical .chat-drag-active {
  outline-color: #ec4899 !important;
  background: rgba(244, 114, 182, 0.1) !important;
}

/* Rodapé / Input Bar Moderno */
.chat-modal-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(14, 14, 20, 0.95);
  border-top: 1px solid rgba(225, 29, 72, 0.25);
  box-sizing: border-box;
}
body.theme-angelical .chat-modal-footer {
  background: #ffffff;
  border-top-color: rgba(244, 114, 182, 0.3);
}

.chat-modal-footer input[type="text"],
#chatInput {
  flex: 1;
  background: rgba(25, 25, 35, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: 26px;
  padding: 12px 20px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 46px;
  box-sizing: border-box;
}
.chat-modal-footer input[type="text"]:focus,
#chatInput:focus {
  border-color: var(--crimson);
  background: rgba(20, 15, 22, 0.95);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.22), 0 0 18px rgba(225, 29, 72, 0.35);
}

body.theme-angelical .chat-modal-footer input[type="text"],
body.theme-angelical #chatInput {
  background: #fff7fa;
  border: 1.5px solid rgba(244, 114, 182, 0.4);
  color: #2a1224;
}
body.theme-angelical .chat-modal-footer input[type="text"]:focus,
body.theme-angelical #chatInput:focus {
  background: #ffffff;
  border-color: #ec4899;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.22), 0 0 18px rgba(236, 72, 153, 0.25);
}

.chat-modal-footer .btn-primary,
#btnEnviarChat {
  border-radius: 24px;
  padding: 10px 22px;
  min-height: 46px;
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.chat-modal-footer .btn-primary:hover,
#btnEnviarChat:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(225, 29, 72, 0.5);
}

.chat-media-attachment {
  margin: 6px 0 8px;
}

.chat-photo-thumbnail {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.chat-photo-thumbnail:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.chat-file-download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  margin: 6px 0;
  transition: background 0.2s;
}
.chat-file-download-link:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ========================================================
   BOTÃO SUTIL DE TESTE (SEM REFERÊNCIA A WEBMASTER)
   ======================================================== */
.btn-subtil-toggle {
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.25;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 4px;
  transition: opacity 0.3s, color 0.3s;
  line-height: 1;
}
.btn-subtil-toggle:hover {
  opacity: 0.85;
}

/* ========================================================
   RESPONSIVIDADE COMPLETA PARA CELULAR & TABLET
   ======================================================== */
@media (max-width: 768px) {
  .container {
    padding: 14px 12px !important;
  }

  .main-header .header-content {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .main-header .brand {
    justify-content: center !important;
    text-align: center !important;
  }

  .main-header .brand-title {
    font-size: 1.35rem !important;
  }

  .main-header .brand-subtitle {
    font-size: 0.78rem !important;
  }

  .main-header .header-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .main-header .header-actions .btn {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 10px 12px !important;
    font-size: 0.85rem !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .metric-card {
    padding: 14px !important;
  }

  .metric-value {
    font-size: 1.5rem !important;
  }

  .details-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .grid-2-col {
    grid-template-columns: 1fr !important;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .card {
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
  }

  .card-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .card-title {
    font-size: 1.15rem !important;
  }

  /* Chat Flutuante & Modal Responsivo no Celular */
  .chat-floating-btn {
    bottom: 24px !important;
    right: 20px !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 28px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7) !important;
    z-index: 9999 !important;
  }

  .chat-modal-window {
    width: 100% !important;
    max-width: 100% !important;
    height: 90vh !important;
    max-height: 90vh !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    border-radius: 24px 24px 0 0 !important;
    box-shadow: 0 -12px 50px rgba(0, 0, 0, 0.85) !important;
    z-index: 10000 !important;
  }

  .chat-body-messages {
    padding: 14px !important;
    -webkit-overflow-scrolling: touch;
  }

  .chat-modal-footer {
    padding: 12px 14px !important;
  }

  /* Tabelas Adaptáveis com Rolagem Touch Suave */
  .table-responsive {
    width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px !important;
  }

  .table-modern th,
  .table-modern td {
    padding: 12px 10px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
  }

  .table-modern th:nth-child(2),
  .table-modern td:nth-child(2) {
    white-space: normal !important;
    min-width: 160px !important;
  }

  .pet-container {
    padding: 14px 12px 90px !important;
  }

  .order-title {
    font-size: 1.4rem !important;
  }

  .order-card {
    padding: 20px 16px !important;
  }
}

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

  .card-deck-visual {
    width: 130px !important;
    height: 175px !important;
  }
}


/* ========================================================
   CARDS DE SELEÇÃO DE INTENSIDADE & CATEGORIA (SUBSTITUI LISTBOX)
   ======================================================== */
.filter-section {
  margin-bottom: 22px;
  text-align: left;
}

.filter-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  color: var(--crimson);
}

body.theme-angelical .filter-section-title {
  color: #be185d;
}

.cards-select-grid {
  display: grid;
  gap: 10px;
  width: 100%;
}

.cards-intensidade-grid {
  grid-template-columns: repeat(4, 1fr);
}

.cards-category-grid {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.card-radio-item {
  position: relative;
  cursor: pointer;
  margin: 0;
  user-select: none;
  display: block;
}

.card-radio-item input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.card-radio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 8px;
  min-height: 88px;
  border-radius: 12px;
  background: rgba(18, 18, 26, 0.75);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.theme-angelical .card-radio-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(244, 114, 182, 0.35);
  color: #831843;
  box-shadow: 0 4px 12px rgba(244, 114, 182, 0.1);
}

.card-radio-item:hover .card-radio-box {
  transform: translateY(-2px);
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
}

body.theme-angelical .card-radio-item:hover .card-radio-box {
  border-color: #f472b6;
  box-shadow: 0 6px 16px rgba(244, 114, 182, 0.25);
}

/* Card Selecionado (Checked) */
.card-radio-item input[type="radio"]:checked + .card-radio-box {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.55) 0%, rgba(225, 29, 72, 0.25) 100%);
  border: 2px solid var(--crimson);
  color: #fff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.45);
}

body.theme-angelical .card-radio-item input[type="radio"]:checked + .card-radio-box {
  background: linear-gradient(135deg, #fff0f5 0%, #fce7f3 100%);
  border: 2px solid #ec4899;
  color: #831843;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 20px rgba(236, 72, 153, 0.35);
}

.card-radio-icon {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 6px;
  transition: transform 0.2s ease;
}

.card-radio-item:hover .card-radio-icon {
  transform: scale(1.15);
}

.card-radio-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 4px;
}

.card-radio-count {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

body.theme-angelical .card-radio-count {
  background: rgba(244, 114, 182, 0.18);
  color: #be185d;
}

.card-radio-item input[type="radio"]:checked + .card-radio-box .card-radio-count {
  background: var(--crimson);
  color: #fff;
}

body.theme-angelical .card-radio-item input[type="radio"]:checked + .card-radio-box .card-radio-count {
  background: #ec4899;
  color: #fff;
}

/* Responsividade dos Cards no Mobile */
@media (max-width: 768px) {
  .cards-intensidade-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .cards-category-grid {
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
    gap: 8px !important;
  }
  .card-radio-box {
    padding: 10px 6px !important;
    min-height: 75px !important;
  }
  .card-radio-icon {
    font-size: 1.35rem !important;
  }
  .card-radio-title {
    font-size: 0.8rem !important;
  }
}

/* ========================================================
   TELA EXCLUSIVA DE CHAT (DEDICADA & ULTRA RESPONSIVA)
   ======================================================== */
.chat-screen-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
  background: var(--bg-dark);
}

body.theme-angelical .chat-screen-wrapper {
  background: #fff7fa;
  box-shadow: 0 10px 40px rgba(244, 114, 182, 0.2);
}

.chat-screen-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(15, 15, 22, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(225, 29, 72, 0.3);
  z-index: 10;
}

body.theme-angelical .chat-screen-header {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(244, 114, 182, 0.4);
}

.chat-screen-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-screen-footer-area {
  flex-shrink: 0;
  background: rgba(15, 15, 22, 0.98);
  border-top: 1px solid rgba(225, 29, 72, 0.25);
  padding: 10px 16px 16px;
  z-index: 10;
}

body.theme-angelical .chat-screen-footer-area {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(244, 114, 182, 0.3);
}

.chat-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  padding-bottom: 8px;
  margin-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.chat-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chat-quick-chip:hover {
  background: rgba(225, 29, 72, 0.25);
  border-color: var(--crimson);
  color: #fff;
  transform: translateY(-1px);
}

body.theme-angelical .chat-quick-chip {
  background: rgba(244, 114, 182, 0.12);
  color: #831843;
  border: 1px solid rgba(244, 114, 182, 0.3);
}

body.theme-angelical .chat-quick-chip:hover {
  background: rgba(244, 114, 182, 0.25);
  border-color: #ec4899;
  transform: translateY(-1px);
}

/* Lightbox Modal de Fotos */
.chat-photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.chat-photo-lightbox img {
  max-width: 95vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.chat-photo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-photo-lightbox-close:hover {
  background: rgba(225, 29, 72, 0.8);
}


/* ========================================================
   MODERNIZAÇÃO VISUAL COMPLETA DO PORTAL (LUXO & CONTEMPORÂNEO)
   ======================================================== */

/* Glassmorphism Refinado nos Cards */
.card, 
.active-session-card, 
.order-card, 
.thermometer-card {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

body.theme-trevas .card {
  background: linear-gradient(145deg, rgba(16, 16, 24, 0.85) 0%, rgba(10, 10, 16, 0.95) 100%);
  border: 1px solid rgba(225, 29, 72, 0.22);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-trevas .card:hover {
  border-color: rgba(225, 29, 72, 0.5);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(225, 29, 72, 0.25);
}

body.theme-angelical .card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(253, 242, 248, 0.9) 100%);
  border: 1px solid rgba(244, 114, 182, 0.35);
  box-shadow: 0 12px 35px rgba(244, 114, 182, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

body.theme-angelical .card:hover {
  border-color: #ec4899;
  box-shadow: 0 16px 45px rgba(244, 114, 182, 0.22);
}

/* Títulos Modernos com Gradiente */
body.theme-trevas .brand-title {
  background: linear-gradient(135deg, #ffffff 0%, #fda4af 60%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

body.theme-angelical .brand-title {
  background: linear-gradient(135deg, #831843 0%, #db2777 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Metric Cards Modernos */
.metric-card {
  background: rgba(18, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 3px solid var(--crimson);
  border-radius: 16px;
  padding: 20px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.metric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 29, 72, 0.2);
}

body.theme-angelical .metric-card {
  background: #ffffff;
  border: 1px solid rgba(244, 114, 182, 0.35);
  border-top: 3px solid #ec4899;
  box-shadow: 0 8px 24px rgba(244, 114, 182, 0.1);
}

body.theme-angelical .metric-card:hover {
  box-shadow: 0 14px 32px rgba(244, 114, 182, 0.2);
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  margin: 6px 0 2px;
}

/* Botões Modernos com Micro-elevação */
.btn {
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

/* Badges e Pílulas Modernas */
.badge {
  border-radius: 20px;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 6px 12px;
}

/* Scrollbars Modernas Finas */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.15);
}
::-webkit-scrollbar-thumb {
  background: rgba(225, 29, 72, 0.35);
  border-radius: 10px;
}
body.theme-angelical ::-webkit-scrollbar-thumb {
  background: rgba(244, 114, 182, 0.5);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--crimson);
}
body.theme-angelical ::-webkit-scrollbar-thumb:hover {
  background: #ec4899;
}


/* ========================================================
   TEMA PERVERSA & MALIGNA (MODO 2 - REINO NEGRO SUPREMO)
   ======================================================== */
body.theme-maligna {
  background-color: #020204;
  background-image: 
    radial-gradient(circle at 10% 10%, rgba(220, 38, 38, 0.18) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(153, 27, 27, 0.2) 0%, transparent 45%),
    linear-gradient(180deg, #020204 0%, #080205 50%, #030103 100%);
  background-attachment: fixed;
  color: #f1f5f9;
}

body.theme-maligna .card {
  background: linear-gradient(145deg, rgba(14, 5, 8, 0.92) 0%, rgba(6, 2, 4, 0.96) 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-maligna .card:hover {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 30px rgba(220, 38, 38, 0.35);
}

body.theme-maligna .brand-title {
  background: linear-gradient(135deg, #ffffff 0%, #fca5a5 40%, #ef4444 80%, #7f1d1d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: -0.5px;
}

body.theme-maligna .metric-card {
  background: rgba(14, 4, 7, 0.9);
  border: 1px solid rgba(220, 38, 38, 0.25);
  border-top: 3px solid #dc2626;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

body.theme-maligna .metric-card:hover {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.85), 0 0 25px rgba(220, 38, 38, 0.3);
}

body.theme-maligna ::-webkit-scrollbar-thumb {
  background: rgba(220, 38, 38, 0.5);
}
body.theme-maligna ::-webkit-scrollbar-thumb:hover {
  background: #ef4444;
}

body.theme-maligna.theme-pet {
  background-color: #010103;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(185, 28, 28, 0.25) 0%, transparent 60%),
    linear-gradient(180deg, #010103 0%, #060104 100%);
}


/* ========================================================
   MODAL DE ASCENSÃO REAL & MÁQUINA DE ESCREVER
   ======================================================== */
.ascensao-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(3, 3, 6, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ascensao-card {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(145deg, #130308 0%, #060204 100%);
  border: 2px solid rgba(225, 29, 72, 0.6);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(225, 29, 72, 0.35);
  text-align: center;
  position: relative;
}

.ascensao-crown {
  font-size: 48px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
}

.ascensao-header-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #fcd34d;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ascensao-typing-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.35);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #fda4af;
  margin-bottom: 20px;
}

.ascensao-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  animation: pulse 1.5s infinite;
}

.ascensao-message-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #e11d48;
  border-radius: 12px;
  padding: 22px 20px;
  min-height: 120px;
  color: #f8fafc;
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
  white-space: pre-line;
  margin-bottom: 24px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.ascensao-cursor {
  display: inline-block;
  color: #e11d48;
  font-weight: 700;
  animation: blinkCursor 0.8s infinite;
  margin-left: 2px;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.ascensao-choices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-ascensao {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ascensao-sim {
  background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
  color: #ffffff;
  border: 1px solid #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.45);
}

.btn-ascensao-sim:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(220, 38, 38, 0.6);
  filter: brightness(1.1);
}

.btn-ascensao-nao {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-ascensao-nao:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.animate-scale {
  animation: modalScale 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScale {
  0% { transform: scale(0.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ========================================================
   MODAL DE CONFIRMAÇÃO ELEGANTE & DIÁLOGOS SOLENES
   ======================================================== */
.dominatrix-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.dominatrix-modal-card {
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 30px 24px 24px;
  text-align: center;
  background: #111116;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  transform: scale(0.92) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

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

/* Temas do Modal */
body.theme-angelical .dominatrix-modal-card {
  background: linear-gradient(145deg, #260f1f 0%, #12070f 100%);
  border: 2px solid #f472b6;
  box-shadow: 0 15px 45px rgba(244, 114, 182, 0.35);
  color: #fdf2f8;
}

body.theme-trevas .dominatrix-modal-card {
  background: linear-gradient(145deg, #1f0b12 0%, #0c0407 100%);
  border: 2px solid #e11d48;
  box-shadow: 0 15px 45px rgba(225, 29, 72, 0.4);
  color: #fff1f2;
}

body.theme-maligna .dominatrix-modal-card {
  background: linear-gradient(145deg, #220303 0%, #060102 100%);
  border: 2px solid #dc2626;
  box-shadow: 0 15px 45px rgba(220, 38, 38, 0.55);
  color: #fee2e2;
}

.dominatrix-modal-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 16px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

body.theme-angelical .dominatrix-modal-icon-badge {
  background: rgba(244, 114, 182, 0.15);
  border-color: rgba(244, 114, 182, 0.4);
}

body.theme-trevas .dominatrix-modal-icon-badge {
  background: rgba(225, 29, 72, 0.15);
  border-color: rgba(225, 29, 72, 0.4);
}

body.theme-maligna .dominatrix-modal-icon-badge {
  background: rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
}

.dominatrix-modal-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

body.theme-angelical .dominatrix-modal-title { color: #fbcfe8; }
body.theme-trevas .dominatrix-modal-title { color: #fda4af; }
body.theme-maligna .dominatrix-modal-title { color: #fca5a5; }

.dominatrix-modal-message {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin-bottom: 24px;
  padding: 0 8px;
}

.dominatrix-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-modal-cancel,
.btn-modal-confirm {
  min-height: 48px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  border: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex: 1;
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-modal-cancel:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-modal-confirm {
  background: #334155;
  color: #ffffff;
}

body.theme-angelical .btn-modal-confirm {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  border: 1px solid #f472b6;
  box-shadow: 0 4px 18px rgba(219, 39, 119, 0.4);
}
body.theme-angelical .btn-modal-confirm:hover {
  background: linear-gradient(135deg, #f472b6 0%, #db2777 100%);
  transform: translateY(-2px);
}

body.theme-trevas .btn-modal-confirm {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border: 1px solid #fb7185;
  box-shadow: 0 4px 18px rgba(225, 29, 72, 0.4);
}
body.theme-trevas .btn-modal-confirm:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  transform: translateY(-2px);
}

body.theme-maligna .btn-modal-confirm {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  border: 1px solid #ef4444;
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.5);
}
body.theme-maligna .btn-modal-confirm:hover {
  background: linear-gradient(135deg, #ef4444 0%, #991b1b 100%);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .dominatrix-modal-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-modal-cancel, .btn-modal-confirm {
    width: 100%;
  }
}

/* ========================================================
   MATRIZ / CARDS INTERATIVOS DE AVALIAÇÃO (SUBSTITUI LISTBOX NOTA)
   ======================================================== */
.rating-matrix-wrapper {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 12px;
}

.rating-matrix-pills {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
}

@media (max-width: 900px) {
  .rating-matrix-pills {
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
  }
}

@media (max-width: 450px) {
  .rating-matrix-pills {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
  }
}

.rating-pill-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  min-height: 58px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #cbd5e1;
}

.rating-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: #ffffff;
}

.rating-pill-btn .rating-num {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.rating-pill-btn .rating-star {
  font-size: 0.72rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* Selecionado */
.rating-pill-btn.active {
  color: #ffffff;
  transform: translateY(-3px) scale(1.04);
}

body.theme-angelical .rating-pill-btn.active {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  border-color: #f472b6;
  box-shadow: 0 4px 15px rgba(219, 39, 119, 0.45);
}

body.theme-trevas .rating-pill-btn.active {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: #fb7185;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.45);
}

body.theme-maligna .rating-pill-btn.active {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  border-color: #ef4444;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.55);
}

.rating-status-bar {
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
}

body.theme-angelical .rating-status-bar { border-color: rgba(244, 114, 182, 0.3); color: #fbcfe8; }
body.theme-trevas .rating-status-bar { border-color: rgba(225, 29, 72, 0.3); color: #fda4af; }
body.theme-maligna .rating-status-bar { border-color: rgba(220, 38, 38, 0.35); color: #fca5a5; }

/* ========================================================
   CHIPS FLUIDOS E RESPONSIVOS PARA GERENCIAR (SEM LISTBOX)
   ======================================================== */
.gerenciar-filters-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 12px;
}

.filter-chips-group {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.filter-chips-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  opacity: 0.75;
  white-space: nowrap;
  min-width: 65px;
}

.filter-chips-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.category-chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex-wrap: wrap;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 768px) {
  .category-chips-scroll {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .filter-chips-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.filter-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transform: translateY(-1px);
}

.filter-chip.active {
  color: #ffffff;
  font-weight: 700;
}

body.theme-angelical .filter-chip.active {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
  border-color: #f472b6;
  box-shadow: 0 2px 10px rgba(219, 39, 119, 0.4);
}

body.theme-trevas .filter-chip.active {
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  border-color: #fb7185;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.4);
}

body.theme-maligna .filter-chip.active {
  background: linear-gradient(135deg, #dc2626 0%, #7f1d1d 100%);
  border-color: #ef4444;
  box-shadow: 0 2px 10px rgba(220, 38, 38, 0.45);
}

/* ========================================================
   MODO CONTEMPLAÇÃO (TELA CHEIA & VIGILÂNCIA IMERSIVA)
   ======================================================== */
.contemplacao-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999;
  background: radial-gradient(circle at center, #1b0409 0%, #050102 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.contemplacao-overlay.contemplacao-maligna {
  background: radial-gradient(circle at center, #2a0307 0%, #020001 100%);
  border: 4px solid #7f1d1d;
  box-shadow: inset 0 0 100px rgba(220, 38, 38, 0.45);
}
.contemplacao-overlay.contemplacao-maligna .contemplacao-crest {
  filter: drop-shadow(0 0 25px rgba(220, 38, 38, 0.9));
}
.contemplacao-overlay.contemplacao-maligna .contemplacao-badge {
  background: rgba(220, 38, 38, 0.25);
  border-color: #dc2626;
  color: #fca5a5;
}
.contemplacao-overlay.contemplacao-maligna .contemplacao-digits {
  color: #ef4444;
  text-shadow: 0 0 35px rgba(239, 68, 68, 0.8), 0 0 70px rgba(185, 28, 28, 0.4);
}

.contemplacao-overlay.contemplacao-angelical {
  background: radial-gradient(circle at center, #fdf2f8 0%, #fbcfe8 100%);
  color: #831843;
}
.contemplacao-overlay.contemplacao-angelical .contemplacao-session-title {
  color: #831843;
}
.contemplacao-overlay.contemplacao-angelical .contemplacao-digits {
  color: #db2777;
  text-shadow: 0 0 25px rgba(219, 39, 119, 0.4);
}
.contemplacao-overlay.contemplacao-angelical .contemplacao-badge {
  background: rgba(244, 114, 182, 0.25);
  border-color: #ec4899;
  color: #9d174d;
}

.contemplacao-content {
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contemplacao-crest {
  font-size: 3.6rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 25px rgba(225, 29, 72, 0.6));
  animation: pulseCrest 3s infinite ease-in-out;
}

@keyframes pulseCrest {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(225, 29, 72, 0.5)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 35px rgba(225, 29, 72, 0.9)); }
}

.contemplacao-badge {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fda4af;
  margin-bottom: 8px;
}

.contemplacao-session-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.contemplacao-timer-box {
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(225, 29, 72, 0.4);
  border-radius: 24px;
  padding: 20px 40px;
  box-shadow: 0 0 45px rgba(225, 29, 72, 0.25);
  margin-bottom: 22px;
  width: 100%;
  max-width: 360px;
}

.contemplacao-digits {
  font-family: 'Outfit', monospace;
  font-size: 3.8rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 25px rgba(225, 29, 72, 0.75);
}

.contemplacao-timer-sub {
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  color: #94a3b8;
  margin-top: 8px;
  font-weight: 600;
}

.contemplacao-command-box {
  background: rgba(255, 255, 255, 0.04);
  border-left: 3px solid #e11d48;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.95rem;
  font-style: italic;
  color: #fecdd3;
  line-height: 1.6;
  margin-bottom: 20px;
  width: 100%;
}

.contemplacao-warning-pulse {
  font-size: 0.82rem;
  color: #fca5a5;
  animation: pulseText 2.5s infinite ease-in-out;
}

@keyframes pulseText {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.btn-contemplacao-sair {
  margin-top: 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-contemplacao-sair:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.contemplacao-infraction-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  color: #ffffff;
  border: 1px solid #ef4444;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.7);
  padding: 14px 24px;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000000;
  width: calc(100% - 32px);
  max-width: 480px;
  text-align: center;
}

.contemplacao-infraction-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ========================================================
   BOTÕES DE VOZ DA SOBERANA & PENALIDADE
   ======================================================== */
.btn-queen-voice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(225, 29, 72, 0.15);
  border: 1px solid rgba(225, 29, 72, 0.4);
  color: #fda4af;
}

.btn-queen-voice:hover {
  background: rgba(225, 29, 72, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-queen-voice.voice-playing {
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(225, 29, 72, 0.6);
  animation: voicePulse 1.2s infinite ease-in-out;
}

@keyframes voicePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.btn-penalidade {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 700;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(220, 38, 38, 0.45);
  color: #fca5a5;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-penalidade:hover {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.5);
  transform: translateY(-1px);
}

/* Mantra de Rendição do Pet */
.mantra-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
  text-align: center;
}

.mantra-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #fbcfe8;
  margin: 10px 0 14px;
}

body.theme-trevas .mantra-text { color: #fda4af; }
body.theme-maligna .mantra-text { color: #fca5a5; }

/* ========================================================
   NOTIFICADOR DE MENSAGENS NÃO LIDAS (CHAT BADGE)
   ======================================================== */
.chat-badge-unread {
  display: none;
  align-items: center;
  justify-content: center;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
}
.chat-badge-pulse {
  animation: pulseChatBadge 1.8s infinite ease-in-out;
}
@keyframes pulseChatBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(220, 38, 38, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* ========================================================
   LIGHTBOX DE FOTOS EXPANDIDAS NO CHAT
   ======================================================== */
.chat-photo-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.chat-photo-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
}
.chat-photo-lightbox-modal {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.chat-photo-lightbox-modal img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}
.chat-photo-lightbox-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #dc2626;
  color: #fff;
  border: 2px solid #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.2s;
}
.chat-photo-lightbox-close:hover {
  transform: scale(1.1);
}

/* ========================================================
   PAINEL DE DECRETOS IMPERIAIS DA FASE MALIGNA
   ======================================================== */
.decretos-malignos-panel {
  background: linear-gradient(145deg, rgba(30, 6, 12, 0.8) 0%, rgba(10, 2, 4, 0.95) 100%);
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 14px;
  padding: 16px 20px;
  margin-top: 16px;
}
.decretos-malignos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.decretos-malignos-title {
  color: #fca5a5;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.decretos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}
.btn-decreto-rapido {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.12);
  color: #fca5a5;
  text-align: left;
  line-height: 1.3;
  transition: all 0.2s ease;
  width: 100%;
}
.btn-decreto-rapido:hover {
  background: #7f1d1d;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
  transform: translateY(-2px);
}
.btn-decreto-rapido span.ico {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* ========================================================
   TRIBUNAL DOS SUPLÍCIOS - STATUS BAR (FASE MALIGNA)
   ======================================================== */
.tribunal-suplicios-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(2, 2, 4, 0.7);
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 12px;
  padding: 12px 18px;
  margin-top: 16px;
}
.tribunal-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.tribunal-item-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
}
.tribunal-item-val {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fca5a5;
}

/* ========================================================
   JORNADA DO TRONO • MATURAÇÃO DO VÍNCULO SAGRADO (D/s)
   ======================================================== */
.jornada-badge-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: 24px;
  user-select: none;
  cursor: pointer;
  transition: all 0.25s ease;
}
.jornada-badge-header:hover {
  background: rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.jornada-ico {
  font-size: 1.35rem;
  line-height: 1;
}
.jornada-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.jornada-sub {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  opacity: 0.7;
}
.jornada-title {
  font-size: 0.85rem;
  font-weight: 700;
}
.jornada-stat-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

.card-jornada-maturacao {
  background: linear-gradient(145deg, rgba(18, 18, 26, 0.95) 0%, rgba(8, 8, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  margin-bottom: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
}
body.theme-angelical .card-jornada-maturacao {
  background: linear-gradient(145deg, #ffffff 0%, #fff1f2 100%);
  border: 1px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 10px 35px rgba(244, 114, 182, 0.15);
}
body.theme-maligna .card-jornada-maturacao {
  background: linear-gradient(145deg, rgba(20, 4, 8, 0.95) 0%, rgba(6, 1, 2, 0.98) 100%);
  border: 1px solid rgba(220, 38, 38, 0.35);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
}

.jornada-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
}
body.theme-angelical .jornada-header-row {
  border-bottom-color: rgba(244, 114, 182, 0.2);
}

.jornada-top-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
body.theme-angelical .jornada-top-title { color: #831843; }
body.theme-trevas .jornada-top-title { color: #f8fafc; }
body.theme-maligna .jornada-top-title { color: #fca5a5; }

.jornada-top-desc {
  font-size: 0.82rem;
  opacity: 0.8;
  margin-top: 3px;
  max-width: 620px;
  line-height: 1.45;
}

.fases-trono-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.fase-trono-card {
  border-radius: 14px;
  padding: 16px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.fase-trono-card.bloqueada {
  opacity: 0.55;
  filter: grayscale(0.4);
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed rgba(255, 255, 255, 0.15);
}
.fase-trono-card.ativa {
  border-width: 2px;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}
.fase-trono-card.fase-0 {
  background: rgba(244, 114, 182, 0.08);
  border: 1px solid rgba(244, 114, 182, 0.3);
}
.fase-trono-card.fase-0.ativa {
  border-color: #ec4899;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.25);
}
.fase-trono-card.fase-1 {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.3);
}
.fase-trono-card.fase-1.ativa {
  border-color: var(--crimson);
  box-shadow: 0 10px 25px rgba(225, 29, 72, 0.3);
}
.fase-trono-card.fase-2 {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid rgba(220, 38, 38, 0.35);
}
.fase-trono-card.fase-2.ativa {
  border-color: #dc2626;
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.4);
}

.fase-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fase-card-name {
  font-weight: 800;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fase-card-sub {
  font-size: 0.76rem;
  opacity: 0.8;
  line-height: 1.4;
  margin-bottom: 12px;
}
.fase-card-meter {
  width: 100%;
  height: 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  margin-bottom: 6px;
}
.fase-card-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.6s ease;
}
.fase-0 .fase-card-fill { background: linear-gradient(90deg, #ec4899, #f472b6); }
.fase-1 .fase-card-fill { background: linear-gradient(90deg, #be123c, #e11d48); }
.fase-2 .fase-card-fill { background: linear-gradient(90deg, #991b1b, #dc2626); }

.fase-card-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 700;
}

.btn-rito-ascensao {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  border: 1px solid #fcd34d;
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}
.btn-rito-ascensao:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.6);
}

.banner-tregua-acolhimento {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(219, 39, 119, 0.25) 100%);
  border: 1px solid rgba(236, 72, 153, 0.4);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

/* ========================================================
   MURAL DE EXPERIÊNCIAS & DIÁLOGO COMPARTILHADO (AFTERCARE)
   ======================================================== */
.mural-header-banner {
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.75) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid rgba(147, 51, 234, 0.35);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.mural-card {
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}
.mural-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}
.mural-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 18px;
}
.mural-perspectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}
.mural-box {
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 140px;
}
.mural-box-dona {
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.25);
}
.mural-box-pet {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.25);
}
.mural-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 6px;
}
.mural-box-title {
  font-weight: 800;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mural-box-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #f1f5f9;
  white-space: pre-wrap;
}
.mural-comments-wrap {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mural-comment-bubble {
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
}
.mural-comment-bubble.from-dona {
  background: rgba(225, 29, 72, 0.15);
  border-left: 3px solid #e11d48;
}
.mural-comment-bubble.from-pet {
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid #6366f1;
}
.mural-emotion-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.35);
}





