/* ============================================================
   ÉTUV'ÂGE TARIFS — Design System v2
   Modern, didactic, performant
   ============================================================ */

/* --- Tokens ------------------------------------------------- */

@font-face {
  font-family: "Formata Regular";
  src: url("/assets/fonts/formata-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Formata Bold";
  src: url("/assets/fonts/formata-bold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Formata Medium Condens";
  src: url("/assets/fonts/formata-medium-condens.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  /* Palette */
  --bg:            #0a0908;
  --bg-subtle:     #0f0d0b;
  --panel:         #141210;
  --card:          #1a1714;
  --card-hover:    #201c18;
  --accent:        #c7a166;
  --accent-strong: #e5b96b;
  --accent-glow:   rgba(199, 161, 102, 0.15);
  --accent-dim:    rgba(199, 161, 102, 0.08);
  --text:          #f4efe3;
  --text-secondary:#d4cbbe;
  --muted:         #9e9385;
  --border:        #2a241f;
  --border-light:  #332c25;
  --success:       #6ec87a;
  --success-bg:    rgba(110, 200, 122, 0.08);
  --success-border:rgba(110, 200, 122, 0.3);
  --error:         #f06b68;
  --error-bg:      rgba(240, 107, 104, 0.08);
  --error-border:  rgba(240, 107, 104, 0.3);
  --info:          #6bb3e5;
  --info-bg:       rgba(107, 179, 229, 0.08);
  --info-border:   rgba(107, 179, 229, 0.3);

  /* Shadows */
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.2);
  --shadow-md:     0 8px 24px rgba(0,0,0,0.3);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 30px rgba(199, 161, 102, 0.08);

  /* Shape */
  --radius-sm:     8px;
  --radius-md:     12px;
  --radius-lg:     16px;
  --radius-xl:     20px;
  --radius-full:   9999px;

  /* Spacing */
  --gap:           16px;
  --gap-lg:        24px;

  /* Transitions */
  --ease:          cubic-bezier(0.4, 0, 0.2, 1);
  --duration:      0.25s;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Formata Regular", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(199,161,102,0.06), transparent 40%),
    radial-gradient(ellipse at 85% 5%, rgba(199,161,102,0.04), transparent 30%),
    radial-gradient(ellipse at 50% 100%, rgba(199,161,102,0.03), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* --- Typography --------------------------------------------- */
h1, h2, h3, h4 {
  font-family: "Formata Bold", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}

h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); }
h4 { font-size: 1.05rem; }

p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover { color: var(--accent-strong); }

/* --- Topbar ------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(10, 9, 8, 0.75);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--duration) var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 16px rgba(255,255,255,0.12));
  transition: transform var(--duration) var(--ease), filter var(--duration) var(--ease);
}

.brand:hover .brand-mark {
  transform: scale(1.04);
  filter: drop-shadow(0 6px 20px rgba(255,255,255,0.18));
}

.brand-name {
  font-family: "Formata Bold", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.3px;
  color: var(--text);
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: all var(--duration) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
}

.nav-link.active {
  color: var(--accent);
  border-color: rgba(199,161,102,0.3);
  background: var(--accent-dim);
}

/* --- Page Container ----------------------------------------- */
.page {
  flex: 1;
  width: min(1080px, 92%);
  margin: 28px auto 48px;
  position: relative;
  z-index: 1;
}

/* --- Fade-in animation for page content --------------------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page > * {
  animation: fadeInUp 0.5s var(--ease) both;
}

.page > *:nth-child(1) { animation-delay: 0s; }
.page > *:nth-child(2) { animation-delay: 0.06s; }
.page > *:nth-child(3) { animation-delay: 0.12s; }
.page > *:nth-child(4) { animation-delay: 0.18s; }
.page > *:nth-child(5) { animation-delay: 0.24s; }
.page > *:nth-child(6) { animation-delay: 0.30s; }
.page > *:nth-child(7) { animation-delay: 0.36s; }
.page > *:nth-child(8) { animation-delay: 0.42s; }

/* --- Hero --------------------------------------------------- */
.hero {
  background:
    linear-gradient(135deg, rgba(199,161,102,0.12), rgba(199,161,102,0.03)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199,161,102,0.1), transparent 70%);
  pointer-events: none;
}

.hero h1,
.hero h2 {
  margin-bottom: 8px;
}

.hero p {
  font-size: 15px;
  margin-top: 12px;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
}

.hero-subtitle svg {
  width: 16px;
  height: 16px;
}

/* --- Section / Panel ---------------------------------------- */
.section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration) var(--ease);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(199,161,102,0.2);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.section-icon svg {
  width: 20px;
  height: 20px;
}

