/* Styles for reusable components */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius-base);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

/* Small button variant for compact tables and admin actions */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: var(--radius-base);
  line-height: 1.25;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--dark);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
}

/* Outline button variant used for secondary actions like registration/login links */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: rgba(47, 91, 234, 0.05);
}

.btn-success {
  background: var(--success);
  color: #fff;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.btn-warning {
  background: var(--warning);
  color: var(--dark);
}

.btn-gray {
  background: var(--border);
  color: var(--dark);
}

/* Icon style button variant for compact header actions */
.btn-icon {
  padding: 0.5rem;
  width: auto;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Form elements */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark);
}

.form-control,
select,
textarea {
  width: 100%;
  height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  background: var(--surface);
  color: var(--dark);
  font-size: 1rem;
}

textarea.form-control,
textarea {
  height: 96px;
  resize: vertical;
}

.form-control:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(47, 91, 234, 0.1);
}

/* Checkbox and radio */
.checkbox-group label,
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-group input,
.radio-option input {
  width: 16px;
  height: 16px;
}

/* Radio group container */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-option span {
  margin-left: 0.25rem;
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Modal styles */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-base);
  box-shadow: 0 8px 20px rgba(17, 27, 61, 0.15);
  z-index: 1050;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  width: 100%;
}

/* Modals take more horizontal space on mobile */
@media (max-width: 767px) {
  .modal {
    max-width: 95vw;
    padding: 1.5rem;
  }
}

/* Offer modal specific styles */
.offer-summary {
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--dark);
}

.offer-summary strong {
  font-size: 1rem;
  color: var(--dark);
}

.modal-header {
  font-weight: bold;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.modal-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* Toast styles */
.toast {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-base);
  color: #fff;
  box-shadow: var(--shadow-soft);
  z-index: 1100;
  margin-top: 0.5rem;
}

.toast-info {
  background: var(--primary);
}

.toast-success {
  background: var(--success);
}

.toast-danger {
  background: var(--danger);
}

.toast-warning {
  background: var(--warning);
  color: var(--dark);
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-base);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-default {
  background: var(--border);
  color: var(--dark);
}

.status-success {
  background: var(--success);
  color: #fff;
}

.status-danger {
  background: var(--danger);
  color: #fff;
}

.status-warning {
  background: var(--warning);
  color: var(--dark);
}

.status-info {
  background: var(--primary);
  color: #fff;
}

/* Tabs */
.tabs {
  margin-top: 1rem;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-header {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  font-weight: 500;
}

.tab-header:hover {
  color: var(--primary);
}

.tab-header.active {
  border-bottom-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.tab-content {
  display: none;
  padding: 1rem 0;
}

.tab-content.active {
  display: block;
}

/* Empty state */
.empty-state {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.empty-state p {
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

.pagination li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-base);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--dark);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.pagination li a:hover {
  background: var(--bg);
}

.pagination li a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ===============================
   SmartFreight Confirm Dialog
   =============================== */

body.sf-modal-open {
  overflow: hidden;
}

.sf-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 27, 61, 0.46);
  backdrop-filter: blur(10px);
  animation: sfConfirmFadeIn 0.16s ease forwards;
}

.sf-confirm-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 34px;
  border: 1px solid #dfe7f6;
  border-radius: 28px;
  background:
          radial-gradient(circle at 85% 0%, rgba(47, 91, 234, 0.1), transparent 34%),
          #ffffff;
  color: #111b3d;
  box-shadow: 0 28px 80px rgba(17, 27, 61, 0.28);
  transform: translateY(8px) scale(0.98);
  animation: sfConfirmPopIn 0.18s ease forwards;
}

.sf-confirm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border: 1px solid #dfe7f6;
  border-radius: 14px;
  background: #ffffff;
  color: #6b7a99;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sf-confirm-close:hover {
  background: #eef4ff;
  color: #2f5bea;
  transform: translateY(-1px);
}

.sf-confirm-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #eef4ff;
  color: #2f5bea;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(47, 91, 234, 0.18);
}

.sf-confirm-icon.is-danger {
  background: #ffe9ec;
  color: #ef4444;
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.16);
}

