/*
Theme Name: SAAS MOD WP
Theme URI: https://aceinovations.com/
Author: Arindam - AceInovations
Author URI: https://aceinovations.com/
Description: A modern SaaS-ready theme with full Elementor support, customizable fonts, colors and logo. Designed for marketplace and storage-rental platforms.
Version: 1.4.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: saas-mod-wp
Tags: elementor, custom-colors, custom-logo, custom-menu, full-site-editing, block-templates
*/

/* ──────────────────────────────────────────
   CSS Custom Properties (set via Customizer)
   ────────────────────────────────────────── */
:root {
  --saas-primary: #F97316;
  --saas-secondary: #1E293B;
  --saas-font-heading: 'Plus Jakarta Sans', sans-serif;
  --saas-font-body: 'Inter', sans-serif;
  --saas-white: #ffffff;
  --saas-gray-50: #f8fafc;
  --saas-gray-100: #f1f5f9;
  --saas-gray-200: #e2e8f0;
  --saas-gray-600: #475569;
  --saas-gray-900: #0f172a;
  --saas-danger: #ef4444;
  --saas-success: #10b981;
  --saas-warning: #f59e0b;
  --saas-radius: 12px;
  --saas-shadow: 0 4px 24px rgba(0, 0, 0, .08);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--saas-font-body);
  font-size: 16px;
  color: var(--saas-gray-900);
  background: var(--saas-white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--saas-font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--saas-secondary);
}

a {
  color: var(--saas-primary);
  text-decoration: none;
}

a:hover {
  opacity: .85;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* ──────────────────────────────────────────
   Page Content (default block-editor pages)
   ────────────────────────────────────────── */
.site-main {
  padding: 56px 0 80px;
}

body.is-elementor-page .site-main {
  padding: 0;
}

.entry-header {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.entry-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.entry-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--saas-gray-600);
}

/* ──────────────────────────────────────────
   404 Page
   ────────────────────────────────────────── */
.error-404-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 0 96px;
  text-align: center;
}

.error-404-page__code {
  font-family: var(--saas-font-heading);
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--saas-primary);
  margin-bottom: 8px;
}

.error-404-page__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 12px;
}

.error-404-page__text {
  color: var(--saas-gray-600);
  line-height: 1.7;
  margin-bottom: 32px;
}

.error-404-page__btn {
  display: inline-flex;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: 1.6em;
  margin-bottom: .6em;
}

.entry-content>h1:first-child,
.entry-content>h2:first-child,
.entry-content>h3:first-child {
  margin-top: 0;
}

.entry-content h1 {
  font-size: 1.875rem;
}

.entry-content h2 {
  font-size: 1.5rem;
}

.entry-content h3 {
  font-size: 1.25rem;
}

.entry-content h4 {
  font-size: 1.0625rem;
}

.entry-content p {
  margin: 0 0 1.25em;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.entry-content li {
  margin-bottom: .4em;
}

.entry-content li>ul,
.entry-content li>ol {
  margin-top: .4em;
  margin-bottom: 0;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}

.entry-content strong,
.entry-content b {
  font-weight: 700;
  color: var(--saas-secondary);
}

.entry-content blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--saas-primary);
  background: var(--saas-gray-50);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.entry-content hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--saas-gray-200);
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25em;
}

.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--saas-gray-200);
  text-align: left;
}

.entry-content th {
  background: var(--saas-gray-50);
  font-weight: 700;
}

.entry-content figure {
  margin: 1.5em 0;
}

.entry-content figcaption {
  font-size: .875rem;
  margin-top: 8px;
  text-align: center;
}

.entry-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--saas-gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .875em;
}

.entry-content pre {
  background: var(--saas-gray-900);
  color: var(--saas-white);
  padding: 16px 20px;
  border-radius: var(--saas-radius);
  overflow-x: auto;
  margin: 0 0 1.25em;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* ──────────────────────────────────────────
   Header / Nav
   ────────────────────────────────────────── */
#masthead {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--saas-white);
  border-bottom: 1px solid var(--saas-gray-200);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .06);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo img,
.site-logo .custom-logo {
  width: var(--logo-w, 160px);
  height: var(--logo-h, 36px);
  object-fit: contain;
}