.section-header h3 {
  margin: 0;
}

.request-followup {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.request-followup-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.request-followup-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(199,161,102,0.12);
  border: 1px solid rgba(199,161,102,0.24);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.request-followup-icon svg {
  width: 30px;
  height: 30px;
}

.request-followup-copy {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.request-followup-copy h2,
.request-followup-copy p {
  margin: 0;
}

.request-followup-actions {
  display: flex;
  justify-content: flex-start;
}

.section-header p {
  font-size: 13px;
  margin: 2px 0 0;
}

/* --- Cards -------------------------------------------------- */
.card-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  position: relative;
}

.card:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-title {
  font-family: "Formata Bold", "Segoe UI", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-list-row {
  display: grid;
  grid-template-columns: 70px minmax(180px, 1.3fr) minmax(120px, 1fr) 130px 100px auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.admin-list-id {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  align-self: center;
}

.admin-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-list-order input {
  max-width: 90px;
}

.admin-list-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
  align-self: center;
}

.admin-files-group + .admin-files-group {
  margin-top: 16px;
}

.admin-files-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

/* --- Buttons ------------------------------------------------ */
button, .btn {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
  color: var(--bg);
  font-family: "Formata Medium Condens", "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  box-shadow: 0 2px 8px rgba(199,161,102,0.2);
  position: relative;
  overflow: hidden;
}

button:hover, .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(199,161,102,0.3);
  filter: brightness(1.05);
}

button:active, .btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(199,161,102,0.2);
}

button:disabled, .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

button svg, .btn svg {
  width: 16px;
  height: 16px;
}

button.secondary, .btn.secondary {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
  box-shadow: none;
}

button.secondary:hover, .btn.secondary:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: rgba(255,255,255,0.03);
  box-shadow: var(--shadow-sm);
}

button.small, .btn.small {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

button.danger, .btn.danger {
  background: var(--error);
  box-shadow: 0 2px 8px rgba(240,107,104,0.2);
}

button.danger:hover, .btn.danger:hover {
  box-shadow: 0 6px 20px rgba(240,107,104,0.3);
}

/* Icon-only button */
.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  box-shadow: none;
}

.btn-icon:hover {
  color: var(--accent);
  border-color: rgba(199,161,102,0.3);
  background: var(--accent-dim);
  transform: none;
  box-shadow: none;
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* --- Forms -------------------------------------------------- */
.form-grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.form-grid > .full-width {
  grid-column: 1 / -1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.input-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-inline input {
  flex: 1;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.3px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
input[type="number"],
input[type="search"],
select,
textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--text);
  font-family: "Formata Regular", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  transition: all var(--duration) var(--ease);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199,161,102,0.12);
  background: var(--bg);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.5;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.6;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239e9385' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* File input */
.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-input-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
}

.file-input-label svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.file-input-wrapper:hover .file-input-label,
.file-input-wrapper.has-file .file-input-label {
  border-color: rgba(199,161,102,0.4);
  background: var(--accent-dim);
  color: var(--accent);
}

/* Checkbox */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 14px;
}

