:root {
  --primary: #f26532;
  --primary-h: #e8541f;
  --primary-bg: #fff4f0;
  --primary-border: #fdd5c4;
  --sec: #323c4f;
  --sec2: #3f4f68;
  --sec-light: #f5f7fa;
  --white: #fff;
  --border: #e4e9f0;
  --border2: #cdd5e0;
  --text1: #1c2636;
  --text2: #4a5878;
  --text3: #8494a9;
  --green: #10b981;
  --green-bg: #ecfdf5;
  --font: 'Sora', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

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

body {
  font-family: var(--font);
  background: #edf0f5;
  color: var(--text1);
  font-size: 15px;
}

.nav-bar {
  background: var(--sec);
  display: flex;
  align-items: center;
  padding: 0 24px;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 1050;
  border-bottom: 3px solid var(--primary);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: 24px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}
.logo-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.logo-name span {
  color: var(--primary);
}
.logo-tag {
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.nav-link {
  padding: 6px 14px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.15s;
  border: none;
  background: none;
}
.nav-link i {
  font-size: 11px;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-link.on {
  color: #fff;
  background: var(--primary);
  font-weight: 600;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 24px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 67px;
  left: 0;
  right: 0;
  background: var(--sec);
  z-index: 1049;
  padding: 12px;
  border-bottom: 2px solid var(--primary);
  flex-direction: column;
  gap: 4px;
}
.mobile-nav.open {
  display: flex;
}
.mobile-nav .nav-link {
  height: 40px;
  border-radius: 8px;
  width: 100%;
}

.bell-wrap {
  position: relative;
}

.bell {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  transition: background 0.15s;
}
.bell:hover {
  background: rgba(255, 255, 255, 0.14);
}
.bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--sec);
}
.bell-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  overflow: hidden;
}
.bell-panel.open {
  display: block;
}
.bell-panel-hd {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bell-panel-hd span {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text1);
}
.bell-panel-hd small {
  font-size: 11px;
  font-weight: 600;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 5px;
  padding: 2px 8px;
}
.bell-panel-ft {
  padding: 11px 16px;
  border-top: 1px solid var(--border);
}
.bell-panel-ft button {
  background: none;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  width: 100%;
}
.bell-panel-ft button:hover {
  background: var(--primary);
  color: #fff;
}

.notif-list {
  max-height: 260px;
  overflow-y: auto;
}

.notif-item {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: background 0.1s;
}
.notif-item:hover {
  background: #fafbfd;
}
.notif-item:last-child {
  border-bottom: none;
}

.notif-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.notif-icon.orange {
  background: var(--primary-bg);
  color: var(--primary);
}
.notif-icon.green {
  background: var(--green-bg);
  color: var(--green);
}
.notif-icon.blue {
  background: #e8f0fb;
  color: #2563eb;
}

.notif-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text1);
  line-height: 1.35;
}

.notif-time {
  font-size: 11px;
  color: var(--text3);
  margin-top: 2px;
}

.notif-unread {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}

.user-wrap {
  position: relative;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  padding: 4px 10px 4px 5px;
  cursor: pointer;
  transition: background 0.15s;
}
.user-chip:hover {
  background: rgba(255, 255, 255, 0.14);
}

.user-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  flex-shrink: 0;
}
.user-av img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.user-name {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.user-caret {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 196px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  z-index: 2000;
  overflow: hidden;
}
.user-dropdown.open {
  display: block;
}

.user-dd-hdr {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-dd-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.user-dd-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
}

.user-dd-role {
  font-size: 11px;
  color: var(--text3);
}

.user-dd-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  transition: background 0.1s;
}
.user-dd-item:hover {
  background: var(--sec-light);
}
.user-dd-item i {
  width: 15px;
  color: var(--text3);
  font-size: 12px;
}
.user-dd-item.danger {
  color: #be123c;
}
.user-dd-item.danger i {
  color: #be123c;
}

.user-dd-sep {
  border-top: 1px solid var(--border);
  margin: 4px 0;
}

.crumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 9px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text3);
}
.crumb a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.main {
  padding: 24px;
  min-height: 84vh;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text1);
  line-height: 1.2;
}

.page-sub {
  font-size: 13px;
  color: var(--text3);
  margin-top: 3px;
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.stat-icon.orange {
  background: var(--primary-bg);
  color: var(--primary);
}
.stat-icon.navy {
  background: #eef1f7;
  color: var(--sec);
}
.stat-icon.green {
  background: var(--green-bg);
  color: var(--green);
}
.stat-icon.blue {
  background: #e8f0fb;
  color: #2563eb;
}
.stat-val {
  font-size: 21px;
  font-weight: 700;
  color: var(--text1);
  line-height: 1;
}
.stat-lbl {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: 3px;
  font-weight: 500;
}

.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text2);
  white-space: nowrap;
}

.date-pair {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--sec-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  flex-wrap: wrap;
}
.date-pair input[type=date] {
  border: none;
  outline: none;
  font-size: 12.5px;
  font-family: var(--font);
  color: var(--text1);
  background: transparent;
  font-weight: 500;
  cursor: pointer;
}

.filter-sep {
  width: 1px;
  height: 26px;
  background: var(--border);
  margin: 0 2px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--sec-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 12px;
  flex: 1;
  min-width: 140px;
}
.search-wrap input {
  border: none;
  outline: none;
  font-size: 12.5px;
  font-family: var(--font);
  color: var(--text1);
  background: transparent;
  width: 100%;
}

.filter-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}

.btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
}
.btn:hover {
  opacity: 0.88;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-outline {
  background: var(--white);
  color: var(--text2);
  border: 1px solid var(--border2);
}
.btn-filter {
  background: var(--sec);
  color: #fff;
}
.btn-cancel {
  background: var(--white);
  color: var(--text2);
  border: 1.5px solid var(--border);
}

.tcard {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
}
.tcard-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.tcard-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text1);
}
.tcard-meta {
  font-size: 12.5px;
  color: var(--text3);
}

.week-badge {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  padding: 3px 9px;
}

.tscroll {
  overflow-x: auto;
}

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

thead tr {
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
}

thead th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: #fafbfd;
}

td {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--text1);
  vertical-align: middle;
}

.date-val {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text2);
}

.activity-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text1);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}

.t-staff {
  background: #fef9c3;
  color: #854d0e;
}

.t-news {
  background: #e0f2fe;
  color: #0c4a6e;
}

.t-articles {
  background: #dcfce7;
  color: #14532d;
}

.t-media {
  background: #f3e8ff;
  color: #6b21a8;
}

.t-video {
  background: #ffedd5;
  color: #9a3412;
}

.aud-swatch {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: inline-block;
}

.aud-y {
  background: #fef9c3;
  border: 1.5px solid #fde047;
}

.aud-g {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
}

.aud-p {
  background: #ffedd5;
  border: 1.5px solid #fed7aa;
}

.aud-b {
  background: #dbeafe;
  border: 1.5px solid #93c5fd;
}

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

.av {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--border);
}
.av img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.av-a {
  background: #ffe8dd;
  color: var(--primary);
}

.av-b {
  background: #dbeafe;
  color: #1d4ed8;
}

.av-c {
  background: #dcfce7;
  color: #16a34a;
}

.av-d {
  background: #f3e8ff;
  color: #7c3aed;
}

.p-name {
  font-size: 13px;
  font-weight: 500;
}

.comms-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.comms-item {
  font-size: 12px;
  color: var(--text2);
  font-weight: 500;
}

.last-ed {
  font-size: 11.5px;
  color: var(--text3);
  max-width: 160px;
  line-height: 1.4;
}

.action-btns {
  display: flex;
  gap: 5px;
  align-items: center;
}

.view-btn,
.edit-btn,
.del-btn {
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s;
}

.view-btn {
  background: var(--primary);
  color: #fff;
  border: none;
}
.view-btn:hover {
  opacity: 0.85;
}