.site-logo .site-title {
  font-family: var(--saas-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--saas-secondary);
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.main-navigation a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--saas-gray-600);
  transition: color .2s;
}

.main-navigation a:hover,
.main-navigation .current-menu-item>a {
  color: var(--saas-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ──────────────────────────────────────────
   Buttons
   ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  font-family: var(--saas-font-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--saas-primary);
  color: var(--saas-white);
}

.btn-primary:hover {
  background: color-mix(in srgb, var(--saas-primary) 85%, #000);
  color: var(--saas-white);
}

.btn-outline {
  background: transparent;
  color: var(--saas-secondary);
  border: 1.5px solid var(--saas-gray-200);
}

.btn-outline:hover {
  border-color: var(--saas-primary);
  color: var(--saas-primary);
}

/* ──────────────────────────────────────────
   Footer
   ────────────────────────────────────────── */
#colophon {
  background: var(--saas-secondary);
  color: rgba(255, 255, 255, .65);
  padding: 60px 0 24px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-brand .custom-logo,
.footer-brand .footer-custom-logo {
  width: var(--footer-logo-w, 140px);
  height: var(--footer-logo-h, 36px);
  object-fit: contain;
  margin-bottom: 12px;
}

.footer-brand .site-description {
  font-size: .875rem;
  margin-top: 12px;
}

.footer-social {
  display: flex;
  list-style: none;
  gap: 8px;
  margin-top: 20px;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .7);
  transition: background .2s, color .2s, transform .2s;
}

.footer-social__link svg {
  width: 18px;
  height: 18px;
}

.footer-social__link:hover {
  background: var(--saas-primary);
  color: var(--saas-white);
  transform: translateY(-2px);
  opacity: 1;
}

.footer-col h4 {
  font-family: var(--saas-font-heading);
  color: var(--saas-white);
  font-size: .875rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, .6);
  font-size: .875rem;
  transition: color .2s;
}

.footer-col a:hover {
  color: var(--saas-primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .8125rem;
}

/* ──────────────────────────────────────────
   Hamburger Toggle
   ────────────────────────────────────────── */
.menu-toggle {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid var(--saas-gray-200);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.menu-toggle__dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 0 2px var(--saas-white);
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--saas-secondary);
  border-radius: 2px;
  transition: transform .28s ease, opacity .28s ease;
}

.menu-toggle.is-active .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ──────────────────────────────────────────
   Mobile Overlay
   ────────────────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}

.mobile-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ──────────────────────────────────────────
   Mobile Drawer
   ────────────────────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 90vw);
  height: 100dvh;
  background: var(--saas-white);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -8px 0 40px rgba(0, 0, 0, .12);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 24px 32px;
}

/* Drawer header row */
.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
  margin-bottom: 8px;
}

/* Close button */
.mobile-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--saas-gray-100);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.mobile-drawer-close span {
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--saas-secondary);
  border-radius: 2px;
}

.mobile-drawer-close span:first-child {
  transform: rotate(45deg);
}

.mobile-drawer-close span:last-child {
  transform: rotate(-45deg);
}

.mobile-drawer-close:hover {
  background: var(--saas-gray-200);
}

/* Mobile nav links */
.mobile-nav {
  flex: 1;
}

.mobile-nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-nav-menu a {
  display: block;
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--saas-secondary);
  transition: background .15s, color .15s;
}

.mobile-nav-menu a:hover,
.mobile-nav-menu .current-menu-item>a {
  background: var(--saas-gray-50);
  color: var(--saas-primary);
  opacity: 1;
}

/* Mobile auth buttons */
.mobile-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--saas-gray-100);
}

.mobile-auth .btn {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 1rem;
}

/* Mobile logged-in user section */
.mobile-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
  border: 1px solid #FED7AA;
  border-radius: 12px;
  margin-bottom: 8px;
}

.mobile-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2.5px solid var(--saas-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.mobile-user-avatar.saas-dash-avatar-initials {
  font-size: 17px;
}

.mobile-user-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--saas-secondary);
  line-height: 1.2;
}

.mobile-user-role {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--saas-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 3px;
}

.mobile-user-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-user-nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--saas-secondary);
  text-decoration: none;
  transition: background .15s, color .15s;
}