.message-targets {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.message-targets .checkbox-label {
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.message-targets .checkbox-label:hover {
  border-color: var(--border-light);
  background: rgba(255,255,255,0.02);
}

.message-translate-tools {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.message-translate-tools[hidden] {
  display: none !important;
}

.message-translate-status {
  font-size: 12px;
  color: var(--muted);
}

.message-translate-status.is-success {
  color: var(--success);
}

.message-translate-status.is-error {
  color: var(--error);
}

.message-editor {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message-editor trix-toolbar {
  border-bottom: 1px solid var(--border);
  padding: 2px 0 8px;
  margin-bottom: 0;
}

.message-editor trix-editor {
  min-height: 180px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font-family: "Formata Regular", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  outline: none;
}

.message-editor trix-editor:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199,161,102,0.12);
}

.message-editor trix-editor,
.message-editor trix-editor * {
  color: var(--text);
  text-transform: none;
}

.message-editor trix-editor p,
.message-editor trix-editor h2,
.message-editor trix-editor h3,
.message-editor trix-editor h4,
.message-editor trix-editor div,
.message-editor trix-editor ul,
.message-editor trix-editor ol {
  margin: 0 0 8px;
}

.message-editor trix-editor h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.message-editor trix-editor h2,
.message-editor trix-editor h3,
.message-editor trix-editor h4 {
  color: var(--text);
}

.message-editor trix-editor p:last-child,
.message-editor trix-editor h2:last-child,
.message-editor trix-editor h3:last-child,
.message-editor trix-editor h4:last-child,
.message-editor trix-editor div:last-child,
.message-editor trix-editor ul:last-child,
.message-editor trix-editor ol:last-child {
  margin-bottom: 0;
}

.message-editor trix-editor ul,
.message-editor trix-editor ol {
  margin-left: 18px;
  padding: 0;
}

.message-editor trix-editor li {
  margin: 0 0 4px;
}

.message-editor trix-editor strong,
.message-editor trix-editor em {
  color: var(--text);
}

.message-editor trix-toolbar .trix-button-group--file-tools {
  display: none;
}

.message-editor trix-toolbar .trix-button--icon-link {
  display: none;
}

.message-editor trix-toolbar .trix-button {
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 7px;
  color: var(--text);
  transition: background var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease), color var(--duration) var(--ease);
}

.message-editor trix-toolbar .trix-button:hover {
  background: rgba(199, 161, 102, 0.12);
  border-color: rgba(199, 161, 102, 0.45);
  color: var(--text);
}

.message-editor trix-toolbar .trix-button:focus-visible {
  outline: none;
  border-color: rgba(199, 161, 102, 0.55);
  box-shadow: 0 0 0 3px rgba(199, 161, 102, 0.2);
}

.message-editor trix-toolbar .trix-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.message-editor trix-toolbar .trix-button--icon::before {
  opacity: 0.95;
  filter: brightness(0) saturate(100%) invert(94%) sepia(11%) saturate(287%) hue-rotate(355deg) brightness(97%) contrast(89%);
}

.message-editor trix-toolbar .trix-button.trix-active {
  color: var(--accent-strong);
  border-color: rgba(199, 161, 102, 0.6);
  background: rgba(199, 161, 102, 0.2);
}

.message-editor trix-toolbar .trix-button.trix-active.trix-button--icon::before {
  filter: brightness(0) saturate(100%) invert(76%) sepia(22%) saturate(765%) hue-rotate(351deg) brightness(104%) contrast(88%);
}

.message-editor trix-toolbar .trix-dialog {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  color: var(--text);
}

.message-editor trix-toolbar .trix-dialog input,
.message-editor trix-toolbar .trix-dialog button {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.message-editor trix-toolbar .trix-dialog input::placeholder {
  color: var(--muted);
}

[data-schedule-period-field][hidden],
.schedule-period-hidden {
  display: none !important;
}

.message-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.message-submit-row .checkbox-label {
  margin: 0;
}

.message-submit-row button {
  width: auto;
}

/* --- Alerts ------------------------------------------------- */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  animation: fadeInUp 0.4s var(--ease) both;
}

.alert[hidden] {
  display: none !important;
}

.alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.alert.success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success);
}

.alert.error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.alert.info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info);
}

