@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Fjalla+One&display=swap");

/* =============================================================================
   TOKENS
============================================================================= */
:root{
  /* Typography */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: "Spectral", ui-serif, Georgia, "Times New Roman", Times, serif;

  /* Legacy palette */
  --white: #f9f9f9;
  --black: #000;
  --blue: #263c8b;
  --gray: #85888c;
  --orange1: #d64414;
  --orange2: #f57a09;

  /* UI tokens */
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;

  --border: rgba(0, 0, 0, .14);
  --border-strong: rgba(0, 0, 0, .22);
  --border-soft: rgba(0, 0, 0, .08);

  --shadow: rgba(50, 50, 93, 0.25) 0 13px 27px -5px,
            rgba(0, 0, 0, 0.30) 0 8px 16px -8px;

  --ring: rgba(38, 60, 139, .24);
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #dc2626;

  --link: #1a5fb4;
  --link-hover: #0b3a78;

  --danger: hsl(349, 78%, 64%);
  --danger-hover: #ff333f;
}

/* =============================================================================
   BASE
============================================================================= */
html{
  color-scheme: light;
}

body{
  font-family: var(--font-sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  background-color: var(--surface);
}

a{
  color: var(--gray);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, transform .08s ease;
}

a:visited{
  color: var(--muted);
}

a:hover{
  color: var(--black);
  text-underline-offset: 3px;
}

a:focus-visible{
  outline: none;
  border-radius: 6px;
  box-shadow: 0 0 0 4px var(--ring);
}

hr{
  clear: both;
  border: 0;
  border-top: 1px solid var(--border);
}

figure{
  position: relative;
  float: left;
  margin: 1.5em;
}

/* =============================================================================
   JS STATES
============================================================================= */
html.js .flash-stack{
  display: block;
}

html.js-toasts .flash-stack{
  display: none;
}

html.js .password-info{
  display: none;
}

html.js .password-info.is-open{
  display: block;
}

/* =============================================================================
   UTILITIES
============================================================================= */
.hide{
  display: none;
}

.show{
  display: block;
}

.is-hidden{
  display: none;
}

.clearfix::after{
  content: "";
  display: table;
  clear: both;
}

.ta-left{
  text-align: left;
}

.ta-center{
  text-align: center;
}

.ta-right{
  text-align: right;
}

.ta-justify{
  text-align: justify;
}

/* =============================================================================
   ALERTS
============================================================================= */
.alert{
  clear: both;
  min-height: 55px;
  margin-bottom: 16px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.alert p{
  margin-bottom: 0;
}

/* =============================================================================
   FLASH MESSAGES
============================================================================= */
.flash-stack{
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.flash{
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.flash-text{
  white-space: pre-line;
}

.flash-heading{
  margin-bottom: 4px;
  font-weight: 600;
}

.flash-success{
  background: #e9f7ef;
  border-color: #b7e1c5;
}

.flash-info{
  background: #e8f1ff;
  border-color: #b8d2ff;
}

.flash-warning{
  background: #fff4e5;
  border-color: #ffd199;
}

.flash-error{
  background: #fdecea;
  border-color: #f5b5ae;
}

/* =============================================================================
   TOASTS
============================================================================= */
.jq-toast-single.toast-success{
  color: #1f5f3a !important;
  background-color: #c3f3d7 !important;
}

.jq-toast-single.toast-info{
  color: #1b4d78 !important;
  background-color: #e7f3ff !important;
}

.jq-toast-single.toast-warning{
  color: #6a4a00 !important;
  background-color: #fff2c6 !important;
}

.jq-toast-single.toast-error{
  color: #7a1f1f !important;
  background-color: #ffd6d6 !important;
}

/* =============================================================================
   OVERLAYS / FIXED LAYERS
============================================================================= */
.overlay{
  position: fixed;
  inset: 0;
  z-index: 5;
  display: none;
  color: #fff;
  background-color: #333;
}

.nav-overlay{
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, .45);
  transition: opacity .22s ease;
}

body.is-nav-open .nav-overlay{
  opacity: 1;
  pointer-events: auto;
}

#confetti{
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

/* =============================================================================
   LANGUAGE SELECT
============================================================================= */
.lang-select{
  position: relative;
  display: inline-block;
}

.lang-select__btn{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.lang-select__menu{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 1000;
  min-width: 100%;
  padding: 6px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
}

.lang-select__flag{
  display: inline-block;
  flex: 0 0 22px;
  width: 22px;
  height: 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

.lang-select__text{
  min-width: 24px;
  font-weight: 500;
  text-transform: uppercase;
}

.lang-select__chev{
  margin-left: auto;
  opacity: .6;
}

.lang-select__item{
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.lang-select__item:hover{
  background: rgba(0, 0, 0, .05);
}

/* =============================================================================
   LAYOUT
============================================================================= */
.container{
  position: relative;
  z-index: 1;
  max-width: 1300px;
  margin: 20px auto;
  padding: 10px;
  background-color: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.content{
  margin-top: 20px;
}

main{
  position: relative;
  margin-bottom: 10px;
}

main .page-title h1{
  margin: 0;
  font-size: 2em;
  text-transform: uppercase;
}

main .page-title h2{
  margin-bottom: 1em;
  font-size: 1.2em;
  color: var(--black);
}

/* =============================================================================
   PAGINATION
============================================================================= */
.pagination{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.pagination a{
  color: var(--link);
  font-size: 14px;
  text-decoration: none;
}

.pagination a:hover{
  text-decoration: underline;
}

.pagination span{
  font-size: 13px;
  color: var(--muted);
}

/* =============================================================================
   MEMBERS / USER CELLS
============================================================================= */
.user-cell{
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar{
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  overflow: hidden;
  background: rgba(0, 0, 0, .06);
  border-radius: 10px;
}

.avatar img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback{
  display: block;
  width: 100%;
  height: 100%;
}

.user-name{
  font-weight: 600;
}

.user-id{
  font-size: 12px;
  opacity: .65;
}

.pill{
  display: inline-block;
  padding: 4px 10px;
  font-size: 13px;
  background: rgba(0, 0, 0, .06);
  border-radius: 999px;
}

.badge{
  padding: 2px 8px;
  font-size: 12px;
  color: #000;
  background: rgba(0, 0, 0, .08);
  border-radius: 999px;
}

.badge.system{
  background: #e74444;
}

.badge.custom{
  background: #9e44e7;
}

tr.is-me{
  background: rgba(0, 0, 0, .03);
}

.mobile-hide{
  display: table-cell;
}

@media (max-width: 700px){
  .mobile-hide{
    display: none;
  }
}

/* =============================================================================
   TABS
============================================================================= */
.tabs{
  margin-top: 1rem;
}

.tabs .tabs-panel{
  max-width: 25rem;
  margin: 0 auto;
}

.tabs-nav{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.tab{
  padding: .75rem 1rem;
  opacity: .8;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  appearance: none;
}

.tab.is-active{
  font-weight: 600;
  opacity: 1;
  border-bottom-color: currentColor;
}

.tabs-panel{
  display: none;
}

.tabs-panel.is-active{
  display: block;
}

.tabs[data-tabs] form.profile{
  max-width: none;
}

.tabs[data-tabs] .card form.profile + form.profile{
  margin-top: 1rem;
}

@media (max-width: 42em){
  .tabs[data-tabs]{
    max-width: 100%;
    padding: 0 1rem;
  }
}

/* =============================================================================
   FORMS
============================================================================= */
input,
textarea,
select{
  font: inherit;
}

input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="file"],
select,
textarea{
  padding: 10px;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

textarea{
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color: rgba(26, 95, 180, .55);
  box-shadow: 0 0 0 4px rgba(26, 95, 180, .12);
}

input:disabled,
select:disabled,
textarea:disabled{
  opacity: .6;
  cursor: not-allowed;
  background: #fafafa;
}

button.input-invalid,
input[type="text"].input-invalid,
input[type="email"].input-invalid,
input[type="password"].input-invalid,
select.input-invalid,
textarea.input-invalid{
  border: 1px solid var(--err) !important;
}

input[type="checkbox"].input-invalid{
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 1);
}

.admin-form-row{
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.input-block{
  position: relative;
}

div.input-block label:not(.toggle){
  position: absolute;
  top: -16px;
  left: 10px;
  font-size: .8rem;
  color: grey;
  background: none;
  pointer-events: none;
  transform-origin: 0 0;
  transition: all .2s;
}

div.input-block input::placeholder{
  color: var(--muted);
}

div.input-block input:valid + label,
div.input-block input:focus + label{
  background: var(--white);
  transform: scale(.8) translateY(-30px);
}

div.input-block label.on{
  float: right;
  transition: all .3s ease-in-out;
}

div.info-link{
  font-size: .9rem;
}

div.info-link a{
  float: right;
}

.input-block .toggle-info{
  margin-left: 6px;
  color: var(--muted);
  cursor: pointer;
}

.input-block .toggle-info:hover,
.input-block .toggle-info:focus{
  color: var(--text);
}

.input-block .help{
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  display: none;
  max-width: 320px;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.input-block .help.is-visible{
  display: block;
}

/* =============================================================================
   RADIO PILLS
============================================================================= */
.radio-row{
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .4rem;
}

.radio-pill{
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .2rem .6rem;
  user-select: none;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 999px;
  cursor: pointer;
}

.radio-pill input{
  margin: 0;
}

/* =============================================================================
   CARDS / PROFILE
============================================================================= */
.card{
  --bs-card-border-width: 0;
}

.card-body{
  padding: 0;
}

.profile-img{
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 2px solid var(--border);
  border-radius: 999px;
}

.field-with-pill{
  position: relative;
  display: block;
  overflow: visible;
}

.field-input{
  width: 100%;
  padding-right: 44px;
}

.field-pill{
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  color: rgba(0, 0, 0, .75);
  cursor: default;
  background: rgba(0, 0, 0, .04);
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 999px;
  transform: translateY(-50%);
}

.field-pill:focus{
  outline: 2px solid rgba(0, 0, 0, .18);
  outline-offset: 2px;
}

/* =============================================================================
   BUTTONS
============================================================================= */
.btn,
button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}

.btn:active,
button:active{
  transform: translateY(1px);
}

.btn:disabled,
.btn.is-disabled,
button:disabled{
  color: #000;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #eee;
  border-color: var(--border);
  opacity: .55;
}

.btn:hover,
button:hover{
  border-color: var(--border-strong);
}

.btn-small{
  padding: 6px 10px;
  font-size: 13px;
}

.btn-primary:hover{
  color: var(--surface);
  background: var(--link);
  border-color: var(--link);
}

.btn-danger{
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover{
  background: var(--danger-hover);
}

.btn-link{
  padding: 6px 8px;
  color: var(--link);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.btn-link:hover{
  color: var(--link-hover);
  background: rgba(0, 0, 0, .05);
}

.btn-link.danger{
  opacity: .95;
}

.btn-link.danger:hover{
  color: var(--danger);
}

.icon-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 10px;
}

.icon-btn svg{
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.icon-btn:hover{
  background: rgba(0, 0, 0, .06);
}

.icon-btn.danger:hover{
  background: rgba(255, 0, 0, .10);
}

.icon-btn:disabled,
.icon-btn.is-disabled{
  pointer-events: none;
  cursor: not-allowed;
  opacity: .35;
}

/* =============================================================================
   TABLES
============================================================================= */
.admin-table-wrap{
  overflow-x: auto;
}

.table{
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  border-collapse: collapse;
}

.table th,
.table td{
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}

.table th{
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, .02);
  border-bottom-color: var(--border);
}

.table tr:last-child td{
  border-bottom: 0;
}

.table tr:hover td{
  background: #fafafa;
}

.table code{
  font-size: 13px;
}

.th-actions,
.td-actions{
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

/* =============================================================================
   BADGE TOOLTIPS
============================================================================= */
.badge-tip{
  overflow: visible;
}

.badge-tip::after{
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 9999;
  min-width: 220px;
  max-width: min(360px, calc(100vw - 24px));
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(0, 0, 0, .86);
  white-space: normal;
  pointer-events: none;
  opacity: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
  transition: opacity .12s ease, transform .12s ease;
}

.badge-tip::before{
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  z-index: 10000;
  width: 10px;
  height: 10px;
  pointer-events: none;
  opacity: 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .14);
  border-left: 1px solid rgba(0, 0, 0, .14);
  transform: translateX(-50%) rotate(45deg);
  transition: opacity .12s ease;
}

.badge-tip:hover::after,
.badge-tip:hover::before,
.badge-tip:focus::after,
.badge-tip:focus::before,
.badge-tip:focus-visible::after,
.badge-tip:focus-visible::before{
  opacity: 1;
}

.badge-tip:hover::after,
.badge-tip:focus::after,
.badge-tip:focus-visible::after{
  transform: translateX(-50%) translateY(-2px);
}

/* =============================================================================
   HONEYPOT
============================================================================= */
.hp-field{
  position: absolute;
  top: auto;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =============================================================================
   VIEW SWITCHER
============================================================================= */
.view-buttons{
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.view-buttons i{
  font-size: 1.5em;
  cursor: pointer;
}

.content.column-view > ul,
.content.list-view > ul{
  width: 100%;
  margin-bottom: 20px;
}

.content.grid-view > ul{
  width: calc(66.66% - 20px);
  margin-right: 20px;
  margin-bottom: 20px;
}

/* =============================================================================
   HEADER
============================================================================= */
.container > header{
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(0, 0, 0, .22);
}

header .logo{
  display: flex;
  gap: 12px;
  width: 20%;
}

header .logo a.logo{
  display: inline-flex;
  align-items: center;
}

header .logo img{
  max-width: 128px;
}

header .top{
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 10px;
  background: url(img/top-shadow.png) no-repeat bottom;
}

header .top h1{
  margin: 0;
  padding: 0;
  font-size: 18px;
  text-align: center;
  text-transform: uppercase;
}

header .top .menu li a{
  transition: color .3s ease;
}

header .top .site-title{
  font: 400 clamp(20px, 4vw, 36px) Verdana, sans-serif;
  text-align: center;
}

header .top .site-subtitle{
  font: 400 clamp(14px, 2vw, 24px) Verdana, sans-serif;
}

header .user{
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 12px;
  width: 20%;
}

header .profile{
  position: absolute;
  top: 0;
  right: 0;
}

header .profile .user-img{
  display: block;
  width: 36px;
  height: 36px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 999px;
  transition: box-shadow .15s ease, transform .08s ease;
}

header .profile .user-img:hover{
  box-shadow: 0 0 0 3px rgba(38, 60, 139, .18);
}

header .profile .user-img:active{
  transform: translateY(1px);
}

header .profile-menu{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 999;
  display: none;
  min-width: 200px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .16);
}

header .profile-menu.open{
  display: block;
}

header .profile:focus-within .profile-menu{
  display: block;
}

header .profile-menu::before{
  content: "";
  position: absolute;
  top: -7px;
  right: 10px;
  display: inline-block;
  border-right: 7px solid transparent;
  border-bottom: 7px solid rgba(152, 166, 173, 0.15);
  border-left: 7px solid transparent;
}

header .profile-menu h5{
  margin: 0;
  padding: 10px 12px;
  font-size: 1em;
  text-align: center;
  white-space: nowrap;
  background-color: #f3f4f6;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

header .profile-menu > li{
  list-style: none;
}

header .profile-menu > li > a{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  text-decoration: none;
  white-space: nowrap;
}

header .profile-menu > li > a i{
  width: 18px;
  color: #6b7280;
  text-align: center;
}

header .profile-menu > li > a:hover{
  color: #111827;
  text-decoration: none;
  background: rgba(0, 0, 0, .06);
}

header .profile-menu > li > a:focus-visible{
  margin: 0 6px;
  outline: none;
  border-radius: 8px;
  box-shadow: 0 0 0 4px var(--ring);
}

.logout-form{
  display: inline;
}

.logout-form .btn-logout{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: #b91c1c;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
}

.logout-form:hover{
  color: #111827;
  background: rgba(0, 0, 0, .06);
}

header .profile-menu a.btn-admin{
  color: #111827;
}

header .icons{
  position: absolute;
  right: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

header .icons a.btn-profile,
header .icons a.btn-admin{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: #444;
  text-decoration: none;
  border-radius: 999px;
}

header .icons a.btn-profile:hover,
header .icons a.btn-admin:hover{
  color: #111827;
  text-decoration: none;
  background: rgba(0, 0, 0, .06);
}

header .icons a:active{
  transform: translateY(1px);
}

header .item-count{
  position: absolute;
  top: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  color: #fff;
  background: #ff5722;
  border-radius: 999px;
}

header .item-count:empty{
  display: none;
}

/* =============================================================================
   AUTH / COMMON FORMS
============================================================================= */
.login-form{
  max-width: 30em;
  margin: 0 auto;
}

.form-register{
  max-width: 25em;
}

form.contact,
form.profile{
  position: relative;
  max-width: 40rem;
}

form.register{
  max-width: 30rem;
  margin: 20px auto;
}

form.sign-in,
form.forgot,
form.reset{
  max-width: 20rem;
  margin: 20px auto;
}

form.contact textarea,
form.contact input,
form.sign-in input:not([type="checkbox"]),
form.register input,
form.profile input:not([type="radio"]),
form.forgot input,
form.reset input{
  width: 100%;
  height: 40px;
  padding: 10px;
  font-size: 1em;
  outline: none;
  border: 1px solid #aaa;
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

form.contact textarea{
  height: auto;
  min-height: 180px;
  line-height: 1.3;
  resize: vertical;
}

form.contact input:focus,
form.contact textarea:focus,
form.sign-in input:focus,
form.register input:focus,
form.profile input:focus,
form.forgot input:focus,
form.reset input:focus{
  border-color: var(--border-strong);
  box-shadow: 0 0 0 1px var(--ring);
}

form.sign-in input[type="checkbox"],
form.register input[type="checkbox"]{
  width: auto;
  height: auto;
}

form.sign-in button.submit,
form.forgot button.submit,
form.reset button.submit,
form.profile button.submit,
form.contact button.submit,
form.register button.submit{
  width: 100%;
  height: 40px;
  margin: 5px 0 0;
  font-size: 1em;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  outline: none;
}

form.reset button.submit,
form.profile button.submit,
form.contact button.submit,
form.register button.submit{
  background-color: #68c75a;
}

form.forgot button.submit,
form.sign-in button.submit{
  background-color: #f77b94;
}

form.sign-in .input-block,
form.forgot .input-block,
form.reset .input-block,
form.contact .input-block,
form.profile .input-block,
form.register .input-block{
  position: relative;
  margin: 20px 0;
}

#message-contact-char{
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: .8em;
  color: #555;
}

i.toggle-password,
i.toggle-info{
  position: absolute;
  top: 12px;
  right: 12px;
  color: grey;
  cursor: pointer;
}

.password-info{
  position: absolute;
  right: 0;
  bottom: -160px;
  z-index: 1;
  display: none;
  width: auto;
  padding: 15px;
  font-size: .83em;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.password-info ul{
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.password-info::before{
  content: "\25B2";
  position: absolute;
  top: -12px;
  left: 45%;
  font-size: 14px;
  line-height: 14px;
  color: #ddd;
}

.invalid{
  padding-left: 22px;
  line-height: 24px;
  color: #ec3f41;
  background: url(img/pass-invalid.png) no-repeat 0 50%;
}

.valid{
  padding-left: 22px;
  line-height: 24px;
  color: #3a7d34;
  background: url(img/pass-valid.png) no-repeat 0 50%;
}

.captcha{
  position: relative;
}

.captcha-reload{
  cursor: pointer;
}

.button-submit{
  margin: 15px 0;
}

a.forgot-link{
  float: right;
}

/* =============================================================================
   SORT TAGS
============================================================================= */
.sort{
  float: right;
  text-align: right;
}

.sort-tag{
  display: inline-block;
  margin: 0;
}

.sort-tag input{
  display: none;
}

.sort-tag label{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  font-size: 14px;
  line-height: 22px;
  color: #fff;
  user-select: none;
  cursor: pointer;
  background-color: #c0bfbe;
  border-radius: 3px;
}

.sort-tag.on label{
  background-color: #ff6f2a;
}

.sort-tag i{
  margin-top: 1px;
}

/* =============================================================================
   IMAGE FIELD PREVIEW
============================================================================= */
.preview input[type="file"]{
  display: none;
}

.preview img{
  cursor: pointer;
}

/* =============================================================================
   FOOTER
============================================================================= */
footer{
  position: relative;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  padding-top: 20px;
  line-height: 1.5;
  color: #444;
  text-align: center;
}

footer > p{
  margin-bottom: 0;
  font-size: .75em;
}

footer > p.stats{
  margin-bottom: 1rem;
}

footer > p.copyright,
footer > p.language-flag{
  margin-bottom: 0;
}

footer > p img{
  vertical-align: bottom;
}

footer .flag{
  position: relative;
  display: block;
  width: 30px;
  height: 20px;
  margin: 0 auto;
}

footer .flag.fr{
  background: transparent url(img/flag-fr.png) no-repeat center;
}

footer .flag.en{
  background: transparent url(img/flag-en.png) no-repeat center;
}

footer .legal a{
  text-decoration: underline;
}

/* =============================================================================
   COOKIE CONSENT
============================================================================= */
.cookie-consent{
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  max-width: 600px;
  padding: 12px;
  background: rgb(245 244 245);
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
}

.cookie-consent__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 980px;
  margin: 0 auto;
}

.cookie-consent__text p{
  margin: 6px 0 0;
  font-size: 14px;
}

.cookie-consent__actions{
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-consent__panel{
  max-width: 980px;
  margin: 10px auto 0;
  padding: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 10px;
}

.cookie-consent__row{
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.cookie-consent__row:last-child{
  border-bottom: 0;
}

.cookie-consent__panel-actions{
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

#cookie-consent{
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 0 8px 30px;
  font: normal 14px "Trebuchet MS", Helvetica, sans-serif;
  line-height: 26px;
  color: #ccc;
  text-align: left;
  background-color: rgba(20, 20, 20, .8);
}

#close-cookie-consent{
  width: 20px;
  height: 20px;
  margin-left: auto;
  font-weight: bold;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  border-radius: 3px;
}

#close-cookie-consent:hover{
  color: #fff;
}

#cookie-consent a.cookie-consent-ok{
  margin-left: 10px;
  padding: 6px 20px;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  background-color: #f1d600;
  border-radius: 5px;
}

#cookie-consent a.cookie-consent-ok:hover{
  background-color: #e6cb00;
}

/* =============================================================================
   LEGAL PAGES
============================================================================= */
#terms_sales,
#terms_use,
#legal_notice,
#privacy_policy,
#cookies{
  font-size: 1em;
  line-height: 1.2;
  text-align: justify;
}

/* =============================================================================
   BACK TO TOP
============================================================================= */
#back-top{
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 1000;
  display: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .3s;
}

#back-top a{
  display: inline-block;
  width: 45px;
  height: 45px;
  font-size: 1.25rem;
  line-height: 45px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, .8);
}

#back-top a:hover{
  background-color: rgba(0, 0, 0, .5);
}

/* =============================================================================
   MISC
============================================================================= */
.editor-block{
  margin-top: 2em;
}

.cke_textarea_inline{
  border: 1px dashed grey;
}

.img-thumbnail{
  width: 100px;
  height: 100px;
}

.stick{
  box-sizing: content-box;
  width: 219px;
  height: 210px;
  padding: 10px;
  text-align: center;
  background: transparent url(img/note_stick_bg.png) top left no-repeat;
}

/* =============================================================================
   REDUCED MOTION
============================================================================= */
@media (prefers-reduced-motion: reduce){
  *{
    transition: none !important;
    scroll-behavior: auto !important;
  }
}