.edit-btn {
  background: #f0f4ff;
  color: #1d4ed8;
  border: 1px solid #c7d7fe;
}
.edit-btn:hover {
  opacity: 0.8;
}

.del-btn {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecaca;
}
.del-btn:hover {
  opacity: 0.8;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}

.page-info {
  font-size: 12.5px;
  color: var(--text3);
}
.page-info b {
  color: var(--text1);
}

.page-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-btn {
  min-width: 34px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  transition: all 0.15s;
}
.page-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
}
.page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.page-size-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--text3);
}
.page-size-wrap select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 12.5px;
  font-family: var(--font);
  color: var(--text1);
  background: var(--white);
  outline: none;
  cursor: pointer;
}

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 30, 48, 0.55);
  z-index: 1200;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay.open {
  display: flex;
}

.modal-box {
  background: var(--white);
  border-radius: 16px;
  width: 650px;
  max-width: 75vw;
  min-width: 300px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
}
@media (max-width: 700px) {
  .modal-box {
    max-width: 98vw !important;
    min-width: unset;
  }
}

.modal-hd {
  padding: 20px 26px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 2;
  border-radius: 16px 16px 0 0;
  flex-shrink: 0;
}
.modal-hd-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text1);
}
.modal-hd-sub {
  font-size: 12.5px;
  color: var(--text3);
  margin-top: 2px;
}

.m-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  color: var(--text3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}
.m-close:hover {
  background: var(--sec-light);
  color: var(--text1);
}

.modal-bd {
  padding: 20px 26px;
  flex: 1;
}

.mfield {
  margin-bottom: 16px;
}
.mfield label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.mfield input,
.mfield select,
.mfield textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text1);
  outline: none;
  background: var(--white);
  transition: border-color 0.15s;
}
.mfield input:focus,
.mfield select:focus,
.mfield textarea:focus {
  border-color: var(--primary);
}
.mfield textarea {
  min-height: 76px;
  resize: vertical;
}

.date-range-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.date-range-sep {
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}

.date-input-wrap {
  position: relative;
}
.date-input-wrap i.di {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 12px;
  pointer-events: none;
}
.date-input-wrap input {
  padding-left: 32px !important;
}

.modal-ft {
  padding: 14px 26px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  background: var(--white);
  border-radius: 0 0 16px 16px;
  flex-shrink: 0;
}

.choices {
  margin-bottom: 0;
}

.choices__inner {
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 5px 9px !important;
  min-height: 42px !important;
  font-family: var(--font) !important;
  font-size: 13.5px !important;
  background: var(--white) !important;
}

.is-focused .choices__inner {
  border-color: var(--primary) !important;
  box-shadow: none !important;
}

.choices__list--dropdown {
  border: 1.5px solid var(--border) !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1) !important;
  font-family: var(--font) !important;
  z-index: 9999 !important;
}

.choices__item--selectable.is-highlighted {
  background: var(--primary-bg) !important;
  color: var(--primary) !important;
}

.choices__list--multiple .choices__item {
  background: var(--primary) !important;
  border-color: var(--primary-h) !important;
  border-radius: 5px !important;
  font-family: var(--font) !important;
  font-size: 11.5px !important;
}

.choices__input {
  font-family: var(--font) !important;
  font-size: 13px !important;
}

.choices__placeholder {
  color: var(--text3) !important;
}

.flatpickr-calendar {
  font-family: var(--font) !important;
  border-radius: 12px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.14) !important;
  z-index: 9999 !important;
}

.flatpickr-day.selected, .flatpickr-day.selected:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.flatpickr-day.inRange {
  background: var(--primary-bg) !important;
  border-color: var(--primary-bg) !important;
}

.empty-state {
  padding: 50px 0;
  text-align: center;
  color: var(--text3);
}
.empty-state .es-icon {
  font-size: 32px;
  margin-bottom: 10px;
  color: var(--border);
}
.empty-state p {
  font-size: 14px;
  font-weight: 500;
}
.empty-state small {
  font-size: 12.5px;
}

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

.view-event-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.view-event-icon i {
  color: var(--primary);
  font-size: 20px;
}