.alert.warning {
  background: var(--accent-dim);
  border-color: rgba(199, 161, 102, 0.35);
  color: var(--accent-strong);
}

/* --- Toast notifications ------------------------------------ */
.toast-container {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastIn 0.4s var(--ease) both;
  max-width: 380px;
}

.toast.leaving {
  animation: toastOut 0.3s var(--ease) both;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}

/* --- Badge -------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-click {
  cursor: pointer;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.badge-click:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

.badge-click:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(199,161,102,0.25);
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-muted {
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid var(--border);
}

.badge svg {
  width: 12px;
  height: 12px;
}

/* --- Steps (didactic guide) --------------------------------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
}

.step {
  display: flex;
  gap: 16px;
  position: relative;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(199,161,102,0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.step-line {
  width: 2px;
  flex: 1;
  background: var(--border);
  min-height: 20px;
}

.step:last-child .step-line {
  display: none;
}

.step-content {
  padding: 2px 0 24px;
}

.step-content h4 {
  font-family: "Formata Bold", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--muted);
}

/* --- File Row ----------------------------------------------- */
.file-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}

.file-row:hover {
  background: var(--card-hover);
  border-color: var(--border-light);
}

.file-row + .file-row {
  margin-top: 10px;
}

.file-row.active {
  border-color: rgba(199,161,102,0.3);
  background: linear-gradient(135deg, rgba(199,161,102,0.06), transparent);
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.file-icon {
  display: flex;
  align-items: center;
  gap: 12px;
}

.file-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-dim);
  border: 1px solid rgba(199,161,102,0.15);
  display: grid;
  place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}

.file-icon-box svg {
  width: 20px;
  height: 20px;
}