.sf-confirm-content h2 {
  margin: 0;
  color: #111b3d;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.sf-confirm-content p {
  margin: 12px 0 0;
  color: #6b7a99;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 700;
}

.sf-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 30px;
}

.sf-confirm-cancel,
.sf-confirm-submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.sf-confirm-cancel {
  border: 1px solid #2f5bea;
  background: #ffffff;
  color: #2f5bea;
}

.sf-confirm-cancel:hover {
  background: rgba(47, 91, 234, 0.06);
  transform: translateY(-1px);
}

.sf-confirm-submit {
  border: 1px solid #2f5bea;
  background: #2f5bea;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 91, 234, 0.24);
}

.sf-confirm-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(47, 91, 234, 0.3);
}

.sf-confirm-submit.is-danger {
  border-color: #ef4444;
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.22);
}

.sf-confirm-submit.is-danger:hover {
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.3);
}

.sf-confirm-submit:disabled,
.sf-confirm-cancel:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

@keyframes sfConfirmFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes sfConfirmPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .sf-confirm-overlay {
    align-items: flex-end;
    padding: 14px;
  }

  .sf-confirm-dialog {
    padding: 28px 20px 20px;
    border-radius: 24px;
  }

  .sf-confirm-icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    font-size: 28px;
  }

  .sf-confirm-content h2 {
    font-size: 24px;
  }

  .sf-confirm-content p {
    font-size: 14px;
  }

  .sf-confirm-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .sf-confirm-cancel,
  .sf-confirm-submit {
    width: 100%;
  }
}

/* ===============================
   SmartFreight Toasts
   =============================== */

.sf-toast-container {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10050;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.sf-toast {
  min-height: 76px;
  display: grid;
  grid-template-columns: 42px 1fr 32px;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dfe7f6;
  color: #111b3d;
  box-shadow: 0 22px 60px rgba(17, 27, 61, 0.22);
  pointer-events: auto;
  animation: sfToastIn 0.22s ease forwards;
}

.sf-toast.is-leaving {
  animation: sfToastOut 0.22s ease forwards;
}

.sf-toast-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font-size: 20px;
  font-weight: 900;
}

.sf-toast-content {
  min-width: 0;
}

.sf-toast-content strong {
  display: block;
  margin-bottom: 4px;
  color: #111b3d;
  font-size: 15px;
  line-height: 1.15;
  font-weight: 900;
}

.sf-toast-content p {
  margin: 0;
  color: #5f6f91;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  word-break: break-word;
}

.sf-toast-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 12px;
  background: #f3f6fc;
  color: #6b7a99;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.sf-toast-close:hover {
  background: #e8eefb;
  color: #111b3d;
}

.sf-toast-success .sf-toast-icon {
  background: #e7f8ee;
  color: #147a3f;
}

.sf-toast-error .sf-toast-icon {
  background: #ffe9ec;
  color: #d92535;
}

.sf-toast-warning .sf-toast-icon {
  background: #fff4d9;
  color: #a66b00;
}

.sf-toast-info .sf-toast-icon {
  background: #eef4ff;
  color: #2f5bea;
}

.sf-toast-success {
  border-color: #c6efd7;
}

.sf-toast-error {
  border-color: #ffc8d0;
}

.sf-toast-warning {
  border-color: #ffe2a8;
}

.sf-toast-info {
  border-color: #cdd9ff;
}

@keyframes sfToastIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sfToastOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

@media (max-width: 767px) {
  .sf-toast-container {
    right: 14px;
    left: 14px;
    bottom: 14px;
    width: auto;
  }

  .sf-toast {
    grid-template-columns: 38px 1fr 30px;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
  }

  .sf-toast-icon {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .sf-toast-content strong {
    font-size: 14px;
  }

  .sf-toast-content p {
    font-size: 13px;
  }
}

/* =========================================================
   Seldix header: desktop + mobile burger
   ========================================================= */

.sf-app-header,
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #dce6f7;
}

.header-full-width {
  width: 100%;
  max-width: none;
}