.view-event-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text1);
}

.view-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vd-item {
  background: var(--sec-light);
  border-radius: 9px;
  padding: 12px 14px;
}

.vd-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 5px;
}

.vd-val {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text1);
}

.vd-full {
  grid-column: 1/-1;
}

.site-footer {
  background: var(--sec);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 16px 24px;
  font-size: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.07);
}
.site-footer span {
  color: var(--primary);
  font-weight: 600;
}

@media (max-width: 991px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}
@media (max-width: 600px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .main {
    padding: 14px;
  }
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-bar {
    gap: 8px;
  }
  .filter-sep {
    display: none;
  }
  .view-detail-grid {
    grid-template-columns: 1fr;
  }
  .action-btns {
    flex-wrap: wrap;
    gap: 3px;
  }
  .tcard-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 480px) {
  .logo-text {
    display: none;
  }
  .user-name {
    display: none;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
  }
}
@media print {
  .nav-bar, .crumb, .filter-bar, .page-actions, .pagination-bar, .action-btns, .site-footer {
    display: none !important;
  }
  .tcard {
    border: none !important;
    box-shadow: none !important;
  }
  body {
    background: #fff !important;
  }
  .main {
    padding: 0 !important;
  }
  td, th {
    font-size: 11px !important;
    padding: 7px 8px !important;
  }
}
.profile-hero {
  margin-bottom: 24px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.profile-cover {
  height: 140px;
  background: linear-gradient(135deg, var(--sec) 0%, var(--sec2) 40%, #1e2d45 100%);
  position: relative;
  overflow: hidden;
}
.profile-cover .cover-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(242, 101, 50, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.2) 0%, transparent 40%);
}

.cover-actions {
  position: absolute;
  bottom: 12px;
  right: 16px;
}

.cover-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  backdrop-filter: blur(8px);
  transition: all 0.15s;
}
.cover-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.profile-identity {
  padding: 0 24px 24px;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
@media (max-width: 600px) {
  .profile-identity {
    flex-direction: column;
    align-items: flex-start;
  }
}

.profile-avatar-wrap {
  margin-top: -36px;
  flex-shrink: 0;
}

.profile-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: var(--primary);
  position: relative;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.avatar-status {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--white);
}
.avatar-status.online {
  background: var(--green);
}
.avatar-status.offline {
  background: var(--text3);
}

.profile-id-text {
  flex: 1;
  padding-top: 16px;
  min-width: 0;
}

.profile-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text1);
  line-height: 1.2;
}

.profile-role {
  font-size: 13.5px;
  color: var(--text3);
  margin-top: 2px;
  font-weight: 500;
}

.profile-badges {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.pbadge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
}
.pbadge-orange {
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}
.pbadge-navy {
  background: #eef1f7;
  color: var(--sec);
  border: 1px solid var(--border);
}
.pbadge-green {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #a7f3d0;
}

.profile-quick-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  background: var(--sec-light);
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-top: 16px;
  flex-shrink: 0;
  align-self: flex-end;
}
@media (max-width: 600px) {
  .profile-quick-stats {
    width: 100%;
    justify-content: space-around;
  }
}

.pqs-item {
  text-align: center;
}

.pqs-val {
  font-size: 20px;
  font-weight: 800;
  color: var(--text1);
  font-family: var(--mono);
  line-height: 1;
}

.pqs-lbl {
  font-size: 11px;
  color: var(--text3);
  margin-top: 3px;
  font-weight: 500;
}

.pqs-divider {
  width: 1px;
  height: 30px;
  background: var(--border);
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: 1fr;
  }
}