.mobile-user-nav__item:hover {
  background: var(--saas-gray-50);
  color: var(--saas-primary);
}

.mobile-user-nav__item svg {
  color: #64748B;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-user-nav__item:hover svg {
  color: var(--saas-primary);
}

.mobile-user-nav__item-dot {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #EF4444;
  flex-shrink: 0;
}

.mobile-user-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #EF4444;
  text-decoration: none;
  transition: background .15s, border-color .15s;
  border: 1px solid #FECACA;
  background: #FFF5F5;
}

.mobile-user-logout:hover {
  background: #FEF2F2;
  border-color: #FCA5A5;
}

.mobile-user-logout svg {
  color: #EF4444;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   Modal System (saasModal - assets/js/modal.js)
   ────────────────────────────────────────── */
.saas-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.saas-modal__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(15, 23, 42, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: saas-modal-fade-in .22s ease both;
}

.saas-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: var(--saas-white);
  border-radius: var(--saas-radius);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
  padding: 32px 28px 28px;
  text-align: center;
  font-family: var(--saas-font-body);
  animation: saas-modal-pop-in .26s cubic-bezier(.34, 1.4, .64, 1) both;
}

.saas-modal__dialog:focus {
  outline: none;
}

.saas-modal.is-closing .saas-modal__backdrop {
  animation: saas-modal-fade-out .2s ease both;
}

.saas-modal.is-closing .saas-modal__dialog {
  animation: saas-modal-pop-out .2s ease both;
}

.saas-modal__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
}

.saas-modal__icon svg {
  width: 28px;
  height: 28px;
}

.saas-modal__icon--info {
  background: color-mix(in srgb, var(--saas-primary) 12%, #fff);
  color: var(--saas-primary);
}

.saas-modal__icon--success {
  background: #ecfdf5;
  color: var(--saas-success);
}

.saas-modal__icon--warning {
  background: #fffbeb;
  color: var(--saas-warning);
}

.saas-modal__icon--danger {
  background: #fef2f2;
  color: var(--saas-danger);
}

.saas-modal__title {
  font-family: var(--saas-font-heading);
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--saas-secondary);
  margin-bottom: 10px;
}

.saas-modal__message {
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--saas-gray-600);
  white-space: pre-line;
  overflow-wrap: break-word;
  margin-bottom: 26px;
}

.saas-modal__actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.saas-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 11px 22px;
  border-radius: 8px;
  font-family: var(--saas-font-body);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .2s, border-color .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}

.saas-modal__btn:focus-visible {
  outline: 2px solid var(--saas-primary);
  outline-offset: 2px;
}

.saas-modal__btn--confirm {
  background: var(--saas-primary);
  color: var(--saas-white);
}

.saas-modal__btn--confirm:hover {
  background: color-mix(in srgb, var(--saas-primary) 85%, #000);
}

.saas-modal__btn--danger {
  background: var(--saas-danger);
}

.saas-modal__btn--danger:hover {
  background: #dc2626;
}

.saas-modal__btn--danger:focus-visible {
  outline-color: var(--saas-danger);
}

.saas-modal__btn--cancel {
  background: transparent;
  color: var(--saas-secondary);
  border: 1.5px solid var(--saas-gray-200);
}

.saas-modal__btn--cancel:hover {
  border-color: var(--saas-gray-600);
  background: var(--saas-gray-50);
}

@keyframes saas-modal-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes saas-modal-fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes saas-modal-pop-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(.95);
  }

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

@keyframes saas-modal-pop-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
}

@media (max-width: 480px) {
  .saas-modal {
    padding: 14px;
    align-items: flex-end;
  }

  .saas-modal__dialog {
    padding: 26px 20px 20px;
    max-width: none;
  }

  .saas-modal__actions {
    flex-direction: column-reverse;
  }

  .saas-modal__btn {
    width: 100%;
    padding: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .saas-modal__backdrop,
  .saas-modal__dialog,
  .saas-modal.is-closing .saas-modal__backdrop,
  .saas-modal.is-closing .saas-modal__dialog {
    animation: none;
  }
}

/* ──────────────────────────────────────────
   Toast System (saasToast - assets/js/toast.js)
   ────────────────────────────────────────── */
.saas-toast-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 100100;
  /* above the modal layer so toasts fired from dialogs stay visible */
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

body.admin-bar .saas-toast-stack {
  top: 52px;
}

.saas-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  background: var(--saas-white);
  border: 1px solid var(--saas-gray-200);
  border-radius: var(--saas-radius);
  box-shadow: 0 8px 30px rgba(15, 23, 42, .14);
  pointer-events: auto;
  animation: saas-toast-in .25s cubic-bezier(.21, 1.02, .73, 1) both;
}