.header-content-new {
  min-height: 80px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.header-brand-group {
  display: flex;
  align-items: center;
  gap: 38px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #101a3d;
  text-decoration: none;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.brand img {
  width: 58px;
  height: auto;
  display: block;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.header-nav-links .nav-link {
  color: #101a3d;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav-links .nav-link:hover {
  color: #315ee9;
}

.header-actions-group {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.auth-buttons {
  display: flex;
  align-items: center;
  gap: 22px;
}

.auth-buttons .btn,
.btn-login,
.btn-register {
  color: #101a3d;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.auth-buttons .btn-login {
  color: #4b148c;
}

.auth-buttons .btn-register {
  color: #0000d9;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.user-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #b9efff;
  border: 2px solid #dff6ff;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #101a3d;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(49, 94, 233, .12);
  overflow: hidden;
}

.user-avatar img {
  display: none;
}

.user-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.logout-link {
  color: #ef4050;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid #dce6f7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  place-items: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #101a3d;
  transition: transform .18s ease, opacity .18s ease;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Tablet */
@media (max-width: 980px) {
  .header-content-new {
    padding: 0 22px;
    gap: 16px;
  }

  .header-brand-group {
    gap: 24px;
  }

  .header-nav-links {
    gap: 18px;
  }

  .header-nav-links .nav-link {
    font-size: 15px;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .sf-app-header,
  header {
    position: sticky;
    top: 0;
  }

  .header-content-new {
    min-height: 72px;
    padding: 0 16px;
  }

  .header-brand-group {
    flex: 1;
    min-width: 0;
  }

  .brand {
    font-size: 24px;
  }

  .brand img {
    width: 52px;
  }

  .burger {
    display: grid;
  }

  .header-nav-links,
  .auth-buttons,
  .user-menu-header {
    position: fixed;
    left: 14px;
    right: 14px;
    background: #fff;
    border: 1px solid #dce6f7;
    box-shadow: 0 24px 60px rgba(16, 26, 61, .18);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: .18s ease;
  }

  .header-nav-links {
    top: 82px;
    z-index: 1001;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 22px 22px 0 0;
  }

  .auth-buttons,
  .user-menu-header {
    top: auto;
    bottom: auto;
    z-index: 1001;
    margin-top: 0;
    display: grid;
    gap: 8px;
    padding: 16px;
    border-radius: 0 0 22px 22px;
    border-top: 0;
  }

  header.nav-open .header-nav-links,
  header.nav-open .auth-buttons,
  header.nav-open .user-menu-header {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  header.nav-open .auth-buttons,
  header.nav-open .user-menu-header {
    top: calc(82px + 210px);
  }

  .header-nav-links .nav-link,
  .auth-buttons .btn,
  .user-menu-header a {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    color: #101a3d;
    background: transparent;
    font-size: 16px;
    font-weight: 950;
    text-decoration: none;
  }

  .header-nav-links .nav-link:hover,
  .auth-buttons .btn:hover,
  .user-menu-header a:hover {
    background: #eef4ff;
  }

  .auth-buttons .btn-login,
  .auth-buttons .btn-register {
    color: #101a3d;
  }

  .user-menu-header {
    grid-template-columns: 1fr;
  }

  .user-avatar {
    width: auto;
    height: 48px;
    border-radius: 14px;
    display: flex;
    justify-content: flex-start;
    padding: 0 14px;
    gap: 10px;
    background: #eef4ff;
    box-shadow: none;
  }

  .user-avatar::after {
    content: "Профіль";
    font-size: 16px;
    font-weight: 950;
    color: #101a3d;
  }

  .logout-link {
    color: #ef4050 !important;
  }

  body.sf-mobile-menu-open {
    overflow: hidden;
  }
}

/* Small mobile */
@media (max-width: 440px) {
  .header-content-new {
    padding: 0 12px;
  }

  .brand {
    font-size: 23px;
  }

  .brand img {
    width: 50px;
  }

  .burger {
    width: 44px;
    height: 44px;
  }

  .header-nav-links,
  .auth-buttons,
  .user-menu-header {
    left: 10px;
    right: 10px;
  }
}
/* =========================================================
   Mobile header fix: clean profile item + burger alignment
   ========================================================= */

@media (max-width: 760px) {
  .header-content-new {
    min-height: 72px;
    padding: 0 18px;
    align-items: center;
  }

  .brand {
    gap: 8px;
    font-size: 24px;
  }

  .brand img {
    width: 52px;
  }

  .burger {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    gap: 0;
    position: relative;
  }

  .burger span {
    position: absolute;
    width: 20px;
    height: 2px;
    background: #101a3d;
    border-radius: 999px;
  }

  .burger span:nth-child(1) {
    transform: translateY(-6px);
  }

  .burger span:nth-child(2) {
    transform: translateY(0);
  }

  .burger span:nth-child(3) {
    transform: translateY(6px);
  }

  .burger.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .burger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .user-menu-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .user-menu-header .user-avatar {
    width: 100%;
    height: 48px;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: #fff;
    border: 1px solid #bfeeff;
    box-shadow: none;
    color: #101a3d;
    box-sizing: border-box;
  }

  .user-menu-header .user-avatar span {
    display: none;
  }

  .user-menu-header .user-avatar::after {
    content: "Профіль";
    display: block;
    color: #101a3d;
    font-size: 16px;
    font-weight: 950;
  }

  .user-menu-header .logout-link {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    color: #ef4050 !important;
    background: #fff;
    box-sizing: border-box;
  }
}

/* =========================================================
   CLEAN MOBILE FOOTER FIX
   Только мобилка. Desktop не трогаем.
   ========================================================= */

@media (max-width: 760px) {
  .main-footer {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 30px 0 34px !important;
    background: #101a3d !important;
  }

  .main-footer .container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 28px !important;
    box-sizing: border-box !important;
  }

  .main-footer .footer-inner {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    gap: 18px !important;
    padding: 0 !important;
    margin: 0 !important;

    overflow: visible !important;
    text-align: left !important;
  }

  .main-footer .footer-brand,
  .main-footer .footer-links,
  .main-footer .footer-bottom {
    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;

    overflow: visible !important;
    text-align: left !important;
  }

  .main-footer .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .main-footer .footer-logo-row {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .main-footer .footer-logo {
    width: 54px !important;
    height: auto !important;
    display: block !important;
    flex: 0 0 auto !important;
  }

  .main-footer .footer-logo-text {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .main-footer .footer-description {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 !important;
    padding: 0 !important;

    color: rgba(255, 255, 255, .88) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    text-align: left !important;
  }

  .main-footer .footer-links {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 9px !important;
  }

  .main-footer .footer-link {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 0 0 16px !important;

    position: relative !important;

    color: #fff !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    text-decoration: none !important;

    white-space: normal !important;
    overflow: visible !important;
  }

  .main-footer .footer-link::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 8px !important;

    width: 5px !important;
    height: 5px !important;
    border-radius: 50% !important;
    background: #fff !important;
  }

  .main-footer .footer-bottom {
    display: block !important;
  }

  .main-footer .footer-bottom p {
    margin: 0 !important;
    padding: 0 !important;

    color: rgba(255, 255, 255, .88) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    text-align: left !important;

    white-space: normal !important;
  }

  .main-footer .footer-bottom a {
    color: #fff !important;
    font-weight: 900 !important;
    text-decoration: none !important;
  }
}


/* =========================================================
   FINAL SELDIX HEADER
   Desktop + single mobile menu
   ========================================================= */

.sf-app-header {
  position: sticky;
  top: 0;
  z-index: 3000;
  background: #fff;
  border-bottom: 1px solid #dce6f7;
}

.header-full-width {
  width: 100%;
  max-width: none;
}

.header-content-new {
  min-height: 80px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  gap: 34px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #101a3d;
  text-decoration: none;
  font-size: 26px;
  font-weight: 950;
  line-height: 1;
}

.brand img {
  width: 58px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.desktop-nav .nav-link {
  color: #101a3d;
  font-size: 16px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav .nav-link:hover {
  color: #315ee9;
}

.desktop-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.desktop-actions .btn,
.desktop-actions .logout-link {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #101a3d;
  text-decoration: none;
  font-size: 16px;
  font-weight: 950;
}

.desktop-actions .btn-login {
  color: #4b148c;
}

.desktop-actions .btn-register {
  color: #0000d9;
}

.desktop-actions .logout-link {
  color: #ef4050;
}

.user-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #b9efff;
  border: 2px solid #dff6ff;
  color: #101a3d;
  text-decoration: none;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(49, 94, 233, .12);
}

.user-avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.burger {
  display: none;
}

.mobile-menu-panel {
  display: none;
}

/* Mobile */
@media (max-width: 760px) {
  .sf-app-header {
    position: sticky;
    top: 0;
    z-index: 3000;
  }

  .header-content-new {
    min-height: 72px !important;
    padding: 0 18px !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }

  .brand {
    font-size: 20px !important;
    gap: 8px !important;
  }

  .brand img {
    width: 42px !important;
  }

  .desktop-nav,
  .desktop-actions {
    display: none !important;
  }

  .burger {
    width: 42px !important;
    height: 42px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    position: relative !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: transparent !important;
    cursor: pointer !important;
  }

  .burger span {
    position: absolute !important;
    width: 20px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: #101a3d !important;
    transition: transform .18s ease, opacity .18s ease !important;
  }

  .burger span:nth-child(1) {
    transform: translateY(-6px);
  }

  .burger span:nth-child(2) {
    transform: translateY(0);
  }

  .burger span:nth-child(3) {
    transform: translateY(6px);
  }

  .burger.is-open span:nth-child(1) {
    transform: rotate(45deg);
  }

  .burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .burger.is-open span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .mobile-menu-panel {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 10px !important;
    right: 10px !important;

    display: none !important;
    padding: 14px !important;

    background: #fff !important;
    border: 1px solid #dce6f7 !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 60px rgba(16, 26, 61, .18) !important;

    z-index: 3001 !important;
  }

  .sf-app-header.nav-open .mobile-menu-panel {
    display: block !important;
  }

  .mobile-menu-section {
    display: grid !important;
    gap: 4px !important;
  }

  .mobile-menu-divider {
    height: 1px !important;
    margin: 10px 0 !important;
    background: #e7eefb !important;
  }

  .mobile-menu-panel .nav-link,
  .mobile-menu-panel .mobile-menu-link {
    width: 100% !important;
    min-height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;

    padding: 0 14px !important;
    margin: 0 !important;

    border-radius: 14px !important;
    box-sizing: border-box !important;

    background: transparent !important;
    color: #101a3d !important;

    font-size: 16px !important;
    font-weight: 950 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
  }

  .mobile-menu-panel .nav-link:hover,
  .mobile-menu-panel .mobile-menu-link:hover {
    background: #eef4ff !important;
  }

  .mobile-menu-panel .mobile-auth-link {
    justify-content: center !important;
  }

  .mobile-menu-panel .mobile-profile-link {
    border: 1px solid #bfeeff !important;
    background: #fff !important;
  }

  .mobile-menu-panel .mobile-logout-link {
    color: #ef4050 !important;
  }

  body.sf-mobile-menu-open {
    overflow: hidden !important;
  }
}

.login-forgot-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
  margin-bottom: 8px;
}

.login-forgot-link {
  color: #315ee9;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.login-forgot-link:hover {
  text-decoration: underline;
}

.password-reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 18, 45, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.password-reset-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(12, 24, 60, 0.25);
}

.password-reset-modal h2 {
  margin: 0 0 10px;
  color: #111b3d;
  font-size: 26px;
  font-weight: 800;
}

.password-reset-text {
  margin: 0 0 20px;
  color: #536386;
  font-size: 15px;
  line-height: 1.45;
}

.password-reset-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f0f3fb;
  color: #172044;
  font-size: 24px;
  cursor: pointer;
}

.password-reset-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.password-reset-step.is-hidden {
  display: none;
}

.password-reset-step input {
  width: 100%;
  height: 52px;
  border: 1px solid #d7def2;
  border-radius: 14px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
}

.password-reset-step input:focus {
  border-color: #315ee9;
  box-shadow: 0 0 0 3px rgba(49, 94, 233, 0.12);
}

.password-reset-error {
  min-height: 18px;
  margin: 0;
  color: #d92d20;
  font-size: 13px;
  font-weight: 600;
}

@media (max-width: 520px) {
  .password-reset-modal {
    padding: 26px 20px;
    border-radius: 20px;
  }

  .password-reset-modal h2 {
    font-size: 22px;
  }
}