.profile-col-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-col-side {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pcard {
  background: var(--white);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  animation: fadeUp 0.5s ease both;
}
.pcard:nth-child(2) {
  animation-delay: 0.07s;
}
.pcard:nth-child(3) {
  animation-delay: 0.14s;
}
.pcard:nth-child(4) {
  animation-delay: 0.21s;
}

.pcard-hd {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 700;
  color: var(--text1);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fafbfd;
}
.pcard-hd i {
  color: var(--primary);
  font-size: 13px;
}

.pcard-bd {
  padding: 16px 18px;
}

.profile-bio {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.75;
  font-weight: 400;
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.afeed-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}
.afeed-item:last-child {
  border-bottom: none;
}
.afeed-item:hover {
  background: #fafbfd;
  margin: 0 -18px;
  padding: 12px 18px;
  border-radius: 6px;
}

.afeed-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}
.afeed-icon.orange {
  background: var(--primary-bg);
  color: var(--primary);
}
.afeed-icon.blue {
  background: #e8f0fb;
  color: #2563eb;
}
.afeed-icon.green {
  background: var(--green-bg);
  color: var(--green);
}

.afeed-title {
  font-size: 13.5px;
  color: var(--text1);
  line-height: 1.4;
}

.afeed-time {
  font-size: 11.5px;
  color: var(--text3);
  margin-top: 2px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.info-row:last-child {
  border-bottom: none;
}

.info-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--sec-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--primary);
}

.info-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-val {
  font-size: 13.5px;
  color: var(--text1);
  font-weight: 500;
  margin-top: 1px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  padding: 5px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}
.skill-tag:hover {
  background: var(--primary);
  color: #fff;
}

.profile-edit-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-edit-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 800px) {
  .profile-edit-grid {
    grid-template-columns: 1fr;
  }
}

.edit-avatar-card {
  grid-column: 1;
  grid-row: 1;
}

.edit-info-card {
  grid-column: 2;
  grid-row: 1/span 2;
}
@media (max-width: 800px) {
  .edit-info-card {
    grid-column: 1;
    grid-row: auto;
  }
}

.edit-security-card {
  grid-column: 1/-1;
}

.edit-avatar-bd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.edit-avatar-wrap {
  position: relative;
  cursor: pointer;
}
.edit-avatar-wrap:hover .edit-avatar-overlay {
  opacity: 1;
}

.edit-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border);
}
.edit-avatar img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.edit-avatar-overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  color: #fff;
  font-size: 18px;
}
.edit-avatar-overlay span {
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font);
}

.avatar-hint {
  font-size: 11.5px;
  color: var(--text3);
  text-align: center;
  line-height: 1.4;
}

.edit-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) {
  .edit-grid-2 {
    grid-template-columns: 1fr;
  }
}

.skills-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 36px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: var(--primary-bg);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 600;
  animation: popIn 0.2s ease;
}
.skill-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  padding: 0;
  font-size: 10px;
  display: flex;
  align-items: center;
  transition: color 0.15s;
  opacity: 0.6;
}
.skill-pill button:hover {
  opacity: 1;
  color: var(--primary-h);
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.skill-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.skill-add-row input {
  flex: 1;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font);
  color: var(--text1);
  outline: none;
  transition: border-color 0.15s;
}
.skill-add-row input:focus {
  border-color: var(--primary);
}

.field-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text3);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}

.field-eye-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 13px;
  padding: 4px;
  border-radius: 5px;
  transition: color 0.15s;
}
.field-eye-btn:hover {
  color: var(--primary);
}

.pw-strength-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.pw-strength-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease, background 0.3s;
}

.pw-strength-label {
  font-size: 11.5px;
  margin-top: 4px;
  font-weight: 600;
}

.save-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 12px 24px;
  background: var(--sec);
  border-top: 2px solid var(--primary);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.save-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13.5px;
  font-weight: 500;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--sec);
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  z-index: 9999;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast.success {
  border-left: 3px solid var(--green);
}
.toast.error {
  border-left: 3px solid #ef4444;
}

.user-dd-item.on {
  background: var(--primary-bg);
  color: var(--primary);
}
.user-dd-item.on i {
  color: var(--primary);
}

@media (max-width: 600px) {
  .profile-quick-stats {
    gap: 12px;
    padding: 12px 14px;
  }
  .pqs-val {
    font-size: 16px;
  }
  .cover-actions {
    bottom: 8px;
    right: 10px;
  }
  .profile-cover {
    height: 110px;
  }
}
.bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
  animation: glowPulse 8s ease-in-out infinite;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: var(--primary);
  top: -200px;
  left: -200px;
  animation-delay: 0s;
}