.file-title {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.file-date {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.file-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* --- Promo Box ---------------------------------------------- */
.promo {
  background: linear-gradient(135deg, rgba(199,161,102,0.1), rgba(199,161,102,0.03));
  border: 1px solid rgba(199,161,102,0.25);
  border-left: 3px solid var(--accent);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  margin: 16px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.promo-icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.promo-icon svg {
  width: 20px;
  height: 20px;
}

.promo-label {
  color: var(--accent);
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.promo-body {
  color: var(--text);
  font-family: "Formata Regular", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-transform: none;
}

.promo-body * {
  text-transform: none;
}

.promo-body h2,
.promo-body h3,
.promo-body h4 {
  margin: 0 0 8px;
  color: var(--text);
}

.promo-body h1 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.2rem;
}

.promo-body p {
  margin: 0 0 8px;
  color: var(--text);
}

.promo-body div {
  margin: 0 0 8px;
  color: var(--text);
}

.promo-body p:last-child {
  margin-bottom: 0;
}

.promo-body div:last-child {
  margin-bottom: 0;
}

.promo-body ul {
  margin: 0 0 8px 18px;
  padding: 0;
}

.promo-body li {
  margin: 0 0 4px;
  color: var(--text);
}

.promo-body strong,
.promo-body em {
  color: var(--text);
}

/* --- Login Box ---------------------------------------------- */
.login-box {
  max-width: 440px;
  margin: 40px auto;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-header .login-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid rgba(199,161,102,0.2);
  display: grid;
  place-items: center;
  color: var(--accent);
}

.login-header .login-icon svg {
  width: 28px;
  height: 28px;
}

.login-header h2 {
  margin-bottom: 6px;
}

.login-header p {
  font-size: 14px;
}

.login-actions {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

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

.login-recovery-card {
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(199, 161, 102, 0.28);
  background:
    linear-gradient(135deg, rgba(199, 161, 102, 0.12), rgba(199, 161, 102, 0.04)),
    var(--card);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.login-recovery-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  color: var(--accent-strong);
  background: rgba(199, 161, 102, 0.12);
  border: 1px solid rgba(199, 161, 102, 0.22);
}

.login-recovery-body {
  flex: 1;
}

.login-recovery-body h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.login-recovery-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* --- Language Switch ----------------------------------------- */
.lang-switch {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--duration) var(--ease);
}

.lang-switch a:hover {
  color: var(--text);
  border-color: var(--border-light);
}

.lang-switch a.active {
  color: var(--accent);
  border-color: rgba(199,161,102,0.4);
  background: var(--accent-dim);
}

/* --- Table -------------------------------------------------- */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table td {
  color: var(--text-secondary);
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* --- Dashboard Header --------------------------------------- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dashboard-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dashboard-header-info h2 {
  margin: 0;
}

/* --- Empty State -------------------------------------------- */
.empty-state {
  text-align: center;
  padding: 32px 20px;
  color: var(--muted);
}

.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--border-light);
  margin-bottom: 12px;
}

.empty-state p {
  font-size: 14px;
}

/* --- Divider ------------------------------------------------ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
  border: none;
}

/* --- Utility Classes ---------------------------------------- */
.mt-0  { margin-top: 0; }
.mt-sm { margin-top: 10px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-sm { margin-bottom: 10px; }
.mb-md { margin-bottom: 16px; }

.flex      { display: flex; }
.flex-col  { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-sm    { gap: 8px; }
.gap-md    { gap: 12px; }
.gap-lg    { gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }

.text-accent { color: var(--accent); }
.text-muted  { color: var(--muted); }
.text-sm     { font-size: 13px; }

.w-full { width: 100%; }

/* --- Footer ------------------------------------------------- */
.footer {
  padding: 20px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer .dot {
  color: var(--accent);
  font-size: 8px;
}

.footer a {
  color: var(--muted);
  transition: color var(--duration) var(--ease);
}

.footer a:hover {
  color: var(--accent);
}

.footer-version {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

/* --- Collapsible Admin Section ------------------------------ */
.collapsible-trigger {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: none;
  transform: none;
}

.collapsible-trigger:hover {
  transform: none;
  box-shadow: none;
}

.collapsible-trigger .chevron {
  width: 20px;
  height: 20px;
  color: var(--muted);
  transition: transform var(--duration) var(--ease);
  flex-shrink: 0;
}

.collapsible-trigger[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}

.collapsible-body {
  overflow: hidden;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease);
  max-height: 0;
  opacity: 0;
}

.collapsible-body.open {
  max-height: 2000px;
  opacity: 1;
}

/* --- Admin v3 ----------------------------------------------- */
.admin-menu {
  margin-top: 16px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.01);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--duration) var(--ease);
}

.admin-menu-link:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: rgba(255, 255, 255, 0.03);
}

.admin-menu-link.active {
  color: var(--accent);
  border-color: rgba(199, 161, 102, 0.4);
  background: var(--accent-dim);
}

.admin-kpi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.admin-kpi-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1100px) {
  .admin-kpi-grid-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
  .admin-kpi-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

.admin-kpi-card {
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--card);
  transition: border-color var(--duration) var(--ease);
}
.admin-kpi-card--alert {
  border-color: var(--error);
  background: rgba(240,107,104,.06);
}
.admin-kpi-card--alert .admin-kpi-value {
  color: var(--error);
}
.admin-kpi-card--muted {
  opacity: .65;
}
.admin-kpi-card--muted .admin-kpi-value {
  color: var(--muted);
}

.admin-kpi-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.admin-kpi-value {
  margin: 2px 0 0;
  font-family: "Formata Bold", "Segoe UI", Arial, sans-serif;
  font-size: 34px;
  line-height: 1.1;
  color: var(--text);
}

.admin-kpi-meta {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 13px;
}

.admin-two-cols {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.admin-trend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-trend-item {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.admin-trend-item span {
  font-size: 12px;
  color: var(--muted);
}

.admin-trend-item strong {
  text-align: right;
  font-size: 13px;
  color: var(--text);
}

.admin-trend-bar {
  position: relative;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.admin-trend-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(145deg, var(--accent), var(--accent-strong));
}

.table-scroll {
  overflow-x: auto;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap table th,
.table-wrap table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

.table-wrap table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-wrap table td {
  color: var(--text-secondary);
}

.table-wrap table tr:last-child td {
  border-bottom: none;
}

.table-wrap table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.admin-list--spacious {
  gap: 14px;
}

.admin-row-grid {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1.2fr) minmax(120px, 1fr) 100px 90px minmax(180px, 0.9fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
}

.admin-row-id {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.admin-row-metrics {
  align-self: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-row-actions {
  align-self: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-inline-form {
  display: inline-flex;
}

/* ── Categories row ──────────────────────────────────────────── */
.cat-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  width: 100%;
  box-sizing: border-box;
}

.cat-drag {
  cursor: grab;
  color: var(--muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  user-select: none;
  padding: 0 2px;
}

.cat-name {
  flex: 1;
  min-width: 160px;
}

.cat-name input {
  width: 100%;
}

.cat-types {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.8rem;
  align-items: center;
}

.cat-type-check {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  cursor: pointer;
  font-weight: normal;
  white-space: nowrap;
  color: var(--text);
}

.cat-metrics {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.cat-actions {
  flex-shrink: 0;
}

/* -------------------------------------------------- *
 * Delete category dialog
 * -------------------------------------------------- */
.cat-delete-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
}
.cat-delete-dialog[hidden] { display: none; }

.cat-delete-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 12px);
  padding: 28px 32px;
  max-width: 440px;
  width: 90%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}
.cat-delete-box h4 { margin: 0; font-size: 1rem; }
.dialog-actions { display: flex; gap: 8px; justify-content: flex-end; }

.badge-info {
  background: rgba(99, 179, 237, 0.15);
  color: #63b3ed;
  border-color: rgba(99, 179, 237, 0.3);
}
.badge-warning {
  background: var(--accent-dim);
  color: var(--accent-strong);
  border-color: rgba(199, 161, 102, 0.35);
}
.badge-error {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error-border);
}

[data-admin-filter-item][hidden] {
  display: none !important;
}

.schedule-mode-switch {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.schedule-mode-option {
  margin: 0;
}

.schedule-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schedule-mode-option span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all var(--duration) var(--ease);
}

.schedule-mode-option input:checked + span {
  color: var(--accent);
  border-color: rgba(199, 161, 102, 0.35);
  background: var(--accent-dim);
}

.active-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1;
  box-shadow: none;
}

.active-toggle:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}

.active-toggle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

.active-toggle.is-on {
  border-color: var(--success-border);
  background: var(--success-bg);
  color: var(--success);
}

.active-toggle.is-on .active-toggle-dot {
  background: var(--success);
}

.active-toggle.is-off {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.active-toggle.is-off .active-toggle-dot {
  background: var(--muted);
}

/* --- Responsive --------------------------------------------- */
@media (max-width: 768px) {
  .topbar {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page {
    width: 95%;
    margin: 16px auto 32px;
  }

  .hero {
    padding: 28px 20px;
  }

  .section {
    padding: 20px 16px;
  }

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

  .card-grid {
    grid-template-columns: 1fr;
  }

  .admin-list-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-list-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .file-actions {
    justify-content: stretch;
  }

  .input-inline {
    flex-wrap: wrap;
  }

  .input-inline button {
    width: auto;
  }

  .file-actions .btn {
    flex: 1;
    justify-content: center;
  }

  button, .btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-two-cols {
    grid-template-columns: 1fr;
  }

  .admin-row-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .cat-row {
    flex-wrap: wrap;
  }

  .cat-name {
    flex: 1 1 100%;
  }

  .cat-types {
    flex: 1 1 100%;
  }

  .login-actions {
    flex-direction: column;
  }

  .steps {
    margin: 16px 0;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }

  .hero {
    padding: 24px 16px;
  }

  .section {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }
}

/* --- Scrollbar ---------------------------------------------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* --- Focus Visible ------------------------------------------ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Selection ---------------------------------------------- */
::selection {
  background: rgba(199,161,102,0.3);
  color: var(--text);
}