.saas-toast.is-leaving {
  animation: saas-toast-out .2s ease both;
}

.saas-toast__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.saas-toast__icon svg {
  width: 18px;
  height: 18px;
}

.saas-toast__icon--info {
  background: color-mix(in srgb, var(--saas-primary) 12%, #fff);
  color: var(--saas-primary);
}

.saas-toast__icon--success {
  background: #ecfdf5;
  color: var(--saas-success);
}

.saas-toast__icon--warning {
  background: #fffbeb;
  color: var(--saas-warning);
}

.saas-toast__icon--error {
  background: #fef2f2;
  color: var(--saas-danger);
}

.saas-toast__message {
  flex: 1;
  align-self: center;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--saas-gray-900);
  overflow-wrap: anywhere;
}

.saas-toast__close {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--saas-gray-600);
  cursor: pointer;
  transition: background .15s, color .15s;
}

.saas-toast__close:hover {
  background: var(--saas-gray-100);
  color: var(--saas-gray-900);
}

.saas-toast__close:focus-visible {
  outline: 2px solid var(--saas-primary);
  outline-offset: 1px;
}

.saas-toast__close svg {
  width: 14px;
  height: 14px;
}

@keyframes saas-toast-in {
  from {
    opacity: 0;
    transform: translateX(18px) scale(.97);
  }

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

@keyframes saas-toast-out {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(18px);
  }
}

@media (max-width: 782px) {
  body.admin-bar .saas-toast-stack {
    top: 66px;
  }

  /* taller mobile admin bar */
}

@media (prefers-reduced-motion: reduce) {

  .saas-toast,
  .saas-toast.is-leaving {
    animation: none;
  }
}

/* ──────────────────────────────────────────
   Cookie Consent Banner (assets/js/cookie-consent.js)
   ────────────────────────────────────────── */
.saas-cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 16px 24px;
  background: var(--saas-gray-900);
  color: var(--saas-white);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, .15);
}

.saas-cookie-consent.is-visible {
  display: flex;
  animation: saas-cookie-in .3s ease both;
}

.saas-cookie-consent.is-hiding {
  animation: saas-cookie-out .25s ease both;
}

.saas-cookie-consent__message {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.saas-cookie-consent__message a {
  color: var(--saas-white);
  text-decoration: underline;
}

.saas-cookie-consent__message a:hover {
  color: var(--saas-primary);
}

.saas-cookie-consent__btn {
  flex: 0 0 auto;
  padding: 10px 24px;
  border: 1px solid var(--saas-white);
  border-radius: var(--saas-radius);
  background: transparent;
  color: var(--saas-white);
  font-family: var(--saas-font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.saas-cookie-consent__btn:hover {
  background: var(--saas-white);
  color: var(--saas-gray-900);
}

.saas-cookie-consent__btn:focus-visible {
  outline: 2px solid var(--saas-primary);
  outline-offset: 2px;
}

@keyframes saas-cookie-in {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

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

@keyframes saas-cookie-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(100%);
  }
}

@media (prefers-reduced-motion: reduce) {

  .saas-cookie-consent.is-visible,
  .saas-cookie-consent.is-hiding {
    animation: none;
  }
}

@media (max-width: 782px) {
  body.admin-bar .saas-cookie-consent.is-visible {
    bottom: 46px;
  }
}

@media (max-width: 480px) {
  .saas-cookie-consent {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
  }

  .saas-cookie-consent__btn {
    width: 100%;
  }
}

/* ──────────────────────────────────────────
   Responsive
   ────────────────────────────────────────── */
@media (max-width: 1024px) {

  .main-navigation,
  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .footer-widgets {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}