.bg-glow-2 {
  width: 400px;
  height: 400px;
  background: #2563eb;
  bottom: -150px;
  left: 30%;
  animation-delay: 3s;
}

.bg-glow-3 {
  width: 350px;
  height: 350px;
  background: var(--primary-h);
  top: 20%;
  right: -100px;
  animation-delay: 6s;
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.18;
    transform: scale(1);
  }
  50% {
    opacity: 0.3;
    transform: scale(1.08);
  }
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(242, 101, 50, 0.5);
  animation: floatUp linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100vh) rotate(720deg);
    opacity: 0;
  }
}
.login-wrap {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.brand-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.brand-side::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50, 60, 79, 0.95) 0%, rgba(28, 38, 54, 0.97) 100%);
  z-index: 0;
}

.brand-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  animation: slideInLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 56px;
}

.brand-logo-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 var(--primary-glow);
  animation: logoPulse 3s ease-in-out infinite;
}
.brand-logo-icon span {
  position: relative;
  z-index: 1;
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--primary-glow);
  }
  50% {
    box-shadow: 0 0 0 12px transparent;
  }
}
.logo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  border: 2px solid rgba(242, 101, 50, 0.4);
  animation: ringExpand 3s ease-in-out infinite;
}

@keyframes ringExpand {
  0%, 100% {
    transform: scale(1);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.12);
    opacity: 0;
  }
}
.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.brand-name span {
  color: var(--primary);
}

.brand-tagline {
  font-size: 9px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 3px;
}

.brand-hero {
  margin-bottom: 40px;
}

.brand-headline {
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.brand-headline em {
  font-style: normal;
  color: var(--primary);
  position: relative;
}
.brand-headline em::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.5;
}

.brand-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  font-weight: 400;
}

.bstat {
  text-align: center;
  flex: 1;
}

.bstat-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  font-family: var(--mono);
}

.bstat-lbl {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 4px;
  font-weight: 500;
}

.bstat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

.brand-quote {
  padding: 20px 22px;
  border-left: 3px solid var(--primary);
  background: rgba(242, 101, 50, 0.06);
  border-radius: 0 10px 10px 0;
}
.brand-quote .fa-quote-left {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
  opacity: 0.7;
}
.brand-quote p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.brand-quote-author {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.form-side {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--white);
  position: relative;
  z-index: 1;
}

.form-card {
  width: 100%;
  max-width: 400px;
  animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.form-header {
  margin-bottom: 32px;
  text-align: center;
}

.form-logo-sm {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.form-logo-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(242, 101, 50, 0.4);
}

.form-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text1);
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.form-sub {
  font-size: 14px;
  color: var(--text3);
  font-weight: 400;
}

.field-group {
  margin-bottom: 20px;
  animation: fadeSlideUp 0.5s ease both;
}
.field-group:nth-child(1) {
  animation-delay: 0.25s;
}
.field-group:nth-child(2) {
  animation-delay: 0.35s;
}
.field-group:nth-child(3) {
  animation-delay: 0.45s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.field-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.field-label i {
  margin-right: 5px;
  color: var(--text3);
  font-size: 10px;
}

.field-wrap {
  position: relative;
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text1);
  background: #fafbfd;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s, transform 0.15s;
}
.field-input::-moz-placeholder {
  color: var(--text3);
}
.field-input::placeholder {
  color: var(--text3);
}
.field-input:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(242, 101, 50, 0.1);
  transform: translateY(-1px);
}
.field-input.has-error {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
  animation: shake 0.4s ease;
}
.field-input.has-success {
  border-color: var(--green);
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-6px);
  }
  40% {
    transform: translateX(6px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}
.field-eye {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  font-size: 13px;
  padding: 4px;
  border-radius: 5px;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.field-eye:hover {
  color: var(--primary);
  background: var(--primary-bg);
}

.field-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: width 0.3s ease;
  pointer-events: none;
}

.field-wrap:focus-within .field-indicator {
  width: calc(100% - 20px);
}

.field-error {
  font-size: 11.5px;
  color: var(--red);
  margin-top: 5px;
  min-height: 16px;
  font-weight: 500;
  transition: opacity 0.2s;
}
.field-error:empty {
  opacity: 0;
}
.field-error:not(:empty) {
  opacity: 1;
}

.form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  animation: fadeSlideUp 0.5s ease 0.45s both;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text2);
  cursor: pointer;
  font-weight: 500;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.checkbox-label input[type=checkbox] {
  display: none;
}
.checkbox-label input[type=checkbox]:checked + .checkbox-custom {
  background: var(--primary);
  border-color: var(--primary);
}
.checkbox-label input[type=checkbox]:checked + .checkbox-custom::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid var(--border);
  background: #fafbfd;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  position: relative;
}
.checkbox-custom::after {
  content: "";
  width: 6px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: scale(0) rotate(45deg);
  opacity: 0;
  transition: all 0.15s;
  position: absolute;
  top: 0px;
}

.forgot-link {
  font-size: 13.5px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}
.forgot-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(242, 101, 50, 0.35);
  position: relative;
  overflow: hidden;
  animation: fadeSlideUp 0.5s ease 0.55s both;
}
.login-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s;
}
.login-btn:hover {
  background: var(--primary-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 101, 50, 0.45);
}
.login-btn:hover::before {
  transform: translateX(100%);
}
.login-btn:active {
  transform: scale(0.98) translateY(0);
}
.login-btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: var(--text3);
  font-size: 12.5px;
  font-weight: 500;
  animation: fadeSlideUp 0.5s ease 0.6s both;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sso-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: fadeSlideUp 0.5s ease 0.65s both;
}

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text2);
  cursor: pointer;
  font-family: var(--font);
  transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.sso-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(242, 101, 50, 0.12);
}
.sso-btn img {
  border-radius: 2px;
}

.form-success {
  text-align: center;
  padding: 20px 0;
  animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.success-icon {
  width: 72px;
  height: 72px;
  background: #ecfdf5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
  color: var(--green);
  animation: iconBounce 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

@keyframes iconBounce {
  from {
    transform: scale(0);
  }
  70% {
    transform: scale(1.15);
  }
  to {
    transform: scale(1);
  }
}
.success-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text1);
  margin-bottom: 6px;
}

.success-sub {
  font-size: 14px;
  color: var(--text3);
  margin-bottom: 24px;
}

.success-bar {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.success-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 4px;
  width: 0;
  animation: fillBar 2s ease-in-out 0.4s forwards;
}

@keyframes fillBar {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.form-footer {
  text-align: center;
  margin-top: 28px;
  font-size: 13.5px;
  color: var(--text3);
  font-weight: 500;
  animation: fadeSlideUp 0.5s ease 0.7s both;
}
.form-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}
.form-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  body {
    overflow: auto;
  }
  .login-wrap {
    flex-direction: column;
  }
  .brand-side {
    flex: none;
    padding: 36px 24px 28px;
  }
  .brand-side::before {
    background: linear-gradient(135deg, rgba(50, 60, 79, 0.97) 0%, rgba(28, 38, 54, 0.99) 100%);
  }
  .brand-content {
    max-width: 100%;
  }
  .brand-headline {
    font-size: 28px;
  }
  .brand-hero {
    margin-bottom: 24px;
  }
  .brand-quote {
    display: none;
  }
  .form-side {
    width: 100%;
    padding: 36px 24px 48px;
    flex: 1;
  }
}
@media (max-width: 480px) {
  .brand-side {
    padding: 28px 20px 24px;
  }
  .form-side {
    padding: 28px 20px 40px;
  }
  .brand-headline {
    font-size: 24px;
  }
  .sso-row {
    grid-template-columns: 1fr;
  }
}/*# sourceMappingURL=styles.css.map */